delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/06/23/12:55:51

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
From: "Dave Korn" <dk AT artimi DOT com>
To: "'Raul Lopez'" <raulgve55 AT hotmail DOT com>, <cygwin AT cygwin DOT com>
Subject: RE: Debugging help with cygwin1!_alloca ()
Date: Wed, 23 Jun 2004 17:54:48 +0100
MIME-Version: 1.0
In-Reply-To: <BAY7-F123ez6VFmdNVr000372ca@hotmail.com>
Message-ID: <NUTMEGpgTFur2iz2Mb100000516@NUTMEG.CAM.ARTIMI.COM>
X-OriginalArrivalTime: 23 Jun 2004 16:54:48.0140 (UTC) FILETIME=[CAFB58C0:01C45942]

> -----Original Message-----
> From: cygwin-owner On Behalf Of Raul Lopez
> Sent: 23 June 2004 16:35

> I guess I asked the wrong question:
> 
> >Can anyone provide info on how to debug the following:
> >
> >SIGSEGV, Segmentation Fault in cygwin1!_alloca () from 
> /usr/bin/cygwin1.dll
> >
> >My code starts to run and then dies with this message. Any 
> help would be 
> >greatly appreciated...
> 
> I did compile the code with -g and used gdb, however I 
> haven't been able to 
> find the bug, I can see where the code stops running, but so 
> far every 
> variable seems to be ok.. Any suggestions on what can cause 
> problems with 
> cygwin1!_alloca () ?

  Ah.  Well, the way that would go wrong would be if you'd trashed your
stack in someway with a stray pointer or by overflowing an automatic array
variable.

  However, we don't actually know whether your code was in alloca or not,
because you're presumably running with an ordinary version of the cygwin
dll, and that won't have any debugging info in it.  In that case, _alloca is
merely the nearest symbol to the eip at the point when the SEGV occurs.

  Does your code invoke alloca?


    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


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