server crashing
#1

whenever i use any cmd the server crash can u help me please.

here are the server logs

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[07:10:38] password = "" (string)
[07:10:38]
[07:10:38] Server Plugins
[07:10:38] --------------
[07:10:38] Loading plugin: crashdetect.so
[07:10:38] CrashDetect v4.15.1 is OK.
[07:10:38] Loaded.
[07:10:38] Loading plugin: streamer.so
[07:10:38] Loaded.
[07:10:38] Loading plugin: audio.so
[07:10:38]

*** Audio Plugin v0.5 R2 by Incognito loaded ***

[07:10:38] Loaded.
[07:10:38] Loading plugin: mysql_static.so
[07:10:38] SA:MP MySQL Plugin v2.1.1 Loaded.
[07:10:38] Loaded.
[07:10:38] Loading plugin: libRegEx.so
[07:10:38] [MySQL] Thread running. Threadsafe: Yes.
[07:10:38]
[07:10:38] ------------------------------
[07:10:38] |
[07:10:38] | -> Regular Expression Plugin v0.2
[07:10:38] | -> Using Oniguruma v5.9.1
[07:10:38] |
[07:10:38] ------ © 2014, Koala -------
[07:10:38]
[07:10:38] Loaded.
[07:10:38] Loading plugin: libRegEx_static.so
[07:10:38]
[07:10:38] ------------------------------
[07:10:38] |
[07:10:38] | -> Regular Expression Plugin v0.2
[07:10:38] | -> Using Oniguruma v5.9.5
[07:10:38] |
[07:10:38] ------ © 2014, Koala -------
[07:10:38]
[07:10:38] Loaded.
[07:10:38] Loading plugin: sscanf.so
[07:10:38]

[07:10:38] ===============================

[07:10:38] sscanf plugin loaded.

[07:10:38] Version: 2.8.1

[07:10:38] © 2012 Alex "******" Cole

[07:10:38] ===============================

[07:10:38] Loaded.
[07:10:38] Loading plugin: mysqlR39.so
[07:10:38] >> plugin.mysql: R39-6 successfully loaded.
[07:10:38] Loaded.
[07:10:38] Loaded 8 plugins.

[07:10:38]
[07:10:38] Filterscripts
[07:10:38] ---------------
[07:10:38] Loading filterscript 'UltraHost.amx'...
[07:10:38] Loading filterscript 'shouryamaps.amx'...
[07:10:38] Loading filterscript 'antirapidfire.amx'...
[07:10:38] Loaded 3 filterscripts.

[07:10:38]
[07:10:38]
[07:10:38]
[07:10:38] =======================================
[07:10:38] | |
[07:10:38] | YSI version 3.09.0684 |
[07:10:38] | By Alex "******" Cole |
[07:10:38] | |
[07:10:38] =======================================
[07:10:38]
[07:10:38] [MySQL] Connected (0) to 'server_537'@'127.0.0.1 via TCP/IP'.
[07:10:38] [MySQL] Server Version 5.5.50-0+deb8u1.
[07:10:38] HOUSE SYSTEM :: No houses were found in "Houses.db" :: 0 Loaded
[07:10:38] GATES SYSTEM :: No gates were found in "Gates.db" :: 0 Loaded
[07:10:38] Loading Vehicles
[07:10:38] VEHICLE SYSTEM :: No vehicles were found in "newvehicles" :: 0 Loaded
[07:10:38]
-----------------------------------
[07:10:38] Cops and Robbers, by shourya
[07:10:38] ------------------------------------

[07:10:38] Number of vehicle models: 98
[07:26:07] [connection] 61.3.85.56:15001 requests connection cookie.
[07:26:08] [connection] incoming connection: 61.3.85.56:15001 id: 0
[07:26:08] [join] striker has joined the server (0:61.3.85.56)
[07:26:28] [debug] Server crashed while executing CnR1.amx
[07:26:28] [debug] AMX backtrace:
[07:26:28] [debug] #0 native fclose () from sampsvr-port_2561
[07:26:28] [debug] #1 0009a480 in ?? (19668744, 19878072) from CnR1.amx
[07:26:28] [debug] #2 0016c6c0 in public OnPlayerCommandReceived (0, 1969918 from CnR1.amx
[07:26:28] [debug] #3 native CallLocalFunction () from sampsvr-port_2561
[07:26:28] [debug] #4 000041a8 in public OnPlayerCommandText (0, 19699160) from CnR1.amx
[07:26:28] [debug] Native backtrace:
[07:26:28] [debug] #0 ed5efe8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[07:26:28] [debug] #1 ed5e8bcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[07:26:28] [debug] #2 ed5e9dbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[07:26:28] [debug] #3 ed5ea226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[07:26:28] [debug] #4 ed5efadc in ?? () from plugins/crashdetect.so
[07:26:28] [debug] #5 ed943410 in __kernel_rt_sigreturn () from linux-gate.so.1
[07:26:28] [debug] #6 ed676b36 in fclose () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
[07:26:28] [debug] #7 0809bd64 in ?? () from ./sampsvr-port_2561
[07:26:28] [debug] #8 080950e4 in ?? () from ./sampsvr-port_2561
[07:26:28] [debug] #9 ed5eb94b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[07:26:28] [debug] #10 ed5ee8f8 in ?? () from plugins/crashdetect.so
[07:26:28] [debug] #11 ed5f2916 in amx_Exec () from plugins/crashdetect.so
[07:26:28] [debug] #12 ed5eabe6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[07:26:28] [debug] #13 ed5ee659 in ?? () from plugins/crashdetect.so
[07:26:28] [debug] #14 080dfd62 in ?? () from ./sampsvr-port_2561
[07:26:28] [debug] #15 080950e4 in ?? () from ./sampsvr-port_2561
[07:26:28] [debug] #16 ed5eb94b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[07:26:28] [debug] #17 ed5ee8f8 in ?? () from plugins/crashdetect.so
[07:26:28] [debug] #18 ed5f2916 in amx_Exec () from plugins/crashdetect.so
[07:26:28] [debug] #19 ed5eabe6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[07:26:28] [debug] #20 ed5ee659 in ?? () from plugins/crashdetect.so
[07:26:28] [debug] #21 080a5632 in ?? () from ./sampsvr-port_2561
[07:26:28] [debug] #22 080b1751 in ?? () from ./sampsvr-port_2561
[07:26:28] [debug] #23 08071d38 in ?? () from ./sampsvr-port_2561
[07:26:28] [debug] #24 08071e32 in ?? () from ./sampsvr-port_2561
[07:26:28] [debug] #25 0807bc50 in ?? () from ./sampsvr-port_2561
[07:26:28] [debug] #26 080aed3d in ?? () from ./sampsvr-port_2561
[07:26:28] [debug] #27 080aef02 in ?? () from ./sampsvr-port_2561
[07:26:28] [debug] #28 080aa13a in ?? () from ./sampsvr-port_2561
[07:26:28] [debug] #29 ed62da63 in __libc_start_main () from /lib/i386-linux-gnu/i686/cmov/libc.so.6

can u tell me how can i fix this. i can make u sub user if u need
Reply
#2

Well,

You can try updating plugins.

I also believe that this is caused by script's poor optimization.

EDIT: Did you change anything in script or it is default (not counting db connection)?
Reply
#3

PHP код:
[07:26:28] [debug#2 0016c6c0 in public OnPlayerCommandReceived (0, 1969918 from CnR1.amx
[07:26:28] [debug#3 native CallLocalFunction () from sampsvr-port_2561
[07:26:28] [debug#4 000041a8 in public OnPlayerCommandText (0, 19699160) from CnR1.amx 
can you post the command you used before server get crashed?
Reply
#4

fclose function crashes the server if the file handle is invalid (file doesn't exist or cannot be opened due to permissions). Seems like you log commands to files with a function in OnPlayerCommandReceived callback.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)