delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/09/20/13:11:33

From: "Tim Van Holder" <tim DOT van DOT holder AT pandora DOT be>
To: <djgpp-workers AT delorie DOT com>
Cc: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Subject: Re: freopen/_creat(w2k) interaction [was: Re: Build problems]
Date: Thu, 20 Sep 2001 19:10:08 +0200
Message-ID: <000d01c141f7$19be1620$33f8e0d5@pandora.be>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.2627
In-Reply-To: <1659-Wed19Sep2001164311+0300-eliz@is.elta.co.il>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> May I suggest, once again, to step with a debugger into the affected
> code and see what exactly fails there, and how?  It can't be terribly
> hard to find the problem, or at least come up with some information
> that will allow to guess what might be the reason.
I just tried that again, and remebered why the 'debug it' approach won't
work.  The problem relies on a subprogram getting FD 3 or 4 assigned,
but
if you run the debugger, IT will get FDs 3 and 4 (the subprogram usually
starts at FD 8 or so).  So the issue might be manifesting in the
debugger,
but you won't be able to debug it there.
I'll try to get a minimal program put together over the weekend
(annoyingly,
a program that fopen()s a couple files and fprintf()s to them does not
show
any problems), and then add printfs to it (and libc) to (hopefully)
catch
the place where things go wrong.

- Raw text -


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