Summary
Troubleshooting steps for debugging applications that use the Intel® Software Guard Extensions (Intel® SGX) SDK
Description
- Wrote a custom application using the Intel® Software Guard Extensions (Intel® SGX) SDK for Linux*.
- The enclave code returns an error at runtime.
Resolution
- Determine which error code is returned.
- Find the error code in sgx_error.h to determine its definition. This will help narrow down the cause and location of the error.
- Build the Intel SGX SDK with debug symbols
- Step into the code with the Enclave Debugger script, sgx-gdb, to determine the source of the error.
Additional information
Refer to the section Enclave Debugger in the Intel® Software Guard Extensions Developer Reference Guide for Linux for more information on sgx-gdb. You can find the most recent Intel SGX Developer Reference Guide for Linux in the Documentation section of the latest Intel® Software Guard Extensions Linux Release*.