This server is one core, 1GB running the latest Ubuntu.
I've searched the forums but haven't found anyone experiencing this problem. I am using my virtual server to host the game Jedi Knight:Jedi Academy based on the Quake 3 engine. The issue is after about 12-14 hours of running the application will crash with the exit code of 139. This means its a segment fault (11) but it was crashed/closed by the OS (+128) and not within the application.
It's not much to go on, but here's the error I see: -
/home/knights/jka/GameData/knights.sh: line 62: 4123 Segmentation fault (core dumped) ./openjkded.i386 +set com_hunkmegs 256 +set logfile "3" +set fs_basepath ~/jka/GameData +set fs_homepath ~/jka/GameData +set sv_pure "1" +set fs_game japlus +exec krservconfig.cfg +set net_port "29070"
knights.sh = my script
./openjkded.i386 = the executable
and all that stuff after that are the parameters.
And my script responds with: -
JKA server crashed with exit code 139. Mon Sep 2 20:38:48 CDT 2013 respawning...
This is the thing though, it takes something like 14 hours to crash the first time, but if I fire the application up again it will crash in under 10 minutes, and will repeated do so until I sudo reboot. This shows it cannot be the application as a reload should give it another 14 hours. What utilities can I use to diagnose what's happening? I've just started running top and vmstat each hour for the last few hours, but it hasn't crashed yet for me judge what I am looking for. Would running out of RAM somehow do this? (Maybe from a memory leak in the application.) Also, it would appear the swap file is not active (in that the utility free always returns 0's in the swap values).
Even if this app is using/leaking memory, surely it crashing would free that? Thus I could run it again without needing to reboot the whole box.
Thanks for any help, and let me know what further info I can provide !
Cheers
Jonathan

