I try to print the memory data inside enclave using ocall like this (from linux SampleEnclave)
/* OCall functions */
void ocall_print_string(const char *str)
/* Proxy/Bridge will check the length and null-terminate
* the input string to prevent buffer overflow.
But it failed and core dump
"Program received signal SIGSEGV, Segmentation fault.
0x00007ffff69c6943 in _IO_vfprintf_internal (s=<optimized out>, format=<optimized out>, ap=ap@entry=0x7fffffffe368) at vfprintf.c:166
So is it allowed to dump or read the enclave memory in the ocall funtion?