org
ReportedBy: fgiasson1 at yahoo dot ca
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39366
--- Comment #3 from fgiasson1 at yahoo dot ca 2009-03-05 18:04 ---
Andrew,
Thanks for your answer.
I did the test you suggested and there is no leak associated to it, so I
believe this pretty much sorts out the possibility that a bug in libc leads to
the leak. Moreover, as I said in
--- Comment #5 from fgiasson1 at yahoo dot ca 2009-03-05 19:37 ---
Yes but this static __thread variable must be freed somehow when the thread
exits.
static __thread variables instantiated elsewhere but in exceptions do not cause
leaks. However, when allocated in the exception handling
--- Comment #7 from fgiasson1 at yahoo dot ca 2009-03-05 20:02 ---
OK but shouldn't libstdc++ handle static __thread variables cleaning for
exceptions? libc doesn't know about exceptions.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39366