Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <3A94DCDB.38FDDD20@studserv.uni-stuttgart.de> Date: Thu, 22 Feb 2001 10:33:15 +0100 From: Tilman Utz X-Mailer: Mozilla 4.7 [de] (Win98; I) X-Accept-Language: de,en,fr MIME-Version: 1.0 To: Mumit Khan CC: Kevin Camera , "'cygwin AT cygwin DOT com'" Subject: Re: GCC untrackable crashes References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 2 #include 3 #include 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: 15 opstream << 3.1415; - 0x401304 : add $0xfffffffc,%esp - 0x401307 : fldl 0x401240 - 0x40130d : sub $0x8,%esp - 0x401310 : fstpl (%esp,1) - 0x401313 : lea 0xffffff80(%ebp),%eax - 0x401316 : lea 0x50(%eax),%edx - 0x401319 : push %edx - 0x40131a : call 0x403824 <__ls__7ostreamd> - 0x40131f : add $0x10,%esp 16 opstream << " " << 23 << '\n' << more exactly: after the function call (). As I started using gdb two days ago, I'm pretty clueless, what all these numbers and adresses want to tell me... So, I'd be very grateful, if anyone could tell me if this is a known problem (maybe any workaround?) and more generally, how to tackle such problems, handle the gdb output... because I don't just want to delegate my problems, I'm always willing to solve them for myself (...and I hope, the last one wasn't too OT for this list) Thanks Tilman -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple