Skip to content

Add sanitizer configs to bazel #125

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

Merged
merged 2 commits into from
Jun 26, 2024

Conversation

boomanaiden154
Copy link
Collaborator

This patch adds sanitizer configs to .bazelrc so a developer can simply use --config=asan or --config=tsan on a specific test to see if there are any issues. It seems like asan might be catching some issues I will have to look into this in a bit.

This patch adds sanitizer configs to .bazelrc so a developer can simply
use --config=asan or --config=tsan on a specific test to see if there
are any issues. It seems like asan might be catching some issues I will
have to look into this in a bit.
Copy link
Collaborator

@ondrasej ondrasej left a comment

Choose a reason for hiding this comment

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

LGTM in general.

That said, they are usually not very useful when dealing with inline assembly, JITs and other low-level features.

@boomanaiden154
Copy link
Collaborator Author

That said, they are usually not very useful when dealing with inline assembly, JITs and other low-level features.

Right. This was mostly intended for looking at dataset processing things that don't have to do anything low-level (i.e., not benchmarking this case). The motivating example as #101 with the question of whether or not we need a per-thread MCInstPrinter.

@boomanaiden154 boomanaiden154 merged commit cdb4379 into google:main Jun 26, 2024
6 checks passed
@boomanaiden154 boomanaiden154 deleted the bazel-sanitizers branch June 26, 2024 22:05
virajbshah pushed a commit to virajbshah/gematria that referenced this pull request Jul 17, 2024
This patch adds sanitizer configs to .bazelrc so a developer can simply
use --config=asan or --config=tsan on a specific test to see if there
are any issues. It seems like asan might be catching some issues I will
have to look into this in a bit.
virajbshah pushed a commit to virajbshah/gematria that referenced this pull request Jul 24, 2024
This patch adds sanitizer configs to .bazelrc so a developer can simply
use --config=asan or --config=tsan on a specific test to see if there
are any issues. It seems like asan might be catching some issues I will
have to look into this in a bit.
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.

2 participants