Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: wolfcry on April 30, 2010, 06:08:53 am

Title: Debugging Error
Post by: wolfcry on April 30, 2010, 06:08:53 am
Hello,

I searched for this and though I found a few people with the same error, they did not help me so I was hoping someone knew what was going on.

Everytime I try to debug a file, I get a message prompt telling me Signal SIGSEGV error and if I want to view the back trace. Nothing is ever in the back trace.

Here is the output to the window:

Code
Adding file: bin\Debug\template.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.7.50.20071127
Child process PID: 2512
Program received signal SIGSEGV, Segmentation fault.
Program received signal SIGSEGV, Segmentation fault.
Program received signal SIGSEGV, Segmentation fault.
Program received signal SIGSEGV, Segmentation fault.

The multiple SIGSEGV faults is due to me having to hit "no" on the message prompt 3 - 4 times before CB actually debugs.

Thanks all for your help.
Title: Re: Debugging Error
Post by: ollydbg on April 30, 2010, 06:46:02 am
You debugger it too old, please use a more recent debugger. (version > 7.0)
Title: Re: Debugging Error
Post by: wolfcry on April 30, 2010, 08:28:11 pm
Ok, this may be a silly question but how do I upgrade the debugger version?

I went to the MinGW website and downloaded the mingw-gdb debugger package, copied over the files from the package and over-wrote the originals contained in the C::B program directory and now I receive the following error associated with the gdb.exe file which is used to debug in C::B.

"This application has failed to start because libexpat-1.dll was not found. Re-installing the application may fix this problem."

Thanks.
Title: Re: Debugging Error
Post by: wolfcry on April 30, 2010, 10:54:56 pm
Nevermind, I found the necessary .dll file and everything is working as should be.

Thanks for your help.