hardcore gdc problems

Downs default_357-line at yahoo.de
Wed Apr 11 00:55:13 PDT 2007


Downs wrote:
> Thomas Kuehne wrote:
>>
>> This might cause exceptions even if the
>> host actually exists. Regardless, #2 looks sane. Judging form the other
>> data #1's obj seems to be a valid address. #0 should be somewhere inside
>> _Unwind_SjLj_RaiseException.
>>
>> GCC-4.1.2's doesn't document _Unwind_SjLj_RaiseException apart from
>> "document me!". Thus one question would be: what happens if more than one
>> thread tries to unwind at the same time?
>>
> 

Here's another debugging session, obtained after rebuilding phobos, this time with more debugging info.
It's another error, but they seem to be related. This one should be a little easier to understand (hopefully).
Sadly, I have absolutely no idea what's going on here. Some kind of stack corruption?

D:\code\d\yawr>gdb bin\dbg\yawr.exe
GNU gdb 5.2.1
Copyright 2002 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-mingw32"...
(gdb) r
Starting program: D:\code\d\yawr/bin\dbg\yawr.exe

Program received signal SIGSEGV, Segmentation fault.
[Switching to thread 5356.0xdb8]
0x0043f40b in read_uleb128 (p=0xa2f0000 <Address 0xa2f0000 out of bounds>,
     val=0xa2ef5f0) at ../../../gcc-4.1.2/libphobos/gcc/unwind.d:335
335           a_byte = *p++;
(gdb) bt
#0  0x0043f40b in read_uleb128 (p=0xa2f0000 <Address 0xa2f0000 out of bounds>,
     val=0xa2ef5f0) at ../../../gcc-4.1.2/libphobos/gcc/unwind.d:335
#1  0x004233f4 in _D3gcc3deh15personalityImplFiT3gcc6unwind14_Unwind_ActionmPS3g
cc6unwind17_Unwind_ExceptionPS3gcc6unwind15_Unwind_ContextZk (iversion=1,
     actions=1, exception_class=26844869579591239, ue_header=0xef286d8,
     context=0xa2ef6b0) at ../../../gcc-4.1.2/libphobos/gcc/deh.d:202
#2  0x0042324a in __gdc_personality_sj0 (iversion=1, actions=1,
     exception_class=26844869579591239, ue_header=0xef286d8, context=0xa2ef6b0)
     at ../../../gcc-4.1.2/libphobos/gcc/deh.d:120
#3  0x00534092 in _Unwind_SjLj_RaiseException (exc=0xef286d8)
     at ../../gcc-4.1.2/gcc/unwind.inc:117
#4  0x00423205 in _d_throw (obj=@0xef37600)
     at ../../../gcc-4.1.2/libphobos/gcc/deh.d:99
#5  0x0042d773 in _d_array_bounds (filename=
       {length = 6, ptr = 0x55ce40 "main.d"}, line=113)
     at ../../../gcc-4.1.2/libphobos/std/array.d:38
#6  0x00403c02 in _D4main11do_DownloadFAaZAa (param=
       {length = 50, ptr = 0x1f28900 "http://www.shamusyoung.com/twentysidedtale/
?p=1071"}) at main.d:113
#7  0x0040bb08 in _D4main8downloadFAaDFfZvZAa13__dgliteral27MFAaZAa (c=
       {length = 50, ptr = 0x1f28900 "http://www.shamusyoung.com/twentysidedtale/
?p=1071"}) at main.d:879
#8  0x004118e2 in _D5tools6buffer17__T6bufferTAaTAaZ6buffer3getMFAaZAa13__dglite
---Type <return> to continue, or q <return> to quit---
ral77MFZb () at tools/buffer.d:37
#9  0x0054ada6 in _D5tools6buffer17__T6bufferTAaTAaZ6buffer3getMFAaZAa (
     this=@0x1efb640, idx=
       {length = 50, ptr = 0x1f28900 "http://www.shamusyoung.com/twentysidedtale/
?p=1071"}) at tools/buffer.d:28
#10 0x0040bab5 in _D4main8downloadFAaDFfZvZAa (url=
       {length = 50, ptr = 0x1f28900 "http://www.shamusyoung.com/twentysidedtale/
?p=1071"}, progress=
       {object = 0xa2efe5c, func = 0x4129eb <_D4main17__T6fhtagnVb0Vb0Z6fhtagn6up
dateMFDFZvDFZvZv13__dgliteral91MFfZv>}) at main.d:883
#11 0x005400ed in _D4main17__T6fhtagnVb0Vb0Z6fhtagn6updateMFDFZvDFZvZv (
     this=@0x1cdd180, redraw=
       {object = 0x1e84600, func = 0x40c6f2 <_D4main14user_interface7refreshMFZv>
}, got=
       {object = 0x1f24f80, func = 0x53a560 <_D3std4bind117__T9BoundFuncTDFC4main
5comicZvS41_D3std4bind9NullAliasS3std4bind9EmptySlotTS3std4bind23__T5TupleTC4mai
n5comicZ5TupleZ9BoundFunc16__T10MBoundFuncZ4funcMFZv>}) at main.d:557
#12 0x0053a4cb in _D3std4bind110__T9BoundFuncTDFDFZvDFZvZvS41_D3std4bind9NullAli
asS3std4bind9EmptySlotTS3std4bind20__T5TupleTDFZvTDFZvZ5TupleZ9BoundFunc16__T10M
BoundFuncZ4funcMFZv (this=@0x1f24f60)
     at c:/mingw/bin/../lib/gcc/mingw32/4.1.2/../../../../include/d/4.1.2/std/bin
d.d:527
#13 0x0041107f in _D4main10poolthread3runMFZi (this=@0x1e84e00) at main.d:1319
---Type <return> to continue, or q <return> to quit---
#14 0x0043c70f in _D3std6thread6Thread11threadstartWPvZk at 4 (p=0x1e84e00)
     at ../../../gcc-4.1.2/libphobos/std/thread.d:412
#15 0x77c3a3b0 in _libws2_32_a_iname ()
#16 0x7c80b683 in _libws2_32_a_iname ()
(gdb)


More information about the D.gnu mailing list