This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/3142] New: Bad interaction between dlclose() and C++ static object destructors


When the destructor of a static C++ object within a shared library that is being
unloaded, itself creates another static C++ object, the destructor for the
second object will be called only after the shared library has been unmapped,
causing a crash.

Reproduced in RedHat Enterprise Linux 3 (g++ 3.2.3, glibc 2.3.2) and RHEL 4 (g++
3.4.5, glibc 2.3.4).

-- 
           Summary: Bad interaction between dlclose() and C++ static object
                    destructors
           Product: glibc
           Version: 2.3.2
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: jjk at acm dot org
                CC: glibc-bugs at sources dot redhat dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=3142

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]