IS4Code / YSF

YSF Server Functions
Other
98 stars 34 forks source link

Crash #68

Closed djacicd closed 6 years ago

djacicd commented 6 years ago

[18:54:31] [debug] Server crashed while executing mapeditor2.amx [18:54:31] [debug] AMX backtrace: [18:54:31] [debug] #0 native EditDynamicObject () from streamer.so [18:54:31] [debug] #1 00055bec in public GDialog_4000 (0, 1, -1, 3591972) from mapeditor2.amx [18:54:31] [debug] #2 native CallLocalFunction () from samp03svr [18:54:31] [debug] #3 0000bd94 in public OnDialogResponse (0, 4000, 1, -1, 3591964) from mapeditor2.amx [18:54:31] [debug] Native backtrace: [18:54:31] [debug] #0 e7a4ee8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so [18:54:31] [debug] #1 e7a47bcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so [18:54:31] [debug] #2 e7a48dbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so [18:54:31] [debug] #3 e7a49226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so [18:54:31] [debug] #4 e7a4eadc in ?? () from plugins/crashdetect.so [18:54:31] [debug] #5 e7dad410 in kernel_rt_sigreturn () from linux-gate.so.1 [18:54:31] [debug] #6 e7dad430 in kernel_vsyscall () from linux-gate.so.1 [18:54:31] [debug] #7 e7aa1367 in gsignal () from /lib/i386-linux-gnu/i686/cmov/libc.so.6 [18:54:31] [debug] #8 e7aa2a23 in abort () from /lib/i386-linux-gnu/i686/cmov/libc.so.6 [18:54:31] [debug] #9 e7ccfa25 in _ZN9gnu_cxx27verbose_terminate_handlerEv () from /usr/lib/i386-linux-gnu/libstdc++.so.6 [18:54:31] [debug] #10 e7ccd733 in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6 [18:54:31] [debug] #11 e7ccd7ad in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6 [18:54:31] [debug] #12 e7ccdace in cxa_rethrow () from /usr/lib/i386-linux-gnu/libstdc++.so.6 [18:54:31] [debug] #13 e5f913ff in _ZNSt8detail9_Map_baseIhSt4pairIKhNSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESaIS9_ENS_10_Select1stESt8equal_toIhESt4hashIhENS_18_Mod_range_hashingENS_20_Default_ranged_hashENS_20_Prime_rehash_policyENS_17_Hashtable_traitsILb0ELb0ELb1EEELb1EEixEOh () from plugins/YSF.so [18:54:31] [debug] #14 e5f8f75c in ?? () from plugins/YSF.so [18:54:31] [debug] #15 e79ac052 in sampgdk_SetPlayerObjectMaterialText () from plugins/streamer.so [18:54:31] [debug] #16 e7a02ef7 in _ZN8Streamer13streamObjectsER6Playerb () from plugins/streamer.so [18:54:31] [debug] #17 e7a06889 in _ZN8Streamer24performPlayerChunkUpdateER6Playerb () from plugins/streamer.so [18:54:31] [debug] #18 e7a0aeea in _ZN8Streamer17startManualUpdateER6Playeri () from plugins/streamer.so [18:54:31] [debug] #19 e79f080e in _ZN7Natives17EditDynamicObjectEP6tagAMXPi () from plugins/streamer.so [18:54:31] [debug] #20 080950e4 in ?? () from samp03svr [18:54:31] [debug] #21 e7a4a94b in ZN11CrashDetect13DoAmxCallbackEiPiS0 () from plugins/crashdetect.so [18:54:31] [debug] #22 e7a4d8f8 in ?? () from plugins/crashdetect.so [18:54:31] [debug] #23 e7a51916 in amx_Exec () from plugins/crashdetect.so [18:54:31] [debug] #24 e7a49be6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so [18:54:31] [debug] #25 e7a4d659 in ?? () from plugins/crashdetect.so [18:54:31] [debug] #26 e79a7826 in ?? () from plugins/streamer.so [18:54:31] [debug] #27 080dfd62 in ?? () from samp03svr [18:54:31] [debug] #28 080950e4 in ?? () from samp03svr [18:54:31] [debug] #29 e7a4a94b in ZN11CrashDetect13DoAmxCallbackEiPiS0 () from plugins/crashdetect.so [18:54:31] [debug] #30 e7a4d8f8 in ?? () from plugins/crashdetect.so [18:54:31] [debug] #31 e7a51916 in amx_Exec () from plugins/crashdetect.so [18:54:31] [debug] #32 e7a49be6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so [18:54:31] [debug] #33 e7a4d659 in ?? () from plugins/crashdetect.so [18:54:31] [debug] #34 e79a7826 in ?? () from plugins/streamer.so [18:54:31] [debug] #35 080a682f in ?? () from samp03svr [18:54:31] [debug] #36 e5f6c921 in _Z32HOOK_CGameMode__OnDialogResponseP9CGameModeiiiiPc () from plugins/YSF.so [18:54:31] [debug] #37 080b2c44 in ?? () from samp03svr [18:54:31] [debug] #38 08071d38 in ?? () from samp03svr [18:54:31] [debug] #39 08071e32 in ?? () from samp03svr [18:54:31] [debug] #40 0807bc50 in ?? () from samp03svr [18:54:31] [debug] #41 e5f5b839 in _ZN14CSAMPFunctions7ReceiveEPv () from plugins/YSF.so [18:54:31] [debug] #42 080aed3d in ?? () from samp03svr [18:54:31] [debug] #43 080aef02 in ?? () from samp03svr [18:54:31] [debug] #44 080aa13a in ?? () from samp03svr [18:54:31] [debug] #45 e7a8ca63 in libc_start_main () from /lib/i386-linux-gnu/i686/cmov/libc.so.6

IstuntmanI commented 6 years ago

Some minimal code to reproduce this ? What version are you using ?

djacicd commented 6 years ago

YSF - kurta999's version R19 loaded It crashes when map streams in for player, objects are dynamic and there's about 50 objects with Material/Text. Without plugin it works fine.

IstuntmanI commented 6 years ago

Looks like it crashed in the Streamer Plugin and the problem isn't when the objects are streaming-in, but when you are responding to some dialog called GDialog_4000 that contains a EditDynamicObject function call: OnDialogResponse (dialogid: 4000) -> some CallLocalFunction (probably from something like easydialog) -> GDialog_4000 -> EditDynamicObject <- it crashed in this function, inside streamer.so.

djacicd commented 6 years ago
[20:02:51] [debug] Server crashed while executing mapeditor2.amx
[20:02:51] [debug] AMX backtrace:
[20:02:51] [debug] #0 native Streamer_Update () from streamer.so
[20:02:51] [debug] #1 00042834 in public LoadWork (0, 4639952) from mapeditor2.amx
[20:02:51] [debug] #2 00040d58 in public cmd_loadwork (0, 3592148) from mapeditor2.amx
[20:02:51] [debug] #3 native CallLocalFunction () from samp03svr
[20:02:51] [debug] #4 000043d0 in public FIXES_OnPlayerCommandText (0, 3592056) from mapeditor2.amx
[20:02:51] [debug] #5 native CallLocalFunction () from samp03svr
[20:02:51] [debug] #6 00000ef4 in public OnPlayerCommandText (0, 3591964) from mapeditor2.amx
[20:02:51] [debug] Native backtrace:
[20:02:51] [debug] #0 ee8a5e8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[20:02:51] [debug] #1 ee89ebcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[20:02:51] [debug] #2 ee89fdbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[20:02:51] [debug] #3 ee8a0226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[20:02:51] [debug] #4 ee8a5adc in ?? () from plugins/crashdetect.so
[20:02:51] [debug] #5 eec04410 in __kernel_rt_sigreturn () from linux-gate.so.1
[20:02:51] [debug] #6 eec04430 in __kernel_vsyscall () from linux-gate.so.1
[20:02:51] [debug] #7 ee8f8367 in gsignal () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
[20:02:51] [debug] #8 ee8f9a23 in abort () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
[20:02:51] [debug] #9 eeb26a25 in _ZN9__gnu_cxx27__verbose_terminate_handlerEv () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[20:02:51] [debug] #10 eeb24733 in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[20:02:51] [debug] #11 eeb247ad in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[20:02:51] [debug] #12 eeb24ace in __cxa_rethrow () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[20:02:51] [debug] #13 ecd913ff in _ZNSt8__detail9_Map_baseIhSt4pairIKhNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESaIS9_ENS_10_Select1stESt8equal_toIhESt4hashIhENS_18_Mod_range_hashingENS_20_Default_ranged_hashENS_20_Prime_rehash_policyENS_17_Hashtable_traitsILb0ELb0ELb1EEELb1EEixEOh () from plugins/YSF.so
[20:02:51] [debug] #14 ecd8f75c in ?? () from plugins/YSF.so
[20:02:51] [debug] #15 ee803052 in sampgdk_SetPlayerObjectMaterialText () from plugins/streamer.so
[20:02:51] [debug] #16 ee859ef7 in _ZN8Streamer13streamObjectsER6Playerb () from plugins/streamer.so
[20:02:51] [debug] #17 ee85d889 in _ZN8Streamer24performPlayerChunkUpdateER6Playerb () from plugins/streamer.so
[20:02:51] [debug] #18 ee861eea in _ZN8Streamer17startManualUpdateER6Playeri () from plugins/streamer.so
[20:02:51] [debug] #19 ee854139 in _ZN7Natives15Streamer_UpdateEP6tagAMXPi () from plugins/streamer.so
[20:02:51] [debug] #20 080950e4 in ?? () from samp03svr
[20:02:51] [debug] #21 ee8a194b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[20:02:51] [debug] #22 ee8a48f8 in ?? () from plugins/crashdetect.so
[20:02:51] [debug] #23 ee8a8916 in amx_Exec () from plugins/crashdetect.so
[20:02:51] [debug] #24 ee8a0be6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[20:02:51] [debug] #25 ee8a4659 in ?? () from plugins/crashdetect.so
[20:02:51] [debug] #26 ee7fe826 in ?? () from plugins/streamer.so
[20:02:51] [debug] #27 080dfd62 in ?? () from samp03svr
[20:02:51] [debug] #28 080950e4 in ?? () from samp03svr
[20:02:51] [debug] #29 ee8a194b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[20:02:51] [debug] #30 ee8a48f8 in ?? () from plugins/crashdetect.so
[20:02:51] [debug] #31 ee8a8916 in amx_Exec () from plugins/crashdetect.so
[20:02:51] [debug] #32 ee8a0be6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[20:02:51] [debug] #33 ee8a4659 in ?? () from plugins/crashdetect.so
[20:02:51] [debug] #34 ee7fe826 in ?? () from plugins/streamer.so
[20:02:51] [debug] #35 080dfd62 in ?? () from samp03svr
[20:02:51] [debug] #36 080950e4 in ?? () from samp03svr
[20:02:51] [debug] #37 ee8a194b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[20:02:51] [debug] #38 ee8a48f8 in ?? () from plugins/crashdetect.so
[20:02:51] [debug] #39 ee8a8916 in amx_Exec () from plugins/crashdetect.so
[20:02:51] [debug] #40 ee8a0be6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[20:02:51] [debug] #41 ee8a4659 in ?? () from plugins/crashdetect.so
[20:02:51] [debug] #42 ee7fe826 in ?? () from plugins/streamer.so
[20:02:51] [debug] #43 080a5632 in ?? () from samp03svr
[20:02:51] [debug] #44 080b1751 in ?? () from samp03svr
[20:02:51] [debug] #45 08071d38 in ?? () from samp03svr
[20:02:51] [debug] #46 08071e32 in ?? () from samp03svr
[20:02:51] [debug] #47 0807bc50 in ?? () from samp03svr
[20:02:51] [debug] #48 ecd5b839 in _ZN14CSAMPFunctions7ReceiveEPv () from plugins/YSF.so
[20:02:51] [debug] #49 080aed3d in ?? () from samp03svr
[20:02:51] [debug] #50 080aef02 in ?? () from samp03svr
[20:02:51] [debug] #51 080aa13a in ?? () from samp03svr
[20:02:51] [debug] #52 ee8e3a63 in __libc_start_main () from /lib/i386-linux-gnu/i686/cmov/libc.so.6

It's crashing while executing Streamer_Update, but it's working just fine without YSF.

ghost commented 6 years ago

It's already fixed, new version with fixes comming soon.