I have been working hard on my game the last couple of weeks and I am just getting to setting up physics using Cobra's irrBullet wrapper. For a short while now my debugger in Codeblocks has been acting up. Recently for only my main game project the debugger would ignore my breakpoints, and seemingly exit the program altogether for no reason. It finally came to a head when I was trying to figure out the fate of one of my pointers.
My application builds, links, and runs without issue when I'm just running it. When I try to run my application with the debugger (a fancy frontend for GDB) I get this:
Code: Select all
PATH=.;E:\CodeBlocks\irrlicht-1.6\lib\Linux;E:\CodingBucket\irrlicht-1.7.1\lib\Win32-gcc;E:\CodingBucket\irrBullet-0.1.6\lib\Release;E:\CodingBucket\irrBullet-0.1.6\lib\;E:\CodeBlocks\MinGW\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;F:\Program Files\doxygen\bin;C:\Program Files\Bazaar
Command-line: E:\CodeBlocks\MinGW\bin\gdb.exe -nx -fullname -quiet -args bin/Debug/syzygy.exe
Working dir : E:\CodeBlocks\syzygy\
> set prompt >>>>>>cb_gdb:
(gdb) >>>>>>cb_gdb:
> show version
GNU gdb 6.8
Copyright (C) 2008 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 "i686-pc-mingw32".
>>>>>>cb_gdb:
> set confirm off
>>>>>>cb_gdb:
> set width 0
>>>>>>cb_gdb:
> set height 0
>>>>>>cb_gdb:
> set breakpoint pending on
>>>>>>cb_gdb:
> set print asm-demangle on
>>>>>>cb_gdb:
> set unwindonsignal on
>>>>>>cb_gdb:
> set debugevents on
>>>>>>cb_gdb:
> set new-console on
>>>>>>cb_gdb:
> set disassembly-flavor att
>>>>>>cb_gdb:
> catch throw
Catchpoint 1 (throw)
>>>>>>cb_gdb:
> source E:\CodeBlocks\share\codeblocks/scripts/stl-views-1.0.3.gdb
>>>>>>cb_gdb:
> directory E:/CodeBlocks/syzygy/
>>>>>>cb_gdb:
> run
gdb: win32_init_thread_list
[New thread 3576.0xe3c]
Catchpoint 1 (exception thrown)
__static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at ../../CodingBucket/irrlicht-1.7.1/include/IQ3Shader.h:21
E:/CodeBlocks/syzygy/../../CodingBucket/irrlicht-1.7.1/include/IQ3Shader.h:21:462:beg:0x413183
>>>>>>cb_gdb:
> set debugevents off
>>>>>>cb_gdb:
> info locals
No locals.
>>>>>>cb_gdb:
> info args
__initialize_p = 1
__priority = 65535
>>>>>>cb_gdb:
> whatis world
No symbol "world" in current context.
>>>>>>cb_gdb:
> output world
No symbol "world" in current context.
>>>>>>cb_gdb:
> bt 30
#0 __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at ../../CodingBucket/irrlicht-1.7.1/include/IQ3Shader.h:21
#1 0x004131bf in global constructors keyed to _ZN8WellnessC2Ev () at E:/CodeBlocks/syzygy/wellness.cpp:225
#2 0x00425152 in __do_global_ctors () at ../../CodingBucket/irrlicht-1.7.1/include/IQ3Shader.h:21
#3 0x00401095 in __mingw_CRTStartup ()
#4 0x00401148 in mainCRTStartup ()
>>>>>>cb_gdb:
> x/32xb 0x0
Cannot access memory at address 0x0
0x0: >>>>>>cb_gdb:
> quit
I've done some reading around and supposedly this type of error is linked to multi threading, but after I make sure nothing is linking except Irrlicht, it still occurs.
Any clue what it may be..?