@assafmo Before registering the exception handler, has the alloc::set_alloc_error_hook function been called to set the allocation failure handler? ``` alloc::set_alloc_error_hook(|layout| { println!("memory allocation of {} bytes failed", layout.size()); unsafe { std::intrinsics::abort() }; }); ``` The default handler for memory allocation failure will set the enclave status to ENCLAVE_CRASHED, and the enclave will no longer catch exception signals in this state.
-- 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-664742301