Date: Sat, 26 May 2001 22:17:48 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: "Maverick" Message-Id: <3791-Sat26May2001221748+0300-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9 CC: djgpp AT delorie DOT com In-reply-to: (vhd@chello.at) Subject: Re: Annoying error References: Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: "Maverick" > Newsgroups: comp.os.msdos.djgpp > Date: Sat, 26 May 2001 10:16:07 GMT > > I just finished my first program with DJGPP, it does not much more than > calculate a few entries in an array off two other arrays. It compiles and > links without errors, however when I run the EXE-file, I get the following : > > ------------------------------------------------------------- > Exiting due to signal SIGSEGV > Page fault at eip = 000019d3, error = 0006 You are accessing memory with a bad pointer. Section 12.2 of the DJGPP FAQ list explains how to interpret this crash message and how to start debugging your program using this information. > And now for the funny thing. This error happens always when the EXE is > executed from the DOS-Prompt of Win98SE-Dos Box. When I launch it from RHIDE > (started in Win98SE-Dos Box) it sometimes works just fine, and sometimes > gives me out the same error as above. This is typical for using uninitialized pointers: you get the random garbage that happens to be in memory.