==26967== Memcheck, a memory error detector ==26967== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al. ==26967== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info ==26967== Command: ./main ==26967== ==26967== Invalid read of size 4 ==26967== at 0x40DFCB6: std::string::assign(char const*, unsigned int) (in /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16) ==26967== by 0x416B4D2: (below main) (libc-start.c:226) ==26967== Address 0x432a0f4 is 12 bytes inside a block of size 20 free'd ==26967== at 0x402ACFC: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==26967== by 0x8049127: boost::labeled_graph, std::string, boost::defaultS>::remove_vertex(std::string const&) (in /home/A.Romanek/tmp/boost/devel/17_labeled_graph/main) ==26967== by 0x8048ADF: main (in /home/A.Romanek/tmp/boost/devel/17_labeled_graph/main) ==26967== ==26967== Invalid read of size 4 ==26967== at 0x40DFA6F: std::string::_M_mutate(unsigned int, unsigned int, unsigned int) (in /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16) ==26967== by 0x40DFC41: std::string::_M_replace_safe(unsigned int, unsigned int, char const*, unsigned int) (in /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16) ==26967== by 0x40DFCF8: std::string::assign(char const*, unsigned int) (in /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16) ==26967== by 0x416B4D2: (below main) (libc-start.c:226) ==26967== Address 0x432a0f4 is 12 bytes inside a block of size 20 free'd ==26967== at 0x402ACFC: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==26967== by 0x8049127: boost::labeled_graph, std::string, boost::defaultS>::remove_vertex(std::string const&) (in /home/A.Romanek/tmp/boost/devel/17_labeled_graph/main) ==26967== by 0x8048ADF: main (in /home/A.Romanek/tmp/boost/devel/17_labeled_graph/main) ==26967== ==26967== Invalid read of size 4 ==26967== at 0x40DFAD1: std::string::_M_mutate(unsigned int, unsigned int, unsigned int) (in /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16) ==26967== by 0x40DFC41: std::string::_M_replace_safe(unsigned int, unsigned int, char const*, unsigned int) (in /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16) ==26967== by 0x40DFCF8: std::string::assign(char const*, unsigned int) (in /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16) ==26967== by 0x416B4D2: (below main) (libc-start.c:226) ==26967== Address 0x432a0f4 is 12 bytes inside a block of size 20 free'd ==26967== at 0x402ACFC: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==26967== by 0x8049127: boost::labeled_graph, std::string, boost::defaultS>::remove_vertex(std::string const&) (in /home/A.Romanek/tmp/boost/devel/17_labeled_graph/main) ==26967== by 0x8048ADF: main (in /home/A.Romanek/tmp/boost/devel/17_labeled_graph/main) ==26967== ==26967== Invalid write of size 4 ==26967== at 0x40DFAE8: std::string::_M_mutate(unsigned int, unsigned int, unsigned int) (in /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16) ==26967== by 0x40DFC41: std::string::_M_replace_safe(unsigned int, unsigned int, char const*, unsigned int) (in /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16) ==26967== by 0x40DFCF8: std::string::assign(char const*, unsigned int) (in /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16) ==26967== by 0x416B4D2: (below main) (libc-start.c:226) ==26967== Address 0x432a0f4 is 12 bytes inside a block of size 20 free'd ==26967== at 0x402ACFC: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==26967== by 0x8049127: boost::labeled_graph, std::string, boost::defaultS>::remove_vertex(std::string const&) (in /home/A.Romanek/tmp/boost/devel/17_labeled_graph/main) ==26967== by 0x8048ADF: main (in /home/A.Romanek/tmp/boost/devel/17_labeled_graph/main) ==26967== ==26967== Invalid read of size 4 ==26967== at 0x40DFC60: std::string::_M_replace_safe(unsigned int, unsigned int, char const*, unsigned int) (in /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16) ==26967== by 0x40DFCF8: std::string::assign(char const*, unsigned int) (in /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16) ==26967== by 0x416B4D2: (below main) (libc-start.c:226) ==26967== Address 0x432a0f4 is 12 bytes inside a block of size 20 free'd ==26967== at 0x402ACFC: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==26967== by 0x8049127: boost::labeled_graph, std::string, boost::defaultS>::remove_vertex(std::string const&) (in /home/A.Romanek/tmp/boost/devel/17_labeled_graph/main) ==26967== by 0x8048ADF: main (in /home/A.Romanek/tmp/boost/devel/17_labeled_graph/main) ==26967== ==26967== ==26967== HEAP SUMMARY: ==26967== in use at exit: 16 bytes in 1 blocks ==26967== total heap usage: 8 allocs, 7 frees, 121 bytes allocated ==26967== ==26967== LEAK SUMMARY: ==26967== definitely lost: 16 bytes in 1 blocks ==26967== indirectly lost: 0 bytes in 0 blocks ==26967== possibly lost: 0 bytes in 0 blocks ==26967== still reachable: 0 bytes in 0 blocks ==26967== suppressed: 0 bytes in 0 blocks ==26967== Rerun with --leak-check=full to see details of leaked memory ==26967== ==26967== For counts of detected and suppressed errors, rerun with: -v ==26967== ERROR SUMMARY: 5 errors from 5 contexts (suppressed: 0 from 0)