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

jakub at redhat dot com gcc-bugzilla@gcc.gnu.org
Tue Jul 5 16:48:00 GMT 2005


------- Additional Comments From jakub at redhat dot com  2005-07-05 16:48 -------
Yes, that's the same thing apparently.
I'm pretty sure a reproducer can be written even for libstdc++ not configured
to default to the mt allocator, by including <ext/mt_allocator.h> etc.  or
however you explicitely choose a specific allocator for some template
instantiation.

If init_priority attribute works, it could be perhaps used to make sure
the destructor of some dummy object that calls gthread_key_delete in
mt_allocator.cc will be run as last destructor in libstdc++.so.


-- 


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



More information about the Gcc-bugs mailing list