delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/02/21/00:01:37

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: <711F6B80B5B4D211BA900090272AB7649C420A@noyce.eecs.berkeley.edu>
From: Kevin Camera <kcamera AT bwrc DOT eecs DOT berkeley DOT edu>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Cc: Kevin Camera <kcamera AT bwrc DOT eecs DOT berkeley DOT edu>
Subject: GCC untrackable crashes
Date: Tue, 20 Feb 2001 21:00:59 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)

I have spent days on this and gotten nowhere.  If anyone can help, I would
appreciate it greatly...

I am compiling a program which compiles and runs perfectly on all versions
of GCC on Solaris and Linux.  When I build the exact same code using the
latest Cygwin version (and as far back as B20), the executable crashes with
a seg fault.  GDB tells me this:

****************************************************
Program received signal SIGSEGV, Segmentation fault.
0x6107292d in _size_of_stack_reserve__ ()
(gdb) bt
#0  0x6107292d in _size_of_stack_reserve__ ()
Cannot access memory at address 0x2000000
****************************************************

So there's not much for me to tell.  After a lot of single-stepping by hand,
I noticed that it was crashing while trying to "delete" an array.  I traced
all the addresses, and the memory was fine (it was created with "new" at a
valid address).  In vain, I just removed the call to delete, and then I got
the exact same crash (at a different instruction, of course), this time at a
call to ofstream.close().

In both cases, the fault occurred arbitrarily (there were many other
successful calls to delete and ofstream.close, and nothing different about
the fatal ones).  I really don't know what else to do.

Thanks,
Kevin Camera
kcamera AT eecs DOT berkeley DOT edu

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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