Reconsider panic::catch_unwind
pattern in extern "C"
functions
#1692
Labels
C-tech-debt
rust_related
For errors in the SDK that are related to the Rust code and thereby probably need help from Core.
Rust 1.81.0 started aborting on uncaught panics in
extern "C"
functions, which fixed the soundness hole that I think originally caused us to have to usepanic::catch_unwind
in all such functions for safety.We should reconsider whether we want to continue to use this error-handling pattern, especially in cases where a panic could leave a mutable object (like
tor_runtime
here) in an undefined state.The text was updated successfully, but these errors were encountered: