Skip to content
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

Upgrade using ansible scripts failed to remove unnecessary files and caused random crashes #3733

Open
jxyang opened this issue Nov 17, 2020 · 4 comments
Assignees
Labels
ansible Tag indicating association with ansible deployments. bug Issue describes unintended or incorrect behavior in the repo or SDK linux Issue has to do with supporting Open Enclave on Linux SGX Tag indicating associated with Intel SGX triaged This label classifies an issue/PR as having been triaged.

Comments

@jxyang
Copy link
Contributor

jxyang commented Nov 17, 2020

Related: #3328

We have removed the files for libsgx-enclave-common-dev from the setup scripts, but we don't explicitly remove them from an existing OE installation when we upgrade with oe-contributors-acc-setup.yml. With that we have both libsgx-enclave-common and libsgx-enclave-common-dev on the system. This causes random failures while calling enclave_delete in the enclave common library.

@anakrish
Copy link
Contributor

anakrish commented Nov 17, 2020

AFAIK lib-sgx-enclave-common-dev package installs lib-sgx-enclave-common.so which is a (symbolic?) link to the lib-sgx-enclave-common.so.X shared library installed by lib-sgx-enclave-common package.

Having both lib-sgx-enclave-common and lib-sgx-enclave-common-dev packages installed ought not cause issues.

Can you let us know what ldd libsgx-enclave-common.so shows on the failing system?

@anakrish anakrish added linux Issue has to do with supporting Open Enclave on Linux SGX Tag indicating associated with Intel SGX labels Nov 17, 2020
@radhikaj
Copy link
Contributor

@jxyang Can you please respond to @anakrish's question above?

@dthaler dthaler added the ansible Tag indicating association with ansible deployments. label Nov 23, 2020
@jxyang
Copy link
Contributor Author

jxyang commented Nov 23, 2020

I have cured the system by manually removing the lib-sgx-enclave-common-dev package. My observation is that after I done that, the enclave_delete doesn't fail randomly anymore.

It's hard to go back to history and run the ldd command. But I think removing the redundant package in the ansible script is a prudent thing to do. Not urgent though, unless another user complaints the same issue.

@radhikaj radhikaj added bug Issue describes unintended or incorrect behavior in the repo or SDK triaged This label classifies an issue/PR as having been triaged. labels Nov 23, 2020
@anakrish
Copy link
Contributor

@jxyang
Good to hear that the problem is resolved.
We are however curious about the root cause since lib-sgx-enclave-common-dev is designed to coexist with lib-sgx-enclave-common.

Can you please reinstall lib-sgx-enclave-common-dev package and see if the issue starts occuring?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ansible Tag indicating association with ansible deployments. bug Issue describes unintended or incorrect behavior in the repo or SDK linux Issue has to do with supporting Open Enclave on Linux SGX Tag indicating associated with Intel SGX triaged This label classifies an issue/PR as having been triaged.
Projects
None yet
Development

No branches or pull requests

5 participants