delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/12/10/11:14:42

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 10 Dec 2004 08:14:22 -0800
From: Lester Ingber <ingber AT ingber DOT com>
To: cygwin AT cygwin DOT com
Subject: cygwin-gcc-fopen bug?
Message-ID: <20041210161422.GA2636@ingber.com>
Mime-Version: 1.0
User-Agent: Mutt/1.4.1i

I have a good-sized vanilla-C code that was running just fine a month
or two ago under XPPro/Cygwin and under SPARC/Solaris9, and STILL runs
just fine under SPARC/Solaris9.

I've been using the snapshot cygwin1-20041117.dll for my /bin/cygwin1.dll
since it was prepared to fix a bug in the now-current cygwin1.dll:
See http://cygwin.com/ml/cygwin/2004-11/msg00689.html .

All my other Cygwin files are the most current.  I use gcc OR g++ to
run my code, with OR without -mno-cygwin, and they were running fine a
month or two ago.

My C code under Cygwin (not under Solaris9) now bombs after 4 calls to
    if ((ptr_positions = fopen (dataFile, "r")) == NULL) {
       ...
Under DDD I can see that dataFile has gotten mangled and a NULL is now
in the middle of its name.

I tried this again, using the DOS cmd to replace cygwin1.dll with the
most current (not the snapshot cygwin1-20041117.dll), and now the code
bombs at the very first use of fopen, a DIFFERENT place than above:
  if ((Portfolio->ptr_err = fopen (infoFile, "a")) == NULL) {
     ...

Any suggestions would be appreciated.

Thanks.

Lester



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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