Skip to content

Instantly share code, notes, and snippets.

@yashi
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yashi/cf9d691e4917b705fd1e to your computer and use it in GitHub Desktop.
Save yashi/cf9d691e4917b705fd1e to your computer and use it in GitHub Desktop.
$ gdb binaries/system/pyrogenesis_dbg
GNU gdb (Debian 7.7.1+dfsg-3) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from binaries/system/pyrogenesis_dbg...done.
(gdb) r -editor
Starting program: /home/yashi/src/0ad/binaries/system/pyrogenesis_dbg -editor
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
TIMER| LoadDLL: 922.61 ms
[New Thread 0x7fffe077f700 (LWP 5606)]
Cache: 500 (total: 15783) MiB
[New Thread 0x7fffdeb8d700 (LWP 5607)]
TIMER| InitVfs: 1.53479 ms
[New Thread 0x7fffde38c700 (LWP 5608)]
[New Thread 0x7fffddb8b700 (LWP 5609)]
[New Thread 0x7fffdd0ff700 (LWP 5610)]
[Thread 0x7fffdd0ff700 (LWP 5610) exited]
[New Thread 0x7fffdd0ff700 (LWP 5611)]
[New Thread 0x7fffdc8fe700 (LWP 5612)]
Sound: AlcInit success, using OpenAL Soft
[New Thread 0x7fffb8bff700 (LWP 5613)]
TIMER| CONFIG_Init: 10.1137 ms
ATTENTION: default value of option force_s3tc_enable overridden by environment.
[New Thread 0x7fffa55d1700 (LWP 5614)]
[New Thread 0x7fffa4dd0700 (LWP 5615)]
[New Thread 0x7fff97fff700 (LWP 5616)]
[New Thread 0x7fff977fe700 (LWP 5617)]
../src/unix/glx11.cpp(86): assert "xid" failed in SetCurrent(): window must be shown [in thread 7fffe077f700]
Call stack:
[00] wxOnAssert(char const*, int, char const*, char const*, wchar_t const*)
[01] wxGLContext::SetCurrent(wxGLCanvas const&) const
[02] 0x7fffe581c3b9
[03] Atlas_GLSetCurrent
[04] fSetCanvas /home/yashi/src/0ad/build/workspaces/gcc/../../../source/tools/atlas/GameInterface/Handlers/GraphicsSetupHandlers.cpp:177
[05] fSetCanvas_wrapper /home/yashi/src/0ad/build/workspaces/gcc/../../../source/tools/atlas/GameInterface/Handlers/GraphicsSetupHandlers.cpp:169
[06] RunEngine /home/yashi/src/0ad/build/workspaces/gcc/../../../source/tools/atlas/GameInterface/GameLoop.cpp:174
[07] 0x7ffff3c7f0a4
[08] clone
ATTENTION: default value of option force_s3tc_enable overridden by environment.
ogl.cpp(479): Assertion failed: "exts"
Assertion failed: "exts"
Location: ogl.cpp:479 (ogl_Init)
Call stack:
(0xadf6ea) /home/yashi/src/0ad/binaries/system/pyrogenesis_dbg() [0xadf6ea]
(0xa7683b) /home/yashi/src/0ad/binaries/system/pyrogenesis_dbg() [0xa7683b]
(0xa76cad) /home/yashi/src/0ad/binaries/system/pyrogenesis_dbg() [0xa76cad]
(0xa770ff) /home/yashi/src/0ad/binaries/system/pyrogenesis_dbg() [0xa770ff]
(0xa7ddc7) /home/yashi/src/0ad/binaries/system/pyrogenesis_dbg() [0xa7ddc7]
(0x9b3e31) /home/yashi/src/0ad/binaries/system/pyrogenesis_dbg() [0x9b3e31]
(0x9b3de7) /home/yashi/src/0ad/binaries/system/pyrogenesis_dbg() [0x9b3de7]
(0x979714) /home/yashi/src/0ad/binaries/system/pyrogenesis_dbg() [0x979714]
(0x7ffff3c7f0a4) /lib/x86_64-linux-gnu/libpthread.so.0(+0x80a4) [0x7ffff3c7f0a4]
(0x7ffff39b4c2d) /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7ffff39b4c2d]
errno = 0 (Try again later)
OS error = ?
[Thread 0x7fff977fe700 (LWP 5617) exited]
Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffe077f700 (LWP 5606)]
0x00007ffff3904077 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) up
#1 0x00007ffff3905458 in __GI_abort () at abort.c:89
89 abort.c: No such file or directory.
(gdb) bt
#0 0x00007ffff3904077 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007ffff3905458 in __GI_abort () at abort.c:89
#2 0x0000000000ae73ca in try_gui_display_error (
text=0x7fffb8172000 L"Assertion failed: \"exts\"\r\nLocation: ogl.cpp:479 (ogl_Init)\r\n\r\nCall stack:\r\n\r\n(0xadf6ea) /home/yashi/src/0ad/binaries/system/pyrogenesis_dbg() [0xadf6ea]\n(0xa7683b) /home/yashi/src/0ad/binaries/system/"..., manual_break=true, allow_suppress=true, no_continue=false)
at ../../../source/lib/sysdep/os/unix/unix.cpp:196
#3 0x0000000000ae74df in sys_display_error (
text=0x7fffb8172000 L"Assertion failed: \"exts\"\r\nLocation: ogl.cpp:479 (ogl_Init)\r\n\r\nCall stack:\r\n\r\n(0xadf6ea) /home/yashi/src/0ad/binaries/system/pyrogenesis_dbg() [0xadf6ea]\n(0xa7683b) /home/yashi/src/0ad/binaries/system/"..., flags=6) at ../../../source/lib/sysdep/os/unix/unix.cpp:215
#4 0x0000000000a76a85 in CallDisplayError (
text=0x7fffb8172000 L"Assertion failed: \"exts\"\r\nLocation: ogl.cpp:479 (ogl_Init)\r\n\r\nCall stack:\r\n\r\n(0xadf6ea) /home/yashi/src/0ad/binaries/system/pyrogenesis_dbg() [0xadf6ea]\n(0xa7683b) /home/yashi/src/0ad/binaries/system/"..., flags=6) at ../../../source/lib/debug.cpp:378
#5 0x0000000000a76cd4 in debug_DisplayError (description=0x7fffd8454b80 L"Assertion failed: \"exts\"", flags=6,
context=0x7fffe077e2c0, lastFuncToSkip=0x7fffd8251f88 L"debug_OnAssertionFailure",
pathname=0xc29d18 L"../../../source/lib/ogl.cpp", line=479, func=0xc2c7b0 <ogl_Init()::__func__> "ogl_Init",
suppress=0x106bc68 <ogl_Init()::suppress__>) at ../../../source/lib/debug.cpp:469
#6 0x0000000000a770ff in debug_OnAssertionFailure (expr=0xc2c4b8 L"exts",
suppress=0x106bc68 <ogl_Init()::suppress__>, file=0xc29d18 L"../../../source/lib/ogl.cpp", line=479,
func=0xc2c7b0 <ogl_Init()::__func__> "ogl_Init") at ../../../source/lib/debug.cpp:558
#7 0x0000000000a7ddc7 in ogl_Init () at ../../../source/lib/ogl.cpp:479
#8 0x00000000009b3e31 in AtlasMessage::fInitGraphics (msg=0x168ade0)
at ../../../source/tools/atlas/GameInterface/Handlers/GraphicsSetupHandlers.cpp:84
#9 0x00000000009b3de7 in AtlasMessage::fInitGraphics_wrapper (msg=0x168ade0)
at ../../../source/tools/atlas/GameInterface/Handlers/GraphicsSetupHandlers.cpp:64
#10 0x0000000000979714 in RunEngine (data=0x7fffffffe100)
at ../../../source/tools/atlas/GameInterface/GameLoop.cpp:174
#11 0x00007ffff3c7f0a4 in start_thread (arg=0x7fffe077f700) at pthread_create.c:309
#12 0x00007ffff39b4c2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
(gdb) f 7
#7 0x0000000000a7ddc7 in ogl_Init () at ../../../source/lib/ogl.cpp:479
479 ENSURE(exts); // else: called before OpenGL is ready for use
(gdb) p exts
$1 = 0x0
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment