Mail Archives: djgpp/1997/01/27/01:42:20
On Mon, 27 Jan 1997, Linley Henzell wrote:
> Well, I'm having some problems with a C program written with Borland C++
> 3.1 which refuses to work with DJGPP v2. It compiles fine, but every
> time I run it, it aborts with a SIGSEGV GPF. I have no idea why this
> happens, because it seems to choose a completely arbitrary point at
> which to abort (I checked with Symify), and my program contains nothing
> which I can imagine being objectionable (like pointers or dynamic memory
> allocation).
> Meanwhile, a little test program works okay with DJGPP.
I suggest a printf debugging session. Insert printf statements into your
program until you see where does it crash. It's amazing how sometimes
this age-old technique can put you back on track.
Posting the complete traceback printed when the program crashes could also
help people to give you hints about where to look. Please post the
traceback after running symify, even though you say the tracebacks are
different every run (maybe post a few of them).
- Raw text -