[coyotos-dev] BigNum.cxx buglet?

Jeroen Visser jeroen.c.visser at gmail.com
Sun Sep 30 17:42:12 EDT 2007


Just in case it helps, my make now errors out in

capidl -d -v -I. -D BUILD/h/idl -h -a i386 Range.idl

The segfault occurs at line 745 of BigNum.cxx because

(gdb) print thisDigit.getDigit(0)
$1 = 4294967295

Backtrace below.

-JCV


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 47819008880528 (LWP 17549)]
0x00000000004463d1 in sherpa::BigNum::asString (this=0x7ffff28dff00,
radix=10) at BigNum.cxx:745
745             result.append(1, hexdigits[thisDigit.getDigit(0)]);
(gdb)
(gdb)
(gdb) bt
#0  0x00000000004463d1 in sherpa::BigNum::asString
(this=0x7ffff28dff00, radix=10) at BigNum.cxx:745
#1  0x000000000044678c in sherpa::BigNum::toStream (this=0x1,
strm=@0x7ffff28e09c0, radix=4294967295) at BigNum.cxx:764
#2  0x000000000044276a in operator<< (strm=@0x7ffff28e09c0,
bn=@0x7ffff28dff00) at
/home/jeroen/coyotos-xenv/host/include/libsherpa/BigNum.hxx:228
#3  0x0000000000442799 in INOstream::operator<< <sherpa::BigNum>
(this=0x7ffff28e0840, ob=@0x7ffff28dff00) at
frontend/INOstream.hxx:261
#4  0x00000000004411dd in client_header_symdump (s=@0x7ffff28e0580,
out=@0x7ffff28e0840) at backend/o_c_hdr.cxx:2658
#5  0x000000000043ffe9 in client_header_symdump (s=@0x7ffff28e09a0,
out=@0x7ffff28e0840) at backend/o_c_hdr.cxx:2436
#6  0x0000000000441da6 in output_c_client_hdr (s=@0x7ffff28e0c20) at
backend/o_c_hdr.cxx:2803
#7  0x000000000041facc in pkgwalker (scope=@0x7ffff28e0ca0,
outfn=0x441738 <output_c_client_hdr(sherpa::GCPtr<Symbol>)>) at
frontend/capidl.cxx:76
#8  0x000000000041fb21 in pkgwalker (scope=@0x7ffff28e0eb0,
outfn=0x441738 <output_c_client_hdr(sherpa::GCPtr<Symbol>)>) at
frontend/capidl.cxx:79
#9  0x00000000004217d2 in main (argc=1, argv=0x7ffff28e1030) at
frontend/capidl.cxx:487


More information about the coyotos-dev mailing list