Author Topic: Debugging Error  (Read 3842 times)

Offline wolfcry

  • Multiple posting newcomer
  • *
  • Posts: 30
Debugging Error
« 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.
C::B Version = 10.5
OS = Microsquish XP

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5921
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Debugging Error
« Reply #1 on: April 30, 2010, 06:46:02 am »
You debugger it too old, please use a more recent debugger. (version > 7.0)
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline wolfcry

  • Multiple posting newcomer
  • *
  • Posts: 30
Re: Debugging Error
« Reply #2 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.
C::B Version = 10.5
OS = Microsquish XP

Offline wolfcry

  • Multiple posting newcomer
  • *
  • Posts: 30
Re: Debugging Error
« Reply #3 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.
C::B Version = 10.5
OS = Microsquish XP