Boost C++ Libraries: Ticket #9097: directory_iterator crash with intel release builds on windows https://svn.boost.org/trac10/ticket/9097 <pre class="wiki">#include &lt;boost/filesystem.hpp&gt; int main() { boost::filesystem::directory_iterator i1("C:\\"); boost::filesystem::directory_iterator i2("C:\\Windows"); } </pre><p> Crashes in Intel (12.1 included in Composer XE 2011 SP1) release builds. Construction of i1 works but construction of i2 gives: <em>Exception at 0x77a0320e, code: 0xc0000005: read access violation at: 0x0, flags=0x0 (first chance)</em> </p> <p> The crash (according to the debugger) happens in operations.cpp:2150. This used to work with Boost 1.48.0 and also isn't a problem with Debug or MSVC10 builds. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9097 Trac 1.4.3 Nils Gladitz <gladitz@…> Tue, 10 Sep 2013 12:14:55 GMT <link>https://svn.boost.org/trac10/ticket/9097#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9097#comment:1</guid> <description> <p> This is a stack trace which seem to suggest that the crash may be due to a call to free(): </p> <pre class="wiki">0 RtlFreeHeap ntdll 0x779c320e 1 HeapFree kernel32 0x7787300a 2 free MSVCR100 0x73c98d94 3 boost::filesystem::detail::directory_iterator_construct operations.cpp 2150 0x13fe4050b 4 main bfs_test.cpp 6 0x13fe31426 5 __tmainCRTStartup crtexe.c 555 0x13fe6cefa 6 BaseThreadInitThunk kernel32 0x7786652d 7 RtlUserThreadStart ntdll 0x7799c541 </pre> </description> <category>Ticket</category> </item> </channel> </rss>