record
in the rcon and try playing a map, in particular with a dummy. The following errors occur with ASAN/UBSAN:
```
/src/engine/server/server.h:465:63: runtime error: index -1 out of bounds for type 'CClient [64]'
#0 0x55e948e5b3d4 in CServer::IsSixup(int) const (/build-asan/DDNet-Server+0xbfb3d4)
#1 0x55e9491373be in IGameController::Snap(int) /src/game/server/gamecontroller.cpp:603
#2 0x55e9490e5352 in CGameContext::OnSnap(int) /src/game/server/gamecontext.cpp:363...[demo_player]: error during unpacking of delta, err=-3
Should we also investigate this, or is this normal behavior?
I took the opportunity and directly refactored the code a bit, to be exact I replaced the -1 with the enum SERVER_DEMO_CLIENT
, I can also change the identifier if we want to call it something else. Further I normalized the corresponding >= 0
conditions to `> SERVER_DEM...
Core was generated by
./DDRace64-Server_sql -f servers/8311.cfg'.
Program terminated with signal SIGABRT, Aborted.
#0 GI_raise (sig=sig@entry=6)
at ../sysdeps/unix/sysv/linux/raise.c:50
50 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
[Current thread is 1 (Thread 0x7f6657d22b80 (LWP 2466233))]
(gdb) bt
#0 GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1 0x00007f6657dfe537 in __GI_abort () at abort.c:79
#2 0x00007f6657e57768 in ...