| Summary: | corrupted malloc line when using --gen-suppressions=yes | ||
|---|---|---|---|
| Product: | [Developer tools] valgrind | Reporter: | Stefan Hoelldampf <stefan.hoelldampf> |
| Component: | memcheck | Assignee: | Julian Seward <jseward> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | btovrea |
| Priority: | NOR | ||
| Version First Reported In: | 3.2.1 | ||
| Target Milestone: | --- | ||
| Platform: | Fedora RPMs | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: |
Testcase
--gen-suppressions=yes output |
||
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 ***. |
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.