udan11 / samp-plugin-sql

An abstract layer that communicates with multiple database servers (MySQL and PostgreSQL) implemented as a plugin for SA-MP servers.
BSD 2-Clause "Simplified" License
16 stars 12 forks source link

Segmentation fault after upgrading mysql #16

Open KingCodename opened 8 years ago

KingCodename commented 8 years ago

5.5.49-0+deb8u1 -> 5.5.50-0+deb8u1

[debug] Server crashed while executing gamemode.amx
[debug] AMX backtrace:
[debug] #0 native sql_insert_id () from sql.so
[debug] #1 00115a78 in Function (playerid=1) at C:\project\gamemodes\gamemode.pwn:1
[debug] #2 0020f0a8 in public OnDialogResponseEx (playerid=1, dialogid=5, response=1, listitem=-1, inputtext[]=@00ae2554 "") at C:\project\gamemodes\gamemode.pwn:2
[debug] #3 001c33fc in public OnDialogResponse (playerid=1, dialogid=5, response=1, listitem=-1, inputtext[]=@00aa3578 "") at C:\project\gamemodes\gamemode.pwn:3
[debug] Native backtrace:
[debug] #0 f11b1e8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[debug] #1 f11aabcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[debug] #2 f11abdbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[debug] #3 f11ac226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[debug] #4 f11b1adc in ?? () from plugins/crashdetect.so
[debug] #5 f1505410 in __kernel_rt_sigreturn () from linux-gate.so.1
[debug] #6 f0e12d48 in _ZN7Natives13sql_insert_idEP6tagAMXPi () from plugins/sql.so
[debug] #7 080950e4 in ?? () from ./sampsrv
[debug] #8 f11ad94b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[debug] #9 f11b08f8 in ?? () from plugins/crashdetect.so
[debug] #10 f11b4916 in amx_Exec () from plugins/crashdetect.so
[debug] #11 f11acbe6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[debug] #12 f11b0659 in ?? () from plugins/crashdetect.so
[debug] #13 f053d25c in ?? () from plugins/streamer.so
[debug] #14 080a682f in ?? () from ./sampsrv
[debug] #15 080b2c44 in ?? () from ./sampsrv
[debug] #16 08071d38 in ?? () from ./sampsrv
[debug] #17 08071e32 in ?? () from ./sampsrv
[debug] #18 0807bc50 in ?? () from ./sampsrv
[debug] #19 080aed3d in ?? () from ./sampsrv
[debug] #20 080aef02 in ?? () from ./sampsrv
[debug] #21 080aa13a in ?? () from ./sampsrv
[debug] #22 f11eea63 in __libc_start_main () from /lib32/libc.so.6

After ./build-all.sh:

rm -f *.o
g++ -c -fPIC -m32 -O3 -w -Wall -Iinclude/ -DLINUX -DPLUGIN_SUPPORTS_MYSQL=1 src/sdk/amx/*.cpp
g++: error: src/sdk/amx/*.cpp: No such file or directory
g++: fatal error: no input files
compilation terminated.
makefile:76: recipe for target 'all' failed
make: *** [all] Error 4
rm -f *.o
g++ -c -fPIC -m32 -O3 -w -Wall -Iinclude/ -DLINUX -DPLUGIN_SUPPORTS_MYSQL=1 src/sdk/amx/*.cpp
g++: error: src/sdk/amx/*.cpp: No such file or directory
g++: fatal error: no input files
compilation terminated.
makefile:76: recipe for target 'all' failed
make: *** [all] Error 4
rm -f *.o
g++ -c -fPIC -m32 -O3 -w -Wall -Iinclude/ -DLINUX -DPLUGIN_SUPPORTS_PGSQL=2 src/sdk/amx/*.cpp
g++: error: src/sdk/amx/*.cpp: No such file or directory
g++: fatal error: no input files
compilation terminated.
makefile:76: recipe for target 'all' failed
make: *** [all] Error 4
rm -f *.o
g++ -c -fPIC -m32 -O3 -w -Wall -Iinclude/ -DLINUX -DPLUGIN_SUPPORTS_MYSQL=1 -DPLUGIN_SUPPORTS_PGSQL=2 src/sdk/amx/*.cpp
g++: error: src/sdk/amx/*.cpp: No such file or directory
g++: fatal error: no input files
compilation terminated.
makefile:76: recipe for target 'all' failed
make: *** [all] Error 4
rm -f *.o
KingCodename commented 8 years ago

Fixed! I had to update the streamer plugin. But why the hell this plugin crashes if another makes problem? That is the second time!

udan11 commented 8 years ago

Maybe the stack trace gets corrupted?