id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 10651,boost::thread leaks memory when using the MinGW compiler,michael.burr@…,Niall Douglas,"boost::thread leaks memory when using the MinGW compiler This report is based on information originally from: [hxxp://stackoverflow.com/questions/26284056/threads-hogging-up-memory] When the following program is compiled with MinGW, the memory use of the process continually increases: {{{ #include void thread_func() { return; } int main() { for (;;) { boost::thread t1(thread_func); boost::thread t2(thread_func); t1.join(); t2.join(); } } }}} Any one of the following changes to the program seem to make the memory leak go away: - add a call to the Windows API `Sleep(1)` to `thread_func()` - use only a single thread - move the call to `t1.join()` to before the creation of `t2` I'm not sure if this problem is sensitive to the version of MinGW. I used MinGW 4.8.1 from tdm-gcc: [hxxp://tdm-gcc.tdragon.net/] I built a 32-bit program; I'm not sure if a 64-bit program would behave differently. The problem doesn't occur when MSVC 12 (Visual Studio 2013) is used.",Support Requests,closed,To Be Determined,thread,Boost 1.56.0,Problem,wontfix,,