Segmentation fault on Dialog button
#1

Whenever I press the "login" button on the login dialog, the server crashes. Even if I don't type anything in, it always crashes. I receive an output to the terminal window which says "Segmentation fault", and I'm getting
Код:
[debug] Server crashed while executing smrp.amx
in the server_log.txt.

This is only happening on linux (ubuntu), it works fine on windows.

Code executed when login is pressed:
PHP код:
    new string[128];
    
format(stringsizeof(string), "SELECT `Username`, `Pass` FROM `accounts` WHERE `Username` = '%s'"GetPlayerNameExt(playerid));
    
mysql_function_query(SQLOGINstringtrue"OnQueryFinish""iii"LOGIN_THREADplayeridg_arrQueryHandle{playerid});
    return 
1
EDIT: I believe that it has something to do about the MySQL plugin. I'm using BlueG's R34. I've tried several versions, and nothing is changing.
Reply
#2

Download this plugin
https://code.******.com/p/sa-mp-mysq...x.rar&can=1&q=
Reply
#3

I'm still getting the same error
Reply
#4

I dont know much about Mysql so sorry
But try googling it
Reply
#5

I have, but there isn't much coming up about it.. :/ Thanks though
Reply
#6

I am using crashdetect, and all it's giving me is two lines of
Quote:

[debug] Server crashed while executing smrp.amx

EDIT: I tried running the server using gdb, and this is what I got:

Quote:

Started server on port: 7777, with maxplayers: 50 lanmode is OFF.

[New Thread 0xed1fcb40 (LWP 6054)]
[Thread 0xed1fcb40 (LWP 6054) exited]
[New Thread 0xed1fcb40 (LWP 6055)]

Program received signal SIGSEGV, Segmentation fault.
0xcc4f3a00 in ?? ()

Reply
#7

I'm also having this problem with my server, I really need a solution to this. bump! by me
Reply
#8

Could it by any chance have something to do with Ubuntu 12.04 64-bit?
Reply
#9

I ran dmesg, and I got this:
Quote:

[ 82.571060] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 82.571070] Bluetooth: BNEP filters: protocol multicast
[ 82.617183] snd_hda_intel 0000:00:0f.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[ 82.619246] snd_hda_intel 0000:00:0f.0: setting latency timer to 64
[ 82.954509] init: failsafe main process (569) killed by TERM signal
[ 83.216577] vesafb: mode is 640x480x32, linelength=2560, pages=0
[ 83.216586] vesafb: scrolling: redraw
[ 83.216596] vesafb: Truecolor: size=8:8:8:8, shift=24:16:8:0
[ 83.217306] vesafb: framebuffer at 0xd0000000, mapped to 0xffffc90010980000, using 1216k, total 1216k
[ 83.219015] Console: switching to colour frame buffer device 80x30
[ 83.224554] fb0: VESA VGA frame buffer device
[ 89.552023] eth0: no IPv6 routers present
[143322.973580] UDP: short packet: From 119.81.7.18:53 15099/41 to 199.233.245.109:32598
[174308.491621] samp03svr[1821]: segfault at 9674700 ip 0000000009674700 sp 00000000ff95dc80 error 14
[174558.880422] samp03svr[1866]: segfault at 9674700 ip 0000000009674700 sp 00000000ffabd280 error 15
[174983.612006] samp03svr[1950]: segfault at 9674700 ip 0000000009674700 sp 00000000fffb7e00 error 14

Reply
#10

I still need help with this
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)