generated from EmbarkStudios/opensource-template
-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
bugSomething isn't workingSomething isn't working
Description
If you panic in the crash handler you will re-enter the crash handler, this is blocked by a mutex in
crash_handler::linux::state::signal_handler. In cases of mixed runtimes e.g CPP+Rust even innocuous things like std::process::exit in a crash handler will crash.
If we are considering crashing already I think it may be reasonable to consider crashing while crashing and give the author an opportunity to handle it. Mostly I was looking at this to model some windows utilities we already have that do this on linux, but I do think a mutex by default is pretty reasonable.
This would violate #79 because we could reenter the function before we finish crashing.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working