pawn-lang / YSI-Includes

Just the YSI include files, none of the extra stuff.
208 stars 106 forks source link

Long callback execution detected (hang or performance issue) or DDoS Attack #664

Closed MatheusAgL closed 2 months ago

MatheusAgL commented 5 months ago

My server is receiving numerous errors in the crashdetect log; however, it was mentioned that these errors don't cause the server to crash. Nevertheless, my server is randomly crashing. It goes down throughout the day, and there are days with no crashes at all. The process just stops, and there is no explanation. I've tried various solutions without success. I'm starting to suspect it might be a DDoS attack, especially because when I'm connected to the VPS via PuTTY and monitoring with the 'htop' command, I get disconnected, and the server crashes at the same moment.

[21/01/2024 17:07:21] Long callback execution detected (hang or performance issue)
[21/01/2024 17:07:21] AMX backtrace:
[21/01/2024 17:07:21] #0 0004004c in Iter_Prev_InternalD (array[]=@012da864 !"", size=201, slot=75) at C:\Brasil-New-Start\dependencies\YSI-Includes\YSI_Data\y_foreach\y_foreach_impl.inc:1323
[21/01/2024 17:07:21] #1 0003f3f0 in Iter_Add_InternalC (&count=@012dab88 23, array[]=@012da864 !"", size=200, value=75) at C:\Brasil-New-Start\dependencies\YSI-Includes\YSI_Data\y_foreach\y_foreach_impl.inc:822
[21/01/2024 17:07:21] #2 0004318c in public OnPlayerStateChange (playerid=75, newstate=2, oldstate=1) at C:\Brasil-New-Start\dependencies\YSI-Includes\YSI_Data\y_foreach\y_foreach_iterators.inc:1095
[21/01/2024 17:07:23] Long callback execution detected (hang or performance issue)
[21/01/2024 17:07:23] AMX backtrace:
[21/01/2024 17:07:23] #0 00040078 in Iter_Prev_InternalD (array[]=@012da864 !"", size=201, slot=49) at C:\Brasil-New-Start\dependencies\YSI-Includes\YSI_Data\y_foreach\y_foreach_impl.inc:1327
[21/01/2024 17:07:23] #1 0003f3f0 in Iter_Add_InternalC (&count=@012dab88 23, array[]=@012da864 !"", size=200, value=47) at C:\Brasil-New-Start\dependencies\YSI-Includes\YSI_Data\y_foreach\y_foreach_impl.inc:822
[21/01/2024 17:07:23] #2 0004318c in public OnPlayerStateChange (playerid=47, newstate=2, oldstate=1) at C:\Brasil-New-Start\dependencies\YSI-Includes\YSI_Data\y_foreach\y_foreach_iterators.inc:1095
[21/01/2024 17:07:26] Long callback execution detected (hang or performance issue)
[21/01/2024 17:07:26] AMX backtrace:
[21/01/2024 17:07:26] #0 0004314c in public OnPlayerStateChange (playerid=71, newstate=2, oldstate=1) at C:\Brasil-New-Start\dependencies\YSI-Includes\YSI_Data\y_foreach\y_foreach_iterators.inc:1095
[21/01/2024 17:07:27] Long callback execution detected (hang or performance issue)
[21/01/2024 17:07:27] AMX backtrace:
[21/01/2024 17:07:27] #0 0024ab94 in GetPlayerID (nickplayer[]=@0370cda0 "Kaike_Staff") at C:\Brasil-New-Start\gamemodes\core\player\player_entry.inc:515
[21/01/2024 17:07:27] #1 0049f93c in ExecutarOperacao (nick[]=@0370cda0 "Kaike_Staff", operationid=5400, tipo[]=@0370cd74 "ADD", item[]=@0370cd4c "ITEM", info[]=@0370cc34 "Pay-Kaike_Staff|1|10|1212|330000|0|0") at C:\Brasil-New-Start\gamemodes\core\utils\operations.inc:50
[21/01/2024 17:07:27] #2 0049f838 in ?? () at C:\Brasil-New-Start\gamemodes\core\utils\operations.inc:40
[21/01/2024 17:07:27] #3 0049f554 in Indirect_Call__ () at C:\Brasil-New-Start\gamemodes\core\utils\operations.inc:25
[21/01/2024 17:07:27] #4 0001b6c0 in public Indirect_DePtr_ (F@_@:cb=6770508, bool:release=true) at C:\Brasil-New-Start\dependencies\Pawn.RakNet\src\..\..\indirection\indirection.inc:1590
[21/01/2024 17:07:46] Long callback execution detected (hang or performance issue)
[21/01/2024 17:07:46] AMX backtrace:
[21/01/2024 17:07:46] #0 00063848 in public SSCANF_OnPlayerDisconnect (20, 0) at C:\Brasil-New-Start\dependencies\samp-weapon-config\weapon-config.inc:2380
[21/01/2024 17:07:46] #1 0004e5f4 in public Timers_OnPlayerDisconnect (playerid=20, reason=0) at C:\Brasil-New-Start\dependencies\.resources\sscanf-019253\sscanf2.inc:1154
[21/01/2024 17:07:46] #2 000439b0 in public Iter_OnPlayerDisconnect (20, 0) at C:\Brasil-New-Start\dependencies\YSI-Includes\YSI_Coding\y_timers\y_timers_impl.inc:267
[21/01/2024 17:07:46] #3 00041518 in public ScriptInit_OnPlayerDisconnect (20, 0) at C:\Brasil-New-Start\dependencies\YSI-Includes\YSI_Data\y_foreach\y_foreach_iterators.inc:719
[21/01/2024 17:07:46] #4 0000ab40 in public Android_OnPlayerDisconnect (playerid=20, reason=0) at C:\Brasil-New-Start\dependencies\YSI-Includes\YSI_Coding\y_inline\..\..\YSI_Server\y_thirdpartyinclude\..\..\YSI_Core\y_core\../y_utils/y_utils_ip.inc:115
[21/01/2024 17:07:46] #5 00007e88 in public OnPlayerDisconnect (playerid=20, reason=0) at C:\Brasil-New-Start\dependencies\YSI-Includes\YSI_Coding\y_inline\..\..\YSI_Server\y_thirdpartyinclude\..\..\YSI_Core\y_core\..\..\YSI_Players\y_android\y_android_entry.inc:150
[21/01/2024 17:07:49] Long callback execution detected (hang or performance issue)
[21/01/2024 17:07:49] AMX backtrace:
[21/01/2024 17:07:49] #0 0001f8c0 in bool:va_SendClientMessage (playerid=59, colour=-1, fmat[]=@036c64c0 "Para obter ajuda sobre o veiculo use: /ajudaveiculos, e use /menucarro para aces...") at C:\Brasil-New-Start\dependencies\YSI-Includes\YSI_Coding\y_inline\..\y_va\y_va_entry.inc:210
[21/01/2024 17:07:49] #1 005cf420 in ?? (playerid=59, newstate=2, oldstate=1) at C:\Brasil-New-Start\gamemodes\main.pwn:8085
[21/01/2024 17:07:49] #2 00024f14 in public WC_OnPlayerStateChange (59, 2, 1) at C:\Brasil-New-Start\dependencies\YSI-Includes\YSI_Coding\y_inline\..\y_cgen\y_cgen_impl.inc:160
[21/01/2024 17:07:49] #3 000699b4 in public Iter_OnPlayerStateChange (59, 2, 1) at C:\Brasil-New-Start\dependencies\samp-weapon-config\weapon-config.inc:3013
[21/01/2024 17:07:49] #4 00043068 in public OnPlayerStateChange (playerid=59, newstate=2, oldstate=1) at C:\Brasil-New-Start\dependencies\YSI-Includes\YSI_Data\y_foreach\y_foreach_iterators.inc:1091
[21/01/2024 17:07:53] Long callback execution detected (hang or performance issue)
[21/01/2024 17:07:53] AMX backtrace:
[21/01/2024 17:07:53] #0 002b3b88 in ?? (playerid=59) at C:\Brasil-New-Start\gamemodes\core\player\status\player_spawn.inc:230
[21/01/2024 17:07:53] #1 00024d2c in public WC_OnPlayerSpawn (59) at C:\Brasil-New-Start\dependencies\YSI-Includes\YSI_Coding\y_inline\..\y_cgen\y_cgen_impl.inc:160
[21/01/2024 17:07:53] #2 000652b0 in public OnPlayerSpawn (playerid=59) at C:\Brasil-New-Start\dependencies\samp-weapon-config\weapon-config.inc:2544
[21/01/2024 17:07:54] Long callback execution detected (hang or performance issue)
[21/01/2024 17:07:54] AMX backtrace:
[21/01/2024 17:07:54] #0 0003f2fc in Iter_Add_InternalC (&count=@012dab88 27, array[]=@012da864 !"", size=200, value=48) at C:\Brasil-New-Start\dependencies\YSI-Includes\YSI_Data\y_foreach\y_foreach_impl.inc:815
[21/01/2024 17:07:54] #1 0004318c in public OnPlayerStateChange (playerid=48, newstate=2, oldstate=1) at C:\Brasil-New-Start\dependencies\YSI-Includes\YSI_Data\y_foreach\y_foreach_iterators.inc:1095
Y-Less commented 2 months ago

Those are all over. The stack trace tells you which callback is slow but not much else. Unfortunately you only get the function currently executing, after a lot of time has passed, which doesn't mean the current code is the slow code.