Boost C++ Libraries: Ticket #3652: App Verifier issue found in boost 1.33.0 thread library while unloading DLL https://svn.boost.org/trac10/ticket/3652 <p> DLL built using boost 1.33.0 thread libraray has Appverifier crash while unloading. </p> <p> ======================================= VERIFIER STOP 00000202 : pid 0x15A4: Freeing heap block containing an active critical section. </p> <blockquote> <p> 06762FE0 : Critical section address. 004D2654 : Critical section initialization stack trace. 06762FC0 : Heap block address. 00000040 : Heap block size. </p> </blockquote> <p> ======================================= </p> <p> In file …\boost_tp\boost\libs\thread\src\tss_hooks.cpp </p> <p> on_process_enter() function calls init_threadmon_mutex()acquires memory for mutex by executing threadmon_mutex = new boost::mutex; statement. However, this memory is not released when dll in unloaded. I guess the acquired memory should be released in on_process_exit() call. </p> <p> Is this a known issue and is there any fix for this? </p> <p> This problem was also found in 1.34 version </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3652 Trac 1.4.3 viboes Sat, 21 Nov 2009 12:04:19 GMT component, summary changed https://svn.boost.org/trac10/ticket/3652#comment:1 https://svn.boost.org/trac10/ticket/3652#comment:1 <ul> <li><strong>component</strong> <span class="trac-field-old">threads</span> → <span class="trac-field-new">thread</span> </li> <li><strong>summary</strong> <span class="trac-field-old">App Verifier issue found in boost 1.0.33 thread library while unloading DLL</span> → <span class="trac-field-new">App Verifier issue found in boost 1.33.0 thread library while unloading DLL</span> </li> </ul> <p> Boost.Thread has completely redesigned since version 1.35. Have you checked with the last release? </p> Ticket ravi singh <ravisingh_id@…> Sun, 22 Nov 2009 18:38:00 GMT <link>https://svn.boost.org/trac10/ticket/3652#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3652#comment:2</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/3652#comment:1" title="Comment 1">viboes</a>: </p> <blockquote class="citation"> <p> Boost.Thread has completely redesigned since version 1.35. Have you checked with the last release? </p> </blockquote> <p> No, I have not checked with the latest release. Since our code is based off 1.33, so I am just checking the compatable boost versions and this is not fixed in 1.34. Higher versions have lot of new interfaces and my old code will not work with that. </p> <p> I would be interested in getting this fixed in either 1.33 or 1.34 as a patch. </p> <p> btw - has this issues been faced by some one else? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Anthony Williams</dc:creator> <pubDate>Mon, 07 Jun 2010 08:18:58 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/3652#comment:3 https://svn.boost.org/trac10/ticket/3652#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> Bug relates to pre-1.35 rewrite </p> Ticket