mar-file-system / marfs

MarFS provides a scalable near-POSIX file system by using one or more POSIX file systems as a scalable metadata component and one or more data stores (object, file, etc) as a scalable data component.
Other
96 stars 27 forks source link

remaining valgrind nit in pftool / marfs #120

Closed jti-lanl closed 8 years ago

jti-lanl commented 8 years ago

I think the second part is showing where the storage was allocated, which is wrongly freed in the first part.

==8983== Mismatched free() / delete / delete [] ==8983== at 0x4C27016: operator delete(void_) (vg_replace_malloc.c:480) ==8983== by 0x41E068: std::tr1::_Sp_counted_base<(gnu_cxx::_Lock_policy)2>::_M_release() (boost_sp_counted_base.h:140) ==8983== by 0x424675: manager(int, options&, int, pathlist, pathlist, int, char const_) (shared_ptr.h:153) ==8983== by 0x427421: main (pftool.cpp:427) ==8983== Address 0x15961b60 is 0 bytes inside a block of size 16 alloc'd ==8983== at 0x4C27A2E: malloc (vg_replace_malloc.c:270) ==8983== by 0x4C27BA2: realloc (vg_replace_malloc.c:662) ==8983== by 0x6979F5A: ??? (in /usr/lib64/libstdc++.so.6.0.13) ==8983== by 0x697BAFE: ??? (in /usr/lib64/libstdc++.so.6.0.13) ==8983== by 0x697BCCD: cxa_demangle (in /usr/lib64/libstdc++.so.6.0.13) ==8983== by 0x41E0FC: Path::class_name() const (Path.h:505) ==8983== by 0x424648: manager(int, options&, int, pathlist, pathlist, int, char const*) (pftool.cpp:563) ==8983== by 0x427421: main (pftool.cpp:427)

jti-lanl commented 8 years ago

Fixed.