YSI-Includes icon indicating copy to clipboard operation
YSI-Includes copied to clipboard

Y_foreach / Y_Hooks crashing server on Linux

Open Nickk888SAMP opened this issue 2 years ago • 1 comments

Hey guys, i'm having a big problem with my linux server and the YSI_Hooks library as far as i could take it out of the debug. I'm using the SampVoice plugin https://github.com/CyberMor/sampvoice edited for 0.3DL. All works on Windows but not on Linux. After debugging probably the Hooking algorithm make my Linux server crash with the SampVoice plugin, i don't know what i should do, i really need the SampVoice plugin and also foreaches and hooking.

Like i said, it all works fine on my WIndows machine, but somehow linux doesn't like SampVoice with y_hooks somehow

Here's the crash report: [08:14:18] [debug] Long callback execution detected (hang or performance issue) [08:14:18] [debug] AMX backtrace: [08:14:18] [debug] #0 00021104 in Opcode:UnrelocateOpcode (Opcode:opcode=-138828459) at E:\SAMP-Servers\yourCarsonRP\pawno\include\YSI_Coding\y_hooks\..\y_cgen\..\..\YSI_Core\y_core\..\..\amx\opcode.inc:745 [08:14:18] [debug] #1 00027c18 in CodeScanRunFastPrescanRelocate (&proc=@0121be68 -245360, &nextaddr=@0121be64 -249484, searchFuncAddr=138596) at E:\SAMP-Servers\yourCarsonRP\pawno\include\YSI_Coding\y_hooks\..\y_cgen\..\..\YSI_Core\y_core\..\..\amx\codescan.inc:827 [08:14:18] [debug] #2 000280cc in bool:CodeScanRunFast (csState[CodeScanner:164]=@0121c684, searchFuncAddr=138596) at E:\SAMP-Servers\yourCarsonRP\pawno\include\YSI_Coding\y_hooks\..\y_cgen\..\..\YSI_Core\y_core\..\..\amx\codescan.inc:869 [08:14:18] [debug] #3 00029f10 in AddressofResolve () at E:\SAMP-Servers\yourCarsonRP\pawno\include\YSI_Coding\y_hooks\..\y_cgen\..\..\YSI_Core\y_core\..\..\amx\addressof_jit.inc:130 [08:14:18] [debug] #4 0002a580 in public AMX_OnCodeInit () at E:\SAMP-Servers\yourCarsonRP\pawno\include\YSI_Coding\y_hooks\..\y_cgen\..\..\YSI_Core\y_core\y_thirdpartyinclude.inc:368 [08:14:18] [debug] #5 00019e30 in public Debug_OnCodeInit () at E:\SAMP-Servers\yourCarsonRP\pawno\include\YSI_Coding\y_hooks\..\..\YSI_Core\y_core\y_amx_impl.inc:207 [08:14:18] [debug] #6 00019784 in public ScriptInit_OnCodeInit () at E:\SAMP-Servers\yourCarsonRP\pawno\include\YSI_Coding\y_hooks\..\..\YSI_Core\y_core\y_debug_impl.inc:645 [08:14:18] [debug] #7 000182dc in bool:ScriptInit_CallOnCodeInit (bool:jit=false, bool:fs=false) at E:\SAMP-Servers\yourCarsonRP\pawno\include\YSI_Coding\y_hooks\..\..\YSI_Core\y_core\y_scriptinit_impl.inc:614 [08:14:18] [debug] #8 0001914c in public zcmd_OnGameModeInit () at E:\SAMP-Servers\yourCarsonRP\pawno\include\YSI_Coding\y_hooks\..\..\YSI_Core\y_core\y_scriptinit_impl.inc:969 [08:14:18] [debug] #9 native CallLocalFunction () in samp03svr [08:14:18] [debug] #10 00016f34 in public SSCANF_OnGameModeInit () at E:\SAMP-Servers\yourCarsonRP\pawno\include\zcmd.inc:68 [08:14:18] [debug] #11 000109dc in public FIXES_OnGameModeInit () at E:\SAMP-Servers\yourCarsonRP\pawno\include\sscanf2.inc:211 [08:14:18] [debug] #12 000076c4 in public OnGameModeInit () at E:\SAMP-Servers\yourCarsonRP\pawno\include\fixes.inc:8739 [08:14:18] [debug] Server crashed while executing gm.amx [08:14:18] [debug] AMX backtrace: [08:14:18] [debug] #0 native strpack () in samp03svr [08:14:18] [debug] #1 0002f294 in Hooks_GetPointerRewrite (hooks[]=@0121befc "", num=0, &ptr=@0121bf44 -256732, &next=@0121bf40 0, name[]=@00053a60 "OnActorStreamIn", nlen=23) at E:\SAMP-Servers\yourCarsonRP\pawno\include\YSI_Coding\y_hooks\y_hooks_impl.inc:400 [08:14:18] [debug] #2 000300e8 in Hooks_Collate (preloads[][E_CHAIN_HOOK:17]=@0121bff0, precount=5, name[32]=@0121bf70 !"@yH_OnActorStreamIn@002", idx=17) at E:\SAMP-Servers\yourCarsonRP\pawno\include\YSI_Coding\y_hooks\y_hooks_impl.inc:665 [08:14:18] [debug] #3 0002feac in Hooks_DoAllHooks () at E:\SAMP-Servers\yourCarsonRP\pawno\include\YSI_Coding\y_hooks\y_hooks_impl.inc:609 [08:14:18] [debug] #4 000324ac in public CGen_OnCodeInit () at E:\SAMP-Servers\yourCarsonRP\pawno\include\YSI_Coding\y_hooks\y_hooks_impl.inc:1235 [08:14:18] [debug] #5 0002d768 in public ThirdParty_OnCodeInit () at E:\SAMP-Servers\yourCarsonRP\pawno\include\YSI_Coding\y_hooks\..\y_cgen\y_cgen.inc:199 [08:14:18] [debug] #6 0002a5a8 in public AMX_OnCodeInit () at E:\SAMP-Servers\yourCarsonRP\pawno\include\YSI_Coding\y_hooks\..\y_cgen\..\..\YSI_Core\y_core\y_thirdpartyinclude.inc:370 [08:14:18] [debug] #7 00019e30 in public Debug_OnCodeInit () at E:\SAMP-Servers\yourCarsonRP\pawno\include\YSI_Coding\y_hooks\..\..\YSI_Core\y_core\y_amx_impl.inc:207 [08:14:18] [debug] #8 00019784 in public ScriptInit_OnCodeInit () at E:\SAMP-Servers\yourCarsonRP\pawno\include\YSI_Coding\y_hooks\..\..\YSI_Core\y_core\y_debug_impl.inc:645 [08:14:18] [debug] #9 000182dc in bool:ScriptInit_CallOnCodeInit (bool:jit=false, bool:fs=false) at E:\SAMP-Servers\yourCarsonRP\pawno\include\YSI_Coding\y_hooks\..\..\YSI_Core\y_core\y_scriptinit_impl.inc:614 [08:14:18] [debug] #10 0001914c in public zcmd_OnGameModeInit () at E:\SAMP-Servers\yourCarsonRP\pawno\include\YSI_Coding\y_hooks\..\..\YSI_Core\y_core\y_scriptinit_impl.inc:969 [08:14:18] [debug] #11 native CallLocalFunction () in samp03svr [08:14:18] [debug] #12 00016f34 in public SSCANF_OnGameModeInit () at E:\SAMP-Servers\yourCarsonRP\pawno\include\zcmd.inc:68 [08:14:18] [debug] #13 000109dc in public FIXES_OnGameModeInit () at E:\SAMP-Servers\yourCarsonRP\pawno\include\sscanf2.inc:211 [08:14:18] [debug] #14 000076c4 in public OnGameModeInit () at E:\SAMP-Servers\yourCarsonRP\pawno\include\fixes.inc:8739 [08:14:18] [debug] Native backtrace: [08:14:18] [debug] #0 f7b97f7f in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () in plugins/crashdetect.so [08:14:18] [debug] #1 f7b9081d in _ZN11CrashDetect20PrintNativeBacktraceERSoRKN2os7ContextE () in plugins/crashdetect.so [08:14:18] [debug] #2 f7b90e48 in _ZN11CrashDetect20PrintNativeBacktraceERKN2os7ContextE () in plugins/crashdetect.so [08:14:18] [debug] #3 f7b925dc in _ZN11CrashDetect7OnCrashERKN2os7ContextE () in plugins/crashdetect.so [08:14:18] [debug] #4 f7b9779f in ?? () in plugins/crashdetect.so [08:14:18] [debug] #5 f7f90090 in ?? () [08:14:18] [debug] #6 080a5210 in ?? () in ./samp03svr [08:14:18] [debug] Registers: [08:14:18] [debug] EAX: 091c88f0 EBX: f62ef000 ECX: 00001000 EDX: 00000005 [08:14:18] [debug] ESI: 091c88f0 EDI: 080a51d0 EBP: 00000000 ESP: fff0e670 [08:14:18] [debug] EIP: 080a5210 EFLAGS: 00010282 [08:14:18] [debug] Stack: [08:14:18] [debug] ESP+00000000: f61e6cb0 0932d470 fff0e6e8 080a54c1 [08:14:18] [debug] ESP+00000020: 080a51d5 00000000 f78837a5 f7883884 [08:14:18] [debug] ESP+00000040: 0000004f 0000000f f341a604 fff0e6f8 [08:14:18] [debug] ESP+00000060: f45e29e8 0932d470 00000000 080a54c1 [08:14:18] [debug] ESP+00000080: 0932d470 0932d470 fff0e728 080a55d5 [08:14:18] [debug] ESP+000000a0: f341a604 f45e29f8 0000000f f341a604 [08:14:18] [debug] ESP+000000c0: 0932d470 f45e29e8 00000000 0121bed8 [08:14:18] [debug] ESP+000000e0: f7bc0890 00000063 fff0e888 f7b9046f [08:14:18] [debug] ESP+00000100: 00000063 f7bc0000 f7f5d6bc f7b92448 [08:14:18] [debug] ESP+00000120: 71d37c15 000025a5 0027c861 00000000 [08:14:18] [debug] ESP+00000140: 00000063 0932d470 00000000 0121bed8 [08:14:18] [debug] ESP+00000160: 09357ad4 093582b1 093582d4 f7f62a54 [08:14:18] [debug] ESP+00000180: 00000000 00001002 00000000 00000000 [08:14:18] [debug] ESP+000001a0: 027e6811 000f77fa fff0e824 f7b95078 [08:14:18] [debug] ESP+000001c0: f7d76000 f3388008 fff0e8a8 f7cb7402 [08:14:18] [debug] ESP+000001e0: f7cb73d7 f7f60000 fff0e898 f7e825ec [08:14:18] [debug] ESP+00000200: fff0e8a8 6141ab5a 1eeff404 f7bc0000 [08:14:18] [debug] ESP+00000220: 092c1918 00000063 fff0e8fc f45e29e8 [08:14:18] [debug] ESP+00000240: 0932d470 00000063 fff0e8fc f45e29e8 [08:14:18] [debug] ESP+00000260: f33c6ba4 0121c970 012189a4 00000000 [08:14:18] [debug] ESP+00000280: f7bc0860 0932d470 00000001 0121be54 [08:14:18] [debug] ESP+000002a0: 092c1918 fff0e984 fff0e9b8 f7b920b4 [08:14:18] [debug] ESP+000002c0: 00000081 fff0e994 00000013 f7883874 [08:14:18] [debug] ESP+000002e0: f62fd41c f7f709f0 f7883829 f62ef000 [08:14:18] [debug] ESP+00000300: 0932d470 00000001 0121c97c 00016f34 [08:14:18] [debug] ESP+00000320: 00000081 fff0e9c0 fff0e9f8 0809df79 [08:14:18] [debug] ESP+00000340: fff0eaac 00000000 fff0eaac f7b95e6f [08:14:18] [debug] ESP+00000360: f78f8a98 f7928000 0932d470 f7884932 [08:14:18] [debug] ESP+00000380: 0932d470 fff0eabc 00000000 f7883874 [08:14:18] [debug] ESP+000003a0: f61d9950 f6296ecb f78848a9 00000010 [08:14:18] [debug] ESP+000003c0: 0932d470 fff0eaac 00000081 00000014 [08:14:18] [debug] ESP+000003e0: 646d637a 476e4f5f 4d656d61 4965646f [08:14:18] [debug] Loaded modules: [08:14:18] [debug] 00000000 - 00194f0b samp03svr [08:14:18] [debug] f7f8f000 - f7f9029a [08:14:18] [debug] f7f81000 - f7f83a04 /lib/i386-linux-gnu/libdl.so.2 [08:14:18] [debug] f7f64000 - f7f7f6ef /lib/i386-linux-gnu/libpthread.so.0 [08:14:18] [debug] f7ded000 - f7f6db4b /usr/lib/i386-linux-gnu/libstdc++.so.6 [08:14:18] [debug] f7d98000 - f7dec01c /lib/i386-linux-gnu/libm.so.6 [08:14:18] [debug] f7d7b000 - f7d971e4 /lib/i386-linux-gnu/libgcc_s.so.1 [08:14:18] [debug] f7bc3000 - f7d7fc6b /lib/i386-linux-gnu/libc.so.6 [08:14:18] [debug] f7f91000 - f7fb49c4 /lib/ld-linux.so.2 [08:14:18] [debug] f7b78000 - f7bc03d4 plugins/crashdetect.so [08:14:18] [debug] f792a000 - f7b7f4f8 plugins/ysf.so [08:14:18] [debug] f7857000 - f792bb05 plugins/streamer.so [08:14:18] [debug] f7846000 - f78559b4 plugins/sscanf.so [08:14:18] [debug] f783c000 - f78447c4 plugins/whirlpool.so [08:14:18] [debug] f74ab000 - f7840eb2 plugins/mysql.so [08:14:18] [debug] f7487000 - f74aad32 /home/container/plugins/../log-core.so [08:14:18] [debug] f747e000 - f7485714 /lib/i386-linux-gnu/librt.so.1 [08:14:18] [debug] f6469000 - f647a2ec /lib/i386-linux-gnu/libnss_files.so.2 [08:14:18] [debug] f6150000 - f630a421 plugins/sampvoice.so

Nickk888SAMP avatar Sep 15 '21 08:09 Nickk888SAMP

Send that log again. Except use: ``` Log here ``` Instead of: `Log here`

This is barely readable.

ghost avatar Sep 27 '21 18:09 ghost