Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable ASAN in CI #4696

Merged
merged 3 commits into from
May 16, 2022
Merged

Enable ASAN in CI #4696

merged 3 commits into from
May 16, 2022

Conversation

Finomnis
Copy link
Contributor

@Finomnis Finomnis commented May 15, 2022

Motivation

LLVM's ASAN is a very useful tool to find memory leaks, and it is built-in for the rust nightly compier.

When I ran it on my local computer, there were several memory leaks detected in the tests.
According to the LLVM docs, ASAN does not produce false positives.

Sadly, ASAN is not yet enabled in the CI.

Solution

  • Enable ASAN in CI
  • Fix leaks

@Darksonn Darksonn added the A-ci Area: The continuous integration setup label May 16, 2022
@Finomnis Finomnis marked this pull request as ready for review May 16, 2022 11:31
Copy link
Contributor

@Darksonn Darksonn left a comment

Choose a reason for hiding this comment

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

Seems reasonable.

@Darksonn Darksonn merged commit 454ac1c into tokio-rs:master May 16, 2022
@Finomnis Finomnis deleted the hunting_memory_leaks branch May 16, 2022 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ci Area: The continuous integration setup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants