Closed HuangMinming closed 1 month ago
Error code 0x1006 means the enclave crashed, it probably called the abort function. There are some subtle differences between SGX simulation and hardware environments. For instance, the CPUID instruction is not supported inside SGX. I'd suggest running your enclave with the debugger attached to find out what's causing this issue.
Thanks for your replay. I think the lib is not support sgx.
Hi everyone, I generated a static library from mcl[https://github.com/herumi/mcl.git], and added the library to SGX project, call the api. I can successfully run the app in SIM mode, but it got error in HW mode. I can get a initialize_enclave after calling initialize_enclave(). When I call my trusted api, There was an error. The error message is showed below. How can I resolve it? Thanks.