I repeatedly call an ecall function. No operation was performed in the function, just return. At the beginning, it went smoothly, but after a while, a core dump occurred. After setting the HeapMaxSize in the configuration to be large, the error time is pushed back. Is there something left in sgx after ecall ends, causing memory overflow? Or is there any way I can solve this problem.
<!-- 64M -->
<!-- Recommend changing 'DisableDebug' to 1 to make the enclave undebuggable for enclave release -->
When I set TCSPolicy = 0, this core dump issue will not occur
Since you solved your problem by setting TCSPolicy to 0, do you still need help with this issue?
If you still need help, please send your source code so we can reproduce your issue.
I did a test, but I just found the error after calling ecall repeatedly.
I have a question. What are the effects of setting TCSpolicy to 0 and what are the security risks?
public void ecall_srd_increase([in, string] const char* path);
Hello Yang, please read page 49 of the SGX Developer Guide for more info on the Thread Binding Policy: https://software.intel.com/sites/default/files/managed/33/70/intel-sgx-developer-guide.pdf.