maddinat0r / samp-tsconnector

A plugin for SA-MP to control a Teamspeak3 Server from the gamemode
MIT License
17 stars 3 forks source link

Seems to be crashing the server as soon as a player connects #16

Open Bios-Marcel opened 7 years ago

Bios-Marcel commented 7 years ago

The logs say that YSF caused it, but as soon as i remove the teamspeak-connector.so from plugins it works

[16:27:13] [connection] 46.80.26.58:58089 requests connection cookie.
[16:27:14] [connection] incoming connection: 46.80.26.58:58089 id: 0
[16:27:15] [debug] Server crashed due to an unknown error
[16:27:15] [debug] Native backtrace:
[16:27:15] [debug] #0 f73c2ca0 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so
[16:27:15] [debug] #1 f73bbd22 in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[16:27:15] [debug] #2 f73bc314 in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[16:27:15] [debug] #3 f73be964 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[16:27:15] [debug] #4 f73c25cd in ?? () from plugins/crashdetect.so
[16:27:15] [debug] #5 f77b3bd0 in ?? ()
[16:27:15] [debug] #6 f5b3a676 in _ZN7CServer26IsNickNameCharacterAllowedEc () from plugins/YSF.so
[16:27:15] [debug] #7 f5b3a6f4 in _ZN7CServer11IsValidNickEPc () from plugins/YSF.so
[16:27:15] [debug] #8 f5b3df9c in _Z25HOOK_ContainsInvalidCharsPc () from plugins/YSF.so
[16:27:15] [debug] #9 080b4d19 in ?? () from ./samp03svr
[16:27:15] [debug] #10 08071d38 in ?? () from ./samp03svr
[16:27:15] [debug] #11 08071e32 in ?? () from ./samp03svr
[16:27:15] [debug] #12 0807bc50 in ?? () from ./samp03svr
[16:27:15] [debug] #13 f5b3cf0b in _ZN14CSAMPFunctions7ReceiveEPv () from plugins/YSF.so
[16:27:15] [debug] #14 f5b41b9c in _ZN14CHookRakServer7ReceiveEPv () from plugins/YSF.so
[16:27:15] [debug] #15 080aed3d in ?? () from ./samp03svr
[16:27:15] [debug] #16 080aef02 in ?? () from ./samp03svr
[16:27:15] [debug] #17 080aa13a in ?? () from ./samp03svr
[16:27:15] [debug] #18 f7402637 in __libc_start_main () from /lib32/libc.so.6
[16:27:15] [debug] #19 0804b4e1 in ?? () from ./samp03svr

I don't know if that is something fixable though?

maddinat0r commented 7 years ago

Do you use any natives or callbacks provided by the TSC plugin?

Bios-Marcel commented 7 years ago

I tried it with and without, same result.

But when i for example used TSC_OnClientConnect, the callback itself worked fine, but the server still crashes when someone connects in sa-mp

maddinat0r commented 7 years ago

What plugins do you use and in which order do you load them? (just copy-paste the plugins line from your server.cfg)

Bios-Marcel commented 7 years ago

plugins crashdetect.so sscanf.so mysql.so streamer.so teamspeak-connector.so regex.so pawncmd.so YSF.so

maddinat0r commented 7 years ago

Try to load the YSF plugin directly after crashdetect.

Bios-Marcel commented 7 years ago

Same result:

[18:31:18] [connection] 46.80.26.58:49347 requests connection cookie.
[18:31:19] [connection] incoming connection: 46.80.26.58:49347 id: 0
[18:31:19] [debug] Server crashed due to an unknown error
[18:31:19] [debug] Native backtrace:
[18:31:19] [debug] #0 f73a0ca0 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so
[18:31:19] [debug] #1 f7399d22 in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[18:31:19] [debug] #2 f739a314 in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[18:31:19] [debug] #3 f739c964 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[18:31:19] [debug] #4 f73a05cd in ?? () from plugins/crashdetect.so
[18:31:19] [debug] #5 f7791bd0 in ?? ()
[18:31:19] [debug] #6 f72fe676 in _ZN7CServer26IsNickNameCharacterAllowedEc () from plugins/YSF.so
[18:31:19] [debug] #7 f72fe6f4 in _ZN7CServer11IsValidNickEPc () from plugins/YSF.so
[18:31:19] [debug] #8 f7301f9c in _Z25HOOK_ContainsInvalidCharsPc () from plugins/YSF.so
[18:31:19] [debug] #9 080b4d19 in ?? () from ./samp03svr
[18:31:19] [debug] #10 08071d38 in ?? () from ./samp03svr
[18:31:19] [debug] #11 08071e32 in ?? () from ./samp03svr
[18:31:19] [debug] #12 0807bc50 in ?? () from ./samp03svr
[18:31:19] [debug] #13 f7300f0b in _ZN14CSAMPFunctions7ReceiveEPv () from plugins/YSF.so
[18:31:19] [debug] #14 f7305b9c in _ZN14CHookRakServer7ReceiveEPv () from plugins/YSF.so
[18:31:19] [debug] #15 080aed3d in ?? () from ./samp03svr
[18:31:19] [debug] #16 080aef02 in ?? () from ./samp03svr
[18:31:19] [debug] #17 080aa13a in ?? () from ./samp03svr
[18:31:19] [debug] #18 f73e0637 in __libc_start_main () from /lib32/libc.so.6
[18:31:19] [debug] #19 0804b4e1 in ?? () from ./samp03svr
maddinat0r commented 7 years ago

And if you remove the TSC plugin again?

Bios-Marcel commented 7 years ago

it works just fine

maddinat0r commented 7 years ago

Which YSF version are you using?

Bios-Marcel commented 7 years ago

Latest by Kurta

maddinat0r commented 7 years ago

Hm, maybe @kurta999 can tell us more about this. The function in the YSF plugin, which seems to cause a crash, seems pretty harmless though.

Bios-Marcel commented 7 years ago

Should i create a new issue in YSF Repo? Or does the @ Name already notify him?

maddinat0r commented 7 years ago

He should be notified. No need to create an extra issue.