[Box Backup] Debugging boxbackup
Ben Summers
boxbackup@fluffy.co.uk
Wed, 28 Jan 2004 21:08:53 +0000
On 28 Jan 2004, at 20:46, Ben Lovett wrote:
> On Wed, Jan 28, 2004 at 05:39:33PM +0000, Ben Summers wrote:
>> I'm very curious about where the abort happens. Thanks for trying it
>> on
>> an unusual platform!
>
> Starting program:
> /usr/obj/ports/boxbackup-0.03/boxbackup-0.03/debug/bin/
> bbstoreaccounts/bbstoreaccounts create 1 0 2097152 2306867
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x000000000016bc48 in std::_Rb_tree<void*, std::pair<void* const,
> MallocBlockInfo>, std::_Select1st<std::pair<void* const,
> MallocBlockInfo> >, std::less<void*>, std::allocator<std::pair<void*
> const, MallocBlockInfo> > >::lower_bound(void* const&)
> (this=0x30ffffffffffffdf, __k=@0xe0ffffffffffffa7)
> at /usr/include/g++/bits/stl_tree.h:1320
> 1320 _Link_type __x = _M_root(); /* Current node. */
> (gdb) where
> #0 0x000000000016bc48 in std::_Rb_tree<void*, std::pair<void* const,
> MallocBlockInfo>, std::_Select1st<std::pair<void* const,
> MallocBlockInfo> >, std::less<void*>, std::allocator<std::pair<void*
> const, MallocBlockInfo> > >::lower_bound(void* const&)
> (this=0x30ffffffffffffdf, __k=@0xe0ffffffffffffa7)
> at /usr/include/g++/bits/stl_tree.h:1320
> #1 0x000000000016bba4 in std::map<void*, MallocBlockInfo,
> std::less<void*>, std::allocator<std::pair<void* const,
> MallocBlockInfo> > >::lower_bound(void* const&)
> (this=0x30ffffffffffffdf, __x=@0xe0ffffffffffffa7)
> at /usr/include/g++/bits/stl_map.h:508
> #2 0x000000000016ba28 in std::map<void*, MallocBlockInfo,
> std::less<void*>, std::allocator<std::pair<void* const,
> MallocBlockInfo> > >::operator[](void* const&) (this=0xffffffffffffa8,
> __k=@0x30ffffffffffffdf)
> at /usr/include/g++/bits/stl_map.h:316
>
> My C++ is very rusty, so I'm afraid I won't be much use here ...
Well it looks to me like the compiler is generating bad code -- the
error is deep in the STL, which is nothing at all to do with me.
I wonder if you're using the 2.95.x STL with the 3.x compiler?
Is there a test suite for g++ you can try out to see if your install is
OK?
Ben