Fix for a server that crashes when executing "lo3"

Post Reply
User avatar
Edge100x
Founder
Founder
Posts: 12948
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Fix for a server that crashes when executing "lo3"

Post by Edge100x »

We have had many customers come to us recently with CS:S game servers that crash when a version of the "live on 3" script is executed. I investigated this problem in more depth tonight and determined that it stems from running the Linux version of zBlock (currently at version 4.2c) and executing the "zb_authhost" command immediately before a "say" statement -- whether in lo3.cfg or through any other configuration file. For instance, in the cevocss.cfg file executed by one version of lo3, this pair of lines caused a server crash:

Code: Select all

zb_authhost "http://www.cevo.com/zblock.php"
say "CEVO CS:S & Gotfrag Configs Have Been Executed"
The workaround I currently recommend is very simple. By separating the lines with a "wait" statement, the crash appears to be avoided completely:

Code: Select all

zb_authhost "http://www.cevo.com/zblock.php"
wait
say "CEVO CS:S & Gotfrag Configs Have Been Executed"
Alternately, removing the "zb_authhost" command from the file and running it separately would work, or removing the "say" command would work.

For the benefit of those searching for information on this error, and for Valve or the authors of zBlock, here is the message printed to the console when the problematic lines are adjacent:

Code: Select all

[zBlock] Attempting to set zb_authhost "http://www.cevo.com/zblock.php"
[zBlock] zb_authhost verified
UserMessageBegin:  New message started before matching call to EndMessage.


warning: Can't read pathname for load map: Input/output error.
email debug.log to linux@valvesoftware.com
Fri Jun  5 01:00:49 CDT 2009: Server restart in 10 seconds
And here is the sanitized debug.log:

Code: Select all

----------------------------------------------
CRASH: Fri Jun  5 00:46:30 CDT 2009
Start Line: ./srcds_i686 -condebug --debug -game cstrike -ip 127.0.0.1 -maxplayers 12 -tickrate 100
Using host libthread_db library "/lib/libthread_db.so.1".
Core was generated by `./srcds_i686 -condebug --debug -game cstrike -ip 127.0.0.1 -maxplayers 12 -tickrate 100'.
Program terminated with signal 11, Segmentation fault.
#0  0xb6722740 in CNavArea::UpdateOnOpenList () from /cstrike/bin/server_i486.so
#0  0xb6722740 in CNavArea::UpdateOnOpenList () from /cstrike/bin/server_i486.so
#1  0xb673d146 in NavAreaBuildPath<ShortestPathCost> () from /cstrike/bin/server_i486.so
#2  0xb6a70768 in NavAreaTravelDistance<ShortestPathCost> () from /cstrike/bin/server_i486.so
#3  0xb6a6f46e in CCSBotManager::CheckForBlockedZones () from /cstrike/bin/server_i486.so
#4  0xb729b962 in CGameEventManager::FireEventIntern () from bin/engine_i686.so
#5  0xb729ba86 in CGameEventManager::FireEvent () from bin/engine_i686.so
#6  0xb6991096 in CCSGameRules::CheckFreezePeriodExpired () from /cstrike/bin/server_i486.so
#7  0xb6993fb0 in CCSGameRules::Think () from /cstrike/bin/server_i486.so
#8  0xb691383f in IGameSystem::FrameUpdatePostEntityThinkAllSystems () from /cstrike/bin/server_i486.so
#9  0xb66e2c46 in CServerGameDLL::GameFrame () from /cstrike/bin/server_i486.so
#10 0xb7332e68 in SV_Frame () from bin/engine_i686.so
#11 0xb72b151d in _Host_RunFrame_Server () from bin/engine_i686.so
#12 0xb72b1d50 in _Host_RunFrame () from bin/engine_i686.so
#13 0xb72b2412 in Host_RunFrame () from bin/engine_i686.so
#14 0xb72bc51c in CHostState::State_Run () from bin/engine_i686.so
#15 0xb72bc7c1 in CHostState::FrameUpdate () from bin/engine_i686.so
#16 0xb72bc947 in HostState_Frame () from bin/engine_i686.so
#17 0xb7351d64 in CEngine::Frame () from bin/engine_i686.so
#18 0xb734fb7e in CDedicatedServerAPI::RunFrame () from bin/engine_i686.so
#19 0xb7dd70fd in RunServer () from bin/dedicated_i686.so
#20 0xb734f55e in CModAppSystemGroup::Main () from bin/engine_i686.so
#21 0xb7456cd3 in CAppSystemGroup::Run () from bin/engine_i686.so
#22 0xb73507af in CDedicatedServerAPI::ModInit () from bin/engine_i686.so
#23 0xb7dd734a in CDedicatedAppSystemGroup::Main () from bin/dedicated_i686.so
#24 0xb7e0e713 in CAppSystemGroup::Run () from bin/dedicated_i686.so
#25 0xb7e0e713 in CAppSystemGroup::Run () from bin/dedicated_i686.so
#26 0xb7dd7758 in main () from bin/dedicated_i686.so
#27 0x0804909e in main ()
Post Reply