|
From: Sherban, A. <and...@in...> - 2003-08-11 12:21:16
|
Hi,
I'm trying to suppress all leaks that come from a library. The =
suppression I use looks something like:
{
Foo #1 (Leak)
Addrcheck,Memcheck:Leak
fun:*
obj:/path/to/foo.so
}
This suppression doesn't work.
foo.so has debug information in it, and when valgrind reports a=20
leak it shows an actual function name, and line number
Any ideas?
-Andrei
(PS valgrind version is valgrind-20030716)
|
|
From: Nicholas N. <nj...@ca...> - 2003-08-11 14:05:22
|
On Mon, 11 Aug 2003, Sherban, Andrei wrote:
> I'm trying to suppress all leaks that come from a library. The suppression I use looks something like:
>
> {
> Foo #1 (Leak)
> Addrcheck,Memcheck:Leak
> fun:*
> obj:/path/to/foo.so
> }
>
> This suppression doesn't work.
>
> foo.so has debug information in it, and when valgrind reports a
> leak it shows an actual function name, and line number
Do your errors actually have this form:
error etc
at some_function()
by (in /path/to/foo.so)
by ...
by ...
? The matching done with suppressions is quite specific. For example, if
Valgrind reports an error in function f() in file x.so, you have to use a
"fun:f" entry rather than a "obj:x.so" entry.
I guess that you won't be able to ignore all the errors from a library
with a single suppression like this, but you'll need several.
HTH.
N
|