Open Arslan8 opened 4 years ago
The symbols of urts were there, otherwise we shall see ??? as the function names in the bt. Something like the following:
#0 0x00007ffff7fb3fa0 in enclave_create () from /usr/lib/x86_64-linux-gnu/libsgx_enclave_common.so.1
#1 0x00007ffff7fc81a7 in ?? () from /usr/lib/x86_64-linux-gnu/libsgx_urts.so
#2 0x00007ffff7fc1626 in ?? () from /usr/lib/x86_64-linux-gnu/libsgx_urts.so
#3 0x00007ffff7fc1efc in ?? () from /usr/lib/x86_64-linux-gnu/libsgx_urts.so
#4 0x00007ffff7fc2ba6 in ?? () from /usr/lib/x86_64-linux-gnu/libsgx_urts.so
#5 0x00007ffff7fc2c27 in ?? () from /usr/lib/x86_64-linux-gnu/libsgx_urts.so
#6 0x00007ffff7fc6dcf in ?? () from /usr/lib/x86_64-linux-gnu/libsgx_urts.so
#7 0x00007ffff7fc7708 in ?? () from /usr/lib/x86_64-linux-gnu/libsgx_urts.so
#8 0x00007ffff7fc781c in ?? () from /usr/lib/x86_64-linux-gnu/libsgx_urts.so
#9 0x00007ffff7fc793d in sgx_create_enclave () from /usr/lib/x86_64-linux-gnu/libsgx_urts.so
#10 0x00005555555571f6 in initialize_enclave () at App/App.cpp:161
#11 0x0000555555557252 in main (argc=1, argv=0x7fffffffe078) at App/App.cpp:188
@xxu36 thanks for the response.. I am a little confused now, why doesn't it point to the line number in the file? is this something related to SGX libraries?
I think the answer is yes. The released packages are using release build instead of debug build, so the line numbers are not available. If you build it from source code and build it in debug mode, you can see the line number.
Hi, I am trying to debug libsgx_urts, however sgx-gdb is unable to find the symbols. Here are my build instructions:
I have checked my gdb and it does look for the files in "/usr/lib/dbg" and dpk -L does show the .debug file.
/usr/lib/debug/.build-id/14/4d4abb30e140eb8889caaf1a3a2878fd29e35c.debug
However, as you can see in the backtrace the debug symbols are still missing:
Any leads what might be going wrong here? I am using sdk 2.9