老兄,上千行的代码,独立不出来
重现了一个
Program received signal SIGABRT, Aborted.
[Switching to Thread -1240134736 (LWP 538)]
0x007127a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
(gdb) bt
#0 0x007127a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1 0x007567f5 in raise () from /lib/tls/libc.so.6
#2 0x00758199 in abort () from /lib/tls/libc.so.6
#3 0x00c0525b in __gnu_cxx::__verbose_terminate_handler () from /usr/lib/libstdc++.so.6
#4 0x00c02f71 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.6
#5 0x00c02fa6 in std::terminate () from /usr/lib/libstdc++.so.6
#6 0x00c030ef in __cxa_throw () from /usr/lib/libstdc++.so.6
#7 0x00c0353c in operator new () from /usr/lib/libstdc++.so.6
#8 0x08058247 in __gnu_cxx::new_allocator<__gnu_cxx::_Hashtable_node<std::pair<unsigned long long const, CLink*> > >::allocate (this=0x169524c8, __n=1)
at /usr/lib/gcc/i386-redhat-linux/3.4.5/../../../../include/c++/3.4.5/ext/new_allocator.h:81
#9 0x08057aa9 in __gnu_cxx::hashtable<std::pair<unsigned long long const, CLink*>, unsigned long long, hash_u64, std::_Select1st<std::pair<unsigned long long const, CLink*> >, compare_u64, std::allocator<CLink*> >::_M_get_node (this=0x169524c8)
at /usr/lib/gcc/i386-redhat-linux/3.4.5/../../../../include/c++/3.4.5/ext/hashtable.h:252
#10 0x08056a22 in __gnu_cxx::hashtable<std::pair<unsigned long long const, CLink*>, unsigned long long, hash_u64, std::_Select1st<std::pair<unsigned long long const, CLink*> >, compare_u64, std::allocator<CLink*> >::_M_new_node (this=0x169524c8, __obj=@0xb6150250)
at /usr/lib/gcc/i386-redhat-linux/3.4.5/../../../../include/c++/3.4.5/ext/hashtable.h:528
#11 0x080555a2 in __gnu_cxx::hashtable<std::pair<unsigned long long const, CLink*>, unsigned long long, hash_u64, std::_Select1st<std::pair<unsigned long long const, CLink*> >, compare_u64, std::allocator<CLink*> >::insert_unique_noresize (this=0x169524c8,
__obj=@0xb6150250)
at /usr/lib/gcc/i386-redhat-linux/3.4.5/../../../../include/c++/3.4.5/ext/hashtable.h:666
#12 0x0805336d in __gnu_cxx::hashtable<std::pair<unsigned long long const, CLink*>, unsigned long long, hash_u64, std::_Select1st<std::pair<unsigned long long const, CLink*> >, c---Type <return> to continue, or q <return> to quit---
ompare_u64, std::allocator<CLink*> >::insert_unique (this=0x169524c8, __obj=@0xb6150250)
at /usr/lib/gcc/i386-redhat-linux/3.4.5/../../../../include/c++/3.4.5/ext/hashtable.h:383
#13 0x08051ee5 in __gnu_cxx::hash_map<unsigned long long, CLink*, hash_u64, compare_u64, std::allocator<CLink*> >::insert (this=0x169524c8, __obj=@0xb6150250)
at /usr/lib/gcc/i386-redhat-linux/3.4.5/../../../../include/c++/3.4.5/ext/hash_map:169
Program received signal SIGABRT, Aborted.
[Switching to Thread -1325405264 (LWP 603)]
0x007127a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
(gdb) bt
#0 0x007127a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1 0x007567f5 in raise () from /lib/tls/libc.so.6
#2 0x00758199 in abort () from /lib/tls/libc.so.6
#3 0x00c052de in __gnu_cxx::__verbose_terminate_handler () from /usr/lib/libstdc++.so.6
#4 0x00c02f71 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.6
#5 0x00c02fa6 in std::terminate () from /usr/lib/libstdc++.so.6
#6 0x00c02622 in __cxa_get_globals () from /usr/lib/libstdc++.so.6
#7 0x00c030d6 in __cxa_throw () from /usr/lib/libstdc++.so.6
#8 0x00c0353c in operator new () from /usr/lib/libstdc++.so.6
下面的有时候可以看出是从hash_map来的,比如在插入时new,不太明白