I'm running an app with sgx. It's memory usage is less than 128M, I'm sure about that.
0x752EEB22 (KernelBase.dll)处(位于 test-sgx-align.exe 中)引发的异常: 0xA1A01EC1 (参数:0x13B1CDA8)。
0x79021168 (sgx_urts.dll)处(位于 test-sgx-align.exe 中)引发的异常: 0xC000001D: Illegal Instruction。
0x79021168 (sgx_urts.dll) (test-sgx-align.exe 中)处有未经处理的异常: 0xC000001D: Illegal Instruction。
程序“[25268] test-sgx-align.exe”已退出,返回值为 0 (0x0)。
As you see.
sign the enclave
The required memory is 0x18b000.
<EnclaveConfiguration>
<ProdID>0</ProdID>
<ISVSVN>0</ISVSVN>
<StackMaxSize>0x40000</StackMaxSize>
<HeapMaxSize>0x100000</HeapMaxSize>
<TCSNum>1</TCSNum>
<TCSPolicy>1</TCSPolicy>
Succeed.
Maybe I should change the and .I have done it in my compiler(vs2017_pro), but it seems that the setting doesn't work.
Here is the problem code. The numbers n1 and n2 are between 100 and 10000.
paths = new short*[n1 + 1];
scores = new short*[n1 + 1];
for (int i = 0; i < n1 + 1; i++)
{
paths[i] = new short[n2 + 1]();
scores[i] = new short[n2 + 1]();
}
I am sorry that there are some Chinese words in my question. Can anyone help me? Thanks.