Author Topic: [not a bug] 3.6.0.3: Segfault while switching windows, Ubuntu 12.04 x86_64  (Read 787 times)

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
It may well be irrelevant by now, but in case it's not... I crashed on 3.6.0.3 on my ATI box (see my signature for details) yesterday in a way I haven't had it before: I was switching windows (Alt-tab) and put the MegaGlest window into the background, and shortly after I did so, I got this:

MegaGlest output:
Code: [Select]
megaglest v3.6.0.3
Compiled using: GNUC: 40401 [64bit] on: Jan 24 2012 13:33:42
SVN: [Rev: 3080] - using STREFLOP
In [/home/softcoder/Code/megaglest/branches/release-3.6.0.3/source/glest_game/main/main.cpp::handleSIGSEGV Line: 652] Error detected: signal 11:
Error saved to logfile [/home/user1/.megaglest/error.log]
[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
megaglest: ../../src/xcb_io.c:178: dequeue_pending_request: Zusicherung »!xcb_xlib_unknown_req_in_deq« nicht erfüllt.
[2012-09-22 04:43:26] *ERROR* In [/home/softcoder/Code/megaglest/branches/release-3.6.0.3/source/glest_game/main/main.cpp::handleRuntimeError Line: 416] [In [/home/softcoder/Code/megaglest/branches/release-3.6.0.3/source/glest_game/main/main.cpp::handleSIGSEGV Line: 652] Error detected: signal 11:
] gameInitialized = 1, program = 0x2cb8d80
[2012-09-22 04:43:27] *ERROR* In [/home/softcoder/Code/megaglest/branches/release-3.6.0.3/source/glest_game/main/main.cpp::handleRuntimeError Line: 509] [In [/home/softcoder/Code/megaglest/branches/release-3.6.0.3/source/glest_game/main/main.cpp::handleSIGSEGV Line: 652] Error detected: signal 11:

Stack Trace:
./megaglest:Glest::Game::handleSIGSEGV(int) address [0x6d45c2] line: 657
/lib/x86_64-linux-gnu/libc.so.6:() address [0x7f28f9222480] line: 0
./megaglest:Shared::PlatformCommon::SimpleTaskThread::~SimpleTaskThread() address [0x999d75] line: 310
./megaglest:Shared::PlatformCommon::SimpleTaskThread::execute() address [0x99f53b] line: 403
./megaglest:Shared::Platform::Thread::beginExecution(void*) address [0x9c3e9f] line: 81
/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0:() address [0x7f28fbfd3fd5] line: 0
/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0:() address [0x7f28fc017999] line: 0
/lib/x86_64-linux-gnu/libpthread.so.0:() address [0x7f28fbdabe9a] line: 0
/lib/x86_64-linux-gnu/libc.so.6:clone() address [0x7f28f92de39d] line: 0
]
Aborted (core dumped)

GDB backtrace:
Code: [Select]
Core was generated by `./megaglest'.
Program terminated with signal 6, Aborted.
#0  0x00007f28f9222405 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
64   ../nptl/sysdeps/unix/sysv/linux/raise.c: Datei oder Verzeichnis nicht gefunden.
#0  0x00007f28f9222405 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x00007f28f9225b6b in __GI_abort () at abort.c:91
#2  0x00007f28f921b0ce in __assert_fail_base (fmt=<optimized out>, assertion=0x7f28fb22fe45 "!xcb_xlib_unknown_req_in_deq", file=0x7f28fb22fe32 "../../src/xcb_io.c", line=<optimized out>, function=<optimized out>) at assert.c:94
#3  0x00007f28f921b172 in __GI___assert_fail (assertion=0x7f28fb22fe45 "!xcb_xlib_unknown_req_in_deq", file=0x7f28fb22fe32 "../../src/xcb_io.c", line=178, function=0x7f28fb22ff40 "dequeue_pending_request") at assert.c:103
#4  0x00007f28fb1bd069 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#5  0x00007f28fb1be1dc in _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#6  0x00007f28fb91cb82 in DRI2SwapBuffers (dpy=0x2c6df60, drawable=94371859, target_msc=0, divisor=0, remainder=0, count=0x7f28e49dd278) at dri2.c:564
#7  0x00007f28fb91b9bb in dri2SwapBuffers (pdraw=0x2db0f60, target_msc=0, divisor=0, remainder=0) at dri2_glx.c:723
#8  0x00000000006f1a02 in Glest::Game::Program::loopWorker (this=0x2cb8d80) at /home/softcoder/Code/megaglest/branches/release-3.6.0.3/source/glest_game/main/program.cpp:360
#9  0x00000000006eeafd in Glest::Game::ExceptionHandler::handleRuntimeError(char const*) ()
#10 0x00000000006d45c2 in Glest::Game::handleSIGSEGV (sig=<optimized out>) at /home/softcoder/Code/megaglest/branches/release-3.6.0.3/source/glest_game/main/main.cpp:656
#11 <signal handler called>
#12 0x0000000000999d75 in Shared::PlatformCommon::SimpleTaskThread::~SimpleTaskThread (this=0x445ffd0, __in_chrg=<optimized out>) at /home/softcoder/Code/megaglest/branches/release-3.6.0.3/source/shared_lib/sources/platform/common/simple_threads.cpp:310
#13 0x000000000099f53b in Shared::PlatformCommon::SimpleTaskThread::execute (this=0x445ffd0) at /home/softcoder/Code/megaglest/branches/release-3.6.0.3/source/shared_lib/sources/platform/common/simple_threads.cpp:401
#14 0x00000000009c3e9f in Shared::Platform::Thread::beginExecution (data=0x43c4178) at /home/softcoder/Code/megaglest/branches/release-3.6.0.3/source/shared_lib/sources/platform/sdl/thread.cpp:79
#15 0x00007f28fbfd3fd5 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#16 0x00007f28fc017999 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#17 0x00007f28fbdabe9a in start_thread (arg=0x7f28e49e1700) at pthread_create.c:308
#18 0x00007f28f92de39d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#19 0x0000000000000000 in ?? ()
« Last Edit: 5 October 2012, 18:55:39 by tomreyn »
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 · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: 3.6.0.3: Segfault while switching windows, Ubuntu 12.04 x86_64
« Reply #1 on: 5 October 2012, 05:32:12 »
The crash seems to come from your video driver. I am unable to reproduce this using svn head.