delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/25/11:38:13

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, 25 Jan 2001 11:30:51 -0500
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: OpenSSH crashes - able to repeat the cause
Message-ID: <20010125113051.C30263@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <f5bofwwyphb DOT fsf AT cogsci DOT ed DOT ac DOT uk> <Pine DOT WNT DOT 4 DOT 32 DOT 0101251041250 DOT 868-100000 AT jpradws> <20010125111430 DOT B30263 AT redhat DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.3.11i
In-Reply-To: <20010125111430.B30263@redhat.com>; from cgf@redhat.com on Thu, Jan 25, 2001 at 11:14:30AM -0500

On Thu, Jan 25, 2001 at 11:14:30AM -0500, Christopher Faylor wrote:
>On Thu, Jan 25, 2001 at 10:46:19AM -0500, Jack Radigan wrote:
>>I'm doing the same at the moment.  When id.exe crashes go over to the
>>system and do a 'ps' to find out the pid of id.exe.  Then, start gdb with:
>>
>>	gdb program <pid>
>>
>>I'm able to see the registers but the stack is lost in space somewhere
>>and doesn't show anything relevant.
>
>Switch to the main thread (probably thread 1).

Also configure cygwin with "--enable-debugging" and you can set the CYGWIN_SLEEP
environment variable to some number of milliseconds (like 10000).  This will
cause every cygwin application to wait for that number of milliseconds, printing
its pid.  You can then attach gdb to the pid.

You'll have to set CYGWIN_SLEEP as a global environment variable.  Setting it in
.profile or .bashrc probably won't work.

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