Date: Thu, 22 Aug 1996 08:32:38 +0200 (IST) From: Eli Zaretskii To: randall williams Cc: djgpp AT delorie DOT com Subject: Re: memory overwriting itself?? In-Reply-To: <4ved7k$gps@news.ysu.edu> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 21 Aug 1996, randall williams wrote: > After several steps through directories, the program crashes and I > get usually SIGFPE, SIGBUS, or out of file handles. GDB showed me > the divide by zero problem and I found an index counter was 0. Can this problem be caused if your program runs out of file handles? If so, then you should know that the current version of `system' loses handles when you use redirection. There is a patch available on the DJGPP bug-tracking system (http:/www.delorie.com/djgpp/bugs/) which solves this bug. Get the library sources (v2/djlsr200.zip), patch the source of `system' (src/libc/ansi/stdlib/system.c), put it into libc.a and try linking your program again.