This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
dlclose() doesn't call dtor for some .so files
- From: Skunk Worx <skunkworx at verizon dot net>
- To: libc-help at sourceware dot org
- Date: Mon, 16 Jul 2012 20:56:43 -0700
- Subject: dlclose() doesn't call dtor for some .so files
Hello,
I am using two different 64 bit systems, both RedHat flavored.
One is Scientific Linux 6 :
$ rpm -qa | grep glibc
glibc-2.12-1.47.el6_2.9.x86_64
$ uname -r
2.6.32-220.23.1.el6.x86_64
The other is Fedora 17 :
$ rpm -qa | grep glibc
glibc-2.15-37.fc17.x86_64
$ uname -r
3.4.4-5.fc17.x86_64
I am running into the same problem described in the following thread :
http://gcc.gnu.org/ml/gcc-help/2011-05/msg00403.html
The destructor doesn't get called when the library is dlclose()'d.
The linked thread suggests that this may be a glibc issue.
Regards,
John