<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re:Core dump caused by calling ecall multiple times in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Core-dump-caused-by-calling-ecall-multiple-times/m-p/1558042#M6080</link>
    <description>&lt;P&gt;Hi Aghia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-Enclave-systemetically-crashing-after-some-PUT-operations/m-p/1550595#M6057" rel="noopener noreferrer" target="_blank"&gt;https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-Enclave-systemetically-crashing-after-some-PUT-operations/m-p/1550595#M6057&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aznie&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 28 Dec 2023 03:20:24 GMT</pubDate>
    <dc:creator>Aznie_Intel</dc:creator>
    <dc:date>2023-12-28T03:20:24Z</dc:date>
    <item>
      <title>Core dump caused by calling ecall multiple times</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Core-dump-caused-by-calling-ecall-multiple-times/m-p/1554182#M6067</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;BR /&gt;I am using Intel sgx SDK 2.22 to build an application.&lt;BR /&gt;My application triggers by design an ecall multiple times since it is located in a while loop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After some iterations, the enclave crashes. I used sgx-gdb that gave me this result:&lt;/P&gt;&lt;PRE&gt;#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&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;This is the code of the&amp;nbsp;&lt;/SPAN&gt;add_lost_keys_in_enclave()&lt;SPAN&gt;&amp;nbsp;function (which is called inside a while loop) where it systematically abort after some normal executions :&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;void add_lost_keys_in_enclave(const set&amp;lt;string&amp;gt;&amp;amp; local_lost_keys_set){
    string lost_keys_string="";
    for (const auto&amp;amp; 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();
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;What can I do ?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2023 00:15:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Core-dump-caused-by-calling-ecall-multiple-times/m-p/1554182#M6067</guid>
      <dc:creator>aghia</dc:creator>
      <dc:date>2023-12-15T00:15:02Z</dc:date>
    </item>
    <item>
      <title>Re:Core dump caused by calling ecall multiple times</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Core-dump-caused-by-calling-ecall-multiple-times/m-p/1554623#M6068</link>
      <description>&lt;P&gt;Hi Aghia,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We are checking on this with engineering team and will get back to you once the information available. Thanks for your patience.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aznie&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 16 Dec 2023 03:21:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Core-dump-caused-by-calling-ecall-multiple-times/m-p/1554623#M6068</guid>
      <dc:creator>Aznie_Intel</dc:creator>
      <dc:date>2023-12-16T03:21:08Z</dc:date>
    </item>
    <item>
      <title>Re:Core dump caused by calling ecall multiple times</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Core-dump-caused-by-calling-ecall-multiple-times/m-p/1558042#M6080</link>
      <description>&lt;P&gt;Hi Aghia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-Enclave-systemetically-crashing-after-some-PUT-operations/m-p/1550595#M6057" rel="noopener noreferrer" target="_blank"&gt;https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-Enclave-systemetically-crashing-after-some-PUT-operations/m-p/1550595#M6057&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aznie&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Dec 2023 03:20:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Core-dump-caused-by-calling-ecall-multiple-times/m-p/1558042#M6080</guid>
      <dc:creator>Aznie_Intel</dc:creator>
      <dc:date>2023-12-28T03:20:24Z</dc:date>
    </item>
  </channel>
</rss>

