Boost C++ Libraries: Ticket #10233: create_directories causes invalid read https://svn.boost.org/trac10/ticket/10233 <p> The following code, when run under Valgrind, will report two instances of invalid reads during program close (after main). </p> <p> Tested on Ubuntu Linux x64 12.04 (kernel 3.8.0) with gcc 4.6.3. </p> <pre class="wiki">#include &lt;stdlib.h&gt; #include &lt;boost/filesystem.hpp&gt; int main() { system("rm -rf /tmp/test"); // make sure directory doesn't already exist boost::filesystem::create_directories("/tmp/test"); return 0; } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10233 Trac 1.4.3 Beman Dawes Thu, 24 Jul 2014 11:31:25 GMT status changed https://svn.boost.org/trac10/ticket/10233#comment:1 https://svn.boost.org/trac10/ticket/10233#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> Using gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2 on Ubuntu 14.4 LTS, I was not able to reproduce the problem. </p> <p> What were the gcc and valgrind command lines you used? </p> <p> --Beman </p> Ticket Itay C <itay.chamiel@…> Thu, 24 Jul 2014 12:17:03 GMT <link>https://svn.boost.org/trac10/ticket/10233#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10233#comment:2</guid> <description> <ol><li>put source in bbug.cpp </li><li>export BOOST_PATH=&lt;...&gt; </li><li>g++ bbug.cpp -I$BOOST_PATH/include -L$BOOST_PATH/lib -lboost_system -lboost_filesystem -Wl,-rpath=$BOOST_PATH/lib </li><li>valgrind ./a.out </li></ol> </description> <category>Ticket</category> </item> <item> <author>harisaicharan111.challa@…</author> <pubDate>Fri, 01 Dec 2017 07:07:32 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/10233#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10233#comment:3</guid> <description> <p> I have run the above code but did not get any invalid reads using valgrind so can you please elaborate on the bug ? </p> </description> <category>Ticket</category> </item> </channel> </rss>