==1534== Memcheck, a memory error detector ==1534== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==1534== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info ==1534== Command: test02 ==1534== --1534-- run: /usr/bin/dsymutil "./test02" ==1534== Conditional jump or move depends on uninitialised value(s) ==1534== at 0x10004632E: std::ostreambuf_iterator > std::num_put > >::_M_insert_int(std::ostreambuf_iterator >, std::ios_base&, char, long) const (in /usr/lib/libstdc++.6.0.9.dylib) ==1534== by 0x1000464F4: std::num_put > >::do_put(std::ostreambuf_iterator >, std::ios_base&, char, long) const (in /usr/lib/libstdc++.6.0.9.dylib) ==1534== by 0x10004D257: std::ostream& std::ostream::_M_insert(long) (in /usr/lib/libstdc++.6.0.9.dylib) ==1534== by 0x100000BE0: junk_data() (test02.C:104) ==1534== by 0x100000C64: main (test02.C:37) ==1534== ==1534== Use of uninitialised value of size 8 ==1534== at 0x10003F3E0: int std::__int_to_char(char*, unsigned long, char const*, std::_Ios_Fmtflags, bool) (in /usr/lib/libstdc++.6.0.9.dylib) ==1534== by 0x100046358: std::ostreambuf_iterator > std::num_put > >::_M_insert_int(std::ostreambuf_iterator >, std::ios_base&, char, long) const (in /usr/lib/libstdc++.6.0.9.dylib) ==1534== by 0x1000464F4: std::num_put > >::do_put(std::ostreambuf_iterator >, std::ios_base&, char, long) const (in /usr/lib/libstdc++.6.0.9.dylib) ==1534== by 0x10004D257: std::ostream& std::ostream::_M_insert(long) (in /usr/lib/libstdc++.6.0.9.dylib) ==1534== by 0x100000BE0: junk_data() (test02.C:104) ==1534== by 0x100000C64: main (test02.C:37) ==1534== ==1534== Conditional jump or move depends on uninitialised value(s) ==1534== at 0x10003F3EE: int std::__int_to_char(char*, unsigned long, char const*, std::_Ios_Fmtflags, bool) (in /usr/lib/libstdc++.6.0.9.dylib) ==1534== by 0x100046358: std::ostreambuf_iterator > std::num_put > >::_M_insert_int(std::ostreambuf_iterator >, std::ios_base&, char, long) const (in /usr/lib/libstdc++.6.0.9.dylib) ==1534== by 0x1000464F4: std::num_put > >::do_put(std::ostreambuf_iterator >, std::ios_base&, char, long) const (in /usr/lib/libstdc++.6.0.9.dylib) ==1534== by 0x10004D257: std::ostream& std::ostream::_M_insert(long) (in /usr/lib/libstdc++.6.0.9.dylib) ==1534== by 0x100000BE0: junk_data() (test02.C:104) ==1534== by 0x100000C64: main (test02.C:37) ==1534== ==1534== Conditional jump or move depends on uninitialised value(s) ==1534== at 0x1000463C1: std::ostreambuf_iterator > std::num_put > >::_M_insert_int(std::ostreambuf_iterator >, std::ios_base&, char, long) const (in /usr/lib/libstdc++.6.0.9.dylib) ==1534== by 0x1000464F4: std::num_put > >::do_put(std::ostreambuf_iterator >, std::ios_base&, char, long) const (in /usr/lib/libstdc++.6.0.9.dylib) ==1534== by 0x10004D257: std::ostream& std::ostream::_M_insert(long) (in /usr/lib/libstdc++.6.0.9.dylib) ==1534== by 0x100000BE0: junk_data() (test02.C:104) ==1534== by 0x100000C64: main (test02.C:37) ==1534== ==1534== Conditional jump or move depends on uninitialised value(s) ==1534== at 0x1000463D6: std::ostreambuf_iterator > std::num_put > >::_M_insert_int(std::ostreambuf_iterator >, std::ios_base&, char, long) const (in /usr/lib/libstdc++.6.0.9.dylib) ==1534== by 0x1000464F4: std::num_put > >::do_put(std::ostreambuf_iterator >, std::ios_base&, char, long) const (in /usr/lib/libstdc++.6.0.9.dylib) ==1534== by 0x10004D257: std::ostream& std::ostream::_M_insert(long) (in /usr/lib/libstdc++.6.0.9.dylib) ==1534== by 0x100000BE0: junk_data() (test02.C:104) ==1534== by 0x100000C64: main (test02.C:37) ==1534== TEST02: C++ version A sample code for analysis by VALGRIND. 0 0 1 2 2 0 3 6 4 8 5 0 6 0 7 0 8 0 9 0 TEST02 Normal end of execution. ==1534== ==1534== HEAP SUMMARY: ==1534== in use at exit: 4,184 bytes in 2 blocks ==1534== total heap usage: 3 allocs, 1 frees, 4,224 bytes allocated ==1534== ==1534== LEAK SUMMARY: ==1534== definitely lost: 0 bytes in 0 blocks ==1534== indirectly lost: 0 bytes in 0 blocks ==1534== possibly lost: 0 bytes in 0 blocks ==1534== still reachable: 4,184 bytes in 2 blocks ==1534== suppressed: 0 bytes in 0 blocks ==1534== Rerun with --leak-check=full to see details of leaked memory ==1534== ==1534== For counts of detected and suppressed errors, rerun with: -v ==1534== Use --track-origins=yes to see where uninitialised values come from ==1534== ERROR SUMMARY: 30 errors from 5 contexts (suppressed: 0 from 0)