Article ID: 000058656 Content Type: Troubleshooting Last Reviewed: 08/05/2021

Encountered Error from an Enclave while Running a Custom Program that uses the Intel® Software Guard Extensions (Intel® SGX) Software Development Kit (SDK)

Environment

Linux*

BUILT IN - ARTICLE INTRO SECOND COMPONENT
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
  1. Determine which error code is returned.
  2. Find the error code in sgx_error.h to determine its definition. This will help narrow down the cause and location of the error.
  3. Build the Intel SGX SDK with debug symbols
  4. 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*.

Related Products

This article applies to 1 products