-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build Nginx Successfully, but got a segmentation fault #12
Comments
The sgxsdk-2.1.2 was used |
We are currently investigating a segmentation fault with the Intel SGX SDK >= 2.0. While the code runs correctly in hardware mode, the SGX SDK generates a segfault when creating the enclave. |
Here is an update on the problem. In simulation mode, when the program is loaded, the dynamic loader loads the Intel SGX SDK libraries, and in particular the URTS library. This library makes function calls to the OpenSSL library when it is loaded (see The simulation mode uses some OpenSSL functions to simulate instructions of SGX. We are currently looking at ways to solve this problem. One idea would be to load both the normal OpenSSL and TaLoS and make calls to the appropriate one, depending on if the calls are issued by the SGX SDK or the application. |
thanks, great! |
Commit 41584e3 fixes this issue. The SGX SDK calls the following two OpenSSL functions when its libraries are loaded: Then, when the enclave is created, it calls the following functions: In simulation mode these functions can no longer be the first ones called by your application as, until the enclave has been successfully created, they will result in a call to the system OpenSSL library instead of TaLoS. The |
After I followed the steps in README.md on ubuntu-16.04_3 OS, I got a binary and run it. Unfortunately, I got a segmentation fault.
The text was updated successfully, but these errors were encountered: