PR #68 introduces an abort_on_panic wrapper to ensure that a panic in Rust can't unwind over an FFI boundary, since that leads to undefined behaviour.
A problem with this solution though is that an Android Activity doesn't necessarily own the entire process, in case there may be other Services or even Activities running in the same process in separate threads and so we're potentially tearing down more than should be necessary by aborting the whole process.
PR #68 introduces an
abort_on_panicwrapper to ensure that a panic in Rust can't unwind over an FFI boundary, since that leads to undefined behaviour.A problem with this solution though is that an Android Activity doesn't necessarily own the entire process, in case there may be other Services or even Activities running in the same process in separate threads and so we're potentially tearing down more than should be necessary by aborting the whole process.