mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
asan: Add a leak suppression file with known false positives (#32511)
Co-authored-by: Jonas Zeunert <jonas@zeunert.org>
This commit is contained in:
parent
2c0d0d57b1
commit
bea181f5d5
1 changed files with 4 additions and 0 deletions
|
@ -43,6 +43,7 @@ import servo.util as util
|
|||
from servo.util import download_file, get_default_cache_dir
|
||||
|
||||
NIGHTLY_REPOSITORY_URL = "https://servo-builds2.s3.amazonaws.com/"
|
||||
ASAN_LEAK_SUPPRESSION_FILE = "support/suppressed_leaks_for_asan.txt"
|
||||
|
||||
|
||||
@dataclass
|
||||
|
@ -519,6 +520,9 @@ class CommandBase(object):
|
|||
# Argument-less str.split normalizes leading, trailing, and double spaces
|
||||
env['RUSTFLAGS'] = " ".join(env['RUSTFLAGS'].split())
|
||||
|
||||
# Suppress known false-positives during memory leak sanitizing.
|
||||
env["LSAN_OPTIONS"] = f"{env.get('LSAN_OPTIONS', '')}:suppressions={ASAN_LEAK_SUPPRESSION_FILE}"
|
||||
|
||||
self.build_android_env_if_needed(env)
|
||||
|
||||
return env
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue