Skip to content

asan: Add a leak suppression file with known false positives - #32511

Merged
mrobinson merged 1 commit into
servo:mainfrom
ede1998:asan
Jun 17, 2024
Merged

mrobinson merged 1 commit into
servo:mainfrom
ede1998:asan

Conversation

@ede1998

@ede1998 ede1998 commented Jun 15, 2024 •

Copy link
Copy Markdown
Contributor

Looking into #32223 and found a false-positive in the second memory leak stack trace (intentional leak with Box::leak in stylo). Therefore we added file to suppress it and included the file in the asan integration (#31429) by passing it as env var as document for ASAN.

We'll check out further leaks in the next days/weeks. Just wanted to know if the leak suppression is cool with you guys.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
    • We both get python stack traces when running this command but it reports no errors at the end
    • My error: flake8.exceptions.FailedToLoadPlugin: Flake8 failed to load plugin "E" due to cannot import name 'missing_whitespace_after_keyword' from 'pycodestyle' (~/servo/python/_venv3.11/lib/python3.11/site-packages/pycodestyle.py)
  • These changes are part of Leaks on example.com #32223.
  • These changes do not require tests because build they just update ASAN tooling.

Comment thread leak_suppr.txt Outdated
@@ -0,0 +1 @@
leak:style::sharing::SHARING_CACHE_KEY::__init No newline at end of file

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move this file to the support directory and call it "suppressed_leaks_for_asan.txt".

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just noticed that the file was removed during refactoring instead of renamed. Follow-up PR to fix that: #32527

@sagudev

sagudev commented Jun 16, 2024

Copy link
Copy Markdown
Member

I think this needs a rebase as #31429 landed.

@mrobinson mrobinson changed the title Support for suppression of false-positives with ASAN, Suppress first false-positive asan: Add a leak suppression file with known false positives Jun 17, 2024
@mrobinson
mrobinson enabled auto-merge June 17, 2024 09:44
@mrobinson mrobinson mentioned this pull request Jun 17, 2024
@mrobinson
mrobinson added this pull request to the merge queue Jun 17, 2024
Merged via the queue into servo:main with commit bea181f Jun 17, 2024
@ede1998
ede1998 deleted the asan branch June 17, 2024 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants