<?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 Using tcmalloc library in enclave in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Using-tcmalloc-library-in-enclave/m-p/1161816#M2875</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to use tcmalloc library in enclave. I also saw the references and succeed to build enclave&lt;/P&gt;&lt;P&gt;But, I think free() does not work well... Is there any version that free() does not work well? I use 2.7 version of sdk&lt;/P&gt;&lt;P&gt;Also, I wonder that&amp;nbsp; what is difference between sgx_tcmalloc.a and sdk/gperftools/tcmalloc.a ? I just saw sgx_tcmalloc.a in references..&lt;/P&gt;&lt;P&gt;Thanks.!&lt;/P&gt;</description>
    <pubDate>Tue, 14 Apr 2020 12:03:47 GMT</pubDate>
    <dc:creator>MYEONGSU__KIM</dc:creator>
    <dc:date>2020-04-14T12:03:47Z</dc:date>
    <item>
      <title>Using tcmalloc library in enclave</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Using-tcmalloc-library-in-enclave/m-p/1161816#M2875</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to use tcmalloc library in enclave. I also saw the references and succeed to build enclave&lt;/P&gt;&lt;P&gt;But, I think free() does not work well... Is there any version that free() does not work well? I use 2.7 version of sdk&lt;/P&gt;&lt;P&gt;Also, I wonder that&amp;nbsp; what is difference between sgx_tcmalloc.a and sdk/gperftools/tcmalloc.a ? I just saw sgx_tcmalloc.a in references..&lt;/P&gt;&lt;P&gt;Thanks.!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 12:03:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Using-tcmalloc-library-in-enclave/m-p/1161816#M2875</guid>
      <dc:creator>MYEONGSU__KIM</dc:creator>
      <dc:date>2020-04-14T12:03:47Z</dc:date>
    </item>
    <item>
      <title>Hello Kim,</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Using-tcmalloc-library-in-enclave/m-p/1161817#M2876</link>
      <description>&lt;P&gt;Hello Kim,&lt;/P&gt;&lt;P&gt;There is no difference between sgx_tcmalloc and gperftools tcmalloc. Did you follow these &lt;A href="https://github.com/intel/linux-sgx/tree/master/sdk/gperftools"&gt;instructions &lt;/A&gt;for Linux?&amp;nbsp; Please explain why you think that free() does not work well.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jesus&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 20:51:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Using-tcmalloc-library-in-enclave/m-p/1161817#M2876</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2020-04-14T20:51:27Z</dc:date>
    </item>
    <item>
      <title> int * resultarray = (int*</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Using-tcmalloc-library-in-enclave/m-p/1161818#M2877</link>
      <description>&lt;P&gt;&amp;nbsp;int * resultarray = (int*)malloc(4 * 250000);&lt;/P&gt;&lt;P&gt;free(resultarray);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Upon code is the summary of my code, and I increase max heap,stack size to 0x2000000. The program runs normally for about 11 times ,but after that , segmentation fault is occured. and somtimes sgx_error 0x0003(out of mem)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is somepart of Makefile. I also insert tcmalloc before "start group" things...&lt;/P&gt;&lt;P&gt;-Wl,--whole-archive -l$(SGX_TRTS) -Wl,--no-whole-archive \&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -Wl,--whole-archive -lsgx_tcmalloc -Wl,--no-whole-archive \&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -Wl,--whole-archive -lsgx_tsgxssl -Wl,--no-whole-archive \&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 08:44:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Using-tcmalloc-library-in-enclave/m-p/1161818#M2877</guid>
      <dc:creator>MYEONGSU__KIM</dc:creator>
      <dc:date>2020-04-15T08:44:40Z</dc:date>
    </item>
    <item>
      <title>Oops.. I'm really sorry...</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Using-tcmalloc-library-in-enclave/m-p/1161819#M2878</link>
      <description>&lt;P&gt;Oops.. I'm really sorry... That was totally my fault...&lt;BR /&gt;Thank you for your help!!!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 09:09:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Using-tcmalloc-library-in-enclave/m-p/1161819#M2878</guid>
      <dc:creator>MYEONGSU__KIM</dc:creator>
      <dc:date>2020-04-15T09:09:16Z</dc:date>
    </item>
  </channel>
</rss>

