X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave.korn@artimi.com>
To: <cygwin@cygwin.com>
Subject: RE: Cygwin 1.5.19 breaks my app
Date: Fri, 3 Feb 2006 19:29:25 -0000
Message-ID: <002f01c628f8$247ab5e0$a501a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
Content-Type: text/plain; 	charset="us-ascii"
Content-Transfer-Encoding: 7bit
In-Reply-To: <bccc8ac80602031122k24ebe68cr5cf77f114824300c@mail.gmail.com>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 03 February 2006 19:22, Jeff R. Allen wrote:

> I upgraded to Cygwin 1.5.19-4 and my application started dying while
> initializing. As I started debugging it, I ran across the SEGV in
> pthread_key_create issue that has already been discussed on this list.  
> 
> I dutifully typed "continue", then my app got to main(). (My app uses
> std::string.) My app started running, then I hit the seg fault two more
> times as my app was trying to create more mutexes. The third seg fault
> seems to kill off my program. After continuing through the third one, I
> get this:   
> 
>   Program exited with code 030000000005.

> Any ideas how I should proceed? I'm not asking anyone to solve this for
> me yet, since I don't have a good enough handle on it yet to make a repro
> case. I'm just a little confused about this whole notion that Cygwin is
> now making and catching segv's on purpose. Pointers to detailed discusson
> on it would be welcome; all the threads I've found just say, "just type
> continue in gdb".     

  I'm afraid you're probably going to have to get into some hardcore debugging of your program and find out _why_ it exits.  Are you
_sure_ that third SEGV is the same kind as the others, or is it perhaps a real SEGV and you overlooked the differences?  Or you
could run your program to that third SEGV, then try single-stepping it instead of continuing and see where it goes next and how it
gets from there to abort/exit.


    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/

