Boost C++ Libraries: Ticket #11425: use-of-uninitialized-value https://svn.boost.org/trac10/ticket/11425 <p> I tried to test my own library using clang sanitizers, but I use Boost.Test and, to my surprise, Boost.Test itself had an use of uninitialized variables, like you can see on the clang report: <a class="ext-link" href="https://travis-ci.org/vinipsmaker/asiohttpserver/jobs/67654540#L687"><span class="icon">​</span>https://travis-ci.org/vinipsmaker/asiohttpserver/jobs/67654540#L687</a> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11425 Trac 1.4.3 Raffi Enficiaud Fri, 03 Jul 2015 11:28:39 GMT <link>https://svn.boost.org/trac10/ticket/11425#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11425#comment:1</guid> <description> <p> Thank you for your report. I had a look at this, but it seems to me that those warnings are false positives: the ones I saw end up in the source files of clang. </p> <p> Would you please tell us why you think that this is a boost.test issue? Maybe I am missing something. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Gennadiy Rozental</dc:creator> <pubDate>Tue, 07 Jul 2015 15:39:04 GMT</pubDate> <title>status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/11425#comment:2 https://svn.boost.org/trac10/ticket/11425#comment:2 <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">obsolete</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.59.0</span> </li> </ul> <p> Please test this again with new release of boost.test (1.59) and report any issues you find. </p> Ticket vini.ipsmaker@… Sun, 03 Jan 2016 21:21:39 GMT status, version, milestone changed; resolution deleted https://svn.boost.org/trac10/ticket/11425#comment:3 https://svn.boost.org/trac10/ticket/11425#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>version</strong> <span class="trac-field-old">Boost 1.58.0</span> → <span class="trac-field-new">Boost 1.60.0</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">obsolete</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.59.0</span> → <span class="trac-field-new">To Be Determined</span> </li> </ul> <p> Hi, I've tried to use clang sanitizers with my tests that use Boost.Test again and again the memory sanitizer complained. </p> <p> I've create an empty test and clang sanitizer complained. If the test body is empty, no code of mine is triggering the issue. Therefore, I believe the issue lies within Boost.Test. </p> <p> Here is the failure (with stack trace): <a class="ext-link" href="https://travis-ci.org/vinipsmaker/asiohttpserver/jobs/99930074#L766"><span class="icon">​</span>https://travis-ci.org/vinipsmaker/asiohttpserver/jobs/99930074#L766</a> </p> <p> Here is the code: <a class="ext-link" href="https://github.com/vinipsmaker/asiohttpserver/blob/aad4535b24cb6c5800fd74375479bb5732e45487/test/boosttest.cpp"><span class="icon">​</span>https://github.com/vinipsmaker/asiohttpserver/blob/aad4535b24cb6c5800fd74375479bb5732e45487/test/boosttest.cpp</a> (I forgot to remove one unnecessary <code>#include</code>, but it's not important) </p> Ticket Raffi Enficiaud Mon, 04 Jan 2016 15:32:03 GMT <link>https://svn.boost.org/trac10/ticket/11425#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11425#comment:4</guid> <description> <p> Hi, </p> <p> Thanks for those information. However from the logs you provided, it looks like you are linking against 1.59. Would you please try with 1.60? </p> </description> <category>Ticket</category> </item> <item> <author>vini.ipsmaker@…</author> <pubDate>Tue, 05 Jan 2016 06:41:34 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11425#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11425#comment:5</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/11425#comment:4" title="Comment 4">renficiaud</a>: </p> <blockquote class="citation"> <p> Hi, </p> <p> Thanks for those information. However from the logs you provided, it looks like you are linking against 1.59. Would you please try with 1.60? </p> </blockquote> <p> I missed that. Thanks for warning me. I'm gonna try and report back (possibly closing issue if already gone). </p> </description> <category>Ticket</category> </item> <item> <author>vini.ipsmaker@…</author> <pubDate>Tue, 05 Jan 2016 15:24:02 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11425#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11425#comment:6</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/11425#comment:4" title="Comment 4">renficiaud</a>: </p> <blockquote class="citation"> <p> Hi, </p> <p> Thanks for those information. However from the logs you provided, it looks like you are linking against 1.59. Would you please try with 1.60? </p> </blockquote> <p> I just updated the build to make use of Boost 1.60 and the error is still there: <a class="ext-link" href="https://travis-ci.org/vinipsmaker/asiohttpserver/jobs/99930074#L835"><span class="icon">​</span>https://travis-ci.org/vinipsmaker/asiohttpserver/jobs/99930074#L835</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Raffi Enficiaud</dc:creator> <pubDate>Wed, 06 Jan 2016 00:44:12 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11425#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11425#comment:7</guid> <description> <p> I can reproduce the complain of clang-3.5 on the same example with the included version of boost.test. However when I run the program with valgrind, I have 0 issue reported. </p> </description> <category>Ticket</category> </item> <item> <author>vini.ipsmaker@…</author> <pubDate>Wed, 06 Jan 2016 01:04:04 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11425#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11425#comment:8</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/11425#comment:7" title="Comment 7">renficiaud</a>: </p> <blockquote class="citation"> <p> I can reproduce the complain of clang-3.5 on the same example with the included version of boost.test. However when I run the program with valgrind, I have 0 issue reported. </p> </blockquote> <p> I'll take a look with Valgrind too. Thanks for the hint. </p> <p> If I don't see any error with Valgrind, then it could very well be a false negative on clang and I'll report the issue with clang guys. </p> <p> I'll report back here later. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Raffi Enficiaud</dc:creator> <pubDate>Thu, 18 Feb 2016 21:21:06 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11425#comment:9 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11425#comment:9</guid> <description> <p> Hi, </p> <p> Any news on this? </p> </description> <category>Ticket</category> </item> <item> <author>vini.ipsmaker@…</author> <pubDate>Fri, 19 Feb 2016 05:25:54 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11425#comment:10 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11425#comment:10</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/11425#comment:9" title="Comment 9">renficiaud</a>: </p> <blockquote class="citation"> <p> Any news on this? </p> </blockquote> <p> I haven't forgotten about it, but I just hasn't reserved time to investigate it yet. I'll do it eventually. </p> </description> <category>Ticket</category> </item> <item> <author>vini.ipsmaker@…</author> <pubDate>Mon, 22 Aug 2016 10:48:53 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11425#comment:11 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11425#comment:11</guid> <description> <p> The issue can be closed. It's a false positive from Clang. All libs (even libstdc++) needs to be recompiled with <a class="missing wiki">MemorySanitizer</a> if you don't want to see false positives. If I spend much more time trying to use clang's <a class="missing wiki">MemorySanitizer</a> and not have any results, I'll move entirely to Valgrind (i.e. only rely on Vallgrind memory sanitizer and not try to use both). </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Raffi Enficiaud</dc:creator> <pubDate>Tue, 23 Aug 2016 06:51:50 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/11425#comment:12 https://svn.boost.org/trac10/ticket/11425#comment:12 <ul> <li><strong>status</strong> <span class="trac-field-old">reopened</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> Hi, </p> <p> Thank you for the feedback you gave us and the time you spent in digging more! I'll use this ticket as a reference for the next memleak we receive from Clang :) </p> <p> Closing the ticket now. </p> Ticket