This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: segv when thread exits after throw/catch of C++ exception
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: "Ed Connell" <Ed dot Connell at sas dot com>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Mon, 7 Nov 2005 16:40:38 -0600
- Subject: Re: segv when thread exits after throw/catch of C++ exception
- References: <E7713D602248164BA45AA01734A1F5A104ABB038@MERC27.na.sas.com>
> I have a simple C program that spawns a thread; the thread calls into a dlopen'd
> shared library. The shared library is in C++ and its lone entry point just does
> a throw and catch before returning. We return back into the thread and when the
> thread exits it crashes. This happens on at least x86, x86_64 and ia64 on both
> SLES 9 and RHEL 4. I originally posted this to a glibc list and Ulrich Drepper
> said:
>
> That's a problem in libstdc++. They use pthread_key_create to create a TSD
> key but never call pthread_key_delete if the libstdc++ DSO is unloaded.
I'm on it. There's already an existing bug report about this, see libstdc++/23591.
-benjamin