fokkonaut / F-DDrace

F-DDrace is a server-side modification of Teeworlds, developed by fokkonaut.
Other
12 stars 16 forks source link

CPlayer::Snap crash #127

Closed ChillerDragon closed 3 years ago

ChillerDragon commented 3 years ago
echo "[2021-07-17 01:15:38][game]: kill killer='100:(52)Diyxr' victim='100:(52)Diyxr' weapon=-3 special=0 killer_team:0 victim_team:0"
echo "[2021-07-17 01:15:38][chat]: *** '(52)Diyxr' has left the game (Timeout)"
echo "[2021-07-17 01:15:38][server]: client dropped. cid=85 addr=<{139.155.xx.xx:57639}> reason='Timeout'"
echo "[2021-07-17 01:15:38][game]: kill killer='85:(63)Diyxr' victim='85:(63)Diyxr' weapon=-3 special=0 killer_team:0 victim_team:0"
echo "[2021-07-17 01:15:38][chat]: *** '(63)Diyxr' has left the game (Timeout)"
echo "[2021-07-17 01:15:38][server]: client dropped. cid=90 addr=<{139.155.xx.xx:62058}> reason='Timeout'"
echo "[2021-07-17 01:15:38][game]: kill killer='90:(39)Diyxr' victim='90:(39)Diyxr' weapon=-3 special=0 killer_team:0 victim_team:0"
echo "[2021-07-17 01:15:38][chat]: *** '(39)Diyxr' has left the game (Timeout)"
echo "[2021-07-17 01:15:38][game]: kill killer='26:random tee' victim='26:random tee' weapon=-3 special=0 killer_team:0 victim_team:0"
echo "[2021-07-17 01:15:38][game]: kill killer='26:random tee' victim='7:bob' weapon=-2 special=0 killer_team:0 victim_team:0"
echo ""
echo "#0  0x0000555555619883 in CPlayer::Snap (this=0x55555575cde0 <ms_PoolDataCPlayer+174304>, SnappingClient=SnappingClient@entry=32) at /home/fokko/git/F-DDrace/src/game/server/player.cpp:743"
echo "#1  0x00005555555ee080 in CGameContext::OnSnap (this=0x7ffff4d79010, ClientID=32) at /home/fokko/git/F-DDrace/src/game/server/gamecontext.cpp:3923"
echo "#2  0x0000555555596ae5 in CServer::DoSnapshot (this=this@entry=0x7ffff55be010) at /home/fokko/git/F-DDrace/src/engine/server/server.h:94"
echo "#3  0x000055555559c118 in CServer::Run (this=0x7ffff55be010) at /home/fokko/git/F-DDrace/src/engine/server/server.cpp:2286"
echo "#4  0x00005555555901c8 in main (argc=2, argv=0x7fffffffd9d8) at /home/fokko/git/F-DDrace/src/engine/server/server.cpp:3128"
``` (gdb) bt full #0 0x0000555555619883 in CPlayer::Snap (this=0x55555575cde0 , SnappingClient=SnappingClient@entry=32) at /home/fokko/git/F-DDrace/src/game/server/player.cpp:743 pSpecChar = 0x0 id = 3 Size = pPlayerInfo = pSnapping = 0x555555766b00 Latency = 74 Score = 7 pDDNetPlayer = ShowSpec = SpecPos = {{x = 13425, u = 13425}, {y = 13809, v = 13809}} #1 0x00005555555ee080 in CGameContext::OnSnap (this=0x7ffff4d79010, ClientID=32) at /home/fokko/git/F-DDrace/src/game/server/gamecontext.cpp:3923 i = StandardTuning = {static ms_apNames = 0x5555556de200 , m_GroundControlSpeed = {m_Value = 1000}, m_GroundControlAccel = {m_Value = 200}, m_GroundFriction = {m_Value = 50}, m_GroundJumpImpulse = {m_Value = 1320}, m_AirJumpImpulse = {m_Value = 1200}, m_AirControlSpeed = {m_Value = 500}, m_AirControlAccel = {m_Value = 150}, m_AirFriction = {m_Value = 95}, m_HookLength = {m_Value = 38000}, m_HookFireSpeed = {m_Value = 8000}, m_HookDragAccel = {m_Value = 300}, m_HookDragSpeed = {m_Value = 1500}, m_Gravity = {m_Value = 50}, m_VelrampStart = {m_Value = 55000}, m_VelrampRange = {m_Value = 200000}, m_VelrampCurvature = {m_Value = 140}, m_GunCurvature = {m_Value = 125}, m_GunSpeed = {m_Value = 220000}, m_GunLifetime = {m_Value = 200}, m_ShotgunCurvature = {m_Value = 125}, m_ShotgunSpeed = {m_Value = 275000}, m_ShotgunSpeeddiff = {m_Value = 80}, m_ShotgunLifetime = {m_Value = 20}, m_GrenadeCurvature = {m_Value = 700}, m_GrenadeSpeed = {m_Value = 100000}, m_GrenadeLifetime = {m_Value = 200}, m_LaserReach = {m_Value = 80000}, m_LaserBounceDelay = {m_Value = 15000}, m_LaserBounceNum = {m_Value = 100000}, m_LaserBounceCost = {m_Value = 0}, m_PlayerCollision = {m_Value = 100}, m_PlayerHooking = {m_Value = 100}, m_JetpackStrength = {m_Value = 40000}, m_ShotgunStrength = {m_Value = 1000}, m_ExplosionStrength = {m_Value = 600}, m_HammerStrength = {m_Value = 100}, m_HookDuration = {m_Value = 125}, m_HammerFireDelay = {m_Value = 12500}, m_GunFireDelay = {m_Value = 12500}, m_ShotgunFireDelay = {m_Value = 50000}, m_GrenadeFireDelay = {m_Value = 50000}, m_LaserFireDelay = {m_Value = 80000}, m_NinjaFireDelay = {m_Value = 80000}, m_TaserFireDelay = {m_Value = 80000}, m_PortalRifleFireDelay = {m_Value = 12500}, m_HeartGunFireDelay = {m_Value = 12500}, m_PlasmaRifleFireDelay = {m_Value = 50000}, m_StraightGrenadeFireDelay = {m_Value = 50000}, m_TelekinesisFireDelay = {m_Value = 12500}, m_LightsaberFireDelay = {m_Value = 50000}, m_ProjectileRifleFireDelay = {m_Value = 10000}, m_BallGrenadeFireDelay = {m_Value = 60000}, m_EditorFireDelay = {m_Value = 0}, m_StraightGrenadeSpeed = {m_Value = 75000}, m_StraightGrenadeLifetime = {m_Value = 500}, m_VanillaShotgunCurvature = {m_Value = 125}, m_VanillaShotgunSpeed = {m_Value = 275000}, m_VanillaGunCurvature = {m_Value = 125}, m_VanillaGunSpeed = {m_Value = 220000}, m_VanillaGunLifetime = {m_Value = 200}, m_MeteorFriction = {m_Value = 500000}, m_MeteorMaxAccel = {m_Value = 200000}, m_MeteorAccelPreserve = {m_Value = 10000000}, m_MoneyMaxFlySpeed = {m_Value = 300}} #2 0x0000555555596ae5 in CServer::DoSnapshot (this=this@entry=0x7ffff55be010) at /home/fokko/git/F-DDrace/src/engine/server/server.h:94 aData = "d&\000\000\374\000\000\000\377\177\000\000\376\177\000\000\375\177\000\000\374\177\000\000\063\000\t\000\063\000\377\177\023\000\t\000\023\000\377\177\065\000\t\000\065\000\377\177&\000\t\000&\000\377\177\071\000\t\000\071\000\377\177,\000\t\000,\000\377\177\034\000\t\000\034\000\377\177 \000\t\000 \000\377\177\021\000\t\000\021\000\377\177\062\000\t\000\062\000\377\177*\000\t\000*\000\377\177\020\000\t\000\020\000\377\177\n\000\t\000\n\000\377\177+\000\t\000+\000\377\177\000\000\t\000\000\000\377\177\030\000\t\000\030\000\377\177\r\000\t\000\r\000\377\177\001\000\t\000\001\000\377\177\066\000\t\000\066\000\377\177\003\000\t\000\003\000\377\177\002\000\t\000\002\000\377\177'\000\t\000'\000\377\177"... pData = 0x7ffffffcd580 DeltashotSize = DeltaSize = aDeltaData = "\000\000\000\000v\000\000\000\000\000\000\000\t\000\000\000\063\000\000\000\004\000\000\000$\000\000\000\000\000\000\000`\005", '\000' , "\373\377\377\377", '\000' , "\377\177\000\000\063\000\000\000\005", '\000' , "\377\377\377\377\t\000\000\000\023\000\000\000\004\000\000\000\024\000\000\000\356\377\377\377\000\000\000\000\000\002\000\000\020", '\000' , "\001\000\000\000\000\000\000\000\266\001\000\000\302\377\377\377"... Crc = EmptySnap = {m_DataSize = 0, m_NumItems = 0} aCompData = "\000\266\001\000\t3\004$\000\240\025\000\000\000\000\000D", '\000' , "\277\377\003\063\005\000\000\000\000@\t\023\004\024Q\000\200\b\020\000\000\000\001\000\266\006}\000\000\000\000\000\000\000\000\000\277\377\003\023\005\000\000\000\000@\t5\004", '\000' , "\277\377\003\065\005\000\000\000\000@\t&\004", '\000' , "\277\377\003&\005\000\063\000\000@\t9\004", '\000' , "\277\377\003\071\005\000\000\000\000@\t,\004", '\000' ... SnapshotSize = pDeltashot = 0x5555556de468 DeltaTick = -1 i = 32 #3 0x000055555559c118 in CServer::Run (this=0x7ffff55be010) at /home/fokko/git/F-DDrace/src/engine/server/server.cpp:2286 Now = NewTicks = true ShouldSnap = true Userdata = {m_pServer = 0x7ffff55be010, m_aName = '\000' } BindAddr = {type = 3, ip = "3Ò«/", '\000' , port = 7303, reserved = 0} aBuf = "game version 0.7/0.6, 12.9\000f4d4\000ground'", '\000' , "-sr\367\377\177\000\000\360\252\206UUU\000\000\000\000\000\000\000\000\000\000,\000\000\000\000\000\000\000\316\021gUUU\000\000p\330\377\377\377\177\000\000\000\020^\026\264\356\070\207\371\377\377\377\000\000\000\000\340\004q\367\377\177\000\000\300a\204UUU\000\000@\017gUUU\000\000\000\000\000\000\000\000\000\000,\000\000\000\000\000\000\000dumps/TeeworldsLogs/fddrace/logs/fddrace"... #4 0x00005555555901c8 in main (argc=2, argv=0x7fffffffd9d8) at /home/fokko/git/F-DDrace/src/engine/server/server.cpp:3128 UseDefaultConfig = false pServer = 0x7ffff55be010 pKernel = 0x55555586a050 FlagMask = 36 pEngine = 0x55555586a970 pEngineMap = 0x55555586b2e0 pGameServer = 0x7ffff4d79010 pConsole = 0x55555586b3d0 pEngineMasterServer = 0x55555586b6e0 pStorage = 0x55555589c3c0 pConfigManager = 0x55555589ebe0 pEngineAntibot = 0x5555558a0730 Ret = (gdb) info registers rax 0x0 0 rbx 0x55555575cde0 93824994364896 rcx 0x555555699d7b 93824993566075 rdx 0x3471 13425 rsi 0x322 802 rdi 0x55555569b6d0 93824993572560 rbp 0x7ffffffccbb0 0x7ffffffccbb0 rsp 0x7ffffffccb40 0x7ffffffccb40 r8 0x55555e8d4570 93825146897776 r9 0x0 0 r10 0x7ffff630fe04 140737323793924 r11 0x0 0 r12 0x20 32 r13 0x3 3 r14 0x7ffff630fe14 140737323793940 r15 0x7ffff630fdcc 140737323793868 rip 0x555555619883 0x555555619883 eflags 0x10202 [ IF RF ] cs 0x33 51 ss 0x2b 43 ds 0x0 0 es 0x0 0 fs 0x0 0 gs 0x0 0 (gdb) x/20i $rip-20 0x55555561986f : add DWORD PTR [rax],eax 0x555555619871 : mov rdi,QWORD PTR [rax+0x10] 0x555555619875 : mov rax,QWORD PTR [rdi] 0x555555619878 : call QWORD PTR [rax+0xd8] 0x55555561987e : cvttss2si edx,DWORD PTR [rbp-0x5c] => 0x555555619883 : mov DWORD PTR [rax],edx 0x555555619885 : cvttss2si edx,DWORD PTR [rbp-0x60] 0x55555561988a : mov DWORD PTR [rax+0x4],edx 0x55555561988d : nop DWORD PTR [rax] 0x555555619890 : mov rax,QWORD PTR [rbp-0x38] 0x555555619894 : xor rax,QWORD PTR fs:0x28 0x55555561989d : jne 0x55555561a275 0x5555556198a3 : add rsp,0x48 0x5555556198a7 : pop rbx 0x5555556198a8 : pop r12 0x5555556198aa : pop r13 0x5555556198ac : pop r14 0x5555556198ae : pop r15 0x5555556198b0 : pop rbp 0x5555556198b1 : ret (gdb) list 738 } 739 740 if(ShowSpec) 741 { 742 CNetObj_SpecChar *pSpecChar = static_cast(Server()->SnapNewItem(NETOBJTYPE_SPECCHAR, id, sizeof(CNetObj_SpecChar))); 743 pSpecChar->m_X = SpecPos.x; 744 pSpecChar->m_Y = SpecPos.y; 745 } 746 } 747 (gdb) info threads Id Target Id Frame * 1 Thread 0x7ffff759b740 (LWP 10966) "fddrace" 0x0000555555619883 in CPlayer::Snap (this=0x55555575cde0 , SnappingClient=SnappingClient@entry=32) at /home/fokko/git/F-DDrace/src/game/server/player.cpp:743 2 Thread 0x7ffff55bd700 (LWP 11448) "fddrace" 0x00007ffff766b720 in __GI___nanosleep (requested_time=requested_time@entry=0x7ffff55bce90, remaining=remaining@entry=0x0) at ../sysdeps/unix/sysv/linux/nanosleep.c:28 warning: target file /proc/10966/cmdline contained unexpected null characters ```