Re: [Boost-bugs] [Boost C++ Libraries] #10651: boost::thread leaks memory when using the MinGW compiler

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10651: boost::thread leaks memory when using the MinGW compiler
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-10-13 09:29:17


#10651: boost::thread leaks memory when using the MinGW compiler
-------------------------------+---------------------
  Reporter: michael.burr@… | Owner: ned14
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.56.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+---------------------

Comment (by ned14):

 I wouldn't be surprised if this leak in Mingw is simply accepted as is.
 Boost.Thread hooks itself into the PE process state change function
 pointer table by quite literally marking the memory pages as writable and
 overwriting the relevant entries. The logic which tracks down where to
 write is somewhat brittle, and almost certainly made the assumption that
 MSVCRT is the CRT.

 VS14 ships a whole new MSVCRT thank god, so it may be the same leak may
 manifest there too as the heuristics may simply be out of date.

 Can the OP try Mingw-w64 (this being the much improved rewrite of Mingw)
 first? Mingw32 is currently not compiling with Boost 1.56 by the way,
 that's a mea culpa but Mingw-w64 works fine. Mingw32 is also frequently
 subtly broken, whereas Mingw-w64 tends to have much superior QA e.g. right
 now Mingw32 fails to enumerate directories reliably.

 Niall

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10651#comment:5>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC