delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/05/26/16:09:01

Date: Sat, 26 May 2001 22:17:48 +0300
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: "Maverick" <vhd AT chello DOT at>
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: <HnLP6.16992$iS2.597769@news.chello.at> (vhd@chello.at)
Subject: Re: Annoying error
References: <HnLP6.16992$iS2 DOT 597769 AT news DOT chello DOT at>
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

> From: "Maverick" <vhd AT chello DOT at>
> 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.

- Raw text -


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