Open ChillerDragon opened 4 years ago
Changing the password in game also seems to make trouble.
[2020-03-08 13:09:36][register]: chose 'master1.teeworlds.com' as master, sending heartbeats
[2020-03-08 13:09:40][register]: no firewall/nat problems detected
[2020-03-08 13:09:40][register]: server registered
[2020-03-08 13:18:36][server]: player is ready. ClientID=0 addr=<{XXX.XXX.XXX.XXX:64637}>
[2020-03-08 13:18:36][server]: 'Admin' -> 'Admin'
[2020-03-08 13:18:36][server]: player has entered the game. ClientID=0 addr=<{XXX.XXX.XXX.XXX:64637}>
[2020-03-08 13:18:36][sql]: Getting best time done
[2020-03-08 13:18:37][server]: ClientID=0 authed with key=default_admin (admin)
[2020-03-08 13:18:38][server]: ClientID=0 rcon='sv_rcon_mod_password <password>'
[2020-03-08 13:18:38][assert]: /opt/twserver/git/ddnet7/src/engine/shared/network_server.cpp(299): errornous client id
#0 dbg_break () at /opt/twserver/git/ddnet7/src/base/system.c:89
#1 0x00005555556507ae in dbg_assert_imp (filename=0x5555556751f0 "/opt/twserver/git/ddnet7/src/engine/shared/network_server.cpp", line=299, test=0, msg=0x5555556751d6 "errornous client id") at /opt/twserver/git/ddnet7/src/base/system.c:83
#2 0x0000555555644aaf in CNetServer::Send (this=0x7ffff69efee8, pChunk=0x7fffffffa400, Token=4294967295) at /opt/twserver/git/ddnet7/src/engine/shared/network_server.cpp:299
#3 0x00005555555a72df in CServer::SendMsg (this=0x7ffff62e8010, pMsg=0x7fffffffa480, Flags=1, ClientID=1) at /opt/twserver/git/ddnet7/src/engine/server/server.cpp:574
#4 0x00005555555accd1 in CServer::LogoutClient (this=0x7ffff62e8010, ClientID=1, pReason=0x555555660c07 "key update") at /opt/twserver/git/ddnet7/src/engine/server/server.cpp:1784
#5 0x00005555555acf83 in CServer::LogoutKey (this=0x7ffff62e8010, Key=1, pReason=0x555555660c07 "key update") at /opt/twserver/git/ddnet7/src/engine/server/server.cpp:1814
#6 0x00005555555ae983 in CServer::ConchainRconPasswordChangeGeneric (this=0x7ffff62e8010, Level=2, pCurrent=0x5555556df9c8 <g_Config+4072> "5SpYsU0N", pResult=0x7fffffffae30) at /opt/twserver/git/ddnet7/src/engine/server/server.cpp:2209
#7 0x00005555555aea15 in CServer::ConchainRconModPasswordChange (pResult=0x7fffffffae30, pUserData=0x7ffff62e8010, pfnCallback=0x555555625f2e <StrVariableCommand(IConsole::IResult*, void*)>, pCallbackUserData=0x5555556b18a0 <CConsole::CConsole(int)::Data>) at /opt/twserver/git/ddnet7/src/engine/server/server.cpp:2223
#8 0x000055555562fa09 in CConsole::Con_Chain (pResult=0x7fffffffae30, pUserData=0x55555579dcf0) at /opt/twserver/git/ddnet7/src/engine/shared/console.cpp:1118
#9 0x0000555555624d75 in CConsole::ExecuteLineStroked (this=0x555555764790, Stroke=1, pStr=0x7ffff6c0c9f4 "sv_rcon_mod_password <password>", ClientID=0, InterpretSemicolons=true) at /opt/twserver/git/ddnet7/src/engine/shared/console.cpp:452
#10 0x00005555556250b1 in CConsole::ExecuteLine (this=0x555555764790, pStr=0x7ffff6c0c9f4 "sv_rcon_mod_password <password>", ClientID=0, InterpretSemicolons=true) at /opt/twserver/git/ddnet7/src/engine/shared/console.cpp:515
#11 0x0000555555625129 in CConsole::ExecuteLineFlag (this=0x555555764790, pStr=0x7ffff6c0c9f4 "sv_rcon_mod_password <password>", FlagMask=4, ClientID=0, InterpretSemicolons=true) at /opt/twserver/git/ddnet7/src/engine/shared/console.cpp:523
#12 0x00005555555a9fd1 in CServer::ProcessClientPacket (this=0x7ffff62e8010, pPacket=0x7fffffffd8d0) at /opt/twserver/git/ddnet7/src/engine/server/server.cpp:1118
#13 0x00005555555ab1ba in CServer::PumpNetwork (this=0x7ffff62e8010) at /opt/twserver/git/ddnet7/src/engine/server/server.cpp:1376
#14 0x00005555555ac1e2 in CServer::Run (this=0x7ffff62e8010) at /opt/twserver/git/ddnet7/src/engine/server/server.cpp:1614
#15 0x00005555555af89a in main (argc=2, argv=0x7fffffffe4d8) at /opt/twserver/git/ddnet7/src/engine/server/server.cpp:2405
Core was generated by `./DDNet7-Server -f servers/9305.cfg'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 dbg_break () at /home/teeworlds/src7/master/src/base/system.c:89
89 *((volatile unsigned*)0) = 0x0;
[Current thread is 1 (Thread 0x7fe6a2271980 (LWP 26459))]
(gdb) bt
#0 dbg_break () at /home/teeworlds/src7/master/src/base/system.c:89
#1 dbg_assert_imp (filename=<optimized out>, line=<optimized out>,
msg=msg@entry=0x55909d2dc0f4 "errornous client id", test=0) at /home/teeworlds/src7/master/src/base/system.c:83
#2 0x000055909d2c0b3c in dbg_assert_imp (
filename=filename@entry=0x55909d2dc330 "/home/teeworlds/src7/master/src/engine/shared/network_server.cpp",
line=line@entry=299, test=<optimized out>, msg=msg@entry=0x55909d2dc0f4 "errornous client id")
at /home/teeworlds/src7/master/src/base/system.c:80
#3 0x000055909d2b5264 in CNetServer::Send (this=this@entry=0x7fe6a1fed2e8, pChunk=pChunk@entry=0x7ffff0d401b0,
Token=Token@entry=4294967295) at /home/teeworlds/src7/master/src/engine/shared/network.h:345
#4 0x000055909d23d075 in CServer::SendMsg (this=0x7fe6a18e2010, pMsg=0x7ffff0d40220, Flags=<optimized out>,
ClientID=0) at /home/teeworlds/src7/master/src/engine/server/server.cpp:574
#5 0x000055909d26db8b in IServer::SendPackMsg<CNetMsg_Sv_CommandInfo> (this=0x7fe6a18e2010,
pMsg=pMsg@entry=0x7ffff0d40a70, Flags=Flags@entry=1, ClientID=ClientID@entry=0)
at /home/teeworlds/src7/master/src/engine/shared/packer.h:27
#6 0x000055909d2692e3 in CGameContext::SendChatCommand (ClientID=0, pCommand=<optimized out>, this=0x7fe6a10b0010)
at /home/teeworlds/src7/master/src/game/server/gamecontext.h:117
#7 CGameContext::SendChatCommands (this=this@entry=0x7fe6a10b0010, ClientID=ClientID@entry=0)
at /home/teeworlds/src7/master/src/game/server/gamecontext.cpp:447
#8 0x000055909d269350 in CGameContext::OnClientEnter (this=0x7fe6a10b0010, ClientID=0)
at /home/teeworlds/src7/master/src/game/server/gamecontext.cpp:929
#9 0x000055909d241d60 in CServer::ProcessClientPacket (this=this@entry=0x7fe6a18e2010,
pPacket=pPacket@entry=0x7ffff0d42960) at /home/teeworlds/src7/master/src/engine/server/server.h:84
#10 0x000055909d24259b in CServer::PumpNetwork (this=this@entry=0x7fe6a18e2010)
at /home/teeworlds/src7/master/src/engine/server/server.cpp:1398
#11 0x000055909d242aa1 in CServer::Run (this=0x7fe6a18e2010)
at /home/teeworlds/src7/master/src/engine/server/server.cpp:1680
#12 0x000055909d239d9e in main (argc=3, argv=0x7ffff0d436d8)
at /home/teeworlds/src7/master/src/engine/server/server.cpp:2501
Seems like a different non rcon issue resulting in the same assert to trigger. Im still not sure if this assert is a good idea because all sorts of issues seem to end there and a simple return
could fix that.
It depends on some config option. I did not find out yet which exactly caused it.
Seems like it is a auth issue since this appears in the logs when the assert is removed:
UPDATE:
The issue is caused by this config: