- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'm trying to use tcmalloc library in enclave. I also saw the references and succeed to build enclave
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
Also, I wonder that what is difference between sgx_tcmalloc.a and sdk/gperftools/tcmalloc.a ? I just saw sgx_tcmalloc.a in references..
Thanks.!
- Tags:
- General Support
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Kim,
There is no difference between sgx_tcmalloc and gperftools tcmalloc. Did you follow these instructions for Linux? Please explain why you think that free() does not work well.
Regards,
Jesus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
int * resultarray = (int*)malloc(4 * 250000);
free(resultarray);
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)
Here is somepart of Makefile. I also insert tcmalloc before "start group" things...
-Wl,--whole-archive -l$(SGX_TRTS) -Wl,--no-whole-archive \
-Wl,--whole-archive -lsgx_tcmalloc -Wl,--no-whole-archive \
-Wl,--whole-archive -lsgx_tsgxssl -Wl,--no-whole-archive \
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oops.. I'm really sorry... That was totally my fault...
Thank you for your help!!!
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page