Skip to content

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

Open
@RalfJung

Description

@RalfJung

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-shimsArea: This affects the external function shimsC-enhancementCategory: a PR with an enhancement or an issue tracking an accepted enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions