I'm encountering some errors that are crashing my counterstrike source linux server that's running metamod 1.7.1, sourcemod 1.2.1, and my custom sourcemod mod which includes an extension (.so) and a plugin. I'm running a Ubuntu 8.10 x64 server but using all 32-bit libraries for this server.
I'm really not sure what is causing these errors, be it the counterstrike code, the source engine code, metamod code, sourcemod code, or my mod code.
Here's the info I have on crash #1:
Code:
[Switching to Thread 0xf7e2b6b0 (LWP 12150)]
0xf66a1d30 in CNavArea::GetSpotEncounter () from /home/administrator/srcds_3/cstrike/bin/server_i486.so
#0 0xf66a1d30 in CNavArea::GetSpotEncounter () from /home/administrator/srcds_3/cstrike/bin/server_i486.so
#1 0xf69f5862 in CCSBot::UpdatePathMovement () from /home/administrator/srcds_3/cstrike/bin/server_i486.so
#2 0xf6a16f11 in InvestigateNoiseState::OnUpdate () from /home/administrator/srcds_3/cstrike/bin/server_i486.so
#3 0xf69fc5a4 in CCSBot::Update () from /home/administrator/srcds_3/cstrike/bin/server_i486.so
#4 0xf6954aee in CBotManager::StartFrame () from /home/administrator/srcds_3/cstrike/bin/server_i486.so
#5 0xf69e63e8 in CCSBotManager::StartFrame () from /home/administrator/srcds_3/cstrike/bin/server_i486.so
#6 0xf69077e5 in CCSGameRules::EndGameFrame () from /home/administrator/srcds_3/cstrike/bin/server_i486.so
#7 0xf665dd95 in CServerGameDLL::GameFrame () from /home/administrator/srcds_3/cstrike/bin/server_i486.so
#8 0xf1f08767 in __SourceHook_FHCls_IServerGameDLLGameFramefalse::Func () from /home/administrator/srcds_3/cstrike/addons/sourcemod/bin/sourcemod.1.ep1.so
#9 0xf72ade68 in SV_Frame () from bin/engine_i686.so
#10 0xf722c51d in _Host_RunFrame_Server () from bin/engine_i686.so
#11 0xf722cd50 in _Host_RunFrame () from bin/engine_i686.so
#12 0xf722d412 in Host_RunFrame () from bin/engine_i686.so
#13 0xf723751c in CHostState::State_Run () from bin/engine_i686.so
#14 0xf72377c1 in CHostState::FrameUpdate () from bin/engine_i686.so
#15 0xf7237947 in HostState_Frame () from bin/engine_i686.so
#16 0xf72ccd54 in CEngine::Frame () from bin/engine_i686.so
#17 0xf72cab6e in CDedicatedServerAPI::RunFrame () from bin/engine_i686.so
#18 0xf7d520fd in RunServer () from bin/dedicated_i686.so
#19 0xf72ca54e in CModAppSystemGroup::Main () from bin/engine_i686.so
#20 0xf73d1cc3 in CAppSystemGroup::Run () from bin/engine_i686.so
#21 0xf72cb79f in CDedicatedServerAPI::ModInit () from bin/engine_i686.so
#22 0xf7d5234a in CDedicatedAppSystemGroup::Main () from bin/dedicated_i686.so
#23 0xf7d89713 in CAppSystemGroup::Run () from bin/dedicated_i686.so
#24 0xf7d89713 in CAppSystemGroup::Run () from bin/dedicated_i686.so
#25 0xf7d52758 in main () from bin/dedicated_i686.so
#26 0x0804909e in main ()
My guess is that this is a counterstrike bot related problem. My code doesn't really do much of anything with bots except treat them like any other player on the server, but since they're bots they're not really even using my mod the way players are. At first I thought this problem was related to bots not working on custom maps, but the bug appeared again after I removed the custom maps from the rotation/maplist. Has anyone seen this bug before, or know what I can do to fix it? [UPDATE] I noticed that a few people have had this bug happen on a purely CS:S server however no one said anything on how to fix it.
Bug #2
Code:
[Switching to Thread 0xf7da96b0 (LWP 32055)]
0xf6627f7d in CUtlLinkedList<NavLadderConnect, int>::RemoveAll () from /home/administrator/srcds_3/cstrike/bin/server_i486.so
#0 0xf6627f7d in CUtlLinkedList<NavLadderConnect, int>::RemoveAll () from /home/administrator/srcds_3/cstrike/bin/server_i486.so
#1 0x0ad5a124 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Sorry I don't have more info about this bug. Looks like the stack got corrupted or something. But I did notice that the server was in the process of changing maps when this happened.
GDB
I used GDB to get this crash info. I'm a GDB newb so if there's something I can do to generate more information which might help you guys help me fix these bugs or future bugs please give me some tips on how to get it. I know I should probably be looking at some memory but I suck at reading raw hex and also I don't really know how to find the memory that could possibly help me with these bugs. Any tips on using GDB would be greatly appreciated!! I'm currently just attaching to the process, setting logging to on, and then waiting for the server to crash, doing a backtrace and a core dump.
Any help on this stuff is greatly appreciated!