Package: valgrind
Version: 1:3.3.0-1
Severity: normal

Running valgrind in a program that seems to reexecute itself (by
replacing that program by a wrapper calling it under valgrind) leads
to the grand-children getting the
"--suppressions=/usr/lib/valgrind/debian-libc6-dbg.supp" option added
multiple times, until valgrind exits with error:


==26636== Too many suppression files specified.
==26636== Increase VG_CLO_MAX_SFILES and recompile.
valgrind: Bad option '--suppressions=/usr/lib/valgrind/debian-libc6-dbg.supp';
aborting.
valgrind: Use --help for more information.

I changed the affected lines in /usr/bin/valgrind by:

if [ -d /usr/lib/debug ] && ! echo "${VALGRIND_OPTS}" | fgrep -q -- 
'--suppressions=/usr/lib/valgrind/debian-libc6-dbg.supp'; then
        export VALGRIND_OPTS="$VALGRIND_OPTS 
--suppressions=/usr/lib/valgrind/debian-libc6-dbg.supp"
fi

and now it seems to work better.

-- 
Lionel



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to