This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: OpenSSH crashes - able to repeat the cause


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]