delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Message-ID: | <17B78BDF120BD411B70100500422FC6309E20E@IIS000> |
From: | Bernard Dautrevaux <Dautrevaux AT microprocess DOT com> |
To: | "'Tilman Utz'" <Tilman DOT Utz AT studserv DOT uni-stuttgart DOT de>, |
Mumit Khan | |
<khan AT NanoTech DOT Wisc DOT EDU> | |
Cc: | Kevin Camera <kcamera AT bwrc DOT eecs DOT berkeley DOT edu>, |
"'cygwin AT cygwin DOT com'" | |
<cygwin AT cygwin DOT com> | |
Subject: | RE: GCC untrackable crashes |
Date: | Thu, 22 Feb 2001 14:24:49 +0100 |
MIME-Version: | 1.0 |
X-Mailer: | Internet Mail Service (5.5.2650.21) |
> -----Original Message----- > From: Tilman Utz [mailto:Tilman DOT Utz AT studserv DOT uni-stuttgart DOT de] > Sent: Thursday, February 22, 2001 10:33 AM > To: Mumit Khan > Cc: Kevin Camera; 'cygwin AT cygwin DOT com' > Subject: Re: GCC untrackable crashes > > > Hi, > I read the thread with much interest, because I have a > similar problem, a seg > fault within __size_of_stack_reserve. The following code: > > 1 #include <fstream> > 2 #include <iostream> > 3 #include <string> > 4 > 5 using namespace std; > 6 > 7 int main() > - 8 { > 9 ofstream opstream("c:\\example.log"); > 10 if(!opstream) { > 11 cerr << "File cannot be opened.\n"; > 12 > 13 return 1; > 14 } > 15 opstream << 3.1415; > 16 opstream << " " << 23 << '\n' << "Test stream."; > 17 opstream.close(); > 18 > 19 return 0; > 20 } > > (I already posted this some days ago)compiled with and > without mno-cygwin flag. > With cygwin target the compiled program runs without any > problem. The mno-cygwin > version crashes somewhere between line 15 and 16: Did you install the no-cygwin C++ libraries (as was explained a few weeks ago in this mailing list). Otherwise you may be mixing cygwin libstdc++ with no-cygwin runtime, something that most surely will produce a non-working executable (except if the latest cygwin net release correct this already?) HTH Bernard -------------------------------------------- Bernard Dautrevaux Microprocess Ingenierie 97 bis, rue de Colombes 92400 COURBEVOIE FRANCE Tel: +33 (0) 1 47 68 80 80 Fax: +33 (0) 1 47 88 97 85 e-mail: dautrevaux AT microprocess DOT com b DOT dautrevaux AT usa DOT net -------------------------------------------- -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |