Apache Teaclave (incubating) SGX SDK helps developers to write Intel SGX applications in the Rust programming language, and also known as Rust SGX SDK.
$ SGX_MOED=HW make && cd bin && ./app
# Previous outputs omitted.
This is a normal world string passed into Enclave!
This is a normal world string passed into Enclave!
This is a in-Enclave Rust string!
[+] ECall Success...
This is a in-Enclave Rust string!
[+] ECall Success...
[-] ECall Enclave Failed EnclaveLost!
Intel says this error can be triggered if there is a power transition or a Linux fork(), but I doubt this simple program would behave in such a complex way. I wonder where the root cause of this issue is. Is this caused by Rust SGX SDK or Intel's SDK? Thanks in advance!
Hi all, recently I am using SDK to develop a simple multi-threading program, but sometimes ECall would fail. The branch I am on is
v2.0.0-preview
.Steps to reproduce:
I used a modified code from
incubator-teaclave-sgx-sdk/samplecode/helloworld/app/src/main.rs
:The enclave's configuration is
The output is
Intel says this error can be triggered if there is a power transition or a Linux
fork()
, but I doubt this simple program would behave in such a complex way. I wonder where the root cause of this issue is. Is this caused by Rust SGX SDK or Intel's SDK? Thanks in advance!