delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/04/29/10:05:35

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <008f01c1ef87$0e01b1a0$e8de1b3f@wamontgomery>
From: "warren montgomery" <wamontgomery AT worldnet DOT att DOT net>
To: <cygwin AT cygwin DOT com>
Subject: Debugging ported applications that get a segmentation fault
Date: Mon, 29 Apr 2002 09:06:26 -0500
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

I am trying to port a unix application that runs fine on linux (and many
other unix variants), but under cygwin dies quickly and gives the message
"segmentation fault, core dumped".  When I run it under gdb, the application
doesn't crash immediately, but runs for some time before either 1) gdb says
the program stopped running, or 2) gdb says it got a segmentation fault.  In
either case I can get gdb to reveal no information about what the thing was
doing when it crashed.
(In fact sometimes when this happens the gdb window just locks up.

How can I figure out what's going on?  Is there anyway to get a stack
backtrace for something that's crashes, like I was used to on most Unix
variants?  Yes I know I can stick in print statements and create some kind
of log, but this application is a large X windows program and doing this is
tedious and very likely to effect the behavior of the program in other ways.

Warren Montgomery wamontgomery AT att DOT net  (
http://home.att.net/~wamontgomery )


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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