Message-ID: <37D87266.29BC6CF5@uswest.net> From: Josh Reed X-Mailer: Mozilla 4.04 [en] (Win95; U) MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: Program Crash References: <37D71D7D DOT A31105CD AT uswest DOT net> <7r7rcc$gs7$1 AT antares DOT lu DOT erisoft DOT se> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 40 Date: Thu, 09 Sep 1999 21:52:23 -0500 NNTP-Posting-Host: 209.180.52.106 X-Trace: news.uswest.net 936931563 209.180.52.106 (Thu, 09 Sep 1999 21:46:03 CDT) NNTP-Posting-Date: Thu, 09 Sep 1999 21:46:03 CDT Organization: U S WEST Interprise To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Martin Stromberg wrote: > 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"?. Well if I really wanted to find something I could use findutils or dir /s for that matter. Its not finding something that I am worried about, it is how can I write the code; how does that work? If somebody else has already done it, that doesn't mean I can't, does it? Or did I miss something. Josh