Boost C++ Libraries: Ticket #8345: 0 bytes after a block of size 8 alloc'd https://svn.boost.org/trac10/ticket/8345 <p> I was just profiling my appication build with 1.53.0 using valgrind 3.8.1 and have this errors </p> <p> This was build on Ubuntu 12.10 server x64 </p> <p> Here is the source code </p> <blockquote> <p> std::string storePathStr; <em> Set from arg list boost::filesystem::path storePath; </em></p> </blockquote> <blockquote> <p> if( storePathStr.empty() ) </p> <blockquote> <p> storePath /= "./store/"; <em> (boost::filesystem::current_path()); </em></p> </blockquote> <p> else { </p> <blockquote> <p> if( storePathStr[storePathStr.size()-1] != PATH_SEPERATOR ) </p> <blockquote> <p> storePathStr.append(1, PATH_SEPERATOR); </p> </blockquote> </blockquote> </blockquote> <blockquote> <blockquote> <p> storePath = boost::filesystem::path(storePathStr); </p> </blockquote> <p> } </p> </blockquote> <blockquote> <p> if( storePath.has_extension() ) </p> <blockquote> <p> THROW_APP_EXCEPTION("Invalid Store Path: " + storePath.string()); </p> </blockquote> </blockquote> <p> Here is stack </p> <p> operator new[](unsigned long) std::moneypunct&amp;lt;wchar_t, false&amp;gt;::_M_initialize_moneypunct(<span class="underline">locale_struct*, char const*) std::locale::_Impl::_Impl(char const*, unsigned long) std::locale::locale(char const*) boost::filesystem::path::codecvt() boost::filesystem::path::begin() boost::filesystem::path::compare(boost::filesystem::path const&amp;amp;) const boost::filesystem::path::extension() boost::filesystem::path::has_extension() </span></p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8345 Trac 1.4.3 rjgebis@… Wed, 27 Mar 2013 16:48:19 GMT <link>https://svn.boost.org/trac10/ticket/8345#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8345#comment:1</guid> <description> <p> there is missing call before .has_extansion() in first post </p> <p> storePath = storePath.make_preferred(); </p> <p> if( storePath.has_extension() ) </p> <blockquote> <p> THROW_APP_EXCEPTION("Invalid Store Path: " + storePath.string()); </p> </blockquote> </description> <category>Ticket</category> </item> </channel> </rss>