delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/09/10:41:43

Date: Thu, 9 Sep 1999 09:23:28 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Josh Reed <obitus AT uswest DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: Program Crash
In-Reply-To: <37D71D7D.A31105CD@uswest.net>
Message-ID: <Pine.SUN.3.91.990909092312.6646M-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, 8 Sep 1999, Josh Reed wrote:

> I have a program that I compiled with DJGPP that dies
> half-way through execution.

Does it print registers' dump and call frame traceback?  If so, please
post them here (after running SYMIFY, see section 9.2 of the FAQ for
details).

> I used gdb on it and here is
> what it said:
> Program recieved signal SIGILL, Illegal instruction.
> 0x1600 in scan (path=Cannot access memory at address
> 0x2a2e2a64.) at audit.cpp:43
> 
> Line 43 in Audit.cpp:
> if (((DTA.ff_attrib >= 16) && (DTA.ff_attrib <= 31)) ||
> (DTA.ff_attrib >= 48))

Seems like your memory is trashed.  See that "Cannot access memory"
message from GDB?  It means a garbled pointer, and the address it
prints is surely garbled.  Try to find out how come the variable
`path' gets garbled, and you might unlock this problem.

Some of the techniques for debugging these problems are described in
section 12.2 of the FAQ; be sure to read that.

- Raw text -


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