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
Fail to run crypto example #285
Comments
Hi @lengyijun , thanks for the report! Could you please double check if your Intel SGX SDK is the latest version 2.12. If you are using docker, please pull the latest |
I will update to 2.12 and test it again later. |
|
And I'm not testing in docker.
|
@lengyijun what's the output of 'dpkg -l | grep -i sgx'? |
I met the same problem.
Maybe it's because all the following functions:
And the result will be right like
I think there may be something wrong with the compiler? |
Well, it seems that there is something wrong with g++ compiler.
Seems right and the function will return successfully.
Don't care about address 0x36f5 - 0x3744. They are contents from original file
And we can see address 0x3749, we want the function returns but actually the machine code doesn't do such thing. So the program will continue executing from 0x3749, which is the start address of function
Maybe it's something wrong with the g++ compiler? |
Yes, functions that are not void yet having no return statements have undefined behaviors, unless that function is "main", according to the standard. |
@dingelish @uraj thanks for explanation |
The text was updated successfully, but these errors were encountered: