[linux-lvm] [lvm2cmd] Heap destruction by lvm2_exit()?
Alasdair G Kergon
agk at redhat.com
Wed Aug 1 12:24:13 UTC 2012
Your test program works for me:
$ valgrind ./a.out
==14092== Memcheck, a memory error detector
==14092== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==14092== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info
==14092== Command: ./a.out
==14092==
Some text to output
Variable before: "Other text"
Variable after: "Other text"
==14092==
==14092== HEAP SUMMARY:
==14092== in use at exit: 0 bytes in 0 blocks
==14092== total heap usage: 161 allocs, 161 frees, 10,620,400 bytes allocated
==14092==
==14092== All heap blocks were freed -- no leaks are possible
==14092==
==14092== For counts of detected and suppressed errors, rerun with: -v
==14092== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 6 from 6)
What version of lvm2 are you using?
Retest with upstream source?
What lvm configure options are you using?
Alasdair
More information about the linux-lvm
mailing list