Skip to content

Enable llvm address sanitizer #4426

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

Open
kateinoigakukun opened this issue Apr 6, 2022 · 0 comments
Open

Enable llvm address sanitizer #4426

kateinoigakukun opened this issue Apr 6, 2022 · 0 comments

Comments

@kateinoigakukun
Copy link
Member

kateinoigakukun commented Apr 6, 2022

Motivation

To provide better diagnostics for memory-related issues.

Detailed context

Currently, we have a simple stack sanitizer by binary transformation, but this is a little bit fragile approach (e.g. assuming sp at globals[0], LLVM prologue, ...).
LLVM's address sanitizer is more reliable and Swift toolchain supports it on other platforms, so I think it's worth thinking about moving into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant