Bug#293466: /usr/bin/g++-3.4: mt_allocator + threads + dlclose = crash
Package: g++-3.4
Version: 3.4.3-6
Severity: important
File: /usr/bin/g++-3.4
The g++ package is built with --enable-libstdcxx-allocator=mt
This can cause a program to segfault when a thread finishes
that had referenced data in an unloaded dynamic library.
See more info here:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19265
This problem does not occur with:
g++-3.3 on my debian box
g++-3.4 on a FreeBSD machine that wasn't configured with
--enable-libstdcxx-allocator=mt
So it's not g++ that is broken per se, but the debian configuration is.
See a crash testcase here:
http://dc.selwerd.nl/dlcrash.tar.bz2
/walter
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8.1-wza-1
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages g++-3.4 depends on:
ii gcc-3.4 3.4.3-6 The GNU C compiler
ii gcc-3.4-base 3.4.3-6 The GNU Compiler Collection (base
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii libstdc++6-dev 3.4.3-6 The GNU Standard C++ Library v3 (d
-- no debconf information
Reply to: