This is the mail archive of the cygwin 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]
Other format: [Raw text]

Re: crashes with various programs


Christopher:

Typing "continue" didn't do anything -- it just hung.

Here is the output with "thread 1" typing "t":

GNU gdb 6.5.50.20060706-cvs (cygwin-special)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...(no debugging symbols found)

Attaching to program `/cygdrive/c/cygwin/bin/pstree.exe', process 5484
Loaded symbols for /cygdrive/c/WINDOWS/system32/ntdll.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/kernel32.dll
Loaded symbols for /usr/bin/cygwin1.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/advapi32.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/rpcrt4.dll
Loaded symbols for /usr/bin/cygintl-3.dll
Loaded symbols for /usr/bin/cygiconv-2.dll
Loaded symbols for /usr/bin/cygncurses-8.dll
[Switching to thread 5484.0xe4]
(gdb) thread 1
[Switching to thread 1 (thread 5484.0x784)]#0  0x7c90eb94 in ntdll!LdrAccessReso
urce () from /cygdrive/c/WINDOWS/system32/ntdll.dll
(gdb) t
[Current thread is 1 (thread 5484.0x784)]
(gdb)

Lester

      +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=

Christopher Faylor <cgf-no-personal-reply-please at cygwin dot com>
/Date/: Mon, 7 Aug 2006 21:57:01 -0400
/Subject/: Re: crashes with various programs

------------------------------------------------------------------------

On Mon, Aug 07, 2006 at 04:35:00PM -0700, Lester Ingber wrote:
>Christopher:
>
>I followed your instructions and got:
>
>GNU gdb 6.5.50.20060706-cvs (cygwin-special)
>Copyright (C) 2006 Free Software Foundation, Inc.
>GDB is free software, covered by the GNU General Public License, and you are
>welcome to change it and/or distribute copies of it under certain conditions.
>Type "show copying" to see the conditions.
>There is absolutely no warranty for GDB.  Type "show warranty" for details.
>This GDB was configured as "i686-pc-cygwin"...(no debugging symbols found)
>
>Attaching to program `/cygdrive/c/cygwin/bin/pstree.exe', process 2260
>Loaded symbols for /cygdrive/c/WINDOWS/system32/ntdll.dll
>Loaded symbols for /cygdrive/c/WINDOWS/system32/kernel32.dll
>Loaded symbols for /usr/bin/cygwin1.dll
>Loaded symbols for /cygdrive/c/WINDOWS/system32/advapi32.dll
>Loaded symbols for /cygdrive/c/WINDOWS/system32/rpcrt4.dll
>Loaded symbols for /usr/bin/cygintl-3.dll
>Loaded symbols for /usr/bin/cygiconv-2.dll
>Loaded symbols for /usr/bin/cygncurses-8.dll
>[Switching to thread 2260.0x1030]
>(gdb) where
>#0  0x7c901231 in ntdll!DbgUiConnectToDbg ()
>   from /cygdrive/c/WINDOWS/system32/ntdll.dll
>#1  0x7c9507a8 in ntdll!KiIntSystemCall ()
>   from /cygdrive/c/WINDOWS/system32/ntdll.dll
>#2  0x00000005 in ?? ()
>#3  0x00000004 in ?? ()
>#4  0x00000001 in ?? ()
>#5  0x4066ffd0 in ?? ()
>#6  0x0002d788 in ?? ()
>#7  0xffffffff in ?? ()
>#8  0x7c90ee18 in strchr () from /cygdrive/c/WINDOWS/system32/ntdll.dll
>#9  0x7c9507c8 in ntdll!KiIntSystemCall ()
>   from /cygdrive/c/WINDOWS/system32/ntdll.dll
>#10 0x00000000 in ?? ()
>(gdb)
>
>I do not see anything that helps, but perhaps you do?

That's strange.  If the program was dying, gdb should have been started
at the location where the error occurred.

Try typing "continue" to see if gdb switches to the failing instruction.
If that doesn't work, then maybe switching to "thread 1" and typing "t"
will show something.

cgf


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


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