Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 171951 - dev-util/valgrind-3.2.1 has problems with generated suppressions
Summary: dev-util/valgrind-3.2.1 has problems with generated suppressions
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Maurice van der Pot (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-23 19:20 UTC by Lorenzo Bettini
Modified: 2007-03-26 20:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lorenzo Bettini 2007-03-23 19:20:58 UTC
The version 3.2.1 of valgrind (the current ebuild) seems to have problems with suppressions: in particular, if you generate a suppression rule (with --gen-suppressions=yes) and then re-run valgrind on the same program using the generated suppression rule, then this suppression rule is simply ignored.

I think this is a problem with this version of valgrind (not with the specific gentoo ebuild, since the same problem with the same version occurs in debian too).

In debian, there's no such problem with version 3.2.3 of valgrind.

Reproducible: Always

Steps to Reproduce:
1. make a C program with a memory leak, and compile it
2. run valgrind on this program with --gen-suppressions=yes (and leak checking enabled) and save the suppression rule in a file, e.g., suppressions.txt
3. rerun valgrind on this program, using --suppressions=suppressions.txt 

Actual Results:  
valgrind will still show the leak even if there's a suppresion rule for ignoring it

Expected Results:  
valgrind should show that leak since it should be suppressed by the generated suppression rule

there are no problems with suppression rules created by other versions of valgrind
Comment 1 Maurice van der Pot (RETIRED) gentoo-dev 2007-03-26 20:29:45 UTC
This is bug is present in valgrind's bugzilla and has been fixed in 3.2.3:
http://bugs.kde.org/show_bug.cgi?id=136844

Valgrind-3.2.3 has been in portage (~x86) for a while, so you can use that 
or you can fix your suppressions by replacing "fun:_vgrZU_libcZdsoZa_malloc" with  "fun:malloc".