Skip to content

Conversation

@emmatyping
Copy link

In a follow up, we should enable sanitizers using nightly and the unstable sanitizers support, which works with all CPython sanitizers except undefined-behavior sanitizer.

Unstable sanitizers support: https://doc.rust-lang.org/beta/unstable-book/compiler-flags/sanitizer.html

In a follow up, we should enable sanitizers using nightly and the
unstable sanitizers support, which works with all CPython sanitizers
except undefined-behavior sanitizer.

Unstable sanitizers support: https://doc.rust-lang.org/beta/unstable-book/compiler-flags/sanitizer.html
@alex
Copy link

alex commented Jan 1, 2026

ASAN should be ok with only some code compiled under it -- MSAN requires everything to be compiled with it though. I don't know the other sanitizers by hand.

@emmatyping
Copy link
Author

emmatyping commented Jan 1, 2026

@alex Interesting! Looking through the clang docs, it looks like only msan requires the entire binary to be instrumented (which makes sense). It looks like tsan and ubsan both cause issues with the bindings generation, so I'll allow Rust to build with asan, we can work on enabling the others in a follow up.

@emmatyping
Copy link
Author

@emmatyping emmatyping closed this Jan 1, 2026
@emmatyping emmatyping reopened this Jan 1, 2026
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.

3 participants