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

Support atexit, and detect racy calls to exit as UB #3725

Open
RalfJung opened this issue Jul 1, 2024 · 0 comments
Open

Support atexit, and detect racy calls to exit as UB #3725

RalfJung opened this issue Jul 1, 2024 · 0 comments
Labels
A-shims Area: This affects the external function shims C-enhancement Category: a PR with an enhancement or an issue tracking an accepted enhancement

Comments

@RalfJung
Copy link
Member

RalfJung commented Jul 1, 2024

See rust-lang/rust#126600, rust-lang/rust#126606. However I am not sure how to even best do that... we just atomically stop the machine on exit currently. Instead we'd have to keep other threads going for a while and see whether any of them also calls exit, and then report UB?

We also currently don't support atexit handlers, so probably the UB-inducing programs can't even be executed. So I think we're not missing UB, currently.

@RalfJung RalfJung added C-enhancement Category: a PR with an enhancement or an issue tracking an accepted enhancement A-shims Area: This affects the external function shims labels Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-shims Area: This affects the external function shims C-enhancement Category: a PR with an enhancement or an issue tracking an accepted enhancement
Projects
None yet
Development

No branches or pull requests

1 participant