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