Skip to content
/ gem5 Public
forked from gem5/gem5

Commit

Permalink
util: Expand the valgrind suppressions file to the entire libpython.
Browse files Browse the repository at this point in the history
Suppress any valgrind error from *anywhere* in the libpython library.
There are ***many*** false positives in the python library, making the
output of valgrind almost useless without lots of suppressions. Rather
than suppress each error piecemeal, we can suppress any error which
originates in libpython to cover them all.

There will now be corner cases where a bug in gem5 causes some sort of
illegal access, etc, within the python library itself, but these sorts
of interactions/errors should be very rare. Suppressing the fountain of
false positives coming from libpython makes valgrind useable in general,
which IMO is a very worthwhile tradeoff.

Change-Id: I4869eeeb4aef5884ad52025b52c9616e0541f3e6
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/49530
Reviewed-by: Jason Lowe-Power <[email protected]>
Maintainer: Jason Lowe-Power <[email protected]>
Tested-by: kokoro <[email protected]>
  • Loading branch information
Gabe Black committed Aug 31, 2021
1 parent dd59da9 commit c3d4951
Showing 1 changed file with 11 additions and 68 deletions.
79 changes: 11 additions & 68 deletions util/valgrind-suppressions
Original file line number Diff line number Diff line change
@@ -1,117 +1,60 @@
{
python error
Memcheck:Cond
fun:PyObject_Free
obj:*libpython3*
}
{
python error
Memcheck:Addr1
fun:PyObject_Free
obj:*libpython3*
}
{
python error
Memcheck:Addr2
fun:PyObject_Free
obj:*libpython3*
}
{
python error
Memcheck:Addr4
fun:PyObject_Free
obj:*libpython3*
}
{
python error
Memcheck:Addr8
fun:PyObject_Free
obj:*libpython3*
}
{
python error
Memcheck:Addr16
fun:PyObject_Free
obj:*libpython3*
}
{
python error
Memcheck:Value1
fun:PyObject_Free
obj:*libpython3*
}
{
python error
Memcheck:Value2
fun:PyObject_Free
obj:*libpython3*
}
{
python error
Memcheck:Value4
fun:PyObject_Free
obj:*libpython3*
}
{
python error
Memcheck:Value8
fun:PyObject_Free
obj:*libpython3*
}
{
python error
Memcheck:Value16
fun:PyObject_Free
}

{
python error
Memcheck:Cond
fun:PyObject_Realloc
}
{
python error
Memcheck:Addr1
fun:PyObject_Realloc
}
{
python error
Memcheck:Addr2
fun:PyObject_Realloc
}
{
python error
Memcheck:Addr4
fun:PyObject_Realloc
}
{
python error
Memcheck:Addr8
fun:PyObject_Realloc
}
{
python error
Memcheck:Addr16
fun:PyObject_Realloc
}
{
python error
Memcheck:Value1
fun:PyObject_Realloc
}
{
python error
Memcheck:Value2
fun:PyObject_Realloc
}
{
python error
Memcheck:Value4
fun:PyObject_Realloc
}
{
python error
Memcheck:Value8
fun:PyObject_Realloc
}
{
python error
Memcheck:Value16
fun:PyObject_Realloc
obj:*libpython3*
}
{
zlib error
Memcheck:Cond
fun:inflateReset2
}

0 comments on commit c3d4951

Please sign in to comment.