Zeex / samp-plugin-crashdetect

Crash/error reporting plugin for SA-MP server
http://forum.sa-mp.com/showthread.php?t=262796
BSD 2-Clause "Simplified" License
116 stars 23 forks source link

Server keeps crashing due to unknown error #79

Open Rudy2323 opened 4 years ago

Rudy2323 commented 4 years ago

I'm looking for someone who can help me decipher these debug messages; the OS is CentOS 7, the script is compiled with -d3 parameter:

[30/03/2020] [04:26:20] [debug] Server crashed while executing vwhrp.amx [30/03/2020] [04:26:20] [debug] AMX backtrace: [30/03/2020] [04:26:20] [debug] #0 0000003a in ?? (77, 97, 114, 105, 111, 95, 72, 117) at C:\Users\Rudy\Desktop\SA-MP Server\pawno\include\float.inc:103 [30/03/2020] [04:26:20] [debug] #1 0000003a in public OnPlayerTakeDamage () at C:\Users\Rudy\Desktop\SA-MP Server\pawno\include\float.inc:103

Zeex commented 4 years ago

Please follow this guide and re-compile your script with debug info enabled:

https://github.com/Zeex/samp-plugin-crashdetect/wiki/Compiling-scripts-with-debug-info

After that when this issue happens again you will see more details in the crash report (function names, source files, arguments, etc).

Rudy2323 commented 4 years ago

The script is already compiled with the -d3 flag and as you can see, it doesn't give me much details.

I suspect it is an exploit they are using to crash the server.

Zeex commented 4 years ago

Oh right, sorry, I missed that part.

Please provide the following info:

  1. What version of crashdetect are you using? You can find this in the server log
  2. What version of the Pawn compiler are you using? Are you using the standard compiler or this one?

Also, you can try to find a function that has the same number of parameters as the top function in the stack trace and that is called directly from OnPlayerTakeDamage. Then after you find it, you can match the arguments with its parameters (easy for integers, not so easy for strings). This might give you an idea about what causes this crash.

If you are not using the latest version of crashdetect, I'd suggest you upgrade the plugin first. Latest release can be found here.

Rudy2323 commented 4 years ago

I'm using the latest CrashDetect plugin:

[30/03/2020] [11:08:19] Server Plugins [30/03/2020] [11:08:19] -------------- [30/03/2020] [11:08:19] Loading plugin: crashdetect.so [30/03/2020] [11:08:19] CrashDetect plugin 4.19.4 [30/03/2020] [11:08:19] Loaded. [30/03/2020] [11:08:19] Loading plugin: sscanf.so [30/03/2020] [11:08:19] [30/03/2020] [11:08:19] =============================== [30/03/2020] [11:08:19] sscanf plugin loaded. [30/03/2020] [11:08:19] Version: 2.8.1 [30/03/2020] [11:08:19] (c) 2012 Alex "Y_Less" Cole [30/03/2020] [11:08:19] =============================== [30/03/2020] [11:08:19] Loaded. [30/03/2020] [11:08:19] Loaded 2 plugins.

As for the compiler, I'm using the SA:MP default compiler. I'll replace it with the one you developed.

I couldn't find any callback with 8 parameters but I suspect it could be OnPlayerGiveDamage which is left unused in my script.