Bug 4801 - Server can be crashed by sending commands to zombies
Status: RESOLVED INVALID
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Misc
Version: GIT MASTER
Hardware: All All
: P3 major
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2010-11-23 02:49 EST by cyrri
Modified: 2010-12-29 21:02:14 EST
2 users (show)

See Also:



Description cyrri 2010-11-23 02:49:51 EST
To reproduce the crash:
- run a server with ten bots
- during intermission do /kick all

Every disconnecting client then sends a scores command to everyone, so the last bots to leave will get a lot of those. The server will crash with the message "netchan queue is not properly initialized in SV_Netchan_TransmitNextFragment".

One way to prevent this is to exclude zombie clients in SV_SendClientMessages, but that may have side effects.
Comment 1 Tim Angus 2010-12-19 13:40:30 EST
I couldn't reproduce this. I was running a listen server on q3dm17 with 10 Anarkis. Is there anything special that I'm missing?
Comment 2 cyrri 2010-12-19 14:30:54 EST
It takes different numbers of bots on different machines. Five was enough for me so I thought ten should be enough for everyone. Try using more bots. Also, the server doesn't have to run as a seperate process, a simple skirmish match is enough.
Comment 3 John Hardin 2010-12-25 23:05:57 EST
This has been seen before:

http://lists.ioquake.org/pipermail/ioquake3-ioquake.org/2007-November/002135.html

http://quake3world.com/forum/viewtopic.php?t=9220

It looks like an attempt to fix this was made last year:

http://svn.icculus.org/quake3/trunk/code/server/sv_net_chan.c?r1=1552&r2=1596

...perhaps the OP's version (and mine) is stale? I'm seeing it in OpenArena 0.8.1, which apparently does not have this patch. Cyrri, exactly what build of what engine are you running?
Comment 4 cyrri 2010-12-29 21:02:14 EST
I ran into this bug with World of Padman and also tested it with the ioq3 windows "angst build" ("which is compiled from the freshest of SVN sources").
Applying the patch to WoP fixed the bug, so I assume all is good and the angst build is just not so fresh after all.
Thanks for the help.