==741== Memcheck, a memory error detector ==741== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al. ==741== Using Valgrind-3.5.0-Debian and LibVEX; rerun with -h for copyright info ==741== Command: ./a.out ==741== ==741== Use of uninitialised value of size 8 ==741== at 0x4ECE83B: std::basic_string, std::allocator >::basic_string(std::string const&) (in /usr/lib/libstdc++.so.6.0.13) ==741== by 0x407899: boost::iterator_range::type> boost::as_literal(std::string const&) (in /home/steve/Packages/boost/PR/a.out) ==741== by 0x414F29: boost::algorithm::detail::first_finderF::type, boost::algorithm::is_equal> boost::algorithm::first_finder(std::string const&) (in /home/steve/Packages/boost/PR/a.out) ==741== by 0x414527: void boost::algorithm::erase_all(std::string&, std::string const&) (in /home/steve/Packages/boost/PR/a.out) ==741== by 0x413157: boost::date_time::time_facet > >::put(std::ostreambuf_iterator >, std::ios_base&, char, boost::posix_time::ptime const&) const (in /home/steve/Packages/boost/PR/a.out) ==741== by 0x41122A: std::basic_ostream >& boost::posix_time::operator<< >(std::basic_ostream >&, boost::posix_time::ptime const&) (in /home/steve/Packages/boost/PR/a.out) ==741== by 0x40F0CC: bar() (in /home/steve/Packages/boost/PR/a.out) ==741== by 0x4031EF: main (in /home/steve/Packages/boost/PR/a.out) ==741== Uninitialised value was created by a stack allocation ==741== at 0x414F05: boost::algorithm::detail::first_finderF::type, boost::algorithm::is_equal> boost::algorithm::first_finder(std::string const&) (in /home/steve/Packages/boost/PR/a.out) ==741== ==741== Use of uninitialised value of size 8 ==741== at 0x4ECDF79: std::string::_Rep::_M_clone(std::allocator const&, unsigned long) (in /usr/lib/libstdc++.so.6.0.13) ==741== by 0x4ECE86B: std::basic_string, std::allocator >::basic_string(std::string const&) (in /usr/lib/libstdc++.so.6.0.13) ==741== by 0x407899: boost::iterator_range::type> boost::as_literal(std::string const&) (in /home/steve/Packages/boost/PR/a.out) ==741== by 0x414F29: boost::algorithm::detail::first_finderF::type, boost::algorithm::is_equal> boost::algorithm::first_finder(std::string const&) (in /home/steve/Packages/boost/PR/a.out) ==741== by 0x414527: void boost::algorithm::erase_all(std::string&, std::string const&) (in /home/steve/Packages/boost/PR/a.out) ==741== by 0x413157: boost::date_time::time_facet > >::put(std::ostreambuf_iterator >, std::ios_base&, char, boost::posix_time::ptime const&) const (in /home/steve/Packages/boost/PR/a.out) ==741== by 0x41122A: std::basic_ostream >& boost::posix_time::operator<< >(std::basic_ostream >&, boost::posix_time::ptime const&) (in /home/steve/Packages/boost/PR/a.out) ==741== by 0x40F0CC: bar() (in /home/steve/Packages/boost/PR/a.out) ==741== by 0x4031EF: main (in /home/steve/Packages/boost/PR/a.out) ==741== Uninitialised value was created by a stack allocation ==741== at 0x414F05: boost::algorithm::detail::first_finderF::type, boost::algorithm::is_equal> boost::algorithm::first_finder(std::string const&) (in /home/steve/Packages/boost/PR/a.out) ==741== terminate called after throwing an instance of 'std::length_error' what(): basic_string::_S_create ==741== ==741== HEAP SUMMARY: ==741== in use at exit: 2,352 bytes in 31 blocks ==741== total heap usage: 48 allocs, 17 frees, 5,519 bytes allocated ==741== ==741== LEAK SUMMARY: ==741== definitely lost: 0 bytes in 0 blocks ==741== indirectly lost: 0 bytes in 0 blocks ==741== possibly lost: 1,376 bytes in 24 blocks ==741== still reachable: 976 bytes in 7 blocks ==741== suppressed: 0 bytes in 0 blocks ==741== Rerun with --leak-check=full to see details of leaked memory ==741== ==741== For counts of detected and suppressed errors, rerun with: -v ==741== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 4 from 4)