Author Topic: 3.9.1+git4634.1bd772a, Linux x86_64: SegF on duplicate kill signal  (Read 649 times)

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
What happened here is that I started the game with --connect=[IPv4] to connect to Typedef's game (which was then already running, so I was returned to the 'Join LAN game' screen). I then decided to host a game myself and clicked the button to initiate this, but a second later I changed my mind realizing I yet need to do something else. So I clicked the window's X button, but, as usual, this doesn't make the game shut down immediately but after ~15 seconds the user is made to wait in this case. I am an impatient user sometimes, though, so I hit Ctrl-F4 (and maybe also clicked the windows' X button) in a flawed attempt to make it shut down faster. It then actually did "shut down" a little bit faster with this SegF:

Code: (Terminal output) [Select]
megaglest v3.9.1
Compiled using: GNUC: 40801 [64bit] on: Jan 22 2014 19:05:56 platform: Linux-X64 endianness: little
GIT: [Rev: 4634.1bd772a] - using STREFLOP [SSE] - [no-denormals]
...

*ERROR* [2014-01-24 15:59:40] In [/home/user1/SCM/megaglest-source/source/glest_game/main/main.cpp::handleRuntimeError Line: 629] [In [/home/user1/SCM/megaglest-source/source/glest_game/main/main.cpp::handleSIGSEGV Line: 5602] Error detected: signal 11:
] gameInitialized = 1, program = 0x294a850

Code: (GDB) [Select]
...
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `./megaglest --connect=[redacted]'.
Program terminated with signal 11, Segmentation fault.
#0  0x00000000006f8364 in Glest::Game::Program::loopWorker (this=0x294a850) at /home/user1/SCM/megaglest-source/source/glest_game/main/program.cpp:407
407        if(this->programState->quitTriggered() == true) {
#0  0x00000000006f8364 in Glest::Game::Program::loopWorker (this=0x294a850) at /home/user1/SCM/megaglest-source/source/glest_game/main/program.cpp:407
#1  0x00000000006faf55 in Glest::Game::Program::loop (this=<optimized out>) at /home/user1/SCM/megaglest-source/source/glest_game/main/program.cpp:373
#2  0x00000000006cb2ca in Glest::Game::ExceptionHandler::handleRuntimeError (msg=msg@entry=0x7fb78a7f5780 "In [/home/user1/SCM/megaglest-source/source/glest_game/main/main.cpp::handleSIGSEGV Line: 5602] Error detected: signal 11:\n", getStackTraceString=getStackTraceString@entry=true) at /home/user1/SCM/megaglest-source/source/glest_game/main/main.cpp:688
#3  0x00000000006cb52f in Glest::Game::handleSIGSEGV (sig=<optimized out>) at /home/user1/SCM/megaglest-source/source/glest_game/main/main.cpp:5606
#4  <signal handler called>
#5  0x0000000000ac6425 in cleanup (this=0x3e055e0) at /home/user1/SCM/megaglest-source/source/shared_lib/sources/platform/common/simple_threads.cpp:470
#6  Shared::PlatformCommon::SimpleTaskThread::~SimpleTaskThread (this=0x3e055e0, __in_chrg=<optimized out>) at /home/user1/SCM/megaglest-source/source/shared_lib/sources/platform/common/simple_threads.cpp:431
#7  0x0000000000ac6849 in Shared::PlatformCommon::SimpleTaskThread::~SimpleTaskThread (this=0x3e055e0, __in_chrg=<optimized out>) at /home/user1/SCM/megaglest-source/source/shared_lib/sources/platform/common/simple_threads.cpp:451
#8  0x0000000000b27742 in Shared::Platform::ThreadGarbageCollector::cleanupPendingThread (thread=0x3e055e0) at /home/user1/SCM/megaglest-source/source/shared_lib/sources/platform/sdl/thread.cpp:120
#9  0x0000000000b27e49 in cleanupPendingThreads (this=0x7fb774001e00) at /home/user1/SCM/megaglest-source/source/shared_lib/sources/platform/sdl/thread.cpp:52
#10 Shared::Platform::ThreadGarbageCollector::execute (this=0x7fb774001e00) at /home/user1/SCM/megaglest-source/source/shared_lib/sources/platform/sdl/thread.cpp:78
#11 0x0000000000b26d13 in Shared::Platform::Thread::beginExecution (data=data@entry=0x7fb774001e00) at /home/user1/SCM/megaglest-source/source/shared_lib/sources/platform/sdl/thread.cpp:295
#12 0x00007fb7af03cac8 in SDL_RunThread (data=0x7fb774002ed0) at ../../src/thread/SDL_thread.c:204
#13 0x00007fb7af07c189 in RunThread (data=<optimized out>) at ../../src/thread/pthread/SDL_systhread.c:47
#14 0x00007fb7aee14f6e in start_thread (arg=0x7fb78a7fc700) at pthread_create.c:311
#15 0x00007fb7ab1139cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·