User forums > Help
Can't debug - GDB segfaults
mdelfede:
--- Quote from: mmebane on September 12, 2006, 05:20:19 pm ---I'm using the latest SVN build on Windows XP, with MinGW 5.0.3 installer and latest MinGW candidates.
Anyway, every time I try to debug something, GDB crashes on me with a segfault, before I have a chance to do anything.
Code::Blocks is built with GCC 4.1.1, if that matters. I haven't tried rebuilding it with 3.4.5.
It doesn't seem to matter whether I compile my projects with 4.1.1 or 3.4.5.
--- End quote ---
hmmmmm... sorry if I am a bit off topic, but I'd like to know how you did manage to compile C::B and wxWidgets with GCC 4.1.1 on windows XP. I tried some days ago with 4.0.3 and it failed compiling. Where did you get GCC4.1.1 for mingw ?
Best Regards
Max
sethjackson:
Well I noticed that the path to your project is kinda long.....
Could you try creating a Hello World app on the desktop and try debugging that?
mmebane:
--- Quote from: mdelfede on September 13, 2006, 11:02:16 am ---hmmmmm... sorry if I am a bit off topic, but I'd like to know how you did manage to compile C::B and wxWidgets with GCC 4.1.1 on windows XP. I tried some days ago with 4.0.3 and it failed compiling. Where did you get GCC4.1.1 for mingw ?
Best Regards
Max
--- End quote ---
http://gda.utp.edu.co/~ceniza/
I think I built wxWidgets with 3.4.5, but I don't remember.
---
--- Quote from: sethjackson on September 13, 2006, 06:06:59 pm ---Well I noticed that the path to your project is kinda long.....
Could you try creating a Hello World app on the desktop and try debugging that?
--- End quote ---
--- Code: ---Building to ensure sources are up-to-date
Build succeeded
Selecting target: Debug
Adding source dir: C:\test\
Adding source dir: C:\test\
Adding file: .\test.exe
Starting debugger: done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb 6.3
Program received signal SIGSEGV, Segmentation fault.
In ntdll!RtlpWaitForCriticalSection () (ntdll.dll)
--- End code ---
EDIT: It doesn't seem to be CodeBlocks; I still get a segfault even when running gdb from the command line.
--- Code: ---C:\test>gdb test.exe
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-mingw32"...
(gdb) start
Breakpoint 1 at 0x40134c: file main.cpp, line 3.
Starting program: C:\test/test.exe
Program received signal SIGSEGV, Segmentation fault.
0x7c918fea in ntdll!RtlpWaitForCriticalSection () from ntdll.dll
(gdb) continue
Continuing.
main () at main.cpp:3
3 int main()
(gdb) continue
Continuing.
Hello world!
Program exited normally.
(gdb) quit
C:\test>
--- End code ---
Navigation
[0] Message Index
[*] Previous page
Go to full version