Date: Tue, 8 Apr 1997 13:53:20 +0300 (IDT) From: Eli Zaretskii To: Schuster 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.