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]

how to debug with the crash especially with the corrupt stack in multi-thread environment using gdb.


Hi, All:

now I get a new question: how to debug with the crash, especially
with the corrupt stack in multi-thread environment using gdb.

I found a related post using "info reg, watch 0x2300000" such low
level command to trace a crash.
http://www.cygwin.com/ml/cygwin/2004-02/msg00921.html

My question is where I can start? Can you please recommand some
articles or books or some tips? Thanks a lot.

========== debug log ========
(gdb) bt
#0  0x00458072 in ast_io_wait (ioc=0x10, howlong=90689392) at io.c:271
#1  0x61092b95 in _sigbe () from /usr/bin/cygwin1.dll
#2  0x00000000 in ?? ()
(gdb) info reg
eax            0x10     16
ecx            0xf      15
edx            0x415401 4281345
ebx            0x10     16
esp            0x567cc6c        0x567cc6c
ebp            0x567cc9c        0x567cc9c
esi            0x4154cb 4281547
edi            0x567ce64        90689124
eip            0x61092b95       0x61092b95
eflags         0x10202  66050
cs             0x1b     27
ss             0x23     35
ds             0x23     35
es             0x23     35
fs             0x3b     59
gs             0x0      0
(gdb) x/64x 0x567cc50
0x567cc50:      0x004154cb      0x05680000      0x004154cb      0x00000010
0x567cc60:      0x004154cb      0x0567cc9c      0x61092b95      0x00000010
0x567cc70:      0x0567cf70      0x00000000      0x00000000      0x00000004
0x567cc80:      0xffffffff      0x1026f32c      0x61106b24      0xffffffff
0x567cc90:      0x0567ce64      0x1024f9b8      0x00000246      0x0567ccc8
0x567cca0:      0x1023ddec      0x00000001      0xffffffff      0x10065e54
0x567ccb0:      0x006fd2d3      0x458f5227      0xfffffff7      0x00000000
0x567ccc0:      0x1026f32c      0x1024f9b8      0x0567cd18      0x0056b864
0x567ccd0:      0x1023dd64      0xffffffff      0x007016c2      0x006fdc1f
0x567cce0:      0x00676c38      0x1023dd64      0x0567ccf8      0x00000000
0x567ccf0:      0x00000000      0x0567cd40      0x00000000      0x00000000
0x567cd00:      0x00000000      0x00000000      0xffffffff      0x00000000
0x567cd10:      0x00000001      0x1024fa10      0x0567cd78      0x004ad006
0x567cd20:      0x00000000      0x006c25e3      0x0000021e      0x006c2925
0x567cd30:      0x00412f87      0x1024f9b8      0x00000000      0x77dadb0d
0x567cd40:      0x00412f87      0x1024f9b8      0x00000000      0x1024fa10

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