id summary reporter owner description type status milestone component version severity resolution keywords cc 6690 access violation using global path object Claudio Bley Beman Dawes "I think this is an instance of ""static initialization order fiasco"". The following code crashes with ""Access violation reading location 0x00000000"". {{{ #!cpp #include #include const boost::filesystem::path p(""test""); int main(int argc, char *argv[]) { std::cout << p << std::endl; } }}} This is caused by ```codecvt_facet``` not being initialised on its first use. Call Stack: {{{ fspath.exe!std::codecvt::in(int & _State, const char * _First1, const char * _Last1, const char * & _Mid1, wchar_t * _First2, wchar_t * _Last2, wchar_t * & _Mid2) Line 1521 + 0x1f bytes C++ fspath.exe!`anonymous namespace'::convert_aux(const char * from, const char * from_end, wchar_t * to, wchar_t * to_end, std::basic_string,std::allocator > & target, const std::codecvt & cvt) Line 84 + 0x24 bytes C++ fspath.exe!boost::filesystem3::path_traits::convert(const char * from, const char * from_end, std::basic_string,std::allocator > & to, const std::codecvt & cvt) Line 165 + 0x20 bytes C++ fspath.exe!boost::filesystem3::path_traits::dispatch,std::allocator > >(const std::basic_string,std::allocator > & c, std::basic_string,std::allocator > & to, const std::codecvt & cvt) Line 174 + 0x60 bytes C++ fspath.exe!boost::filesystem3::path::path(const char [5]& source, void * __formal) Line 135 + 0x23 bytes C++ }}} this == 0x00000000 Compiled with ```cl /EHsc /DEBUG /Zi /D _DEBUG /MTd /I%localappdata%\boost\boost_1_49 fspath.cpp /link /libpath:%localappdata%\boost\boost_1_49\lib```. - Claudio" Bugs closed To Be Determined filesystem Boost 1.49.0 Regression fixed