Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.
1478 Discussions

SGX_ERROR_ENCLAVE_CRASHED error while initializing enclave

Rashmik
Beginner
564 Views

I am using teaclave RUST SGX SDK v1.1.6, 2.18.x is the latest SGX PSW on SGX server Icelake. Code works well in simulation mode using 2.17x SGX SDK, however, fails in hardware mode. What am I doing wrong.

Following is my enclave config:

<EnclaveConfiguration>
<ProdID>0</ProdID>
<ISVSVN>0</ISVSVN>
<StackMaxSize>0x20000</StackMaxSize>
<HeapMaxSize>0x80000</HeapMaxSize>
<TCSNum>12</TCSNum>
<TCSPolicy>1</TCSPolicy>
<DisableDebug>0</DisableDebug>
<MiscSelect>0</MiscSelect>
<MiscMask>0xFFFFFFFF</MiscMask>
</EnclaveConfiguration>
 
Note that the same configuration has worked with previous versions. I am unable to figure out the root cause.
0 Kudos
1 Reply
Rashmik
Beginner
206 Views

Apologies for not calling out important context. This is to build my custom library which uses SGX memory. Enclave config is for my applications codebase.

0 Kudos
Reply