Date: Mon, 27 Jan 1997 08:28:52 +0200 (IST) From: Eli Zaretskii To: Linley Henzell cc: djgpp AT delorie DOT com Subject: Re: DJGPP vs Borland C++ In-Reply-To: <32ECF799.74EF@olis.net.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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).