==28793== Memcheck, a memory error detector ==28793== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al. ==28793== Using Valgrind-3.10.0 and LibVEX; rerun with -h for copyright info ==28793== Command: ./ticket8642 ==28793== Parent PID: 4579 ==28793== ==28793== Invalid read of size 8 ==28793== at 0x52FA4F3: std::codecvt const& std::use_facet >(std::locale const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20) ==28793== by 0x40226B: boost::filesystem::path_traits::convert(wchar_t const*, wchar_t const*, std::string&) (in /home/lastique/src/boost/ticket8642) ==28793== by 0x402798: void boost::filesystem::path_traits::dispatch(std::basic_string, std::allocator > const&, std::string&) (in /home/lastique/src/boost/ticket8642) ==28793== by 0x40247F: boost::filesystem::path::path, std::allocator > >(std::basic_string, std::allocator > const&, boost::enable_if, std::allocator > >::type>, void>::type*) (in /home/lastique/src/boost/ticket8642) ==28793== by 0x4022B8: sink::foo() (in /home/lastique/src/boost/ticket8642) ==28793== by 0x402329: core::~core() (in /home/lastique/src/boost/ticket8642) ==28793== by 0x402C6E: void boost::checked_delete(core*) (in /home/lastique/src/boost/ticket8642) ==28793== by 0x402E19: boost::detail::sp_counted_impl_p::dispose() (in /home/lastique/src/boost/ticket8642) ==28793== by 0x401DF5: boost::detail::sp_counted_base::release() (in /home/lastique/src/boost/ticket8642) ==28793== by 0x401E84: boost::detail::shared_count::~shared_count() (in /home/lastique/src/boost/ticket8642) ==28793== by 0x402353: boost::shared_ptr::~shared_ptr() (in /home/lastique/src/boost/ticket8642) ==28793== by 0x57B3598: __run_exit_handlers (exit.c:82) ==28793== Address 0x60623c0 is 16 bytes inside a block of size 40 free'd ==28793== at 0x4C2C2E0: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==28793== by 0x57B3598: __run_exit_handlers (exit.c:82) ==28793== by 0x57B35E4: exit (exit.c:104) ==28793== by 0x579AECB: (below main) (libc-start.c:321) ==28793== ==28793== Invalid read of size 8 ==28793== at 0x52FA4F7: std::codecvt const& std::use_facet >(std::locale const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20) ==28793== by 0x40226B: boost::filesystem::path_traits::convert(wchar_t const*, wchar_t const*, std::string&) (in /home/lastique/src/boost/ticket8642) ==28793== by 0x402798: void boost::filesystem::path_traits::dispatch(std::basic_string, std::allocator > const&, std::string&) (in /home/lastique/src/boost/ticket8642) ==28793== by 0x40247F: boost::filesystem::path::path, std::allocator > >(std::basic_string, std::allocator > const&, boost::enable_if, std::allocator > >::type>, void>::type*) (in /home/lastique/src/boost/ticket8642) ==28793== by 0x4022B8: sink::foo() (in /home/lastique/src/boost/ticket8642) ==28793== by 0x402329: core::~core() (in /home/lastique/src/boost/ticket8642) ==28793== by 0x402C6E: void boost::checked_delete(core*) (in /home/lastique/src/boost/ticket8642) ==28793== by 0x402E19: boost::detail::sp_counted_impl_p::dispose() (in /home/lastique/src/boost/ticket8642) ==28793== by 0x401DF5: boost::detail::sp_counted_base::release() (in /home/lastique/src/boost/ticket8642) ==28793== by 0x401E84: boost::detail::shared_count::~shared_count() (in /home/lastique/src/boost/ticket8642) ==28793== by 0x402353: boost::shared_ptr::~shared_ptr() (in /home/lastique/src/boost/ticket8642) ==28793== by 0x57B3598: __run_exit_handlers (exit.c:82) ==28793== Address 0x60623b8 is 8 bytes inside a block of size 40 free'd ==28793== at 0x4C2C2E0: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==28793== by 0x57B3598: __run_exit_handlers (exit.c:82) ==28793== by 0x57B35E4: exit (exit.c:104) ==28793== by 0x579AECB: (below main) (libc-start.c:321) ==28793== ==28793== Invalid read of size 8 ==28793== at 0x52FA4FD: std::codecvt const& std::use_facet >(std::locale const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20) ==28793== by 0x40226B: boost::filesystem::path_traits::convert(wchar_t const*, wchar_t const*, std::string&) (in /home/lastique/src/boost/ticket8642) ==28793== by 0x402798: void boost::filesystem::path_traits::dispatch(std::basic_string, std::allocator > const&, std::string&) (in /home/lastique/src/boost/ticket8642) ==28793== by 0x40247F: boost::filesystem::path::path, std::allocator > >(std::basic_string, std::allocator > const&, boost::enable_if, std::allocator > >::type>, void>::type*) (in /home/lastique/src/boost/ticket8642) ==28793== by 0x4022B8: sink::foo() (in /home/lastique/src/boost/ticket8642) ==28793== by 0x402329: core::~core() (in /home/lastique/src/boost/ticket8642) ==28793== by 0x402C6E: void boost::checked_delete(core*) (in /home/lastique/src/boost/ticket8642) ==28793== by 0x402E19: boost::detail::sp_counted_impl_p::dispose() (in /home/lastique/src/boost/ticket8642) ==28793== by 0x401DF5: boost::detail::sp_counted_base::release() (in /home/lastique/src/boost/ticket8642) ==28793== by 0x401E84: boost::detail::shared_count::~shared_count() (in /home/lastique/src/boost/ticket8642) ==28793== by 0x402353: boost::shared_ptr::~shared_ptr() (in /home/lastique/src/boost/ticket8642) ==28793== by 0x57B3598: __run_exit_handlers (exit.c:82) ==28793== Address 0x6063808 is 120 bytes inside a block of size 224 free'd ==28793== at 0x4C2C860: operator delete[](void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==28793== by 0x52C386C: std::locale::_Impl::~_Impl() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20) ==28793== by 0x52C3988: std::locale::~locale() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20) ==28793== by 0x57B3598: __run_exit_handlers (exit.c:82) ==28793== by 0x57B35E4: exit (exit.c:104) ==28793== by 0x579AECB: (below main) (libc-start.c:321) ==28793== ==28793== Invalid read of size 8 ==28793== at 0x52B082F: __dynamic_cast (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20) ==28793== by 0x52FA51A: std::codecvt const& std::use_facet >(std::locale const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20) ==28793== by 0x40226B: boost::filesystem::path_traits::convert(wchar_t const*, wchar_t const*, std::string&) (in /home/lastique/src/boost/ticket8642) ==28793== by 0x402798: void boost::filesystem::path_traits::dispatch(std::basic_string, std::allocator > const&, std::string&) (in /home/lastique/src/boost/ticket8642) ==28793== by 0x40247F: boost::filesystem::path::path, std::allocator > >(std::basic_string, std::allocator > const&, boost::enable_if, std::allocator > >::type>, void>::type*) (in /home/lastique/src/boost/ticket8642) ==28793== by 0x4022B8: sink::foo() (in /home/lastique/src/boost/ticket8642) ==28793== by 0x402329: core::~core() (in /home/lastique/src/boost/ticket8642) ==28793== by 0x402C6E: void boost::checked_delete(core*) (in /home/lastique/src/boost/ticket8642) ==28793== by 0x402E19: boost::detail::sp_counted_impl_p::dispose() (in /home/lastique/src/boost/ticket8642) ==28793== by 0x401DF5: boost::detail::sp_counted_base::release() (in /home/lastique/src/boost/ticket8642) ==28793== by 0x401E84: boost::detail::shared_count::~shared_count() (in /home/lastique/src/boost/ticket8642) ==28793== by 0x402353: boost::shared_ptr::~shared_ptr() (in /home/lastique/src/boost/ticket8642) ==28793== Address 0x6065b20 is 0 bytes inside a block of size 24 free'd ==28793== at 0x4C2C2E0: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==28793== by 0x52C3845: std::locale::_Impl::~_Impl() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20) ==28793== by 0x52C3988: std::locale::~locale() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20) ==28793== by 0x57B3598: __run_exit_handlers (exit.c:82) ==28793== by 0x57B35E4: exit (exit.c:104) ==28793== by 0x579AECB: (below main) (libc-start.c:321) ==28793== ==28793== ==28793== HEAP SUMMARY: ==28793== in use at exit: 474 bytes in 9 blocks ==28793== total heap usage: 100 allocs, 91 frees, 13,660 bytes allocated ==28793== ==28793== LEAK SUMMARY: ==28793== definitely lost: 0 bytes in 0 blocks ==28793== indirectly lost: 0 bytes in 0 blocks ==28793== possibly lost: 402 bytes in 5 blocks ==28793== still reachable: 72 bytes in 4 blocks ==28793== suppressed: 0 bytes in 0 blocks ==28793== Rerun with --leak-check=full to see details of leaked memory ==28793== ==28793== For counts of detected and suppressed errors, rerun with: -v ==28793== ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 0 from 0)