From: "Maverick" Newsgroups: comp.os.msdos.djgpp References: <3791-Sat26May2001221748+0300-eliz AT is DOT elta DOT co DOT il> Subject: Re: Annoying error Lines: 44 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Message-ID: Date: Sat, 26 May 2001 22:17:02 GMT NNTP-Posting-Host: 212.17.127.89 X-Complaints-To: abuse AT news DOT chello DOT at X-Trace: news.chello.at 990915422 212.17.127.89 (Sun, 27 May 2001 00:17:02 MET DST) NNTP-Posting-Date: Sun, 27 May 2001 00:17:02 MET DST Organization: Customers chello Austria To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I am stuck on this error... it doesn't really concern me, since I have now been trying to recreate the error once again (for half the day that is) and I wasn't able to. Funny is, I have not even touched the source code but recompiled and relinked it. It still works all fine... I made a change a few minutes ago to fill an array with zeros before working with it, so it doesn't hold garbage. My program was failing when working on that array... but maybe that's was my problem. The array would normally be a huge or far array, since it breaks the 65k limit I am used to... but since it compiled without any errors I thought it may be okay under DJGPP. Could this cause an error like I mentioned? Maverick Eli Zaretskii schrieb in im Newsbeitrag: 3791-Sat26May2001221748+0300-eliz AT is DOT elta DOT co DOT il... > > 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.