The option --gen-suppressions=yes creates a suppression like the following for malloc: { <insert a suppression name here> Memcheck:Leak fun:_vgrZU_libcZdsoZa_malloc fun:main } However this suppression can not be directly used. When changing "fun:_vgrZU_libcZdsoZa_malloc" to "fun:malloc" the leak is correctly suppressed.
Created attachment 18404 [details] Testcase Small testcase with a memory leak.
Created attachment 18405 [details] --gen-suppressions=yes output Output when executing "valgrind --leak-check=full --gen-suppressions=yes ./test"
valgrind r6377 fixes this issue, thanks!
I had no idea there was a bug report open for this. Well, another closed bug then :-)
*** Bug 138507 has been marked as a duplicate of this bug. ***
Reopening so can close as fixed.
*** Bug has been marked as fixed ***.