delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/03/14:56:09

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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, 3 Oct 2003 14:54:47 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Cc: billlist AT nycap DOT rr DOT com
Subject: Re: 2.95.3-10 streams cause seg-fault
Message-ID: <20031003185447.GD27393@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com, billlist AT nycap DOT rr DOT com
References: <5 DOT 2 DOT 0 DOT 9 DOT 0 DOT 20031003111130 DOT 0549a288 AT pop DOT biz DOT rr DOT com>
Mime-Version: 1.0
In-Reply-To: <5.2.0.9.0.20031003111130.0549a288@pop.biz.rr.com>
User-Agent: Mutt/1.4.1i

[redirecting to the correct mailing list]
On Fri, Oct 03, 2003 at 11:11:48AM -0400, William A. Hoffman wrote:
>The following program crashes when compiled with g++-2:
>
>---------start cyggcc295bug.cxx-------
>#include <fstream>
>
>int main()
>{
>  char buffer[1024];
>  std::ifstream fin("./cyggcc295bug.cxx");
>  if(fin)
>    {
>    fin.getline(buffer, 10); // Running a.exe crashes here.
>    return 0;
>    }
>  return 1;
>}
>---------end cyggcc295bug.cxx-------
>
>If you save the above program into  g++-2 cyggcc295bug.cxx
>
>Then try this:
>g++-2 cyggcc295bug.cxx
>./a.exe
>(seg fault)
>
>
>g++ cyggcc295bug.cxx
>./a.exe
>(works)
>
>It works when compiled with g++ (which is g++ 3.3.1)  
>
>There seem to be several reports of this bug :
>http://www.cygwin.com/ml/cygwin/2003-09/msg01533.html
>http://www.cygwin.com/ml/cygwin/2003-09/msg01831.html
>http://www.cygwin.com/ml/cygwin/2003-09/msg00994.html
>
>However, it has been suggested that the posters use the newer g++ (3.3).
>I acknowledge that it works with the 3.3.1 compiler.
>However, there are reasons to use gcc 2.95 based compilers.

Sorry, David, but the 2.95 kernel is essentially offered "as is" at this point.
I had not planned on releasing any new versions.

However, that said, if you do find a fix for this problem I'll be willing to
apply it and respin gcc.  I just am not going to be tracking down the problem
myself.

Sorry, but I barely have the time these days for gcc 3.3.1.  2.95* is off the
radar entirely.

cgf

--
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