This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

c++/8245: Crash in destructors on Solaris, no __cxa_atexit present


>Number:         8245
>Category:       c++
>Synopsis:       Crash in destructors on Solaris, no __cxa_atexit present
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 16 14:46:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Aaron Williams
>Release:        gcc 2.95.3 and 3.2
>Organization:
>Environment:
Sun Sparc Solaris 2.7 in 32-bit mode
>Description:
I am seeing many KDE applications crash when exiting due to 
destructors in shared libraries being called after the 
libraries have been unloaded (hence the code is no longer present).

It looks like __cxa_atexit would solve the problem, but __cxa_atexit is not present, at least for Solaris 2.7, therefore something else should be implemented on Solaris or a __cxa_atexit should be provided (perhapse libiberty?).
>How-To-Repeat:
1. Compile KDE 3.0.3 with gcc 2.95.3 or 3.2
2. Run Konqueror or Kmail (other apps also have this problem)
3. Exit app
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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