delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/08/07:16:48

Date: Tue, 8 Apr 1997 13:53:20 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Schuster <Schuster AT eev DOT e-technik DOT uni-erlangen DOT de>
cc: djgpp AT delorie DOT com
Subject: Re: Compiler causes program crash
In-Reply-To: <33496D8B.6123@eev.e-technik.uni-erlangen.de>
Message-ID: <Pine.SUN.3.91.970408135229.1046F-100000@is>
MIME-Version: 1.0

On Mon, 7 Apr 1997, Schuster wrote:

> But after a system reboot my program runs without problems and can be
> envoked several times without any problems.
> 
> As soon as I start the compiler again, the program crashes again.
> Any ideas?

The most probable cause is that you are dereferencing a pointer into
an uninitialized memory.  After a reboot, most of memory is zeroed,
but after you run a compiler, it contains random values which are left
over from the compiler run.

You should debug your program near the point where it crashes to find
the exact reason.  The register listing and the stack traceback
printed when the program crashes are the point to begin your
debugging.  Use the `symify' program (described in section 9.2 of the
DJGPP FAQ list) to translate those numbers into a human-readable
stuff.

- Raw text -


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