delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/09/08:30:06

From: eplmst AT lu DOT erisoft DOT se (Martin Stromberg)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Program Crash
Date: 9 Sep 1999 08:33:16 GMT
Organization: Ericsson Erisoft AB, Sweden
Lines: 36
Message-ID: <7r7rcc$gs7$1@antares.lu.erisoft.se>
References: <37D71D7D DOT A31105CD AT uswest DOT net>
NNTP-Posting-Host: propus-144.lu.erisoft.se
X-Newsreader: TIN [version 1.2 PL2]
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Josh Reed (obitus AT uswest DOT net) wrote:
: I have a program that I compiled with DJGPP that dies
: half-way through execution.  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))

: Any help will be appreciated.

: Josh

: PS Tell me if you want me to post the whole function.  It is
: a recursive function that is suppose to find any file
: matching the search string specified and display the
: filename and path to the screen.  Line 43 is testing whether
: the file found is a directory that it can look in.

"0x2a2e2a64" looks very much a part of a search expression. Translated to
ASCII it's "*.*d". Looks familiar?

It's likely that you overflowed your stack. This is of course just 
speculation.


As for file finding, why not install findutils and use "find /some/dir
-type f -iname 'd*' -print"?.


Right,

							MartinS

- Raw text -


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