intel / intel/confidential-computing.sgx.sdk
Switchless mode and sgx-ssl conflict each other?
- Dominant language
- C++
- Stars
- 2
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
I am trying to build an app using switchless mode and sgx-ssl.
On my machines (Ubuntu 18.04, sgxsdk 2.5, sgxssl 2.4.1), standalone switchless example and sgx-ssl test-app (found [here](https://github.com/intel/intel-sgx-ssl)) works well, but, when trying to combine these two, I get an _illigal intstruction_ error from `libsgx_urts.so`.
More specifically, after linking sgx-ssl (i.e. `ligsgx_tsgxssl`) and `libsgx_tsetjmp` to an enclave, attempt to initialize and enclave using `sgx_create_enclave_ex()` raises SIGILL.
p.s. I wanted to provide more detailed error report, but I currently don't know how to dump SE_TRACEs ;)
Where can I find documentation for debugging `libsgx_urts.so`?
Contributor guide
Research direction
Start by reproducing the combination of the standalone switchless example and the sgx-ssl test app on the stated Ubuntu 18.04, SGX SDK 2.5, and sgx-ssl 2.4.1 setup. Trace the call to sgx_create_enclave_ex() and the SIGILL from libsgx_urts.so, then determine whether the issue is a compatibility defect or missing debugging documentation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100