Trying to Debug

I am running Ubuntu Linux and cross-compiling to Win32 with MinGW/g++. Compiling the program for Linux seems to work fine, but when I try to run the Win32 executable I get the following error:
Unhandled page fault on write access to 0x00667ab0 at address 0x7bc48208 (thread 0009), starting debugger...
err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x7bc48208


Is there a way to find, in the source code, where 0x00667ab0 and 0x7bc48208 are referenced? I'm trying to use the MinGW debugger, but I don't have a lot of experience with debugging ( or programming in general ).

Edit: Something I forgot to mention; here is the output from when I try to run the debugger:
Reading symbols from H:\Programming\C++\ABC/abc.exe...done.
(gdb) Exception condition detected on fd 0
error detected on stdin
Last edited on
That sounds to me like a Segmentation Fault, and considering that you're using stdin, it sounds like your input might b... nah, I won't theorize. If we could see the code, that would help a lot.

And it's possible. Try using a lot of breakpoints. Most good IDEs will have some way of adding them.

-Albatross
http://ubuntuforums.org/showthread.php?t=1490068

Appears to have been a wine problem.
Topic archived. No new replies allowed.