Support atexit, and detect racy calls to exit
as UB
#3725
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
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 callsexit
, 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.The text was updated successfully, but these errors were encountered: