Yeah so we found out that the enclave will behave nicely and remain useful if you set `sgx_std::alloc::set_alloc_error_hook` to cause a panic. This triggers a nice and orderly unwind, which we then catch and gracefully handle :)
-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/254#issuecomment-664910345