Boost C++ Libraries: Ticket #13339: boost::filesystem segfaults under simple use... https://svn.boost.org/trac10/ticket/13339 <p> Centos - 7 3.10.0-693.el7.x86_64 devtools-6 installed (g++ 6.3.1) Attempted using Boost 1_65_1 Failed Segfault Attempted using Boost 1_54_0 Passed </p> <p> Simple program... Statically linked after building boost. #include &lt;boost/filesystem.hpp&gt; #include &lt;iostream&gt; </p> <p> int main() { </p> <blockquote> <p> boost::filesystem::path path("/tmp"); if ( boost::filesystem::exists( path ) ) { </p> </blockquote> <p> <em> std::cout &lt;&lt; "TEST"; </em> } else { <em> std::cout &lt;&lt; "TEST2"; </em></p> <blockquote> <p> } return 0; </p> </blockquote> <p> } </p> <p> Segfaults on the "boost::filesystem::exists" </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13339 Trac 1.4.3