util: Add a file to suppress spurious lsan leaks in the python lib.
authorGabe Black <gabe.black@gmail.com>
Thu, 26 Mar 2020 10:20:24 +0000 (03:20 -0700)
committerGabe Black <gabeblack@google.com>
Thu, 26 Mar 2020 21:44:44 +0000 (21:44 +0000)
commit04365794b5c039912a09f4d0226adb90c282c965
tree3d0b8fd679fec532f2c2b32ad808b621f8a1e374
parentbb3bc1fdd07ba383005357d5a6213b6c8f6e59af
util: Add a file to suppress spurious lsan leaks in the python lib.

The python interpreter does some fancy things with memory which trips up
the lsan leak checker which comes along with asan. This file simply
tells lsan to ignore those leaks.

To use it when running a binary, set the LSAN_OPTIONS environment
variable to "suppressions=${PATH TO SUPPRESSIONS FILE}". To disable the
a report on the leaks that were suppressed, you should also set
"print_suppressions=0". Multiple options can be set by seperating them
with ":"s.

LSAN_OPTIONS=suppressions=util/lsan-suppressions:print_suppressions=0

Change-Id: Ie4d712c6b95f429e67361c41a9b545a8536f2511
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27124
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
util/lsan-suppressions [new file with mode: 0644]