delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/02/22/11:13:50

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
Date: Thu, 22 Feb 2001 11:11:25 -0500
From: Christopher Faylor <cgf AT redhat DOT com>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: Re: GCC untrackable crashes
Message-ID: <20010222111125.D11175@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
References: <20010221221500 DOT A8646 AT redhat DOT com> <Pine DOT HPP DOT 3 DOT 96 DOT 1010222005522 DOT 20219N-100000 AT hp2 DOT xraylith DOT wisc DOT edu>
Mime-Version: 1.0
User-Agent: Mutt/1.3.11i
In-Reply-To: <Pine.HPP.3.96.1010222005522.20219N-100000@hp2.xraylith.wisc.edu>; from khan@NanoTech.Wisc.EDU on Thu, Feb 22, 2001 at 12:57:07AM -0600

On Thu, Feb 22, 2001 at 12:57:07AM -0600, Mumit Khan wrote:
>On Wed, 21 Feb 2001, Christopher Faylor wrote:
>
>> Hmm.  As someone who uses the compiler and debugger on an almost daily basis
>> I have to say that I have never seen this behavior on a program that was
>> compiled with debugging info (-g).
>
>Thanks to Kevin's post, here's the smallest buggy, but conforming C++,
>testcase I can come up with:
>
>  int
>  main ()
>  {
>    char *foo = "";
>    delete[] foo;
>  } 

When I compile this program with the net release of gcc and debug it with
the net release of gdb, it gets a SIGSEGV and stops.

I click on "View" and "Stack" and the output is perfectly understandable.
I haven't tried specifically with Cygwin 1.1.8 so maybe there is some kind
of inexplicable problem with that version of Cygwin.  If that is the case
then the Cygwin snapshots may work better for people.

cgf

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