public
anonymous / gist:4603986
Created

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
cls ~/workspace/METISReaderTest $ valgrind --dsymutil=yes --db-attach=yes ./EnsembleClustering-DPar/METISReaderTest-DPar
==1493== Memcheck, a memory error detector
==1493== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==1493== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==1493== Command: ./EnsembleClustering-DPar/METISReaderTest-DPar
==1493==
==1493== WARNING: Support on MacOS 10.8 is experimental and mostly broken.
==1493== WARNING: Expect incorrect results, assertions and crashes.
==1493== WARNING: In particular, Memcheck on 32-bit programs will fail to
==1493== WARNING: detect any errors associated with heap-allocated data.
==1493==
--1493-- run: /usr/bin/dsymutil "./EnsembleClustering-DPar/METISReaderTest-DPar"
!!!Hello World!!!
==1493== Invalid free() / delete / delete[] / realloc()
==1493== at 0x563A: free (in /usr/local/Cellar/valgrind/3.8.1/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==1493== by 0x205F4F: operator delete(void*) (in /usr/local/Cellar/gcc/4.7.2/gcc/lib/libstdc++.6.dylib)
==1493== by 0x28EA63: __gnu_cxx::new_allocator<char>::deallocate(char*, unsigned long) (in /usr/local/Cellar/gcc/4.7.2/gcc/lib/libstdc++.6.dylib)
==1493== by 0x28DF81: std::string::_Rep::_M_destroy(std::allocator<char> const&) (in /usr/local/Cellar/gcc/4.7.2/gcc/lib/libstdc++.6.dylib)
==1493== by 0x28DF35: std::string::_Rep::_M_dispose(std::allocator<char> const&) (in /usr/local/Cellar/gcc/4.7.2/gcc/lib/libstdc++.6.dylib)
==1493== by 0x28AC89: std::string::reserve(unsigned long) (in /usr/local/Cellar/gcc/4.7.2/gcc/lib/libstdc++.6.dylib)
==1493== by 0x28B256: std::string::append(char const*, unsigned long) (in /usr/local/Cellar/gcc/4.7.2/gcc/lib/libstdc++.6.dylib)
==1493== by 0x22CBE3: std::basic_istream<char, std::char_traits<char> >& std::getline<char, std::char_traits<char>, std::allocator<char> >(std::basic_istream<char, std::char_traits<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, char) (in /usr/local/Cellar/gcc/4.7.2/gcc/lib/libstdc++.6.dylib)
==1493== by 0x100002C05: std::basic_istream<char, std::char_traits<char> >& std::getline<char, std::char_traits<char>, std::allocator<char> >(std::basic_istream<char, std::char_traits<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&) (basic_string.h:2794)
==1493== by 0x100001CCD: EnsembleClustering::METISParser::getHeader() (METISParser.cpp:62)
==1493== by 0x100005071: main (METISReaderTest.cpp:22)
==1493== Address 0x100009da0 is in the Data segment of ./EnsembleClustering-DPar/METISReaderTest-DPar
==1493==
==1493==
==1493== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- y
 
valgrind: m_debugger.c:238 (Int ptrace_setregs(Int, VexGuestArchState *)): Assertion 'Unimplemented functionality' failed.
valgrind: valgrind
==1493== at 0x238032E5D: ???
==1493== by 0x238032E07: ???
==1493== by 0x23802D737: ???
==1493== by 0x23802EF02: ???
==1493== by 0x23802EA12: ???
==1493== by 0x23802BB93: ???
==1493== by 0x238096814: ???
==1493== by 0x2380A6F66: ???
 
sched status:
running_tid=1
 
Thread 1: status = VgTs_Runnable
==1493== at 0x563A: free (in /usr/local/Cellar/valgrind/3.8.1/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==1493== by 0x205F4F: operator delete(void*) (in /usr/local/Cellar/gcc/4.7.2/gcc/lib/libstdc++.6.dylib)
==1493== by 0x28EA63: __gnu_cxx::new_allocator<char>::deallocate(char*, unsigned long) (in /usr/local/Cellar/gcc/4.7.2/gcc/lib/libstdc++.6.dylib)
==1493== by 0x28DF81: std::string::_Rep::_M_destroy(std::allocator<char> const&) (in /usr/local/Cellar/gcc/4.7.2/gcc/lib/libstdc++.6.dylib)
==1493== by 0x28DF35: std::string::_Rep::_M_dispose(std::allocator<char> const&) (in /usr/local/Cellar/gcc/4.7.2/gcc/lib/libstdc++.6.dylib)
==1493== by 0x28AC89: std::string::reserve(unsigned long) (in /usr/local/Cellar/gcc/4.7.2/gcc/lib/libstdc++.6.dylib)
==1493== by 0x28B256: std::string::append(char const*, unsigned long) (in /usr/local/Cellar/gcc/4.7.2/gcc/lib/libstdc++.6.dylib)
==1493== by 0x22CBE3: std::basic_istream<char, std::char_traits<char> >& std::getline<char, std::char_traits<char>, std::allocator<char> >(std::basic_istream<char, std::char_traits<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, char) (in /usr/local/Cellar/gcc/4.7.2/gcc/lib/libstdc++.6.dylib)
==1493== by 0x100002C05: std::basic_istream<char, std::char_traits<char> >& std::getline<char, std::char_traits<char>, std::allocator<char> >(std::basic_istream<char, std::char_traits<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&) (basic_string.h:2794)
==1493== by 0x100001CCD: EnsembleClustering::METISParser::getHeader() (METISParser.cpp:62)
==1493== by 0x100005071: main (METISReaderTest.cpp:22)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.