This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12159] static C++ objects inside global functions (within a shared library) cause crash on program exit on Linux
- From: "tim dot crook at adobe dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Sep 2003 14:41:57 -0000
- Subject: [Bug c++/12159] static C++ objects inside global functions (within a shared library) cause crash on program exit on Linux
- References: <20030903213359.12159.tim.crook@adobe.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12159
------- Additional Comments From tim dot crook at adobe dot com 2003-09-09 14:41 -------
Subject: RE: static C++ objects inside global functions (w
ithin a shared library) cause crash on program exit on Linux
I think this bug can be dropped. I found out that configuring gcc with
--enable-__cxa_atexit eliminates the problem. Using -fuse-cxa-atexit didn't
seem sufficient - strange.
-----Original Message-----
From: pinskia at gcc dot gnu dot org [mailto:gcc-bugzilla@gcc.gnu.org]
Sent: Saturday, September 06, 2003 11:08 PM
To: tim.crook@adobe.com
Subject: [Bug c++/12159] static C++ objects inside global functions
(within a shared library) cause crash on program exit on Linux
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12159
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-09-07
03:07 -------
This is not a GCC bug but rather a glibc bug (report it to them) as we have
no control over
when functions are called when dealing with shared libraries.
------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.