[Bug libstdc++/39366] New: Memory Leak in Exception Handling

2009-03-04 Thread fgiasson1 at yahoo dot ca
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

[Bug libstdc++/39366] Memory Leak in Exception Handling

2009-03-05 Thread fgiasson1 at yahoo dot ca
--- 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

[Bug libstdc++/39366] Memory Leak in Exception Handling

2009-03-05 Thread fgiasson1 at yahoo dot ca
--- 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

[Bug libstdc++/39366] Memory Leak in Exception Handling

2009-03-05 Thread fgiasson1 at yahoo dot ca
--- 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