==3544== Memcheck, a memory error detector ==3544== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al. ==3544== Using Valgrind-3.5.0-Debian and LibVEX; rerun with -h for copyright info ==3544== Command: ./a.out ==3544== --3544-- Valgrind options: --3544-- --suppressions=/usr/lib/valgrind/debian-libc6-dbg.supp --3544-- -v --3544-- --track-origins=yes --3544-- Contents of /proc/version: --3544-- Linux version 2.6.32-trunk-amd64 (Debian 2.6.32-2) (ben@decadent.org.uk) (gcc version 4.3.4 (Debian 4.3.4-6) ) #1 SMP Thu Dec 17 06:29:18 UTC 2009 --3544-- Arch and hwcaps: AMD64, amd64-sse3-cx16 --3544-- Page sizes: currently 4096, max supported 4096 --3544-- Valgrind library directory: /usr/lib/valgrind --3544-- Reading syms from /home/steve/Packages/boost/PR/a.out (0x400000) --3544-- Reading syms from /lib/ld-2.10.2.so (0x4000000) --3544-- Reading debug info from /lib/ld-2.10.2.so .. --3544-- .. CRC mismatch (computed e5bf83ad wanted 511ea7fb) --3544-- Reading debug info from /usr/lib/debug/lib/ld-2.10.2.so .. --3544-- Reading syms from /usr/lib/valgrind/memcheck-amd64-linux (0x38000000) --3544-- object doesn't have a dynamic symbol table --3544-- Reading suppressions file: /usr/lib/valgrind/debian-libc6-dbg.supp --3544-- Reading suppressions file: /usr/lib/valgrind/default.supp --3544-- REDIR: 0x4015770 (strlen) redirected to 0x380408d7 (vgPlain_amd64_linux_REDIR_FOR_strlen) --3544-- Reading syms from /usr/lib/valgrind/vgpreload_core-amd64-linux.so (0x4a1e000) --3544-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so (0x4c1f000) ==3544== WARNING: new redirection conflicts with existing -- ignoring it --3544-- new: 0x04015770 (strlen ) R-> 0x04c23260 strlen --3544-- REDIR: 0x40156c0 (index) redirected to 0x4c22fc0 (index) --3544-- REDIR: 0x4015740 (strcmp) redirected to 0x4c23550 (strcmp) --3544-- Reading syms from /usr/lib/libstdc++.so.6.0.13 (0x4e26000) --3544-- object doesn't have a symbol table --3544-- Reading syms from /lib/libm-2.10.2.so (0x5136000) --3544-- Reading debug info from /lib/libm-2.10.2.so .. --3544-- .. CRC mismatch (computed 0b18058e wanted ddd6b386) --3544-- Reading debug info from /usr/lib/debug/lib/libm-2.10.2.so .. --3544-- Reading syms from /lib/libgcc_s.so.1 (0x53b8000) --3544-- Reading debug info from /lib/libgcc_s.so.1 .. --3544-- .. CRC mismatch (computed 0dddc452 wanted 6f4d0b18) --3544-- object doesn't have a symbol table --3544-- Reading syms from /lib/libc-2.10.2.so (0x55ce000) --3544-- Reading debug info from /lib/libc-2.10.2.so .. --3544-- .. CRC mismatch (computed cc6ee3a0 wanted c85e88ac) --3544-- Reading debug info from /usr/lib/debug/lib/libc-2.10.2.so .. --3544-- REDIR: 0x5647b30 (rindex) redirected to 0x4c22e20 (rindex) --3544-- REDIR: 0x56477b0 (strlen) redirected to 0x4c23220 (strlen) --3544-- REDIR: 0xffffffffff600400 (???) redirected to 0x380408cd (vgPlain_amd64_linux_REDIR_FOR_vtime) --3544-- REDIR: 0x5643950 (free) redirected to 0x4c21d35 (free) --3544-- REDIR: 0x5643a30 (malloc) redirected to 0x4c22125 (malloc) --3544-- REDIR: 0x564a680 (memcpy) redirected to 0x4c23650 (memcpy) --3544-- REDIR: 0x5647260 (strcpy) redirected to 0x4c23280 (strcpy) --3544-- REDIR: 0x5647220 (strcmp) redirected to 0x4c234f0 (strcmp) --3544-- REDIR: 0x4eed2d0 (operator new(unsigned long)) redirected to 0x4c22945 (operator new(unsigned long)) --3544-- REDIR: 0x4eeb450 (operator delete(void*)) redirected to 0x4c21a47 (operator delete(void*)) --3544-- REDIR: 0x4eed400 (operator new[](unsigned long)) redirected to 0x4c225bd (operator new[](unsigned long)) --3544-- REDIR: 0x4eeb490 (operator delete[](void*)) redirected to 0x4c216c3 (operator delete[](void*)) ==3544== Use of uninitialised value of size 8 ==3544== at 0x4ECC15B: std::basic_string, std::allocator >::basic_string(std::string const&) (in /usr/lib/libstdc++.so.6.0.13) ==3544== by 0x407899: boost::iterator_range::type> boost::as_literal(std::string const&) (as_literal.hpp:109) ==3544== by 0x414F29: boost::algorithm::detail::first_finderF::type, boost::algorithm::is_equal> boost::algorithm::first_finder(std::string const&) (finder.hpp:59) ==3544== by 0x414527: void boost::algorithm::erase_all(std::string&, std::string const&) (erase.hpp:593) ==3544== by 0x413157: boost::date_time::time_facet > >::put(std::ostreambuf_iterator >, std::ios_base&, char, boost::posix_time::ptime const&) const (time_facet.hpp:326) ==3544== by 0x41122A: std::basic_ostream >& boost::posix_time::operator<< >(std::basic_ostream >&, boost::posix_time::ptime const&) (posix_time_io.hpp:63) ==3544== by 0x40F0CC: bar() (537680-2.cc:6) ==3544== by 0x4031EF: main (537680-1.cc:23) ==3544== Uninitialised value was created by a stack allocation ==3544== at 0x414F05: boost::algorithm::detail::first_finderF::type, boost::algorithm::is_equal> boost::algorithm::first_finder(std::string const&) (finder.hpp:53) ==3544== ==3544== Invalid read of size 4 ==3544== at 0x4ECC15B: std::basic_string, std::allocator >::basic_string(std::string const&) (in /usr/lib/libstdc++.so.6.0.13) ==3544== by 0x407899: boost::iterator_range::type> boost::as_literal(std::string const&) (as_literal.hpp:109) ==3544== by 0x414F29: boost::algorithm::detail::first_finderF::type, boost::algorithm::is_equal> boost::algorithm::first_finder(std::string const&) (finder.hpp:59) ==3544== by 0x414527: void boost::algorithm::erase_all(std::string&, std::string const&) (erase.hpp:593) ==3544== by 0x413157: boost::date_time::time_facet > >::put(std::ostreambuf_iterator >, std::ios_base&, char, boost::posix_time::ptime const&) const (time_facet.hpp:326) ==3544== by 0x41122A: std::basic_ostream >& boost::posix_time::operator<< >(std::basic_ostream >&, boost::posix_time::ptime const&) (posix_time_io.hpp:63) ==3544== by 0x40F0CC: bar() (537680-2.cc:6) ==3544== by 0x4031EF: main (537680-1.cc:23) ==3544== Address 0xfffffffffffffffb is not stack'd, malloc'd or (recently) free'd ==3544== ==3544== ==3544== Process terminating with default action of signal 11 (SIGSEGV): dumping core ==3544== Access not within mapped region at address 0xFFFFFFFFFFFFFFFB ==3544== at 0x4ECC15B: std::basic_string, std::allocator >::basic_string(std::string const&) (in /usr/lib/libstdc++.so.6.0.13) ==3544== by 0x407899: boost::iterator_range::type> boost::as_literal(std::string const&) (as_literal.hpp:109) ==3544== by 0x414F29: boost::algorithm::detail::first_finderF::type, boost::algorithm::is_equal> boost::algorithm::first_finder(std::string const&) (finder.hpp:59) ==3544== by 0x414527: void boost::algorithm::erase_all(std::string&, std::string const&) (erase.hpp:593) ==3544== by 0x413157: boost::date_time::time_facet > >::put(std::ostreambuf_iterator >, std::ios_base&, char, boost::posix_time::ptime const&) const (time_facet.hpp:326) ==3544== by 0x41122A: std::basic_ostream >& boost::posix_time::operator<< >(std::basic_ostream >&, boost::posix_time::ptime const&) (posix_time_io.hpp:63) ==3544== by 0x40F0CC: bar() (537680-2.cc:6) ==3544== by 0x4031EF: main (537680-1.cc:23) ==3544== If you believe this happened as a result of a stack ==3544== overflow in your program's main thread (unlikely but ==3544== possible), you can try to increase the size of the ==3544== main thread stack using the --main-stacksize= flag. ==3544== The main thread stack size used in this run was 8388608. ==3544== ==3544== HEAP SUMMARY: ==3544== in use at exit: 2,160 bytes in 29 blocks ==3544== total heap usage: 45 allocs, 16 frees, 5,295 bytes allocated ==3544== ==3544== Searching for pointers to 29 not-freed blocks ==3544== Checked 177,248 bytes ==3544== ==3544== LEAK SUMMARY: ==3544== definitely lost: 0 bytes in 0 blocks ==3544== indirectly lost: 0 bytes in 0 blocks ==3544== possibly lost: 1,184 bytes in 22 blocks ==3544== still reachable: 976 bytes in 7 blocks ==3544== suppressed: 0 bytes in 0 blocks ==3544== Rerun with --leak-check=full to see details of leaked memory ==3544== ==3544== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 4 from 4) ==3544== ==3544== 1 errors in context 1 of 2: ==3544== Invalid read of size 4 ==3544== at 0x4ECC15B: std::basic_string, std::allocator >::basic_string(std::string const&) (in /usr/lib/libstdc++.so.6.0.13) ==3544== by 0x407899: boost::iterator_range::type> boost::as_literal(std::string const&) (as_literal.hpp:109) ==3544== by 0x414F29: boost::algorithm::detail::first_finderF::type, boost::algorithm::is_equal> boost::algorithm::first_finder(std::string const&) (finder.hpp:59) ==3544== by 0x414527: void boost::algorithm::erase_all(std::string&, std::string const&) (erase.hpp:593) ==3544== by 0x413157: boost::date_time::time_facet > >::put(std::ostreambuf_iterator >, std::ios_base&, char, boost::posix_time::ptime const&) const (time_facet.hpp:326) ==3544== by 0x41122A: std::basic_ostream >& boost::posix_time::operator<< >(std::basic_ostream >&, boost::posix_time::ptime const&) (posix_time_io.hpp:63) ==3544== by 0x40F0CC: bar() (537680-2.cc:6) ==3544== by 0x4031EF: main (537680-1.cc:23) ==3544== Address 0xfffffffffffffffb is not stack'd, malloc'd or (recently) free'd ==3544== ==3544== ==3544== 1 errors in context 2 of 2: ==3544== Use of uninitialised value of size 8 ==3544== at 0x4ECC15B: std::basic_string, std::allocator >::basic_string(std::string const&) (in /usr/lib/libstdc++.so.6.0.13) ==3544== by 0x407899: boost::iterator_range::type> boost::as_literal(std::string const&) (as_literal.hpp:109) ==3544== by 0x414F29: boost::algorithm::detail::first_finderF::type, boost::algorithm::is_equal> boost::algorithm::first_finder(std::string const&) (finder.hpp:59) ==3544== by 0x414527: void boost::algorithm::erase_all(std::string&, std::string const&) (erase.hpp:593) ==3544== by 0x413157: boost::date_time::time_facet > >::put(std::ostreambuf_iterator >, std::ios_base&, char, boost::posix_time::ptime const&) const (time_facet.hpp:326) ==3544== by 0x41122A: std::basic_ostream >& boost::posix_time::operator<< >(std::basic_ostream >&, boost::posix_time::ptime const&) (posix_time_io.hpp:63) ==3544== by 0x40F0CC: bar() (537680-2.cc:6) ==3544== by 0x4031EF: main (537680-1.cc:23) ==3544== Uninitialised value was created by a stack allocation ==3544== at 0x414F05: boost::algorithm::detail::first_finderF::type, boost::algorithm::is_equal> boost::algorithm::first_finder(std::string const&) (finder.hpp:53) ==3544== --3544-- --3544-- used_suppression: 2 dl-hack3-cond-1 --3544-- used_suppression: 2 glibc-2.5.x-on-SUSE-10.2-(PPC)-2a ==3544== ==3544== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 4 from 4)