|
From: David G. <in...@we...> - 2009-06-21 17:26:53
|
Hey folks, I've searched the internet and the valgrind mailing list, but didn't find a suitable answer. I'm running Expat's benchmark program und Xerces-C's SAX2Count program with valgrind 3.3.1-Debian and getting the following answer (Expat's output, Xerces-C's is almost the same): ---------------------------------------------------------------------------------------------------- ==7936== Memcheck, a memory error detector. ==7936== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al. ==7936== Using LibVEX rev 1854, a library for dynamic binary translation. ==7936== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP. ==7936== Using valgrind-3.3.1-Debian, a dynamic binary instrumentation framework. ==7936== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al. ==7936== For more details, rerun with: -v ==7936== ==7939== ==7939== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 17 from 1) ==7939== malloc/free: in use at exit: 0 bytes in 0 blocks. ==7939== malloc/free: 0 allocs, 0 frees, 0 bytes allocated. ==7939== For counts of detected errors, rerun with: -v ==7939== All heap blocks were freed -- no leaks are possible. ==7941== ==7941== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 17 from 1) ==7941== malloc/free: in use at exit: 0 bytes in 0 blocks. ==7941== malloc/free: 0 allocs, 0 frees, 0 bytes allocated. ==7941== For counts of detected errors, rerun with: -v ==7941== All heap blocks were freed -- no leaks are possible. ==7940== ==7940== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 17 from 1) ==7940== malloc/free: in use at exit: 0 bytes in 0 blocks. ==7940== malloc/free: 0 allocs, 0 frees, 0 bytes allocated. ==7940== For counts of detected errors, rerun with: -v ==7940== All heap blocks were freed -- no leaks are possible. ==7943== ==7943== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 17 from 1) ==7943== malloc/free: in use at exit: 0 bytes in 0 blocks. ==7943== malloc/free: 0 allocs, 0 frees, 0 bytes allocated. ==7943== For counts of detected errors, rerun with: -v ==7943== All heap blocks were freed -- no leaks are possible. ==7942== ==7942== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 17 from 1) ==7942== malloc/free: in use at exit: 0 bytes in 0 blocks. ==7942== malloc/free: 0 allocs, 0 frees, 0 bytes allocated. ==7942== For counts of detected errors, rerun with: -v ==7942== All heap blocks were freed -- no leaks are possible. ==7945== ==7945== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 17 from 1) ==7945== malloc/free: in use at exit: 0 bytes in 0 blocks. ==7945== malloc/free: 0 allocs, 0 frees, 0 bytes allocated. ==7945== For counts of detected errors, rerun with: -v ==7945== All heap blocks were freed -- no leaks are possible. ==7948== ==7948== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 17 from 1) ==7948== malloc/free: in use at exit: 0 bytes in 0 blocks. ==7948== malloc/free: 0 allocs, 0 frees, 0 bytes allocated. ==7948== For counts of detected errors, rerun with: -v ==7948== All heap blocks were freed -- no leaks are possible. ==7949== ==7949== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 17 from 1) ==7949== malloc/free: in use at exit: 0 bytes in 0 blocks. ==7949== malloc/free: 0 allocs, 0 frees, 0 bytes allocated. ==7949== For counts of detected errors, rerun with: -v ==7949== All heap blocks were freed -- no leaks are possible. ---------------------------------------------------------------------------------------------------- I've tried valgrind calls with different paramaters, -v doesn't help me on. Other programs gave me outputs where I'd exactly seen malloc/free counts and allocated memory size. Does anybody know what to do to fix this? Thanks a lot, David |
|
From: David G. <in...@we...> - 2009-06-21 17:43:08
|
Sorry, I'd found the error myself. Expat / Xerces-C was compiled with -O2 flag. The symbol table is missed and valgrind doesn't work correctly. |