Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.

Core dump caused by calling ecall multiple times

aghia
Beginner
1,091 Views

Hello, 
I am using Intel sgx SDK 2.22 to build an application.
My application triggers by design an ecall multiple times since it is located in a while loop.

 

After some iterations, the enclave crashes. I used sgx-gdb that gave me this result:

#0  __pthread_kill_implementation (no_tid=0, signo=6, 
    threadid=140701950515456) at ./nptl/pthread_kill.c:44
44      ./nptl/pthread_kill.c: No such file or directory.
[Current thread is 1 (Thread 0x7ff7b9c79900 (LWP 204777))]
(gdb) bt
#0  __pthread_kill_implementation (no_tid=0, signo=6, 
    threadid=140701950515456) at ./nptl/pthread_kill.c:44
#1  __pthread_kill_internal (signo=6, 
    threadid=140701950515456) at ./nptl/pthread_kill.c:78
#2  __GI___pthread_kill (threadid=140701950515456, 
    signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3  0x00007ff7b9642476 in __GI_raise (sig=sig@entry=6)
    at ../sysdeps/posix/raise.c:26
#4  0x00007ff7b96287f3 in __GI_abort ()
    at ./stdlib/abort.c:79
#5  0x0000561457587796 in add_lost_keys_in_enclave (
    local_lost_keys_set=std::set with 1 element = {...})
    at App/TrustedLibrary/Types.cpp:139

 This is the code of the add_lost_keys_in_enclave() function (which is called inside a while loop) where it systematically abort after some normal executions :

void add_lost_keys_in_enclave(const set<string>& local_lost_keys_set){
    string lost_keys_string="";
    for (const auto& key_with_last_share_owner : local_lost_keys_set) {
        lost_keys_string += key_with_last_share_owner+"\n";
    } 


    sgx_status_t ret = SGX_ERROR_UNEXPECTED;
    ret = ecall_add_lost_keys(global_eid, convertCString(lost_keys_string)); 
    if (ret != SGX_SUCCESS)
        abort();
}

 What can I do ?

0 Kudos
2 Replies
Aznie_Intel
Moderator
1,059 Views

Hi Aghia,


We are checking on this with engineering team and will get back to you once the information available. Thanks for your patience.



Regards,

Aznie


0 Kudos
Aznie_Intel
Moderator
952 Views

Hi Aghia,

 

We have provided updates in your previous post on this Community. Therefore, I will close this ticket and we will continue providing support on your post below:

 

https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-Enclave-systemetically-crashing-after-some-PUT-operations/m-p/1550595#M6057

 

 

Regards,

Aznie


0 Kudos
Reply