The mt_allocator segfaults

Bug #29919 reported by nepenthesdev
6
Affects Status Importance Assigned to Milestone
gcc-3.4 (Ubuntu)
Fix Released
Medium
Matthias Klose

Bug Description

for gcc 3.4.5

Program received signal SIGSEGV, Segmentation fault.
0xb7ae6b18 in __gnu_cxx::__mt_alloc<std::_List_node<unsigned int> >::deallocate (this=0xbfcb71b0, __p=0x80db0c0, __n=0) at mt_allocator.h:430
430 const size_t __which = _S_binmap[__bytes];
(gdb) bt
#0 0xb7ae6b18 in __gnu_cxx::__mt_alloc<std::_List_node<unsigned int> >::deallocate (this=0xbfcb71b0, __p=0x80db0c0, __n=0) at mt_allocator.h:430
#1 0xb7ae6cae in std::_List_base<unsigned int, std::allocator<unsigned int> >::_M_clear (this=0xbfcb71b0) at stl_list.h:315
#2 0xb7ae6106 in nepenthes::LogIrc::dnsResolved (this=0x80a4c18, result=0x80dc100) at stl_list.h:330
#3 0xb7b6b31e in nepenthes::DNSResolverADNS::callBack (this=0x80919f0) at dnsresolve-adns.cpp:188
#4 0xb7b6b501 in nepenthes::DNSResolverADNS::handleEvent (this=0x80919f0, event=0x8091a58) at dnsresolve-adns.cpp:157
#5 0x08057203 in nepenthes::EventManager::doTimeoutLoop (this=0x0) at stl_list.h:131
#6 0x0805ce06 in nepenthes::Nepenthes::doLoop (this=0xbfcb7780) at Nepenthes.cpp:723
#7 0x0805e80a in nepenthes::Nepenthes::run (this=0xbfcb7780, argc=1, argv=0xbfcb7864) at Nepenthes.cpp:694
#8 0x0805ef23 in main (argc=1, argv=0xbfcb7864) at Nepenthes.cpp:1449
(gdb) quit

for g++ 4.0.*
Program received signal SIGSEGV, Segmentation fault.
0x400df33e in __gnu_cxx::__pool<true>::_M_reclaim_block () from /usr/lib/libstdc++.so.6
(gdb) bt
#0 0x400df33e in __gnu_cxx::__pool<true>::_M_reclaim_block () from /usr/lib/libstdc++.so.6
#1 0x406d8dd2 in __gnu_cxx::__mt_alloc<std::_List_node<unsigned int>, __gnu_cxx::__common_pool_policy<__gnu_cxx::__pool, true> >::deallocate (
    this=0xbffff66c, __p=0x8088ff0, __n=1) at mt_allocator.h:746
#2 0x406d8ebd in std::_List_base<unsigned int, std::allocator<unsigned int> >::_M_clear (this=0xbffff66c) at stl_list.h:316
#3 0x406d6b58 in nepenthes::X6Dialogue::dnsResolved (this=0x8092c28, result=0xbffff6ac) at stl_list.h:332
#4 0x0804fc25 in nepenthes::DNSManager::callBack (this=0x8089358) at DNSManager.cpp:185
#5 0x080500d3 in nepenthes::DNSManager::pollDNS (this=0x8089358) at DNSManager.cpp:153
#6 0x0805fd86 in nepenthes::Nepenthes::doLoop (this=0xbffffb10) at Nepenthes.cpp:488
#7 0x08060ea0 in nepenthes::Nepenthes::run (this=0xbffffb10, argc=1, argv=0xbffffbd4) at Nepenthes.cpp:463
#8 0x080612e3 in main (argc=1, argv=0xbffffbd4) at Nepenthes.cpp:1024

problem is quite well documented here
http://nepenthes.sourceforge.net/documentation:readme:faq:gcc_4
dont ask mw why this applies to g++ 3.4 for ubuntu too, you run some scary patches?

Was fixed on debian some time ago in g++ 4.

artsd suffers the same problem on ubuntu
http://www.google.com/search?q=artsd+ubuntu+segfault

please fix this, currently ubuntu lacks a working compiler.

Revision history for this message
Matthias Klose (doko) wrote :

fixed in dapper

Changed in gcc-3.4:
assignee: nobody → doko
status: Unconfirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.