Boost C++ Libraries: Ticket #11278: --detect_memory_leaks useless without --catch_system_errors=n https://svn.boost.org/trac10/ticket/11278 <p> When using the unit test framework's runtime option <code>--detect_memory_leaks=N</code> (described in <a href="http://www.boost.org/doc/libs/1_58_0/libs/test/doc/html/utf/user-guide/runtime-config/reference.html">http://www.boost.org/doc/libs/1_58_0/libs/test/doc/html/utf/user-guide/runtime-config/reference.html</a>) the resulting breakpoint is caught by the framework unless <code>--catch_system_errors</code> is set to <code>n</code>. This causes the debug break to not happen until halfway through the reporting of this fatal "breakpoint encountered" error, rendering the call stack useless. </p> <p> This should at least be mentioned in the documentation; maybe <code>detect_memory_leaks</code> should imply <code>catch_system_errors=n</code>. </p> <p> I'm on Windows 7x64 in a 32 bit debug build using MSVC14RC and the multithreaded static boost.test library. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11278 Trac 1.4.3 willi@… Mon, 11 May 2015 10:10:10 GMT <link>https://svn.boost.org/trac10/ticket/11278#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11278#comment:1</guid> <description> <p> When I caught a casual glimpse of the source I noticed that system error catching might be disabled when running with a debugger attached, so I'd like to clarify that I'm running the executable separately and attach the debugger on demand once a breakpoint is hit. (Because I can't get Visual Studio to display the output after the program has terminated when debugging, so I can't see the leak report that way.) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Raffi Enficiaud</dc:creator> <pubDate>Tue, 04 Oct 2016 06:51:20 GMT</pubDate> <title>owner, status, milestone changed https://svn.boost.org/trac10/ticket/11278#comment:2 https://svn.boost.org/trac10/ticket/11278#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Gennadiy Rozental</span> to <span class="trac-author">Raffi Enficiaud</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.63.0</span> </li> </ul> Ticket Raffi Enficiaud Thu, 02 Apr 2020 19:04:16 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/11278#comment:3 https://svn.boost.org/trac10/ticket/11278#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">obsolete</span> </li> </ul> <p> In the current code (1.73) the debugger is detected at the start of each test. In that case, the parameter <code>catch_system_errors</code> is set to <code>false</code>. </p> Ticket