[Bug libstdc++/39366] Memory Leak in Exception Handling
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Mar 4 20:14:00 GMT 2009
------- Comment #2 from pinskia at gcc dot gnu dot org 2009-03-04 20:14 -------
It looks like glibc is not clearing up dlopened TLS allocated memory.
A simple testcase for glibc would be put into a shared library something like:
__thread int a;
int f(void)
{
return a;
}
--- CUT ---
And then call dlopen that library and see what happens with calling f from the
thread.
If that does not leak, try adding that creating a shared that contains a
function which just calls f and then call that new function from the thread.
Thanks,
Andrew Pinski
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39366
More information about the Gcc-bugs
mailing list