[Bug c++/24189] crash at exit after dlclose with -fuse-cxa-atexit

2005-11-27 Thread hidden_peak at mail dot ru
--- Comment #16 from hidden_peak at mail dot ru 2005-11-27 17:40 --- Thanks for explanation. Link to this issue: http://www.codesourcery.com/cxx-abi/abi.html#dso-dtor (for archive/reference purposes). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24189

[Bug c++/24189] crash at exit after dlclose with -fuse-cxa-atexit

2005-11-27 Thread pinskia at gcc dot gnu dot org
--- Comment #15 from pinskia at gcc dot gnu dot org 2005-11-27 16:52 --- (In reply to comment #13) > Really, I wonder why code specific for C++ language support (and even more: > specific for gcc) should be in glibc? May be the better place is one of > crt*.o? It is not specific to GC

[Bug c++/24189] crash at exit after dlclose with -fuse-cxa-atexit

2005-11-27 Thread hidden_peak at mail dot ru
--- Comment #14 from hidden_peak at mail dot ru 2005-11-27 16:48 --- Created an attachment (id=10348) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10348&action=view) __cxa_atexit and __cxa_finalize that work correctly cxa.c contain code with __cxa_atexit and __cxa_finalize that w

[Bug c++/24189] crash at exit after dlclose with -fuse-cxa-atexit

2005-11-27 Thread hidden_peak at mail dot ru
--- Comment #13 from hidden_peak at mail dot ru 2005-11-27 16:41 --- This is really bug in glibc: __cxa_finalize don't call all registered handlers in case of NULL argument (glibc 2.2.5 has this bug, but 2.3.2 already not). But nevertheless, the problem still present at platforms withou

[Bug c++/24189] crash at exit after dlclose with -fuse-cxa-atexit

2005-10-06 Thread hidden_peak at mail dot ru
--- Comment #12 from hidden_peak at mail dot ru 2005-10-06 11:28 --- Really, I wonder why code specific for C++ language support should be in glibc? What about platforms without glibc? May be code to call dtors should be in crtbegin/crtbeginS? -- http://gcc.gnu.org/bugzilla/show_bug

[Bug c++/24189] crash at exit after dlclose with -fuse-cxa-atexit

2005-10-04 Thread hidden_peak at mail dot ru
--- Comment #11 from hidden_peak at mail dot ru 2005-10-04 15:55 --- Sometimes test run fine fror me too, but (the same build and same evironment!) sometimes not. This like depends upon garbage... Well, as expected---call of dtor of died object. -- http://gcc.gnu.org/bugzilla/show_b

[Bug c++/24189] crash at exit after dlclose with -fuse-cxa-atexit

2005-10-04 Thread hidden_peak at mail dot ru
--- Comment #10 from hidden_peak at mail dot ru 2005-10-04 15:49 --- Like my. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24189

[Bug c++/24189] crash at exit after dlclose with -fuse-cxa-atexit

2005-10-04 Thread pinskia at gcc dot gnu dot org
--- Comment #9 from pinskia at gcc dot gnu dot org 2005-10-04 14:36 --- And how I configured GCC: earth:~>~/ia32_linux_gcc3_4/bin/gcc -v Reading specs from /home/gates/pinskia/ia32_linux_gcc3_4/lib/gcc/i686-pc-linux-gnu/3.4.0/specs Configured with: ../configure --prefix=/home/gates/pinsk

[Bug c++/24189] crash at exit after dlclose with -fuse-cxa-atexit

2005-10-04 Thread pinskia at gcc dot gnu dot org
--- Comment #8 from pinskia at gcc dot gnu dot org 2005-10-04 14:34 --- Here is the output I have for those files in 3.4.0: earth:~>nm ~/ia32_linux_gcc3_4/lib/gcc/i686-pc-linux-gnu/3.4.0/crtendS.o d __CTOR_END__ t __do_global_ctors_aux d __DTOR_END__ r

[Bug c++/24189] crash at exit after dlclose with -fuse-cxa-atexit

2005-10-04 Thread hidden_peak at mail dot ru
--- Comment #7 from hidden_peak at mail dot ru 2005-10-04 14:17 --- But may be this is problem in crtbeginS.o or crtendS.o? I.e. in something like __cxa_finalize: > nm /opt/gcc-3.4.4/lib/gcc/i686-pc-linux-gnu/3.4.4/crtbeginS.o U _GLOBAL_OFFSET_TABLE_ w _Jv_RegisterClas

[Bug c++/24189] crash at exit after dlclose with -fuse-cxa-atexit

2005-10-04 Thread hidden_peak at mail dot ru
--- Comment #6 from hidden_peak at mail dot ru 2005-10-04 14:04 --- May be. Just for info: Debian GNU/Linux 3.0 ('woody'), Linux peak 2.6.12.5 #1 SMP Mon Aug 29 17:22:33 MSD 2005 i686 unknown -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24189

[Bug c++/24189] crash at exit after dlclose with -fuse-cxa-atexit

2005-10-04 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2005-10-04 13:55 --- (In reply to comment #4) > > What is the version of glibc you have? I have 2.3.3. > > 2.2.5 This sounds like a bug in your glibc then. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24189

[Bug c++/24189] crash at exit after dlclose with -fuse-cxa-atexit

2005-10-04 Thread hidden_peak at mail dot ru
--- Comment #4 from hidden_peak at mail dot ru 2005-10-04 13:54 --- > What is the version of glibc you have? I have 2.3.3. 2.2.5 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24189

[Bug c++/24189] crash at exit after dlclose with -fuse-cxa-atexit

2005-10-04 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2005-10-04 13:52 --- It works with your script too: sh -x x.sh + CXX=/home/peshtigo/pinskia/ia32_linux_gcc3_4/bin/c++ + /home/peshtigo/pinskia/ia32_linux_gcc3_4/bin/c++ -pthread -fexceptions -fident -g -fuse-cxa-atexit -c -o test.o test.

[Bug c++/24189] crash at exit after dlclose with -fuse-cxa-atexit

2005-10-04 Thread hidden_peak at mail dot ru
--- Comment #2 from hidden_peak at mail dot ru 2005-10-04 13:49 --- Created an attachment (id=9870) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9870&action=view) testcase Unpack, (cd dlclose-cxa; x.sh). Script (bash) x.sh compile and run test; crash at exit. -- http://gcc.g

[Bug c++/24189] crash at exit after dlclose with -fuse-cxa-atexit

2005-10-04 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2005-10-04 13:48 --- This works for me with: + c++ -pthread -fexceptions -fident -g -fuse-cxa-atexit -c -o test.o test.cc + c++ -pthread -fexceptions -fident -g -fuse-cxa-atexit -o test test.o -ldl + c++ -pthread -fexceptions -fident -fP

[Bug c++/24189] crash at exit after dlclose with -fuse-cxa-atexit

2005-10-04 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added Severity|critical|normal http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24189