------- 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

Reply via email to