Closed thomasten closed 4 months ago
What distro and version are you running?
This happens on all distros I tried: Ubuntu 20.04, Ubuntu 22.04, RHEL 9.2
I encountered exactly the same symptoms on an Azure VM (DCsv3, Ubuntu 22.04), so I will provide several logs as a supplement.
Output of journalctl -xe
after crash:
Feb 05 05:10:39 machine kernel: aesm_service[23303]: segfault at 0 ip 00007f66c3c7090c sp 00007f66c3bfd5b0 error 6 in libsgx_default_qcnl_wrapper.so.1.13.107.2[7f66c3c57000+1f9000] likely on CPU 1 (core 1, socket 0)
Feb 05 05:10:39 machine kernel: Code: 5c 41 5d 41 5e 41 5f c3 66 0f 1f 44 00 00 48 83 7e 08 00 49 89 f5 74 ac 48 89 fd be 01 00 00 00 bf 22 00 00 00 e8 94 79 fe ff <48> 89 03 48 85 c0 0f 84 f9 00 00 00 c7 00 01 00 00 00 48 8b 7d 00
Feb 05 05:10:39 machine systemd[1]: aesmd.service: Main process exited, code=dumped, status=11/SEGV
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ An ExecStart= process belonging to unit aesmd.service has exited.
░░
░░ The process' exit code is 'dumped' and its exit status is 11.
Feb 05 05:10:39 machine systemd[1]: aesmd.service: Failed with result 'core-dump'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit aesmd.service has entered the 'failed' state with result 'core-dump'.
stdout (stderr) of QuoteGenerationSample with make DEBUG=1
[APP] Step1: Call sgx_qe_get_target_info:
[init ../../../psw/ae/aesm_service/source/core/ipc/UnixCommunicationSocket.cpp:225] Failed to connect to socket /var/run/aesmd/aesm.socket
Error in sgx_qe_get_target_info. 0xe040
The crash appears to occur in the sgx_qe_get_target_info
function.
As Thomasten said, this problem can be temporarily avoided by either not setting local_pck_url
or by downgrading libsgx-dcap-default-qpl
to 1.19.
It would be helpful if you could share your progress in resolving this issue.
PR is ready for review here: https://github.com/intel/SGXDataCenterAttestationPrimitives/pull/370
I can confirm that this is fixed with DCAP 1.21 release.
Update: this is fixed with DCAP 1.21 release.
Hi, I use the default QPL in an Azure VM. With this config https://github.com/intel/SGXDataCenterAttestationPrimitives/blob/master/QuoteGeneration/qcnl/linux/sgx_default_qcnl_azure.conf I get the following crash:
Without local_pck_url configured, it works. Downgrading to v1.19 also works.