PDA

View Full Version : Segmentation fault on Dialog button


SecondMillenium
09/05/2014, 01:15 PM
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:

new string[128];

format(string, sizeof(string), "SELECT `Username`, `Pass` FROM `accounts` WHERE `Username` = '%s'", GetPlayerNameExt(playerid));
mysql_function_query(SQLOGIN, string, true, "OnQueryFinish", "iii", LOGIN_THREAD, playerid, g_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.

rockhopper
09/05/2014, 04:04 PM
Download this plugin
https://code.******.com/p/sa-mp-mysql-plugin/downloads/detail?name=mysql-r34-linux.rar&can=1&q=

SecondMillenium
09/05/2014, 04:17 PM
I'm still getting the same error

rockhopper
09/05/2014, 04:23 PM
I dont know much about Mysql so sorry
But try googling it

SecondMillenium
09/05/2014, 04:30 PM
I have, but there isn't much coming up about it.. :/ Thanks though

SecondMillenium
09/05/2014, 04:38 PM
I am using crashdetect, and all it's giving me is two lines of
[debug] Server crashed while executing smrp.amx

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


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 ?? ()

Noobzproject
09/05/2014, 06:08 PM
I'm also having this problem with my server, I really need a solution to this. bump! by me

SecondMillenium
09/05/2014, 11:04 PM
Could it by any chance have something to do with Ubuntu 12.04 64-bit?

SecondMillenium
10/05/2014, 08:55 AM
I ran dmesg, and I got this:

[ 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

SecondMillenium
11/05/2014, 10:13 AM
I still need help with this

SecondMillenium
11/05/2014, 07:44 PM
Bump

iZN
11/05/2014, 08:10 PM
https://github.com/Zeex/samp-plugin-crashdetect/wiki/Compiling-scripts-with-debug-info

Then provide the crashdetect logs, then we might able to help you out.

SecondMillenium
11/05/2014, 08:22 PM
Header size: 41468 bytes
Code size: 6894932 bytes
Data size: 109598440 bytes
Stack/heap size: 18000000 bytes; estimated max. usage: unknown, due to recursion
Total requirements:134534840 bytes

iZN
11/05/2014, 09:32 PM
Header size: 41468 bytes
Code size: 6894932 bytes
Data size: 109598440 bytes
Stack/heap size: 18000000 bytes; estimated max. usage: unknown, due to recursion
Total requirements:134534840 bytes


Uh, not this actually. I meant, crashdetect will provide more debug information with the debug level 3 (-d3) compiled script.

SecondMillenium
12/05/2014, 10:03 AM
I'm still not getting anything from crashdetect :/

iZN
12/05/2014, 10:16 AM
Forward those errors to xeeZ, he may able to find out the cause or open an issue ticket at Github (https://github.com/Zeex/samp-plugin-crashdetect/issues/new).