[Bug libstdc++/22309] mt allocator doesn't pthread_key_delete its keys

Woebbeking at web dot de gcc-bugzilla@gcc.gnu.org
Sat Sep 24 14:45:00 GMT 2005


------- Additional Comments From Woebbeking at web dot de  2005-09-24 14:44 -------
Hi,  
  
I already thought that is the same as with KDE's artsd but it still crashes for  
me (since GCC 4.0.0):  
  
#0  0xb7857b5e in __gnu_cxx::__pool<true>::_M_reclaim_block ()  
   from /usr/lib/libstdc++.so.6  
#1  0xb7fc7c26 in __gnu_cxx::__mt_alloc<std::string,  
__gnu_cxx::__common_pool_policy<__gnu_cxx::__pool, true> >::deallocate  
(this=0xbffe8a20, __p=0x81015d0,  
    __n=4) at mt_allocator.h:714  
#2  0xb7fc8b2e in ~ObjectReference (this=0xbffe8a14) at stl_vector.h:123  
#3  0xb7fbafd3 in Arts::SoundServerStartup_base::_fromString (objectref=@0x0)  
    at ./soundserver/soundserver.cc:2545  
#4  0x0806a832 in Arts::SoundServerStartup_impl::cleanReference (  
    this=0x8159838) at soundserver.h:1376  
#5  0x0806b1f2 in Arts::SoundServerStartup_impl::lock (this=0x8159838)  
    at /Devel/src/kde/arts/soundserver/soundserverstartup_impl.cc:78  
  
I'm using Debian's GCC 4.0.1-9 (CVS 20050922) and compile with visibility  
support. Without visibility or with export GLIBCXX_FORCE_NEW=1 it doesn't  
crash. The specs are:  
  
Target: i486-linux-gnu  
Configured with: ../src/configure -v  
--enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr  
--enable-shared --with-system-zlib --libexecdir=/usr/lib  
--without-included-gettext --enable-threads=posix --enable-nls  
--program-suffix=-4.0 --enable-__cxa_atexit --enable-libstdcxx-allocator=mt  
--enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm  
--enable-java-awt=gtk --enable-gtk-cairo  
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr  
--disable-werror --enable-checking=release i486-linux-gnu  
Thread model: posix  
gcc version 4.0.2 (Debian 4.0.1-9)  
 
 
Cheers,  
André  

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Woebbeking at web dot de


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22309



More information about the Gcc-bugs mailing list