- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I was wondering if anyone was having memory leak issues because of the TCMalloc library? If so, how did you resolve the issue? Basically, I created a basic ecall function to test the malloc feature and looped to that ecall function multiple times, after some loops, I couldn't allocate anymore. So I think the free() function doesn't really free the enclave heap.
void ecall_test_function()
{
uint8_t *data = (uint8_t *)malloc(1024*16);
if (!data) return -1;
printf("data successfully allocated.");
free(data); // this has the same effect when it is commented out
}
My max heap size is set to 0xF00000, and I just had to loop to this function ~500 times to hit the error condition.
Are there similar experiences?
Kind Regards,
- Elephant
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What SGX + OS versions are you seeing this issue in?
Thanks,
Francisco
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Francisco C., sorry for replying a bit too late, but I did not use the TCMalloc for the time being because of this issue. But, the SDK version I was using was 2.5 and I
-
![](/skins/images/D2683F18326913BBA0436CB7114DD569/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page