Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » GDB crashing

This thread is locked; no one can reply to it. rss feed Print
 1   2 
GDB crashing
Chris Katko
Member #1,881
January 2002
avatar

How is GDB crashing? Illegal operation / terminated by windows, or does it say internal error detected? Because you can dump a core in GDB according to this:

https://sourceware.org/bugzilla/show_bug.cgi?id=7396

Quote:

If gdb 5.3.91 still has a problem, let gdb generate a core file
(answer 'y' to the question about generating a core dump),
and then do:

gdb gdb core
(gdb) backtrace

When I was googling your error messages..

-----sig:
“Programs should be written for people to read, and only incidentally for machines to execute.” - Structure and Interpretation of Computer Programs
"Political Correctness is fascism disguised as manners" --George Carlin

raynebc
Member #11,908
May 2010

The gdb use to analyze core files seems like it's just to debug a previously-crashed program's memory image at the time of the crash. I didn't immediately think Windows would build these memory dumps, but apparently changing a Windows setting and performing a registry hack will enable it:
https://software.intel.com/en-us/articles/how-do-you-generate-a-core-dump-file-to-help-diagnosing-software-crash

I wouldn't think this approach gives different information than attaching to a still-alive crashed process.

I'll wait for MinGW to add me to their mailing list so I can try to send them the gdb information.

Edit: They let me into the mailing list so I posted the information I was advised to collect via GDB in an email.

Edit 2: It was suggested that I try a newer GDB build from ezwinports. It took a little bit of trial and error, but it seems to work properly and doesn't crash when the Windows file browser dialog is launched.

 1   2 


Go to: