General (hostname) AKA buddha (list on masterserver) is a new headless server backed by a virpus.com Xen PV running Ubuntu 13.10 saucy x86_64. It has 512 MB RAM and 1 virtual core available to work with. The headless game server was kindly (and properly) installed by Atze as per the Wiki yesterday, later I copied my self-compiled (on atibox, which runs the same OS version/architecture) MegaGlest binary (3.9.1-dev+4588.aee2417) to it to upgrade it and restarted it.
Typedef played a game there today and - upon me asking for the series of events - reported (rough paraphrased translation from German):
I wasn't aware it crashed. Vash, the other played, got disconnected - I think due to a timeout. I then played the game to its very end and, as far as I can remember, finished it normally.
Game output:
Tue Jan 7 16:08:54 UTC 2014
Starting server...
gamedir [/home/megaglest/megaglest-3.9.0]
Looking for LDCONFIG []...
LDCONFIG environment variable is not set...
Found LDCONFIG in /sbin [/sbin/ldconfig]...
default library [/home/megaglest/megaglest-3.9.0/lib/libopenal.so.1] was found in [/usr/lib/x86_64-linux-gnu/libopenal.so.1]
default library [/home/megaglest/megaglest-3.9.0/lib/libdirectfb-1.2.so.0] is missing, attempting to find and link to a newer version if available...
default library [/home/megaglest/megaglest-3.9.0/lib/libfusion-1.2.so.0] is missing, attempting to find and link to a newer version if available...
default library [/home/megaglest/megaglest-3.9.0/lib/libdirect-1.2.so.0] is missing, attempting to find and link to a newer version if available...
default library [/home/megaglest/megaglest-3.9.0/lib/libjpeg.so.62] is missing, attempting to find and link to a newer version if available...
default library [/home/megaglest/megaglest-3.9.0/lib/libpng15.so.15] is missing, attempting to find and link to a newer version if available...
new library link [/lib/x86_64-linux-gnu/libpng12.so.0] pointed to from [/home/megaglest/megaglest-3.9.0/lib/libpng15.so.15]
default library [/home/megaglest/megaglest-3.9.0/lib/libcurl.so.4] was found in [/usr/lib/x86_64-linux-gnu/libcurl.so.4]
default library [/home/megaglest/megaglest-3.9.0/lib/libxerces-c-3.1.so] is missing, attempting to find and link to a newer version if available...
new library link [/usr/lib/libxerces-c.so.28] pointed to from [/home/megaglest/megaglest-3.9.0/lib/libxerces-c-3.1.so]
default library [/home/megaglest/megaglest-3.9.0/lib/libicudata.so.40] is missing, attempting to find and link to a newer version if available...
new library link [/usr/lib/x86_64-linux-gnu/libicudata.so.48] pointed to from [/home/megaglest/megaglest-3.9.0/lib/libicudata.so.40]
default library [/home/megaglest/megaglest-3.9.0/lib/libicuuc.so.40] is missing, attempting to find and link to a newer version if available...
new library link [/usr/lib/x86_64-linux-gnu/libicuuc.so.48] pointed to from [/home/megaglest/megaglest-3.9.0/lib/libicuuc.so.40]
default library [/home/megaglest/megaglest-3.9.0/lib/libGLEW.so.1.5] is missing, attempting to find and link to a newer version if available...
new library link [/usr/lib/x86_64-linux-gnu/libGLEW.so.1.8] pointed to from [/home/megaglest/megaglest-3.9.0/lib/libGLEW.so.1.5]
default library [/home/megaglest/megaglest-3.9.0/lib/libGLEW.so.1.5] is missing, attempting to find and link to a newer version if available...
default library [/home/megaglest/megaglest-3.9.0/lib/libogg.so.0] was found in [/usr/lib/x86_64-linux-gnu/libogg.so.0]
default library [/home/megaglest/megaglest-3.9.0/lib/libvorbis.so.0] was found in [/usr/lib/x86_64-linux-gnu/libvorbis.so.0]
default library [/home/megaglest/megaglest-3.9.0/lib/libvorbisfile.so.3] was found in [/usr/lib/x86_64-linux-gnu/libvorbisfile.so.3]
default library [/home/megaglest/megaglest-3.9.0/lib/libfontconfig.so.1] was found in [/usr/lib/x86_64-linux-gnu/libfontconfig.so.1]
default library [/home/megaglest/megaglest-3.9.0/lib/libfreetype.so.6] was found in [/usr/lib/x86_64-linux-gnu/libfreetype.so.6]
default library [/home/megaglest/megaglest-3.9.0/lib/libgnutls.so.26] was found in [/usr/lib/x86_64-linux-gnu/libgnutls.so.26]
default library [/home/megaglest/megaglest-3.9.0/lib/libldap_r-2.4.so.2] was found in [/usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2]
default library [/home/megaglest/megaglest-3.9.0/lib/libresolv.so.2] was found in [/lib/x86_64-linux-gnu/libresolv.so.2]
default library [/home/megaglest/megaglest-3.9.0/lib/liblua5.1.so.0] is missing, attempting to find and link to a newer version if available...
default library [/home/megaglest/megaglest-3.9.0/lib/libftgl.so.2] is missing, attempting to find and link to a newer version if available...
default library [/home/megaglest/megaglest-3.9.0/lib/libircclient.so.1] is missing, attempting to find and link to a newer version if available...
default library [/home/megaglest/megaglest-3.9.0/lib/libdl.so.2] was found in [/lib/x86_64-linux-gnu/libdl.so.2]
default library [/home/megaglest/megaglest-3.9.0/lib/libvlccore.so.5] is missing, attempting to find and link to a newer version if available...
default library [/home/megaglest/megaglest-3.9.0/lib/libvlc.so.5] is missing, attempting to find and link to a newer version if available...
default library [/home/megaglest/megaglest-3.9.0/lib/libgcrypt.so.11] was found in [/lib/x86_64-linux-gnu/libgcrypt.so.11]
Disabled reading from console [vps]
Forcing quit after game has completed [exit]
megaglest v3.9.1-dev
Compiled using: GNUC: 40201 [64bit] on: Jan 6 2014 02:09:31 platform: Linux-X64 endianness: little
GIT: [Rev: 4588.aee2417] - using STREFLOP [SSE] - [no-denormals]
Waiting for players to join and start a game...
Headless server is now running...
To shutdown type: quit
All commands require you to press ENTER
Trying to set map to [domination_isles]. Current map is [conflict]
Trying to set map to [forest_for_four]. Current map is [domination_isles]
Trying to set map to [eight_gradient]. Current map is [forest_for_four]
Trying to set map to [four_ways]. Current map is [eight_gradient]
map not found on this server
mapFile>gameSettings [four_ways] > [eight_gradient]
switching map from [four_ways] to [fracture]
Trying to set map to [eight_rivers]. Current map is [fracture]
Trying to set map to [grandezza]. Current map is [eight_rivers]
Trying to set map to [end_times]. Current map is [grandezza]
Trying to set map to [hells_clam]. Current map is [end_times]
Trying to set map to [fight_4_your_golden_right]. Current map is [hells_clam]
Trying to set map to [highcliff]. Current map is [fight_4_your_golden_right]
Trying to set map to [five_on_three]. Current map is [highcliff]
Trying to set map to [five_on_three]. Current map is [five_on_three]
Trying to set map to [five_on_three]. Current map is [five_on_three]
*ERROR* SOCKET WRITE TIMEOUT In [/home/user1/SCM/megaglest-source/source/shared_lib/sources/platform/posix/socket.cpp::isWritable Line: 1786] i = 0 sock = 7 [190.52.189.210]
*ERROR* SOCKET WRITE TIMEOUT In [/home/user1/SCM/megaglest-source/source/shared_lib/sources/platform/posix/socket.cpp::isWritable Line: 1786] i = 0 sock = 10 [88.64.116.61]
Starting a new game...
Game unique identifier is: 0205f086-77b6-11e3-bd3d-3fdb4604f2a3
New game has started...
== Current in-game stats (interval 600) ==
Render FPS: -1[-1]
Update FPS: 0[-1]
Time: 7.50 [0.00]
Log buffer count: 0
UnitRangeCellsLookupItemCache: pos [0] size [0] range [0][0] total KB: 0
ExploredCellsLookupItemCache: pos [37] sight [37] [17061][4393] total KB: 171
FowAlphaCellsLookupItemCache: surface count [0] total KB: 0
Selection type: color
Color picking used color list size: 5646
Map: five_on_three
Tileset: desert4
Techtree: megapack
Frame count:0
Total unit count: 37
Switching masterserver admin to slot#1...
Game finished...
Player: *AI* Vash is on the winning team #: 0
Player: typedef is on the winning team #: 0
In [/home/user1/SCM/megaglest-source/source/glest_game/main/main.cpp::handleSIGSEGV Line: 5602] Error detected: signal 11:
Error saved to logfile [/home/megaglest/.megaglest/error.log]
Segmentation fault (core dumped)
ERROR: Server has quit unexpectedly.
error.log:
[2014-01-07 16:20:07] Runtime Error information:
======================================================
In [/home/user1/SCM/megaglest-source/source/glest_game/main/main.cpp::handleSIGSEGV Line: 5602] Error detected: signal 11:
Stack Trace:
./megaglest:Glest::Game::ExceptionHandler::handleRuntimeError(char const*, bool)address [0x769d33] line: 638
./megaglest() [0x7d0ea3]address [0x7d0ea3]
/lib/x86_64-linux-gnu/libc.so.6:()address [0x7f8d67a6bff0] line: 0
[0x3000720]address [0x3000720] line: 0
gdb backtrace:
[code]$ gdb -q -n -ex "bt" -batch megaglest core
[New LWP 3461]
[New LWP 3453]
[New LWP 3452]
warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `./megaglest --ini-path=./ --data-path=./ --headless-server-mode=vps,exit'.
Program terminated with signal 11, Segmentation fault.
#0 0x0000000000000201 in ?? ()
#0 0x0000000000000201 in ?? ()
#1 0x000000000076a27d in Glest::Game::ExceptionHandler::handleRuntimeError (msg=<optimized out>, getStackTraceString=<optimized out>) at /home/user1/SCM/megaglest-source/source/glest_game/main/main.cpp:723
#2 0x00000000007d0ea3 in Glest::Game::handleSIGSEGV (sig=11) at /home/user1/SCM/megaglest-source/source/glest_game/main/main.cpp:5606
#3 <signal handler called>
#4 0x0000000003000720 in ?? ()
#5 0x0000000000b2f3e3 in Glest::Game::ConnectionSlotThread::execute (this=0x3000db0) at /home/user1/SCM/megaglest-source/source/glest_game/network/connection_slot.cpp:240
#6 0x0000000000e2b35e in Shared::Platform::Thread::beginExecution (data=data@entry=0x3000db0) at /home/user1/SCM/megaglest-source/source/shared_lib/sources/platform/sdl/thread.cpp:295
#7 0x00007f8d6c050ac8 in SDL_RunThread (data=0x3001e20) at ../../src/thread/SDL_thread.c:204
#8 0x00007f8d6c090189 in RunThread (data=<optimized out>) at ../../src/thread/pthread/SDL_systhread.c:47
#9 0x00007f8d6be28f6e in start_thread (arg=0x7f8d561e5700) at pthread_create.c:311
#10 0x00007f8d67b2f9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113
Since this backtrace is very short, and this is about threads, maybe this one is more useful:
$ gdb -q -n -ex "thread apply all bt" -batch megaglest core
[New LWP 3461]
[New LWP 3453]
[New LWP 3452]
warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `./megaglest --ini-path=./ --data-path=./ --headless-server-mode=vps,exit'.
Program terminated with signal 11, Segmentation fault.
#0 0x0000000000000201 in ?? ()
Thread 3 (Thread 0x7f8d6c4c87c0 (LWP 3452)):
#0 0x000000000076aca1 in Glest::Game::cleanupProcessObjects () at /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/ext/new_allocator.h:110
#1 0x00000000007d0f8e in Glest::Game::glestMainSEHWrapper (argc=<optimized out>, argv=<optimized out>) at /home/user1/SCM/megaglest-source/source/glest_game/main/main.cpp:5700
#2 0x00000000007d1121 in Glest::Game::glestMainWrapper (argc=4, argv=0x7fff2f9bd998) at /home/user1/SCM/megaglest-source/source/glest_game/main/main.cpp:5770
#3 0x00007f8d67a56de5 in __libc_start_main (main=0x7d1640 <main(int, char**)>, argc=4, ubp_av=0x7fff2f9bd998, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff2f9bd988) at libc-start.c:260
#4 0x00000000004e9ca1 in _start ()
Thread 2 (Thread 0x7f8d5ead7700 (LWP 3453)):
#0 0x00007f8d6be3041d in nanosleep () at ../sysdeps/unix/syscall-template.S:81
#1 0x00007f8d6c0925e9 in SDL_Delay (ms=<optimized out>) at ../../src/timer/unix/SDL_systimer.c:118
#2 0x00007f8d6c092622 in RunTimer (unused=0x7f8d5ead6db0, unused@entry=0x0) at ../../src/timer/unix/SDL_systimer.c:203
#3 0x00007f8d6c050ac8 in SDL_RunThread (data=0x2f077d0) at ../../src/thread/SDL_thread.c:204
#4 0x00007f8d6c090189 in RunThread (data=<optimized out>) at ../../src/thread/pthread/SDL_systhread.c:47
#5 0x00007f8d6be28f6e in start_thread (arg=0x7f8d5ead7700) at pthread_create.c:311
#6 0x00007f8d67b2f9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113
Thread 1 (Thread 0x7f8d561e5700 (LWP 3461)):
#0 0x0000000000000201 in ?? ()
#1 0x000000000076a27d in Glest::Game::ExceptionHandler::handleRuntimeError (msg=<optimized out>, getStackTraceString=<optimized out>) at /home/user1/SCM/megaglest-source/source/glest_game/main/main.cpp:723
#2 0x00000000007d0ea3 in Glest::Game::handleSIGSEGV (sig=11) at /home/user1/SCM/megaglest-source/source/glest_game/main/main.cpp:5606
#3 <signal handler called>
#4 0x0000000003000720 in ?? ()
#5 0x0000000000b2f3e3 in Glest::Game::ConnectionSlotThread::execute (this=0x3000db0) at /home/user1/SCM/megaglest-source/source/glest_game/network/connection_slot.cpp:240
#6 0x0000000000e2b35e in Shared::Platform::Thread::beginExecution (data=data@entry=0x3000db0) at /home/user1/SCM/megaglest-source/source/shared_lib/sources/platform/sdl/thread.cpp:295
#7 0x00007f8d6c050ac8 in SDL_RunThread (data=0x3001e20) at ../../src/thread/SDL_thread.c:204
#8 0x00007f8d6c090189 in RunThread (data=<optimized out>) at ../../src/thread/pthread/SDL_systhread.c:47
#9 0x00007f8d6be28f6e in start_thread (arg=0x7f8d561e5700) at pthread_create.c:311
#10 0x00007f8d67b2f9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113