www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/27/01:42:20

Date: Mon, 27 Jan 1997 08:28:52 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Linley Henzell <zel AT olis DOT net DOT au>
cc: djgpp AT delorie DOT com
Subject: Re: DJGPP vs Borland C++
In-Reply-To: <32ECF799.74EF@olis.net.au>
Message-ID: <Pine.SUN.3.91.970127082529.7773G-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019