Package: g++-3.4
Version: 3.4.4-8
Followup-For: Bug #293466

Above testcase still crashes with g++-3.4 (3.4.4-8) and g++-4.0 (4.0.1-7).
Using GLIBCXX_FORCE_NEW="1" avoids the problem:


$ make -e CXX=g++-4.0
g++-4.0 -g -Wall -c -o dltest.o dltest.cc
g++-4.0 -g -lpthread -ldl -Wl,--export-dynamic -Wall dltest.o -o dltest
g++-4.0 -g -Wall -shared -o plugin.o plugin.cc

$ ./dltest
Segmentation fault (core dumped)

$ GLIBCXX_FORCE_NEW="1" ./dltest

$ make clean
rm -f dltest dltest.o plugin.o

$ make -e CXX=g++-3.4
g++-3.4 -g -Wall -c -o dltest.o dltest.cc
g++-3.4 -g -lpthread -ldl -Wl,--export-dynamic -Wall dltest.o -o dltest
g++-3.4 -g -Wall -shared -o plugin.o plugin.cc

$ ./dltest
Segmentation fault (core dumped)

$ GLIBCXX_FORCE_NEW="1" ./dltest


So long
Thomas

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-686-smp
Locale: LANG=C, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8)

Versions of packages g++-3.4 depends on:
ii  gcc-3.4                       3.4.4-8    The GNU C compiler
ii  gcc-3.4-base                  3.4.4-8    The GNU Compiler Collection (base 
ii  libc6                         2.3.5-6    GNU C Library: Shared libraries an
ii  libstdc++6-dev                3.4.4-8    The GNU Standard C++ Library v3 (d

g++-3.4 recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to