Crash detector!
#1

I am getting these errors!

Код:
[13:14:31]   Loaded 5 filterscripts.
[13:14:31] [debug] Server crashed while executing CODTD.amx
[13:14:31] [debug] AMX backtrace:
[13:14:31] [debug] #0 native mysql_query () [408a3a40] from mysql.so
[13:14:32] [debug] #1 0000897c in public Streamer_OnGameModeInit () from CODTD.amx
[13:14:32] [debug] #2 native CallLocalFunction () [080d2870] from samp03svr
[13:14:32] [debug] #3 00007820 in public SSCANF_OnGameModeInit () from CODTD.amx
[13:14:32] [debug] #4 native CallLocalFunction () [080d2870] from samp03svr
[13:14:32] [debug] #5 00001704 in public Itter_OnGameModeInit () from CODTD.amx
[13:14:32] [debug] #6 native CallLocalFunction () [080d2870] from samp03svr
[13:14:32] [debug] #7 00000b78 in public zcmd_OnGameModeInit () from CODTD.amx
[13:14:32] [debug] #8 native CallLocalFunction () [080d2870] from samp03svr
[13:14:32] [debug] #9 000004b8 in public OnGameModeInit () from CODTD.amx
[13:14:32] [debug] System backtrace:
[13:14:32] [debug] #0 40b26ecb in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[13:14:32] [debug] #1 40b1ec69 in _ZN11CrashDetect20PrintSystemBacktraceEPv () from plugins/crashdetect.so
[13:14:32] [debug] #2 40b20c99 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[13:14:32] [debug] #3 40b269d8 in ?? () from plugins/crashdetect.so
[13:14:32] [debug] #4 4001d600 in ?? ()
[13:14:32] [debug] #5 4089faec in _Z5ErrorP5MySQLPKci () from plugins/mysql.so
[13:14:32] [debug] #6 408a3aab in _ZN7Natives13n_mysql_queryEP6tagAMXPi () from plugins/mysql.so
[13:14:32] [debug] #7 08093c94 in ?? () from /home/total/.gameservers/samp_0/samp03svr
[13:14:32] [debug] #8 40b20f37 in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[13:14:32] [debug] #9 40b23268 in ?? () from plugins/crashdetect.so
[13:14:32] [debug] #10 40b292c2 in amx_Exec () from plugins/crashdetect.so
[13:14:32] [debug] #11 40b20e1e in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[13:14:32] [debug] #12 40b232de in ?? () from plugins/crashdetect.so
[13:14:32] [debug] #13 080d2b12 in ?? () from /home/total/.gameservers/samp_0/samp03svr
[13:14:32] [debug] #14 08093c94 in ?? () from /home/total/.gameservers/samp_0/samp03svr
[13:14:32] [debug] #15 40b20f37 in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[13:14:32] [debug] #16 40b23268 in ?? () from plugins/crashdetect.so
[13:14:32] [debug] #17 40b292c2 in amx_Exec () from plugins/crashdetect.so
[13:14:32] [debug] #18 40b20e1e in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[13:14:32] [debug] #19 40b232de in ?? () from plugins/crashdetect.so
[13:14:32] [debug] #20 080d2b12 in ?? () from /home/total/.gameservers/samp_0/samp03svr
[13:14:32] [debug] #21 08093c94 in ?? () from /home/total/.gameservers/samp_0/samp03svr
[13:14:32] [debug] #22 40b20f37 in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[13:14:32] [debug] #23 40b23268 in ?? () from plugins/crashdetect.so
[13:14:32] [debug] #24 40b292c2 in amx_Exec () from plugins/crashdetect.so
[13:14:32] [debug] #25 40b20e1e in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[13:14:32] [debug] #26 40b232de in ?? () from plugins/crashdetect.so
[13:14:32] [debug] #27 080d2b12 in ?? () from /home/total/.gameservers/samp_0/samp03svr
[13:14:32] [debug] #28 08093c94 in ?? () from /home/total/.gameservers/samp_0/samp03svr
[13:14:32] [debug] #29 40b20f37 in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[13:14:32] [debug] #30 40b23268 in ?? () from plugins/crashdetect.so
[13:14:32] [debug] #31 40b292c2 in amx_Exec () from plugins/crashdetect.so
[13:14:32] [debug] #32 40b20e1e in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[13:14:32] [debug] #33 40b232de in ?? () from plugins/crashdetect.so
[13:14:32] [debug] #34 080d2b12 in ?? () from /home/total/.gameservers/samp_0/samp03svr
[13:14:32] [debug] #35 08093c94 in ?? () from /home/total/.gameservers/samp_0/samp03svr
[13:14:32] [debug] #36 40b20f37 in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[13:14:32] [debug] #37 40b23268 in ?? () from plugins/crashdetect.so
[13:14:32] [debug] #38 40b292c2 in amx_Exec () from plugins/crashdetect.so
[13:14:32] [debug] #39 40b20e1e in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[13:14:32] [debug] #40 40b232de in ?? () from plugins/crashdetect.so
[13:14:32] [debug] #41 080acc4b in ?? () from /home/total/.gameservers/samp_0/samp03svr
[13:14:32] [debug] #42 080b2b3d in ?? () from /home/total/.gameservers/samp_0/samp03svr
[13:14:32] [debug] #43 080b1407 in ?? () from /home/total/.gameservers/samp_0/samp03svr
[13:14:32] [debug] #44 40178e9c in __libc_start_main () from /lib/libc.so.6
[13:14:32] [debug] #45 0804b521 in ?? () from /home/total/.gameservers/samp_0/samp03svr
Reply
#2

The server crashed while executing a mysql_query(). Check your queries especially under OnGameModeInit. Check that the syntax in the query is correct and that a connection to a valid database has been made.
Reply
#3

Everything works fi9, i ran same script on my windows, see the logs! But when i ran it on linux VPS, this happened

Linux

Код:
[Thu Feb  7 13:22:48 2013] Launching server [17973] with the following commandline:
cd /home/total/.gameservers/samp_0/
LD_LIBRARY_PATH="libs:." /home/total/.gameservers/samp_0/samp03svr +exec server.cfg

pid 17973's current affinity mask: ff
pid 17973's new affinity mask: ff

----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3e-R2, ©2005-2012 SA-MP Team
[13:22:48] password = ""  (string)
[13:22:48] 
[13:22:48] Server Plugins
[13:22:48] --------------
[13:22:48]  Loading plugin: sscanf.so
[13:22:48] 
[13:22:48]  ===============================
[13:22:48]       sscanf plugin loaded.     
[13:22:48]          Version:  2.8.1        
[13:22:48]    © 2012 Alex "******" Cole  
[13:22:48]  ===============================
[13:22:48]   Loaded.
[13:22:48]  Loading plugin: streamer.so
[13:22:48] 
*** Streamer Plugin v2.6.1 by Incognito loaded ***
[13:22:48]   Loaded.
[13:22:48]  Loading plugin: Whirlpool.so
[13:22:48]  
[13:22:48]  ==================
[13:22:48]  
[13:22:48]   Whirlpool loaded
[13:22:48]  
[13:22:48]  ==================
[13:22:48]  
[13:22:48]   Loaded.
[13:22:48]  Loading plugin: finally.so
[13:22:48] 
  > MySQL plugin R8 (****** code Revision 5) successfully loaded.
[13:22:48]   Loaded.
[13:22:48]  Loading plugin: mysql.so
[13:22:48]  SA:MP MySQL Plugin v2.1.1 Loaded.
[13:22:48]   Loaded.
[13:22:48]  Loading plugin: crashdetect.so
[13:22:48]   CrashDetect v4.10 is OK.
[13:22:48]   Loaded.
[13:22:48]  Loaded 6 plugins.
[13:22:48] [MySQL] Thread running. Threadsafe: Yes.

Started server on port: 7773, with maxplayers: 49 lanmode is OFF.
[13:22:48] 
[13:22:48] Filterscripts
[13:22:48] ---------------
[13:22:48]   Loading filterscript 'bLaser.amx'...
[13:22:48]   Loading filterscript 'iuweaponsdrop.amx'...
[13:22:48] ****************************************
[13:22:48] ******* Insanity Weapons Drop 1.1 ******
[13:22:48] ************* Made by ******************
[13:22:48] ********* Allan Jader(CyNiC) ***********
[13:22:48] ****************************************
[13:22:48]   Loading filterscript 'WeaponsOnBack.amx'...
[13:22:48] [FS]HoldingWeapons Loaded!
[13:22:48]   Loading filterscript 'dmg.amx'...
[13:22:48] DamageVisual, version 1.0.0 by [RSAH]SeriouS loaded successfully!
[13:22:48]   Loading filterscript 'AdminSys.amx'...
[13:22:48] 
--------------------------------------
[13:22:48]  Admin System Loaded
[13:22:48] --------------------------------------
[13:22:48]   Loaded 5 filterscripts.
[13:22:49] [debug] Server crashed while executing CODTD.amx
[13:22:49] [debug] AMX backtrace:
[13:22:49] [debug] #0 native mysql_query () [408a3a40] from mysql.so
[13:22:49] [debug] #1 0000897c in public Streamer_OnGameModeInit () from CODTD.amx
[13:22:49] [debug] #2 native CallLocalFunction () [080dc980] from samp03svr
[13:22:49] [debug] #3 00007820 in public SSCANF_OnGameModeInit () from CODTD.amx
[13:22:49] [debug] #4 native CallLocalFunction () [080dc980] from samp03svr
[13:22:49] [debug] #5 00001704 in public Itter_OnGameModeInit () from CODTD.amx
[13:22:49] [debug] #6 native CallLocalFunction () [080dc980] from samp03svr
[13:22:49] [debug] #7 00000b78 in public zcmd_OnGameModeInit () from CODTD.amx
[13:22:49] [debug] #8 native CallLocalFunction () [080dc980] from samp03svr
[13:22:49] [debug] #9 000004b8 in public OnGameModeInit () from CODTD.amx
[13:22:49] [debug] System backtrace:
[13:22:49] [debug] #0 40b26ecb in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[13:22:49] [debug] #1 40b1ec69 in _ZN11CrashDetect20PrintSystemBacktraceEPv () from plugins/crashdetect.so
[13:22:49] [debug] #2 40b20c99 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[13:22:49] [debug] #3 40b269d8 in ?? () from plugins/crashdetect.so
[13:22:49] [debug] #4 4001d600 in ?? ()
[13:22:49] [debug] #5 4089faec in _Z5ErrorP5MySQLPKci () from plugins/mysql.so
[13:22:49] [debug] #6 408a3aab in _ZN7Natives13n_mysql_queryEP6tagAMXPi () from plugins/mysql.so
[13:22:49] [debug] #7 080954a4 in ?? () from /home/total/.gameservers/samp_0/samp03svr
[13:22:49] [debug] #8 40b20f37 in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[13:22:49] [debug] #9 40b23268 in ?? () from plugins/crashdetect.so
[13:22:49] [debug] #10 40b292c2 in amx_Exec () from plugins/crashdetect.so
[13:22:49] [debug] #11 40b20e1e in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[13:22:49] [debug] #12 40b232de in ?? () from plugins/crashdetect.so
[13:22:49] [debug] #13 080dcc22 in ?? () from /home/total/.gameservers/samp_0/samp03svr
[13:22:49] [debug] #14 080954a4 in ?? () from /home/total/.gameservers/samp_0/samp03svr
[13:22:49] [debug] #15 40b20f37 in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[13:22:49] [debug] #16 40b23268 in ?? () from plugins/crashdetect.so
[13:22:49] [debug] #17 40b292c2 in amx_Exec () from plugins/crashdetect.so
[13:22:49] [debug] #18 40b20e1e in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[13:22:49] [debug] #19 40b232de in ?? () from plugins/crashdetect.so
[13:22:49] [debug] #20 080dcc22 in ?? () from /home/total/.gameservers/samp_0/samp03svr
[13:22:49] [debug] #21 080954a4 in ?? () from /home/total/.gameservers/samp_0/samp03svr
[13:22:49] [debug] #22 40b20f37 in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[13:22:49] [debug] #23 40b23268 in ?? () from plugins/crashdetect.so
[13:22:49] [debug] #24 40b292c2 in amx_Exec () from plugins/crashdetect.so
[13:22:49] [debug] #25 40b20e1e in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[13:22:49] [debug] #26 40b232de in ?? () from plugins/crashdetect.so
[13:22:49] [debug] #27 080dcc22 in ?? () from /home/total/.gameservers/samp_0/samp03svr
[13:22:49] [debug] #28 080954a4 in ?? () from /home/total/.gameservers/samp_0/samp03svr
[13:22:49] [debug] #29 40b20f37 in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[13:22:49] [debug] #30 40b23268 in ?? () from plugins/crashdetect.so
[13:22:49] [debug] #31 40b292c2 in amx_Exec () from plugins/crashdetect.so
[13:22:49] [debug] #32 40b20e1e in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[13:22:49] [debug] #33 40b232de in ?? () from plugins/crashdetect.so
[13:22:49] [debug] #34 080dcc22 in ?? () from /home/total/.gameservers/samp_0/samp03svr
[13:22:49] [debug] #35 080954a4 in ?? () from /home/total/.gameservers/samp_0/samp03svr
[13:22:49] [debug] #36 40b20f37 in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[13:22:49] [debug] #37 40b23268 in ?? () from plugins/crashdetect.so
[13:22:49] [debug] #38 40b292c2 in amx_Exec () from plugins/crashdetect.so
[13:22:49] [debug] #39 40b20e1e in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[13:22:49] [debug] #40 40b232de in ?? () from plugins/crashdetect.so
[13:22:49] [debug] #41 080a47ab in ?? () from /home/total/.gameservers/samp_0/samp03svr
[13:22:49] [debug] #42 080aa69d in ?? () from /home/total/.gameservers/samp_0/samp03svr
[13:22:49] [debug] #43 080a8f67 in ?? () from /home/total/.gameservers/samp_0/samp03svr
Game server has exited.
Windows

Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3e-R2, ©2005-2012 SA-MP Team

[15:51:47] password = ""  (string)
[15:51:47] 
[15:51:47] Server Plugins
[15:51:47] --------------
[15:51:47]  Loading plugin: mysql
[15:51:47] 

  > MySQL plugin R5 successfully loaded.

[15:51:47]   Loaded.
[15:51:47]  Loading plugin: sscanf
[15:51:47] 

[15:51:47]  ===============================

[15:51:47]       sscanf plugin loaded.     

[15:51:47]    © 2009 Alex "******" Cole

[15:51:47]    0.3d-R2 500 Players "dnee"

[15:51:47]  ===============================

[15:51:47]   Loaded.
[15:51:47]  Loading plugin: streamer
[15:51:47] 

*** Streamer Plugin v2.6.1 by Incognito loaded ***

[15:51:47]   Loaded.
[15:51:47]  Loaded 3 plugins.

[15:51:47] 
[15:51:47] Filterscripts
[15:51:47] ---------------
[15:51:47]   Loading filterscript 'bLaser.amx'...
[15:51:47]   Loading filterscript 'iuweaponsdrop.amx'...
[15:51:47] ****************************************

[15:51:47] ******* Insanity Weapons Drop 1.1 ******

[15:51:47] ************* Made by ******************

[15:51:47] ********* Allan Jader(CyNiC) ***********

[15:51:47] ****************************************

[15:51:47]   Loaded 2 filterscripts.

[15:51:50] [MYSQL] Connection with the database: SUCCESS!
[15:51:50] Server Scripter - Insulin
[15:51:50] Number of vehicle models: 22
Reply
#4

You seem to be using a development version of the plugin. That could be why it's crashing on linux.
Reply
#5

Getting these errors now!

Код:
[17:20:50][17:42:36]   Loaded 5 filterscripts.
[17:42:36]    Error: Function not registered: 'mysql_query'
[17:42:36] [debug] Run time error 19: "File or function is not found"
[17:42:36] [debug]  mysql_query
[17:42:36] [debug] Run time error 19: "File or function is not found"
[17:42:36] [debug]  mysql_query
[17:42:36] Script[gamemodes/CODTD.amx]: Run time error 19: "File or function is not found"
[17:42:36] Number of vehicle models: 0
Reply
#6

Wait, what? Why do you have 2 different MySQL plugins installed on the linux one?

[13:22:48] Loading plugin: finally.so
[13:22:48]
> MySQL plugin R8 (****** code Revision 5) successfully loaded.
[13:22:48] Loaded.
[13:22:48] Loading plugin: mysql.so
[13:22:48] SA:MP MySQL Plugin v2.1.1 Loaded.
[13:22:48] Loaded.
Reply
#7

You should only use one mysql plugin. Thats probally the reason your facing issues.
Reply
#8

i removes a plugin and this is what came up

Код:
[Sat Feb  9 08:58:13 2013] Launching server [26100] with the following commandline:
cd /home/total/.gameservers/samp_0/
LD_LIBRARY_PATH="libs:." /home/total/.gameservers/samp_0/samp03svr +exec server.cfg

pid 26100's current affinity mask: ff
pid 26100's new affinity mask: ff

----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3e-R2, ©2005-2012 SA-MP Team
[08:58:13] password = ""  (string)
[08:58:13] 
[08:58:13] Server Plugins
[08:58:13] --------------
[08:58:13]  Loading plugin: sscanf.so
[08:58:13] 
[08:58:13]  ===============================
[08:58:13]       sscanf plugin loaded.     
[08:58:13]          Version:  2.8.1        
[08:58:13]    © 2012 Alex "******" Cole  
[08:58:13]  ===============================
[08:58:13]   Loaded.
[08:58:13]  Loading plugin: streamer.so
[08:58:13] 
*** Streamer Plugin v2.6.1 by Incognito loaded ***
[08:58:13]   Loaded.
[08:58:13]  Loading plugin: Whirlpool.so
[08:58:13]  
[08:58:13]  ==================
[08:58:13]  
[08:58:13]   Whirlpool loaded
[08:58:13]  
[08:58:13]  ==================
[08:58:13]  
[08:58:13]   Loaded.
[08:58:13]  Loading plugin: crashdetect.so
[08:58:13]   CrashDetect v4.10 is OK.
[08:58:13]   Loaded.
[08:58:13]  Loading plugin: nativechecker.so
[08:58:13]   Loaded.
[08:58:13]  Loading plugin: mysql.so
[08:58:13] 
  > MySQL plugin R8 (****** code Revision 5) successfully loaded.
[08:58:13]   Loaded.
[08:58:13]  Loaded 6 plugins.

Started server on port: 7773, with maxplayers: 49 lanmode is OFF.
[08:58:13] 
[08:58:13] Filterscripts
[08:58:13] ---------------
[08:58:13]   Loading filterscript 'bLaser.amx'...
[08:58:13]   Loading filterscript 'iuweaponsdrop.amx'...
[08:58:13] ****************************************
[08:58:13] ******* Insanity Weapons Drop 1.1 ******
[08:58:13] ************* Made by ******************
[08:58:13] ********* Allan Jader(CyNiC) ***********
[08:58:13] ****************************************
[08:58:13]   Loading filterscript 'WeaponsOnBack.amx'...
[08:58:13] [FS]HoldingWeapons Loaded!
[08:58:13]   Loading filterscript 'dmg.amx'...
[08:58:13] DamageVisual, version 1.0.0 by [RSAH]SeriouS loaded successfully!
[08:58:13]   Loading filterscript 'AdminSys.amx'...
[08:58:13] 
--------------------------------------
[08:58:13]  Admin System Loaded
[08:58:13] --------------------------------------
[08:58:13]   Loaded 5 filterscripts.
[08:58:13]    Error: Function not registered: 'mysql_connect'
[08:58:13]    Error: Function not registered: 'mysql_query'
[08:58:13]    Error: Function not registered: 'mysql_ping'
[08:58:13]    Error: Function not registered: 'mysql_debug'
[08:58:13]    Error: Function not registered: 'mysql_store_result'
[08:58:13]    Error: Function not registered: 'mysql_num_rows'
[08:58:13]    Error: Function not registered: 'mysql_free_result'
[08:58:13]    Error: Function not registered: 'mysql_real_escape_string'
[08:58:13]    Error: Function not registered: 'mysql_fetch_row_format'
[08:58:13]    Error: Function not registered: 'mysql_fetch_field_row'
[08:58:13] [debug] Run time error 19: "File or function is not found"
[08:58:13] [debug]  mysql_query
[08:58:13] [debug] Run time error 19: "File or function is not found"
[08:58:13] [debug]  mysql_query
[08:58:13] Script[gamemodes/CODTD.amx]: Run time error 19: "File or function is not found"
[08:58:13] Number of vehicle models: 0
Reply
#9

On your windows version, you are using r5, on the linux r8?
Reply
#10

can that be a problem, anyway, i will upload that plugin and check if it works!

Edit - this happened

Код:
[09:10:33]  Loading plugin: mysql.so
[09:10:33]   Failed (/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by plugins/mysql.so))
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)