www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/22/01:35:51

Date: Thu, 22 Aug 1996 08:32:38 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: randall williams <ac387 AT yfn DOT ysu DOT edu>
Cc: djgpp AT delorie DOT com
Subject: Re: memory overwriting itself??
In-Reply-To: <4ved7k$gps@news.ysu.edu>
Message-Id: <Pine.SUN.3.91.960822082804.2237K-100000@is>
Mime-Version: 1.0

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.

- Raw text -


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