==30198== Memcheck, a memory error detector ==30198== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al. ==30198== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info ==30198== Command: ./xxx ==30198== initializing logging ... ==30198== Invalid read of size 4 ==30198== at 0x6951490: std::locale::locale(std::locale const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16) ==30198== by 0x62176B: boost::filesystem::path::codecvt() (in /home/azg/code/yyy/build_debug/xxx) ==30198== by 0x647044: boost::log::v2s_mt_posix::sinks::text_file_backend::set_file_name_pattern_internal(boost::filesystem::path const&) (in /home/azg/code/yyy/build_debug/xxx) ==30198== by 0x64813A: boost::log::v2s_mt_posix::sinks::text_file_backend::construct(boost::filesystem::path const&, std::_Ios_Openmode, unsigned long, boost::log::v2s_mt_posix::aux::light_function const&, bool) (in /home/azg/code/yyy/build_debug/xxx) ==30198== by 0x56D4BF: void boost::log::v2s_mt_posix::sinks::text_file_backend::construct >, 0l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> >, boost::phoenix::actor, 0l> > >, 2l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> > const>, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::phoenix::actor, 0l> > >, 2l> > const>, boost::parameter::aux::empty_arg_list> > > >(boost::parameter::aux::arg_list >, 0l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> >, boost::phoenix::actor, 0l> > >, 2l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> > const>, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::phoenix::actor, 0l> > >, 2l> > const>, boost::parameter::aux::empty_arg_list> > > const&) (text_file_backend.hpp:511) ==30198== by 0x563E36: boost::log::v2s_mt_posix::sinks::text_file_backend::text_file_backend >, 0l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> >, boost::phoenix::actor, 0l> > >, 2l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> > const>, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::phoenix::actor, 0l> > >, 2l> > const>, boost::parameter::aux::empty_arg_list> > > >(boost::parameter::aux::arg_list >, 0l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> >, boost::phoenix::actor, 0l> > >, 2l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> > const>, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::phoenix::actor, 0l> > >, 2l> > const>, boost::parameter::aux::empty_arg_list> > > const&) (text_file_backend.hpp:386) ==30198== by 0x570235: boost::detail::sp_if_not_array::type boost::make_shared >, 0l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> >, boost::phoenix::actor, 0l> > >, 2l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> > const>, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::phoenix::actor, 0l> > >, 2l> > const>, boost::parameter::aux::empty_arg_list> > > >(boost::parameter::aux::arg_list >, 0l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> >, boost::phoenix::actor, 0l> > >, 2l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> > const>, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::phoenix::actor, 0l> > >, 2l> > const>, boost::parameter::aux::empty_arg_list> > > const&) (make_shared_object.hpp:711) ==30198== by 0x548EFD: boost::shared_ptr > boost::log::v2s_mt_posix::aux::add_file_log >, 0l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> >, boost::phoenix::actor, 0l> > >, 2l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> > const>, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::phoenix::actor, 0l> > >, 2l> > const>, boost::parameter::aux::empty_arg_list> > > >(boost::parameter::aux::arg_list >, 0l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> >, boost::phoenix::actor, 0l> > >, 2l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> > const>, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::phoenix::actor, 0l> > >, 2l> > const>, boost::parameter::aux::empty_arg_list> > > const&) (file.hpp:75) ==30198== by 0x55147A: boost::shared_ptr > boost::log::v2s_mt_posix::add_file_log, boost::parameter::aux::tagged_argument, boost::phoenix::actor, 0l> > >, 2l> > const>, boost::parameter::aux::tagged_argument >, 0l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> >, boost::phoenix::actor, 0l> > >, 2l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> > const> >(boost::parameter::aux::tagged_argument const&, boost::parameter::aux::tagged_argument, boost::phoenix::actor, 0l> > >, 2l> > const> const&, boost::parameter::aux::tagged_argument >, 0l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> >, boost::phoenix::actor, 0l> > >, 2l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> > const> const&) (file.hpp:127) ==30198== by 0x538BE3: LoggingHelper::LoggingHelper() (logging_helper.h:51) ==30198== by 0x5430A4: __sti__loggingHelper (in /home/azg/code/yyy/build_debug/xxx) ==30198== by 0x542F7F: __sti__$E (in /home/azg/code/yyy/build_debug/xxx) ==30198== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==30198== ==30198== ==30198== Process terminating with default action of signal 11 (SIGSEGV) ==30198== Access not within mapped region at address 0x0 ==30198== at 0x6951490: std::locale::locale(std::locale const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16) ==30198== by 0x62176B: boost::filesystem::path::codecvt() (in /home/azg/code/yyy/build_debug/xxx) ==30198== by 0x647044: boost::log::v2s_mt_posix::sinks::text_file_backend::set_file_name_pattern_internal(boost::filesystem::path const&) (in /home/azg/code/yyy/build_debug/xxx) ==30198== by 0x64813A: boost::log::v2s_mt_posix::sinks::text_file_backend::construct(boost::filesystem::path const&, std::_Ios_Openmode, unsigned long, boost::log::v2s_mt_posix::aux::light_function const&, bool) (in /home/azg/code/yyy/build_debug/xxx) ==30198== by 0x56D4BF: void boost::log::v2s_mt_posix::sinks::text_file_backend::construct >, 0l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> >, boost::phoenix::actor, 0l> > >, 2l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> > const>, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::phoenix::actor, 0l> > >, 2l> > const>, boost::parameter::aux::empty_arg_list> > > >(boost::parameter::aux::arg_list >, 0l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> >, boost::phoenix::actor, 0l> > >, 2l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> > const>, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::phoenix::actor, 0l> > >, 2l> > const>, boost::parameter::aux::empty_arg_list> > > const&) (text_file_backend.hpp:511) ==30198== by 0x563E36: boost::log::v2s_mt_posix::sinks::text_file_backend::text_file_backend >, 0l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> >, boost::phoenix::actor, 0l> > >, 2l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> > const>, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::phoenix::actor, 0l> > >, 2l> > const>, boost::parameter::aux::empty_arg_list> > > >(boost::parameter::aux::arg_list >, 0l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> >, boost::phoenix::actor, 0l> > >, 2l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> > const>, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::phoenix::actor, 0l> > >, 2l> > const>, boost::parameter::aux::empty_arg_list> > > const&) (text_file_backend.hpp:386) ==30198== by 0x570235: boost::detail::sp_if_not_array::type boost::make_shared >, 0l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> >, boost::phoenix::actor, 0l> > >, 2l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> > const>, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::phoenix::actor, 0l> > >, 2l> > const>, boost::parameter::aux::empty_arg_list> > > >(boost::parameter::aux::arg_list >, 0l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> >, boost::phoenix::actor, 0l> > >, 2l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> > const>, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::phoenix::actor, 0l> > >, 2l> > const>, boost::parameter::aux::empty_arg_list> > > const&) (make_shared_object.hpp:711) ==30198== by 0x548EFD: boost::shared_ptr > boost::log::v2s_mt_posix::aux::add_file_log >, 0l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> >, boost::phoenix::actor, 0l> > >, 2l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> > const>, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::phoenix::actor, 0l> > >, 2l> > const>, boost::parameter::aux::empty_arg_list> > > >(boost::parameter::aux::arg_list >, 0l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> >, boost::phoenix::actor, 0l> > >, 2l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> > const>, boost::parameter::aux::arg_list, boost::parameter::aux::arg_list, boost::phoenix::actor, 0l> > >, 2l> > const>, boost::parameter::aux::empty_arg_list> > > const&) (file.hpp:75) ==30198== by 0x55147A: boost::shared_ptr > boost::log::v2s_mt_posix::add_file_log, boost::parameter::aux::tagged_argument, boost::phoenix::actor, 0l> > >, 2l> > const>, boost::parameter::aux::tagged_argument >, 0l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> >, boost::phoenix::actor, 0l> > >, 2l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> > const> >(boost::parameter::aux::tagged_argument const&, boost::parameter::aux::tagged_argument, boost::phoenix::actor, 0l> > >, 2l> > const> const&, boost::parameter::aux::tagged_argument >, 0l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> >, boost::phoenix::actor, 0l> > >, 2l> >, boost::log::v2s_mt_posix::expressions::attribute_actor >, 2l> > const> const&) (file.hpp:127) ==30198== by 0x538BE3: LoggingHelper::LoggingHelper() (logging_helper.h:51) ==30198== by 0x5430A4: __sti__loggingHelper (in /home/azg/code/yyy/build_debug/xxx) ==30198== by 0x542F7F: __sti__$E (in /home/azg/code/yyy/build_debug/xxx) ==30198== If you believe this happened as a result of a stack ==30198== overflow in your program's main thread (unlikely but ==30198== possible), you can try to increase the size of the ==30198== main thread stack using the --main-stacksize= flag. ==30198== The main thread stack size used in this run was 8388608. ==30198== ==30198== HEAP SUMMARY: ==30198== in use at exit: 12,015 bytes in 107 blocks ==30198== total heap usage: 178 allocs, 71 frees, 19,018 bytes allocated ==30198== ==30198== LEAK SUMMARY: ==30198== definitely lost: 0 bytes in 0 blocks ==30198== indirectly lost: 0 bytes in 0 blocks ==30198== possibly lost: 330 bytes in 10 blocks ==30198== still reachable: 11,685 bytes in 97 blocks ==30198== suppressed: 0 bytes in 0 blocks ==30198== Rerun with --leak-check=full to see details of leaked memory ==30198== ==30198== For counts of detected and suppressed errors, rerun with: -v ==30198== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 2 from 2)