==28717== Memcheck, a memory error detector ==28717== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al. ==28717== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info ==28717== Command: ./tutorial_file ==28717== ==28717== Invalid read of size 8 ==28717== at 0x6BC2E18: wcscmp (wcscmp.S:479) ==28717== by 0x645E113: std::moneypunct::~moneypunct() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16) ==28717== by 0x645E198: std::moneypunct::~moneypunct() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16) ==28717== by 0x6452A79: std::locale::_Impl::~_Impl() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16) ==28717== by 0x6452C4C: std::locale::~locale() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16) ==28717== by 0x6B5CD1C: __cxa_finalize (cxa_finalize.c:56) ==28717== by 0x6EEFFE5: ??? (in /home/azg/Downloads/boost_1_54_0/bin.v2/libs/filesystem/build/gcc-4.6/debug/threading-multi/libboost_filesystem.so.1.54.0) ==28717== by 0x6EFC640: ??? (in /home/azg/Downloads/boost_1_54_0/bin.v2/libs/filesystem/build/gcc-4.6/debug/threading-multi/libboost_filesystem.so.1.54.0) ==28717== by 0x6B5C900: __run_exit_handlers (exit.c:78) ==28717== by 0x6B5C984: exit (exit.c:100) ==28717== by 0x6B42773: (below main) (libc-start.c:258) ==28717== Address 0x760e358 is 0 bytes after a block of size 8 alloc'd ==28717== at 0x4C2AC27: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==28717== by 0x645DDED: std::moneypunct::_M_initialize_moneypunct(__locale_struct*, char const*) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16) ==28717== by 0x645511E: std::locale::_Impl::_Impl(char const*, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16) ==28717== by 0x645565E: std::locale::locale(char const*) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16) ==28717== by 0x6EFA0E0: boost::filesystem::path::codecvt() (path.cpp:911) ==28717== by 0x5D226C0: boost::enable_if::type>, boost::filesystem::path&>::type boost::filesystem::path::operator=(std::string const&) (path.hpp:202) ==28717== by 0x5D1851B: boost::log::v2_mt_posix::sinks::text_file_backend::set_file_name_pattern_internal(boost::filesystem::path const&) (text_file_backend.cpp:1188) ==28717== by 0x5D17E0B: boost::log::v2_mt_posix::sinks::text_file_backend::construct(boost::filesystem::path const&, std::_Ios_Openmode, unsigned long, boost::log::v2_mt_posix::aux::light_function const&, bool) (text_file_backend.cpp:1100) ==28717== by 0x431543: void boost::log::v2_mt_posix::sinks::text_file_backend::construct, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::empty_arg_list> > > > >(boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::empty_arg_list> > > > const&) (text_file_backend.hpp:511) ==28717== by 0x4307BE: boost::log::v2_mt_posix::sinks::text_file_backend::text_file_backend, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::empty_arg_list> > > > >(boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::empty_arg_list> > > > const&) (text_file_backend.hpp:386) ==28717== by 0x42FA34: boost::detail::sp_if_not_array::type boost::make_shared, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::empty_arg_list> > > > >(boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::empty_arg_list> > > > const&) (make_shared_object.hpp:711) ==28717== by 0x42E5AF: boost::shared_ptr > boost::log::v2_mt_posix::aux::add_file_log, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::empty_arg_list> > > > >(boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::empty_arg_list> > > > const&) (file.hpp:75) ==28717== ==28717== Invalid read of size 8 ==28717== at 0x6BC2E18: wcscmp (wcscmp.S:479) ==28717== by 0x645E003: std::moneypunct::~moneypunct() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16) ==28717== by 0x645E088: std::moneypunct::~moneypunct() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16) ==28717== by 0x6452A79: std::locale::_Impl::~_Impl() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16) ==28717== by 0x6452C4C: std::locale::~locale() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16) ==28717== by 0x6B5CD1C: __cxa_finalize (cxa_finalize.c:56) ==28717== by 0x6EEFFE5: ??? (in /home/azg/Downloads/boost_1_54_0/bin.v2/libs/filesystem/build/gcc-4.6/debug/threading-multi/libboost_filesystem.so.1.54.0) ==28717== by 0x6EFC640: ??? (in /home/azg/Downloads/boost_1_54_0/bin.v2/libs/filesystem/build/gcc-4.6/debug/threading-multi/libboost_filesystem.so.1.54.0) ==28717== by 0x6B5C900: __run_exit_handlers (exit.c:78) ==28717== by 0x6B5C984: exit (exit.c:100) ==28717== by 0x6B42773: (below main) (libc-start.c:258) ==28717== Address 0x760e588 is 0 bytes after a block of size 8 alloc'd ==28717== at 0x4C2AC27: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==28717== by 0x645D7FD: std::moneypunct::_M_initialize_moneypunct(__locale_struct*, char const*) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16) ==28717== by 0x645516B: std::locale::_Impl::_Impl(char const*, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16) ==28717== by 0x645565E: std::locale::locale(char const*) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16) ==28717== by 0x6EFA0E0: boost::filesystem::path::codecvt() (path.cpp:911) ==28717== by 0x5D226C0: boost::enable_if::type>, boost::filesystem::path&>::type boost::filesystem::path::operator=(std::string const&) (path.hpp:202) ==28717== by 0x5D1851B: boost::log::v2_mt_posix::sinks::text_file_backend::set_file_name_pattern_internal(boost::filesystem::path const&) (text_file_backend.cpp:1188) ==28717== by 0x5D17E0B: boost::log::v2_mt_posix::sinks::text_file_backend::construct(boost::filesystem::path const&, std::_Ios_Openmode, unsigned long, boost::log::v2_mt_posix::aux::light_function const&, bool) (text_file_backend.cpp:1100) ==28717== by 0x431543: void boost::log::v2_mt_posix::sinks::text_file_backend::construct, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::empty_arg_list> > > > >(boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::empty_arg_list> > > > const&) (text_file_backend.hpp:511) ==28717== by 0x4307BE: boost::log::v2_mt_posix::sinks::text_file_backend::text_file_backend, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::empty_arg_list> > > > >(boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::empty_arg_list> > > > const&) (text_file_backend.hpp:386) ==28717== by 0x42FA34: boost::detail::sp_if_not_array::type boost::make_shared, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::empty_arg_list> > > > >(boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::empty_arg_list> > > > const&) (make_shared_object.hpp:711) ==28717== by 0x42E5AF: boost::shared_ptr > boost::log::v2_mt_posix::aux::add_file_log, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::empty_arg_list> > > > >(boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::parameter::aux::empty_arg_list> > > > const&) (file.hpp:75) ==28717== ==28717== ==28717== HEAP SUMMARY: ==28717== in use at exit: 512 bytes in 5 blocks ==28717== total heap usage: 353 allocs, 348 frees, 55,755 bytes allocated ==28717== ==28717== LEAK SUMMARY: ==28717== definitely lost: 0 bytes in 0 blocks ==28717== indirectly lost: 0 bytes in 0 blocks ==28717== possibly lost: 0 bytes in 0 blocks ==28717== still reachable: 512 bytes in 5 blocks ==28717== suppressed: 0 bytes in 0 blocks ==28717== Rerun with --leak-check=full to see details of leaked memory ==28717== ==28717== For counts of detected and suppressed errors, rerun with: -v ==28717== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 2 from 2)