ibr-ds / sgx-perf

High-level performance analyser toolkit for Intel SGX
MIT License
39 stars 11 forks source link

Buffer overflow detected #6

Open AmbitionXiang opened 4 years ago

AmbitionXiang commented 4 years ago

Hi, when I enabled EPC page tracing and set the Enclave.config.xml as follows:

  <EnclaveConfiguration>
  <ProdID>0</ProdID>
  <ISVSVN>0</ISVSVN>
  <StackMaxSize>0x100000</StackMaxSize>
  <HeapMaxSize>0x400000000</HeapMaxSize>
  <TCSNum>1</TCSNum>
  <TCSPolicy>1</TCSPolicy>
  <DisableDebug>0</DisableDebug>
  <MiscSelect>0</MiscSelect>
  <MiscMask>0xFFFFFFFF</MiscMask>
  </EnclaveConfiguration>

Error happened, partial messages were as follows:

[enclave_create sgx_enclave_common.cpp:356] 
 secs->attibutes.flags = 6, secs->attributes.xfrm = 7 
[build_secs /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/loader.cpp:525] Enclave start addr. = 0x7f2000000000, Size = 0x800000000, 33554432 KB
[build_image /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/loader.cpp:568] 
        Metadata Version = 0x0000000100000004
build_contexts, step = 0x0000000000000000
        Entry Id( 0) =    1, HEAP_MIN        , Page Count =     1, Attributes = 0x01, Flags = 0x0000000000000203, RVA = 0x00000000002E9000 + 0x0000000000000000
        build_context
        Entry Id     =    1, HEAP_MIN        , Page Count =     1, Attributes = 0x01, Flags = 0x0000000000000203, RVA = 0x00000000002E9000 -> RVA = 0x00000000002E9000
build_contexts, step = 0x0000000000000000
        Entry Id( 0) =    2, HEAP_INIT       , Page Count = 4194303, Attributes = 0x11, Flags = 0x0000000000000203, RVA = 0x00000000002EA000 + 0x0000000000000000
        build_context
        Entry Id     =    2, HEAP_INIT       , Page Count = 4194303, Attributes = 0x11, Flags = 0x0000000000000203, RVA = 0x00000000002EA000 -> RVA = 0x00000000002EA000
*** buffer overflow detected ***: ./app terminated
Caught signal 6
!!! SIGABRT received, exiting
/home/lixiang/sgx/sgx-perf/build/lib/liblogger.so(_Z14sigint_handleriP9siginfo_tPv+0x38c)[0x7f2ed11e00bc]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12890)[0x7f2ed0b06890]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7f2ed0529e97]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7f2ed052b801]
/lib/x86_64-linux-gnu/libc.so.6(+0x89897)[0x7f2ed0574897]
/lib/x86_64-linux-gnu/libc.so.6(+0x134cff)[0x7f2ed061fcff]
/lib/x86_64-linux-gnu/libc.so.6(+0x134d21)[0x7f2ed061fd21]
/lib/x86_64-linux-gnu/libc.so.6(+0x132a10)[0x7f2ed061da10]
/lib/x86_64-linux-gnu/libc.so.6(+0x134c0a)[0x7f2ed061fc0a]
/home/lixiang/sgx/sgx-perf/build/lib/liblogger.so(_ZN7sgxperf4Perf14sampler_threadEv+0x118)[0x7f2ed11e4f08]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0xbd6df)[0x7f2ecfc676df]
/home/lixiang/sgx/sgx-perf/build/lib/liblogger.so(_Z24intercepter_thread_startPv+0xb9)[0x7f2ed11e4279]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76db)[0x7f2ed0afb6db]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x3f)[0x7f2ed060c88f]

How to fix it?

If I didn't work with sgx-perf, it ran well.

iihihiuh commented 4 years ago

I got the same error. Have you resolved this issue yet?

AmbitionXiang commented 4 years ago

@iihihiuh Not yet. You probably also set <HeapMaxSize> to a large value as we did, then the error occurred, I guess.

envy commented 4 years ago

Hi, does it work with the logger if you reduce the heap size below 4GB (or try to get the enclave size below 4GB)? There shouldn't be anything inside the logger that is uses the enclave size except for the signal handler which checks if a faul occured inside the enclave or not.

The working set analyszer might not handle such big enclaves, but the logger should be able to.

I'll try to replicate the issue.

envy commented 4 years ago

So I took the Intel sample enclave and used your heap value but I was not able to replicate the issue. Logger went through fine.

Can you give me some more information regarding the environment/enclave?

AmbitionXiang commented 4 years ago

Hi, My SDK version is 2.9.1. Environment: Ubuntu 18.04, Intel(R) Core(TM) i7-9700K CPU@ 3.60GHz, Memory 30G.

And I carried out such experiments. My experiments were based on the Intel sample code ---- SampleCode/SampleEnclave, but without these two lines.

    printf("Enter a character before exit ...\n");
    getchar();

First, I set the Enclave.config.xml as follows

<EnclaveConfiguration>
  <ProdID>0</ProdID>
  <ISVSVN>0</ISVSVN>
  <StackMaxSize>0x40000</StackMaxSize>
  <HeapMaxSize>0x100000</HeapMaxSize>
  <TCSNum>10</TCSNum>
  <TCSPolicy>1</TCSPolicy>
  <!-- Recommend changing 'DisableDebug' to 1 to make the enclave undebuggable for enclave release -->
  <DisableDebug>0</DisableDebug>
  <MiscSelect>0</MiscSelect>
  <MiscMask>0xFFFFFFFF</MiscMask>
</EnclaveConfiguration>

There was an error /!\ Could not delete /sys/kernel/debug/tracing/instances/sgxperf-6500:Device or resource busy. The entire result was as follows:

[CEnclavePool /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/enclave.cpp:627] enter CEnclavePool constructor
=== Initializing sgx-perf
(i) Enabled EPC page tracing, this needs root permissions
=== Done initializing
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = 10, ptr = 0
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = 1a, ptr = 237920
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = 1c, ptr = 40
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = 6ffffef5, ptr = 278
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = 5, ptr = 370
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = 6, ptr = 2b0
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = a, ptr = 78
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = b, ptr = 18
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = 15, ptr = 0
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = 3, ptr = 237fd8
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = 7, ptr = 430
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = 8, ptr = b88
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = 9, ptr = 18
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = 6ffffffc, ptr = 3f8
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = 6ffffffd, ptr = 2
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = 1e, ptr = a
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = 6ffffffb, ptr = 8000001
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = 6ffffff0, ptr = 3e8
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = 6ffffff9, ptr = 79
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [0] : sh_addr = 0, sh_size = 0, sh_offset = 0, sh_name = 0
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [1] .interp: sh_addr = 238, sh_size = 1c, sh_offset = 238, sh_name = 1b
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [2] .note.gnu.build-id: sh_addr = 254, sh_size = 24, sh_offset = 254, sh_name = 23
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [3] .gnu.hash: sh_addr = 278, sh_size = 38, sh_offset = 278, sh_name = 36
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [4] .dynsym: sh_addr = 2b0, sh_size = c0, sh_offset = 2b0, sh_name = 40
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [0] : sh_addr = 0, sh_size = 0, sh_offset = 0, sh_name = 0
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [1] .interp: sh_addr = 238, sh_size = 1c, sh_offset = 238, sh_name = 1b
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [2] .note.gnu.build-id: sh_addr = 254, sh_size = 24, sh_offset = 254, sh_name = 23
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [3] .gnu.hash: sh_addr = 278, sh_size = 38, sh_offset = 278, sh_name = 36
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [4] .dynsym: sh_addr = 2b0, sh_size = c0, sh_offset = 2b0, sh_name = 40
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [5] .dynstr: sh_addr = 370, sh_size = 78, sh_offset = 370, sh_name = 48
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [0] : sh_addr = 0, sh_size = 0, sh_offset = 0, sh_name = 0
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [1] .interp: sh_addr = 238, sh_size = 1c, sh_offset = 238, sh_name = 1b
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [2] .note.gnu.build-id: sh_addr = 254, sh_size = 24, sh_offset = 254, sh_name = 23
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [3] .gnu.hash: sh_addr = 278, sh_size = 38, sh_offset = 278, sh_name = 36
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [4] .dynsym: sh_addr = 2b0, sh_size = c0, sh_offset = 2b0, sh_name = 40
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [5] .dynstr: sh_addr = 370, sh_size = 78, sh_offset = 370, sh_name = 48
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [6] .gnu.version: sh_addr = 3e8, sh_size = 10, sh_offset = 3e8, sh_name = 50
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [7] .gnu.version_d: sh_addr = 3f8, sh_size = 38, sh_offset = 3f8, sh_name = 5d
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [8] .rela.dyn: sh_addr = 430, sh_size = b88, sh_offset = 430, sh_name = 6c
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [0] : sh_addr = 0, sh_size = 0, sh_offset = 0, sh_name = 0
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [0] : sh_addr = 0, sh_size = 0, sh_offset = 0, sh_name = 0
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [1] .interp: sh_addr = 238, sh_size = 1c, sh_offset = 238, sh_name = 1b
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [2] .note.gnu.build-id: sh_addr = 254, sh_size = 24, sh_offset = 254, sh_name = 23
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [3] .gnu.hash: sh_addr = 278, sh_size = 38, sh_offset = 278, sh_name = 36
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [4] .dynsym: sh_addr = 2b0, sh_size = c0, sh_offset = 2b0, sh_name = 40
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [5] .dynstr: sh_addr = 370, sh_size = 78, sh_offset = 370, sh_name = 48
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [6] .gnu.version: sh_addr = 3e8, sh_size = 10, sh_offset = 3e8, sh_name = 50
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [7] .gnu.version_d: sh_addr = 3f8, sh_size = 38, sh_offset = 3f8, sh_name = 5d
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [8] .rela.dyn: sh_addr = 430, sh_size = b88, sh_offset = 430, sh_name = 6c
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [9] .plt: sh_addr = fc0, sh_size = 10, sh_offset = fc0, sh_name = 76
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [10] .plt.got: sh_addr = fd0, sh_size = 10, sh_offset = fd0, sh_name = 7b
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [11] .text: sh_addr = fe0, sh_size = 2d62e, sh_offset = fe0, sh_name = 84
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [12] .nipx: sh_addr = 2e60e, sh_size = e5f, sh_offset = 2e60e, sh_name = 8a
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [13] .rodata: sh_addr = 2f480, sh_size = 20a5, sh_offset = 2f480, sh_name = 90
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [14] .niprod: sh_addr = 31540, sh_size = 8c0, sh_offset = 31540, sh_name = 98
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [15] .eh_frame_hdr: sh_addr = 31e00, sh_size = 119c, sh_offset = 31e00, sh_name = a0
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [16] .eh_frame: sh_addr = 32fa0, sh_size = 4780, sh_offset = 32fa0, sh_name = ae
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [17] .gcc_except_table: sh_addr = 37720, sh_size = 158, sh_offset = 37720, sh_name = b8
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [18] .fini_array: sh_addr = 237920, sh_size = 40, sh_offset = 37920, sh_name = ca
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [19] .data.rel.ro: sh_addr = 237960, sh_size = 4f8, sh_offset = 37960, sh_name = d6
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [20] .dynamic: sh_addr = 237e58, sh_size = 180, sh_offset = 37e58, sh_name = e3
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [21] .got: sh_addr = 237fd8, sh_size = 28, sh_offset = 37fd8, sh_name = 7f
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [22] .data: sh_addr = 238000, sh_size = 2bf, sh_offset = 38000, sh_name = ec
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [23] .nipd: sh_addr = 2382c0, sh_size = 8, sh_offset = 382c0, sh_name = f2
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [24] .bss: sh_addr = 2382e0, sh_size = f780, sh_offset = 382c8, sh_name = f8
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [25] .comment: sh_addr = 0, sh_size = 52, sh_offset = 382c8, sh_name = fd
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [26] .note.sgxmeta: sh_addr = 0, sh_size = 501c, sh_offset = 3831c, sh_name = 106
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [27] .debug_aranges: sh_addr = 0, sh_size = 5d20, sh_offset = 3d340, sh_name = 114
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [28] .debug_info: sh_addr = 0, sh_size = be3dd, sh_offset = 43060, sh_name = 123
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [29] .debug_abbrev: sh_addr = 0, sh_size = f1e1, sh_offset = 10143d, sh_name = 12f
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [30] .debug_line: sh_addr = 0, sh_size = 2c8ec, sh_offset = 11061e, sh_name = 13d
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [31] .debug_str: sh_addr = 0, sh_size = 2c73f, sh_offset = 13cf0a, sh_name = 149
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [32] .debug_ranges: sh_addr = 0, sh_size = 7910, sh_offset = 169649, sh_name = 154
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [33] .symtab: sh_addr = 0, sh_size = 5b38, sh_offset = 170f60, sh_name = 1
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [34] .strtab: sh_addr = 0, sh_size = 4ed4, sh_offset = 176a98, sh_name = 9
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [35] .shstrtab: sh_addr = 0, sh_size = 162, sh_offset = 17b96c, sh_name = 11
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [0] : sh_addr = 0, sh_size = 0, sh_offset = 0, sh_name = 0
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [1] .interp: sh_addr = 238, sh_size = 1c, sh_offset = 238, sh_name = 1b
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [2] .note.gnu.build-id: sh_addr = 254, sh_size = 24, sh_offset = 254, sh_name = 23
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [3] .gnu.hash: sh_addr = 278, sh_size = 38, sh_offset = 278, sh_name = 36
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [4] .dynsym: sh_addr = 2b0, sh_size = c0, sh_offset = 2b0, sh_name = 40
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [5] .dynstr: sh_addr = 370, sh_size = 78, sh_offset = 370, sh_name = 48
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [6] .gnu.version: sh_addr = 3e8, sh_size = 10, sh_offset = 3e8, sh_name = 50
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [7] .gnu.version_d: sh_addr = 3f8, sh_size = 38, sh_offset = 3f8, sh_name = 5d
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [8] .rela.dyn: sh_addr = 430, sh_size = b88, sh_offset = 430, sh_name = 6c
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [9] .plt: sh_addr = fc0, sh_size = 10, sh_offset = fc0, sh_name = 76
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [10] .plt.got: sh_addr = fd0, sh_size = 10, sh_offset = fd0, sh_name = 7b
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [11] .text: sh_addr = fe0, sh_size = 2d62e, sh_offset = fe0, sh_name = 84
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [12] .nipx: sh_addr = 2e60e, sh_size = e5f, sh_offset = 2e60e, sh_name = 8a
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [13] .rodata: sh_addr = 2f480, sh_size = 20a5, sh_offset = 2f480, sh_name = 90
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [14] .niprod: sh_addr = 31540, sh_size = 8c0, sh_offset = 31540, sh_name = 98
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [15] .eh_frame_hdr: sh_addr = 31e00, sh_size = 119c, sh_offset = 31e00, sh_name = a0
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [16] .eh_frame: sh_addr = 32fa0, sh_size = 4780, sh_offset = 32fa0, sh_name = ae
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [17] .gcc_except_table: sh_addr = 37720, sh_size = 158, sh_offset = 37720, sh_name = b8
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [18] .fini_array: sh_addr = 237920, sh_size = 40, sh_offset = 37920, sh_name = ca
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [19] .data.rel.ro: sh_addr = 237960, sh_size = 4f8, sh_offset = 37960, sh_name = d6
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [20] .dynamic: sh_addr = 237e58, sh_size = 180, sh_offset = 37e58, sh_name = e3
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [21] .got: sh_addr = 237fd8, sh_size = 28, sh_offset = 37fd8, sh_name = 7f
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [22] .data: sh_addr = 238000, sh_size = 2bf, sh_offset = 38000, sh_name = ec
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [23] .nipd: sh_addr = 2382c0, sh_size = 8, sh_offset = 382c0, sh_name = f2
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [24] .bss: sh_addr = 2382e0, sh_size = f780, sh_offset = 382c8, sh_name = f8
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [25] .comment: sh_addr = 0, sh_size = 52, sh_offset = 382c8, sh_name = fd
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [26] .note.sgxmeta: sh_addr = 0, sh_size = 501c, sh_offset = 3831c, sh_name = 106
LOAD Section: 1
Flags = 0x0000000000000005
VAddr = 0x0000000000000000
Size  = 0x0000000000037878

LOAD Section: 2
Flags = 0x0000000000000006
VAddr = 0x0000000000237920
Size  = 0x0000000000010140

[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [0] : sh_addr = 0, sh_size = 0, sh_offset = 0, sh_name = 0
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [1] .interp: sh_addr = 238, sh_size = 1c, sh_offset = 238, sh_name = 1b
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [2] .note.gnu.build-id: sh_addr = 254, sh_size = 24, sh_offset = 254, sh_name = 23
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [3] .gnu.hash: sh_addr = 278, sh_size = 38, sh_offset = 278, sh_name = 36
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [4] .dynsym: sh_addr = 2b0, sh_size = c0, sh_offset = 2b0, sh_name = 40
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [5] .dynstr: sh_addr = 370, sh_size = 78, sh_offset = 370, sh_name = 48
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [6] .gnu.version: sh_addr = 3e8, sh_size = 10, sh_offset = 3e8, sh_name = 50
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [7] .gnu.version_d: sh_addr = 3f8, sh_size = 38, sh_offset = 3f8, sh_name = 5d
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [8] .rela.dyn: sh_addr = 430, sh_size = b88, sh_offset = 430, sh_name = 6c
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [9] .plt: sh_addr = fc0, sh_size = 10, sh_offset = fc0, sh_name = 76
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [10] .plt.got: sh_addr = fd0, sh_size = 10, sh_offset = fd0, sh_name = 7b
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [11] .text: sh_addr = fe0, sh_size = 2d62e, sh_offset = fe0, sh_name = 84
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [12] .nipx: sh_addr = 2e60e, sh_size = e5f, sh_offset = 2e60e, sh_name = 8a
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [13] .rodata: sh_addr = 2f480, sh_size = 20a5, sh_offset = 2f480, sh_name = 90
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [14] .niprod: sh_addr = 31540, sh_size = 8c0, sh_offset = 31540, sh_name = 98
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [15] .eh_frame_hdr: sh_addr = 31e00, sh_size = 119c, sh_offset = 31e00, sh_name = a0
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [16] .eh_frame: sh_addr = 32fa0, sh_size = 4780, sh_offset = 32fa0, sh_name = ae
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [17] .gcc_except_table: sh_addr = 37720, sh_size = 158, sh_offset = 37720, sh_name = b8
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [18] .fini_array: sh_addr = 237920, sh_size = 40, sh_offset = 37920, sh_name = ca
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [19] .data.rel.ro: sh_addr = 237960, sh_size = 4f8, sh_offset = 37960, sh_name = d6
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [20] .dynamic: sh_addr = 237e58, sh_size = 180, sh_offset = 37e58, sh_name = e3
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [21] .got: sh_addr = 237fd8, sh_size = 28, sh_offset = 37fd8, sh_name = 7f
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [22] .data: sh_addr = 238000, sh_size = 2bf, sh_offset = 38000, sh_name = ec
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [23] .nipd: sh_addr = 2382c0, sh_size = 8, sh_offset = 382c0, sh_name = f2
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [24] .bss: sh_addr = 2382e0, sh_size = f780, sh_offset = 382c8, sh_name = f8
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [25] .comment: sh_addr = 0, sh_size = 52, sh_offset = 382c8, sh_name = fd
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [26] .note.sgxmeta: sh_addr = 0, sh_size = 501c, sh_offset = 3831c, sh_name = 106
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [27] .debug_aranges: sh_addr = 0, sh_size = 5d20, sh_offset = 3d340, sh_name = 114
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [28] .debug_info: sh_addr = 0, sh_size = be3dd, sh_offset = 43060, sh_name = 123
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [29] .debug_abbrev: sh_addr = 0, sh_size = f1e1, sh_offset = 10143d, sh_name = 12f
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [30] .debug_line: sh_addr = 0, sh_size = 2c8ec, sh_offset = 11061e, sh_name = 13d
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [31] .debug_str: sh_addr = 0, sh_size = 2c73f, sh_offset = 13cf0a, sh_name = 149
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [32] .debug_ranges: sh_addr = 0, sh_size = 7910, sh_offset = 169649, sh_name = 154
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [33] .symtab: sh_addr = 0, sh_size = 5b38, sh_offset = 170f60, sh_name = 1
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [34] .strtab: sh_addr = 0, sh_size = 4ed4, sh_offset = 176a98, sh_name = 9
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [35] .shstrtab: sh_addr = 0, sh_size = 162, sh_offset = 17b96c, sh_name = 11
[enclave_create sgx_enclave_common.cpp:356] 
 secs->attibutes.flags = 6, secs->attributes.xfrm = 7 
[build_secs /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/loader.cpp:525] Enclave start addr. = 0x7f416e000000, Size = 0x1000000, 16384 KB
[build_image /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/loader.cpp:568] 
        Metadata Version = 0x0000000100000004
build_contexts, step = 0x0000000000000000
        Entry Id( 0) =    1, HEAP_MIN        , Page Count =     1, Attributes = 0x01, Flags = 0x0000000000000203, RVA = 0x0000000000248000 + 0x0000000000000000
        build_context
        Entry Id     =    1, HEAP_MIN        , Page Count =     1, Attributes = 0x01, Flags = 0x0000000000000203, RVA = 0x0000000000248000 -> RVA = 0x0000000000248000
build_contexts, step = 0x0000000000000000
        Entry Id( 0) =    2, HEAP_INIT       , Page Count =   255, Attributes = 0x11, Flags = 0x0000000000000203, RVA = 0x0000000000249000 + 0x0000000000000000
        build_context
        Entry Id     =    2, HEAP_INIT       , Page Count =   255, Attributes = 0x11, Flags = 0x0000000000000203, RVA = 0x0000000000249000 -> RVA = 0x0000000000249000
build_contexts, step = 0x0000000000000000
        Entry Id( 0) =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000348000 + 0x0000000000000000
        build_context
        Entry Id     =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000348000 -> RVA = 0x0000000000348000
build_contexts, step = 0x0000000000000000
        Entry Id( 0) =    7, STACK_MAX       , Page Count =    62, Attributes = 0x53, Flags = 0x0000000000000203, RVA = 0x0000000000358000 + 0x0000000000000000
        build_context
        Entry Id     =    7, STACK_MAX       , Page Count =    62, Attributes = 0x53, Flags = 0x0000000000000203, RVA = 0x0000000000358000 -> RVA = 0x0000000000358000
build_contexts, step = 0x0000000000000000
        Entry Id( 0) =    8, STACK_MIN       , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x0000000000396000 + 0x0000000000000000
        build_context
        Entry Id     =    8, STACK_MIN       , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x0000000000396000 -> RVA = 0x0000000000396000
build_contexts, step = 0x0000000000000000
        Entry Id( 0) =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000398000 + 0x0000000000000000
        build_context
        Entry Id     =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000398000 -> RVA = 0x0000000000398000
build_contexts, step = 0x0000000000000000
        Entry Id( 0) =    4, TCS             , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000100, RVA = 0x00000000003A8000 + 0x0000000000000000
        build_context
        Entry Id     =    4, TCS             , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000100, RVA = 0x00000000003A8000 -> RVA = 0x00000000003A8000
build_contexts, step = 0x0000000000000000
        Entry Id( 0) =    6, SSA             , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003A9000 + 0x0000000000000000
        build_context
        Entry Id     =    6, SSA             , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003A9000 -> RVA = 0x00000000003A9000
build_contexts, step = 0x0000000000000000
        Entry Id( 0) =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x00000000003AB000 + 0x0000000000000000
        build_context
        Entry Id     =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x00000000003AB000 -> RVA = 0x00000000003AB000
build_contexts, step = 0x0000000000000000
        Entry Id( 0) =    5, TD              , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003BB000 + 0x0000000000000000
        build_context
        Entry Id     =    5, TD              , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003BB000 -> RVA = 0x00000000003BB000
build_contexts, step = 0x0000000000000000
        Entry Id( 0) = 4105, THREAD_GROUP    , Entry Count =    8, Load Times = 9,    LStep = 0x0000000000074000
build_contexts, step = 0x0000000000074000
        Entry Id( 0) =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000348000 + 0x0000000000074000
        build_context
        Entry Id     =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000348000 -> RVA = 0x00000000003BC000
build_contexts, step = 0x0000000000074000
        Entry Id( 0) =    7, STACK_MAX       , Page Count =    62, Attributes = 0x53, Flags = 0x0000000000000203, RVA = 0x0000000000358000 + 0x0000000000074000
        build_context
        Entry Id     =    7, STACK_MAX       , Page Count =    62, Attributes = 0x53, Flags = 0x0000000000000203, RVA = 0x0000000000358000 -> RVA = 0x00000000003CC000
build_contexts, step = 0x0000000000074000
        Entry Id( 0) =    8, STACK_MIN       , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x0000000000396000 + 0x0000000000074000
        build_context
        Entry Id     =    8, STACK_MIN       , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x0000000000396000 -> RVA = 0x000000000040A000
build_contexts, step = 0x0000000000074000
        Entry Id( 0) =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000398000 + 0x0000000000074000
        build_context
        Entry Id     =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000398000 -> RVA = 0x000000000040C000
build_contexts, step = 0x0000000000074000
        Entry Id( 0) =    4, TCS             , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000100, RVA = 0x00000000003A8000 + 0x0000000000074000
        build_context
        Entry Id     =    4, TCS             , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000100, RVA = 0x00000000003A8000 -> RVA = 0x000000000041C000
build_contexts, step = 0x0000000000074000
        Entry Id( 0) =    6, SSA             , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003A9000 + 0x0000000000074000
        build_context
        Entry Id     =    6, SSA             , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003A9000 -> RVA = 0x000000000041D000
build_contexts, step = 0x0000000000074000
        Entry Id( 0) =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x00000000003AB000 + 0x0000000000074000
        build_context
        Entry Id     =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x00000000003AB000 -> RVA = 0x000000000041F000
build_contexts, step = 0x0000000000074000
        Entry Id( 0) =    5, TD              , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003BB000 + 0x0000000000074000
        build_context
        Entry Id     =    5, TD              , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003BB000 -> RVA = 0x000000000042F000
build_contexts, step = 0x00000000000E8000
        Entry Id( 0) =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000348000 + 0x00000000000E8000
        build_context
        Entry Id     =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000348000 -> RVA = 0x0000000000430000
build_contexts, step = 0x00000000000E8000
        Entry Id( 0) =    7, STACK_MAX       , Page Count =    62, Attributes = 0x53, Flags = 0x0000000000000203, RVA = 0x0000000000358000 + 0x00000000000E8000
        build_context
        Entry Id     =    7, STACK_MAX       , Page Count =    62, Attributes = 0x53, Flags = 0x0000000000000203, RVA = 0x0000000000358000 -> RVA = 0x0000000000440000
build_contexts, step = 0x00000000000E8000
        Entry Id( 0) =    8, STACK_MIN       , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x0000000000396000 + 0x00000000000E8000
        build_context
        Entry Id     =    8, STACK_MIN       , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x0000000000396000 -> RVA = 0x000000000047E000
build_contexts, step = 0x00000000000E8000
        Entry Id( 0) =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000398000 + 0x00000000000E8000
        build_context
        Entry Id     =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000398000 -> RVA = 0x0000000000480000
build_contexts, step = 0x00000000000E8000
        Entry Id( 0) =    4, TCS             , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000100, RVA = 0x00000000003A8000 + 0x00000000000E8000
        build_context
        Entry Id     =    4, TCS             , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000100, RVA = 0x00000000003A8000 -> RVA = 0x0000000000490000
build_contexts, step = 0x00000000000E8000
        Entry Id( 0) =    6, SSA             , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003A9000 + 0x00000000000E8000
        build_context
        Entry Id     =    6, SSA             , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003A9000 -> RVA = 0x0000000000491000
build_contexts, step = 0x00000000000E8000
        Entry Id( 0) =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x00000000003AB000 + 0x00000000000E8000
        build_context
        Entry Id     =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x00000000003AB000 -> RVA = 0x0000000000493000
build_contexts, step = 0x00000000000E8000
        Entry Id( 0) =    5, TD              , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003BB000 + 0x00000000000E8000
        build_context
        Entry Id     =    5, TD              , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003BB000 -> RVA = 0x00000000004A3000
build_contexts, step = 0x000000000015C000
        Entry Id( 0) =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000348000 + 0x000000000015C000
        build_context
        Entry Id     =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000348000 -> RVA = 0x00000000004A4000
build_contexts, step = 0x000000000015C000
        Entry Id( 0) =    7, STACK_MAX       , Page Count =    62, Attributes = 0x53, Flags = 0x0000000000000203, RVA = 0x0000000000358000 + 0x000000000015C000
        build_context
        Entry Id     =    7, STACK_MAX       , Page Count =    62, Attributes = 0x53, Flags = 0x0000000000000203, RVA = 0x0000000000358000 -> RVA = 0x00000000004B4000
build_contexts, step = 0x000000000015C000
        Entry Id( 0) =    8, STACK_MIN       , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x0000000000396000 + 0x000000000015C000
        build_context
        Entry Id     =    8, STACK_MIN       , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x0000000000396000 -> RVA = 0x00000000004F2000
build_contexts, step = 0x000000000015C000
        Entry Id( 0) =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000398000 + 0x000000000015C000
        build_context
        Entry Id     =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000398000 -> RVA = 0x00000000004F4000
build_contexts, step = 0x000000000015C000
        Entry Id( 0) =    4, TCS             , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000100, RVA = 0x00000000003A8000 + 0x000000000015C000
        build_context
        Entry Id     =    4, TCS             , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000100, RVA = 0x00000000003A8000 -> RVA = 0x0000000000504000
build_contexts, step = 0x000000000015C000
        Entry Id( 0) =    6, SSA             , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003A9000 + 0x000000000015C000
        build_context
        Entry Id     =    6, SSA             , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003A9000 -> RVA = 0x0000000000505000
build_contexts, step = 0x000000000015C000
        Entry Id( 0) =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x00000000003AB000 + 0x000000000015C000
        build_context
        Entry Id     =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x00000000003AB000 -> RVA = 0x0000000000507000
build_contexts, step = 0x000000000015C000
        Entry Id( 0) =    5, TD              , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003BB000 + 0x000000000015C000
        build_context
        Entry Id     =    5, TD              , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003BB000 -> RVA = 0x0000000000517000
build_contexts, step = 0x00000000001D0000
        Entry Id( 0) =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000348000 + 0x00000000001D0000
        build_context
        Entry Id     =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000348000 -> RVA = 0x0000000000518000
build_contexts, step = 0x00000000001D0000
        Entry Id( 0) =    7, STACK_MAX       , Page Count =    62, Attributes = 0x53, Flags = 0x0000000000000203, RVA = 0x0000000000358000 + 0x00000000001D0000
        build_context
        Entry Id     =    7, STACK_MAX       , Page Count =    62, Attributes = 0x53, Flags = 0x0000000000000203, RVA = 0x0000000000358000 -> RVA = 0x0000000000528000
build_contexts, step = 0x00000000001D0000
        Entry Id( 0) =    8, STACK_MIN       , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x0000000000396000 + 0x00000000001D0000
        build_context
        Entry Id     =    8, STACK_MIN       , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x0000000000396000 -> RVA = 0x0000000000566000
build_contexts, step = 0x00000000001D0000
        Entry Id( 0) =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000398000 + 0x00000000001D0000
        build_context
        Entry Id     =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000398000 -> RVA = 0x0000000000568000
build_contexts, step = 0x00000000001D0000
        Entry Id( 0) =    4, TCS             , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000100, RVA = 0x00000000003A8000 + 0x00000000001D0000
        build_context
        Entry Id     =    4, TCS             , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000100, RVA = 0x00000000003A8000 -> RVA = 0x0000000000578000
build_contexts, step = 0x00000000001D0000
        Entry Id( 0) =    6, SSA             , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003A9000 + 0x00000000001D0000
        build_context
        Entry Id     =    6, SSA             , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003A9000 -> RVA = 0x0000000000579000
build_contexts, step = 0x00000000001D0000
        Entry Id( 0) =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x00000000003AB000 + 0x00000000001D0000
        build_context
        Entry Id     =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x00000000003AB000 -> RVA = 0x000000000057B000
build_contexts, step = 0x00000000001D0000
        Entry Id( 0) =    5, TD              , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003BB000 + 0x00000000001D0000
        build_context
        Entry Id     =    5, TD              , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003BB000 -> RVA = 0x000000000058B000
build_contexts, step = 0x0000000000244000
        Entry Id( 0) =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000348000 + 0x0000000000244000
        build_context
        Entry Id     =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000348000 -> RVA = 0x000000000058C000
build_contexts, step = 0x0000000000244000
        Entry Id( 0) =    7, STACK_MAX       , Page Count =    62, Attributes = 0x53, Flags = 0x0000000000000203, RVA = 0x0000000000358000 + 0x0000000000244000
        build_context
        Entry Id     =    7, STACK_MAX       , Page Count =    62, Attributes = 0x53, Flags = 0x0000000000000203, RVA = 0x0000000000358000 -> RVA = 0x000000000059C000
build_contexts, step = 0x0000000000244000
        Entry Id( 0) =    8, STACK_MIN       , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x0000000000396000 + 0x0000000000244000
        build_context
        Entry Id     =    8, STACK_MIN       , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x0000000000396000 -> RVA = 0x00000000005DA000
build_contexts, step = 0x0000000000244000
        Entry Id( 0) =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000398000 + 0x0000000000244000
        build_context
        Entry Id     =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000398000 -> RVA = 0x00000000005DC000
build_contexts, step = 0x0000000000244000
        Entry Id( 0) =    4, TCS             , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000100, RVA = 0x00000000003A8000 + 0x0000000000244000
        build_context
        Entry Id     =    4, TCS             , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000100, RVA = 0x00000000003A8000 -> RVA = 0x00000000005EC000
build_contexts, step = 0x0000000000244000
        Entry Id( 0) =    6, SSA             , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003A9000 + 0x0000000000244000
        build_context
        Entry Id     =    6, SSA             , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003A9000 -> RVA = 0x00000000005ED000
build_contexts, step = 0x0000000000244000
        Entry Id( 0) =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x00000000003AB000 + 0x0000000000244000
        build_context
        Entry Id     =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x00000000003AB000 -> RVA = 0x00000000005EF000
build_contexts, step = 0x0000000000244000
        Entry Id( 0) =    5, TD              , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003BB000 + 0x0000000000244000
        build_context
        Entry Id     =    5, TD              , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003BB000 -> RVA = 0x00000000005FF000
build_contexts, step = 0x00000000002B8000
        Entry Id( 0) =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000348000 + 0x00000000002B8000
        build_context
        Entry Id     =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000348000 -> RVA = 0x0000000000600000
build_contexts, step = 0x00000000002B8000
        Entry Id( 0) =    7, STACK_MAX       , Page Count =    62, Attributes = 0x53, Flags = 0x0000000000000203, RVA = 0x0000000000358000 + 0x00000000002B8000
        build_context
        Entry Id     =    7, STACK_MAX       , Page Count =    62, Attributes = 0x53, Flags = 0x0000000000000203, RVA = 0x0000000000358000 -> RVA = 0x0000000000610000
build_contexts, step = 0x00000000002B8000
        Entry Id( 0) =    8, STACK_MIN       , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x0000000000396000 + 0x00000000002B8000
        build_context
        Entry Id     =    8, STACK_MIN       , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x0000000000396000 -> RVA = 0x000000000064E000
build_contexts, step = 0x00000000002B8000
        Entry Id( 0) =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000398000 + 0x00000000002B8000
        build_context
        Entry Id     =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000398000 -> RVA = 0x0000000000650000
build_contexts, step = 0x00000000002B8000
        Entry Id( 0) =    4, TCS             , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000100, RVA = 0x00000000003A8000 + 0x00000000002B8000
        build_context
        Entry Id     =    4, TCS             , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000100, RVA = 0x00000000003A8000 -> RVA = 0x0000000000660000
build_contexts, step = 0x00000000002B8000
        Entry Id( 0) =    6, SSA             , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003A9000 + 0x00000000002B8000
        build_context
        Entry Id     =    6, SSA             , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003A9000 -> RVA = 0x0000000000661000
build_contexts, step = 0x00000000002B8000
        Entry Id( 0) =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x00000000003AB000 + 0x00000000002B8000
        build_context
        Entry Id     =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x00000000003AB000 -> RVA = 0x0000000000663000
build_contexts, step = 0x00000000002B8000
        Entry Id( 0) =    5, TD              , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003BB000 + 0x00000000002B8000
        build_context
        Entry Id     =    5, TD              , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003BB000 -> RVA = 0x0000000000673000
build_contexts, step = 0x000000000032C000
        Entry Id( 0) =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000348000 + 0x000000000032C000
        build_context
        Entry Id     =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000348000 -> RVA = 0x0000000000674000
build_contexts, step = 0x000000000032C000
        Entry Id( 0) =    7, STACK_MAX       , Page Count =    62, Attributes = 0x53, Flags = 0x0000000000000203, RVA = 0x0000000000358000 + 0x000000000032C000
        build_context
        Entry Id     =    7, STACK_MAX       , Page Count =    62, Attributes = 0x53, Flags = 0x0000000000000203, RVA = 0x0000000000358000 -> RVA = 0x0000000000684000
build_contexts, step = 0x000000000032C000
        Entry Id( 0) =    8, STACK_MIN       , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x0000000000396000 + 0x000000000032C000
        build_context
        Entry Id     =    8, STACK_MIN       , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x0000000000396000 -> RVA = 0x00000000006C2000
build_contexts, step = 0x000000000032C000
        Entry Id( 0) =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000398000 + 0x000000000032C000
        build_context
        Entry Id     =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000398000 -> RVA = 0x00000000006C4000
build_contexts, step = 0x000000000032C000
        Entry Id( 0) =    4, TCS             , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000100, RVA = 0x00000000003A8000 + 0x000000000032C000
        build_context
        Entry Id     =    4, TCS             , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000100, RVA = 0x00000000003A8000 -> RVA = 0x00000000006D4000
build_contexts, step = 0x000000000032C000
        Entry Id( 0) =    6, SSA             , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003A9000 + 0x000000000032C000
        build_context
        Entry Id     =    6, SSA             , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003A9000 -> RVA = 0x00000000006D5000
build_contexts, step = 0x000000000032C000
        Entry Id( 0) =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x00000000003AB000 + 0x000000000032C000
        build_context
        Entry Id     =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x00000000003AB000 -> RVA = 0x00000000006D7000
build_contexts, step = 0x000000000032C000
        Entry Id( 0) =    5, TD              , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003BB000 + 0x000000000032C000
        build_context
        Entry Id     =    5, TD              , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003BB000 -> RVA = 0x00000000006E7000
build_contexts, step = 0x00000000003A0000
        Entry Id( 0) =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000348000 + 0x00000000003A0000
        build_context
        Entry Id     =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000348000 -> RVA = 0x00000000006E8000
build_contexts, step = 0x00000000003A0000
        Entry Id( 0) =    7, STACK_MAX       , Page Count =    62, Attributes = 0x53, Flags = 0x0000000000000203, RVA = 0x0000000000358000 + 0x00000000003A0000
        build_context
        Entry Id     =    7, STACK_MAX       , Page Count =    62, Attributes = 0x53, Flags = 0x0000000000000203, RVA = 0x0000000000358000 -> RVA = 0x00000000006F8000
build_contexts, step = 0x00000000003A0000
        Entry Id( 0) =    8, STACK_MIN       , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x0000000000396000 + 0x00000000003A0000
        build_context
        Entry Id     =    8, STACK_MIN       , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x0000000000396000 -> RVA = 0x0000000000736000
build_contexts, step = 0x00000000003A0000
        Entry Id( 0) =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000398000 + 0x00000000003A0000
        build_context
        Entry Id     =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000398000 -> RVA = 0x0000000000738000
build_contexts, step = 0x00000000003A0000
        Entry Id( 0) =    4, TCS             , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000100, RVA = 0x00000000003A8000 + 0x00000000003A0000
        build_context
        Entry Id     =    4, TCS             , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000100, RVA = 0x00000000003A8000 -> RVA = 0x0000000000748000
build_contexts, step = 0x00000000003A0000
        Entry Id( 0) =    6, SSA             , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003A9000 + 0x00000000003A0000
        build_context
        Entry Id     =    6, SSA             , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003A9000 -> RVA = 0x0000000000749000
build_contexts, step = 0x00000000003A0000
        Entry Id( 0) =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x00000000003AB000 + 0x00000000003A0000
        build_context
        Entry Id     =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x00000000003AB000 -> RVA = 0x000000000074B000
build_contexts, step = 0x00000000003A0000
        Entry Id( 0) =    5, TD              , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003BB000 + 0x00000000003A0000
        build_context
        Entry Id     =    5, TD              , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003BB000 -> RVA = 0x000000000075B000
build_contexts, step = 0x0000000000414000
        Entry Id( 0) =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000348000 + 0x0000000000414000
        build_context
        Entry Id     =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000348000 -> RVA = 0x000000000075C000
build_contexts, step = 0x0000000000414000
        Entry Id( 0) =    7, STACK_MAX       , Page Count =    62, Attributes = 0x53, Flags = 0x0000000000000203, RVA = 0x0000000000358000 + 0x0000000000414000
        build_context
        Entry Id     =    7, STACK_MAX       , Page Count =    62, Attributes = 0x53, Flags = 0x0000000000000203, RVA = 0x0000000000358000 -> RVA = 0x000000000076C000
build_contexts, step = 0x0000000000414000
        Entry Id( 0) =    8, STACK_MIN       , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x0000000000396000 + 0x0000000000414000
        build_context
        Entry Id     =    8, STACK_MIN       , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x0000000000396000 -> RVA = 0x00000000007AA000
build_contexts, step = 0x0000000000414000
        Entry Id( 0) =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000398000 + 0x0000000000414000
        build_context
        Entry Id     =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x0000000000398000 -> RVA = 0x00000000007AC000
build_contexts, step = 0x0000000000414000
        Entry Id( 0) =    4, TCS             , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000100, RVA = 0x00000000003A8000 + 0x0000000000414000
        build_context
        Entry Id     =    4, TCS             , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000100, RVA = 0x00000000003A8000 -> RVA = 0x00000000007BC000
build_contexts, step = 0x0000000000414000
        Entry Id( 0) =    6, SSA             , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003A9000 + 0x0000000000414000
        build_context
        Entry Id     =    6, SSA             , Page Count =     2, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003A9000 -> RVA = 0x00000000007BD000
build_contexts, step = 0x0000000000414000
        Entry Id( 0) =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x00000000003AB000 + 0x0000000000414000
        build_context
        Entry Id     =   10, GUARD           , Page Count =    16, Attributes = 0x00, Flags = 0x0000000000000000, RVA = 0x00000000003AB000 -> RVA = 0x00000000007BF000
build_contexts, step = 0x0000000000414000
        Entry Id( 0) =    5, TD              , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003BB000 + 0x0000000000414000
        build_context
        Entry Id     =    5, TD              , Page Count =     1, Attributes = 0x03, Flags = 0x0000000000000203, RVA = 0x00000000003BB000 -> RVA = 0x00000000007CF000
[reg_sig_handler sig_handler.cpp:189] signal handler is registered
[__create_enclave /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/urts_com.h:332] add tcs 0x7f416e3a8000
[__create_enclave /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/urts_com.h:332] add tcs 0x7f416e41c000
[__create_enclave /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/urts_com.h:332] add tcs 0x7f416e490000
[__create_enclave /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/urts_com.h:332] add tcs 0x7f416e504000
[__create_enclave /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/urts_com.h:332] add tcs 0x7f416e578000
[__create_enclave /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/urts_com.h:332] add tcs 0x7f416e5ec000
[__create_enclave /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/urts_com.h:332] add tcs 0x7f416e660000
[__create_enclave /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/urts_com.h:332] add tcs 0x7f416e6d4000
[__create_enclave /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/urts_com.h:332] add tcs 0x7f416e748000
[__create_enclave /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/urts_com.h:332] add tcs 0x7f416e7bc000
[__create_enclave /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/urts_com.h:342] Debug enclave. Checking if VTune is profiling or SGX_DBG_OPTIN is set
[__create_enclave /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/urts_com.h:388] VTune is not profiling and SGX_DBG_OPTIN is not set. TCS Debug OPTIN bit not set and API to do module mapping not invoked
Checksum(0x0x7fff3d3a1cc0, 100) = 0xfffd4143
Info: executing thread synchronization, please wait...  
Info: SampleEnclave successfully returned.
/!\ Could not delete /sys/kernel/debug/tracing/instances/sgxperf-6500:Device or resource busy
=== Writing to out-6500.db
(i) Starting serialization
(i) Mapping event IDs to names
(i) Serializing events (0 + 11 threads)
...........
(i) Mapping thread start addresses to symbols
(i) Mapping OCall IDs to symbols
(i) Mapping ECall IDs to symbols (1 enclaves)
(i) Enclave 2(enclave.signed.so)
(i) Close all binary files
(i) Creating DB indices
(i) Serialization done
(i) Writing out file
=== Shutting down sgx-perf

Then I revised the Enclave.config.xml

<EnclaveConfiguration>
  <ProdID>0</ProdID>
  <ISVSVN>0</ISVSVN>
  <StackMaxSize>0x40000</StackMaxSize>
  <HeapMaxSize>0x400000000</HeapMaxSize>
  <TCSNum>10</TCSNum>
  <TCSPolicy>1</TCSPolicy>
  <!-- Recommend changing 'DisableDebug' to 1 to make the enclave undebuggable for enclave release -->
  <DisableDebug>0</DisableDebug>
  <MiscSelect>0</MiscSelect>
  <MiscMask>0xFFFFFFFF</MiscMask>
</EnclaveConfiguration>

The error Caught signal 6 !!! SIGABRT received, exiting occurred. And the entire result was as follows:

[CEnclavePool /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/enclave.cpp:627] enter CEnclavePool constructor
=== Initializing sgx-perf
(i) Enabled EPC page tracing, this needs root permissions
=== Done initializing
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = 10, ptr = 0
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = 1a, ptr = 225940
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = 1c, ptr = 40
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = 6ffffef5, ptr = 278
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = 5, ptr = 370
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = 6, ptr = 2b0
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = a, ptr = 78
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = b, ptr = 18
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = 15, ptr = 0
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = 3, ptr = 225fb8
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = 7, ptr = 430
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = 8, ptr = af8
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = 9, ptr = 18
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = 6ffffffc, ptr = 3f8
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = 6ffffffd, ptr = 2
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = 1e, ptr = a
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = 6ffffffb, ptr = 8000001
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = 6ffffff0, ptr = 3e8
[parse_dyn /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:176] dynamic tag = 6ffffff9, ptr = 73
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [0] : sh_addr = 0, sh_size = 0, sh_offset = 0, sh_name = 0
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [1] .interp: sh_addr = 238, sh_size = 1c, sh_offset = 238, sh_name = 1b
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [2] .note.gnu.build-id: sh_addr = 254, sh_size = 24, sh_offset = 254, sh_name = 23
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [3] .gnu.hash: sh_addr = 278, sh_size = 38, sh_offset = 278, sh_name = 36
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [4] .dynsym: sh_addr = 2b0, sh_size = c0, sh_offset = 2b0, sh_name = 40
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [0] : sh_addr = 0, sh_size = 0, sh_offset = 0, sh_name = 0
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [1] .interp: sh_addr = 238, sh_size = 1c, sh_offset = 238, sh_name = 1b
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [2] .note.gnu.build-id: sh_addr = 254, sh_size = 24, sh_offset = 254, sh_name = 23
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [3] .gnu.hash: sh_addr = 278, sh_size = 38, sh_offset = 278, sh_name = 36
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [4] .dynsym: sh_addr = 2b0, sh_size = c0, sh_offset = 2b0, sh_name = 40
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [5] .dynstr: sh_addr = 370, sh_size = 78, sh_offset = 370, sh_name = 48
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [0] : sh_addr = 0, sh_size = 0, sh_offset = 0, sh_name = 0
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [1] .interp: sh_addr = 238, sh_size = 1c, sh_offset = 238, sh_name = 1b
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [2] .note.gnu.build-id: sh_addr = 254, sh_size = 24, sh_offset = 254, sh_name = 23
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [3] .gnu.hash: sh_addr = 278, sh_size = 38, sh_offset = 278, sh_name = 36
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [4] .dynsym: sh_addr = 2b0, sh_size = c0, sh_offset = 2b0, sh_name = 40
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [5] .dynstr: sh_addr = 370, sh_size = 78, sh_offset = 370, sh_name = 48
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [6] .gnu.version: sh_addr = 3e8, sh_size = 10, sh_offset = 3e8, sh_name = 50
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [7] .gnu.version_d: sh_addr = 3f8, sh_size = 38, sh_offset = 3f8, sh_name = 5d
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [8] .rela.dyn: sh_addr = 430, sh_size = af8, sh_offset = 430, sh_name = 6c
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [0] : sh_addr = 0, sh_size = 0, sh_offset = 0, sh_name = 0
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [0] : sh_addr = 0, sh_size = 0, sh_offset = 0, sh_name = 0
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [1] .interp: sh_addr = 238, sh_size = 1c, sh_offset = 238, sh_name = 1b
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [2] .note.gnu.build-id: sh_addr = 254, sh_size = 24, sh_offset = 254, sh_name = 23
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [3] .gnu.hash: sh_addr = 278, sh_size = 38, sh_offset = 278, sh_name = 36
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [4] .dynsym: sh_addr = 2b0, sh_size = c0, sh_offset = 2b0, sh_name = 40
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [5] .dynstr: sh_addr = 370, sh_size = 78, sh_offset = 370, sh_name = 48
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [6] .gnu.version: sh_addr = 3e8, sh_size = 10, sh_offset = 3e8, sh_name = 50
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [7] .gnu.version_d: sh_addr = 3f8, sh_size = 38, sh_offset = 3f8, sh_name = 5d
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [8] .rela.dyn: sh_addr = 430, sh_size = af8, sh_offset = 430, sh_name = 6c
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [9] .plt: sh_addr = f30, sh_size = 10, sh_offset = f30, sh_name = 76
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [10] .plt.got: sh_addr = f40, sh_size = 10, sh_offset = f40, sh_name = 7b
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [11] .text: sh_addr = f50, sh_size = 1d1a4, sh_offset = f50, sh_name = 84
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [12] .nipx: sh_addr = 1e100, sh_size = aaa, sh_offset = 1e100, sh_name = 8a
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [13] .rodata: sh_addr = 1ebc0, sh_size = 1720, sh_offset = 1ebc0, sh_name = 90
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [14] .niprod: sh_addr = 20300, sh_size = 8c0, sh_offset = 20300, sh_name = 98
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [15] .eh_frame_hdr: sh_addr = 20bc0, sh_size = c84, sh_offset = 20bc0, sh_name = a0
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [16] .eh_frame: sh_addr = 21848, sh_size = 3c9c, sh_offset = 21848, sh_name = ae
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [17] .gcc_except_table: sh_addr = 254e4, sh_size = 149, sh_offset = 254e4, sh_name = b8
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [18] .fini_array: sh_addr = 225940, sh_size = 40, sh_offset = 25940, sh_name = ca
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [19] .data.rel.ro: sh_addr = 225980, sh_size = 4b8, sh_offset = 25980, sh_name = d6
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [20] .dynamic: sh_addr = 225e38, sh_size = 180, sh_offset = 25e38, sh_name = e3
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [21] .got: sh_addr = 225fb8, sh_size = 38, sh_offset = 25fb8, sh_name = 7f
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [22] .data: sh_addr = 226000, sh_size = 29f, sh_offset = 26000, sh_name = ec
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [23] .nipd: sh_addr = 2262a0, sh_size = 8, sh_offset = 262a0, sh_name = f2
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [24] .bss: sh_addr = 2262c0, sh_size = f780, sh_offset = 262a8, sh_name = f8
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [25] .comment: sh_addr = 0, sh_size = 52, sh_offset = 262a8, sh_name = fd
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [26] .note.sgxmeta: sh_addr = 0, sh_size = 501c, sh_offset = 262fc, sh_name = 106
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [27] .debug_aranges: sh_addr = 0, sh_size = 760, sh_offset = 2b318, sh_name = 114
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [28] .debug_info: sh_addr = 0, sh_size = 12d3c, sh_offset = 2ba78, sh_name = 123
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [29] .debug_abbrev: sh_addr = 0, sh_size = 1536, sh_offset = 3e7b4, sh_name = 12f
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [30] .debug_line: sh_addr = 0, sh_size = 3411, sh_offset = 3fcea, sh_name = 13d
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [31] .debug_str: sh_addr = 0, sh_size = 1599d, sh_offset = 430fb, sh_name = 149
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [32] .debug_ranges: sh_addr = 0, sh_size = 760, sh_offset = 58a98, sh_name = 154
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [33] .symtab: sh_addr = 0, sh_size = 4668, sh_offset = 591f8, sh_name = 1
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [34] .strtab: sh_addr = 0, sh_size = 3ee9, sh_offset = 5d860, sh_name = 9
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [35] .shstrtab: sh_addr = 0, sh_size = 162, sh_offset = 61749, sh_name = 11
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [0] : sh_addr = 0, sh_size = 0, sh_offset = 0, sh_name = 0
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [1] .interp: sh_addr = 238, sh_size = 1c, sh_offset = 238, sh_name = 1b
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [2] .note.gnu.build-id: sh_addr = 254, sh_size = 24, sh_offset = 254, sh_name = 23
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [3] .gnu.hash: sh_addr = 278, sh_size = 38, sh_offset = 278, sh_name = 36
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [4] .dynsym: sh_addr = 2b0, sh_size = c0, sh_offset = 2b0, sh_name = 40
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [5] .dynstr: sh_addr = 370, sh_size = 78, sh_offset = 370, sh_name = 48
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [6] .gnu.version: sh_addr = 3e8, sh_size = 10, sh_offset = 3e8, sh_name = 50
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [7] .gnu.version_d: sh_addr = 3f8, sh_size = 38, sh_offset = 3f8, sh_name = 5d
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [8] .rela.dyn: sh_addr = 430, sh_size = af8, sh_offset = 430, sh_name = 6c
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [9] .plt: sh_addr = f30, sh_size = 10, sh_offset = f30, sh_name = 76
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [10] .plt.got: sh_addr = f40, sh_size = 10, sh_offset = f40, sh_name = 7b
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [11] .text: sh_addr = f50, sh_size = 1d1a4, sh_offset = f50, sh_name = 84
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [12] .nipx: sh_addr = 1e100, sh_size = aaa, sh_offset = 1e100, sh_name = 8a
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [13] .rodata: sh_addr = 1ebc0, sh_size = 1720, sh_offset = 1ebc0, sh_name = 90
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [14] .niprod: sh_addr = 20300, sh_size = 8c0, sh_offset = 20300, sh_name = 98
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [15] .eh_frame_hdr: sh_addr = 20bc0, sh_size = c84, sh_offset = 20bc0, sh_name = a0
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [16] .eh_frame: sh_addr = 21848, sh_size = 3c9c, sh_offset = 21848, sh_name = ae
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [17] .gcc_except_table: sh_addr = 254e4, sh_size = 149, sh_offset = 254e4, sh_name = b8
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [18] .fini_array: sh_addr = 225940, sh_size = 40, sh_offset = 25940, sh_name = ca
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [19] .data.rel.ro: sh_addr = 225980, sh_size = 4b8, sh_offset = 25980, sh_name = d6
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [20] .dynamic: sh_addr = 225e38, sh_size = 180, sh_offset = 25e38, sh_name = e3
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [21] .got: sh_addr = 225fb8, sh_size = 38, sh_offset = 25fb8, sh_name = 7f
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [22] .data: sh_addr = 226000, sh_size = 29f, sh_offset = 26000, sh_name = ec
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [23] .nipd: sh_addr = 2262a0, sh_size = 8, sh_offset = 262a0, sh_name = f2
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [24] .bss: sh_addr = 2262c0, sh_size = f780, sh_offset = 262a8, sh_name = f8
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [25] .comment: sh_addr = 0, sh_size = 52, sh_offset = 262a8, sh_name = fd
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [26] .note.sgxmeta: sh_addr = 0, sh_size = 501c, sh_offset = 262fc, sh_name = 106
LOAD Section: 1
Flags = 0x0000000000000005
VAddr = 0x0000000000000000
Size  = 0x000000000002562D

LOAD Section: 2
Flags = 0x0000000000000006
VAddr = 0x0000000000225940
Size  = 0x0000000000010100

[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [0] : sh_addr = 0, sh_size = 0, sh_offset = 0, sh_name = 0
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [1] .interp: sh_addr = 238, sh_size = 1c, sh_offset = 238, sh_name = 1b
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [2] .note.gnu.build-id: sh_addr = 254, sh_size = 24, sh_offset = 254, sh_name = 23
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [3] .gnu.hash: sh_addr = 278, sh_size = 38, sh_offset = 278, sh_name = 36
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [4] .dynsym: sh_addr = 2b0, sh_size = c0, sh_offset = 2b0, sh_name = 40
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [5] .dynstr: sh_addr = 370, sh_size = 78, sh_offset = 370, sh_name = 48
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [6] .gnu.version: sh_addr = 3e8, sh_size = 10, sh_offset = 3e8, sh_name = 50
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [7] .gnu.version_d: sh_addr = 3f8, sh_size = 38, sh_offset = 3f8, sh_name = 5d
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [8] .rela.dyn: sh_addr = 430, sh_size = af8, sh_offset = 430, sh_name = 6c
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [9] .plt: sh_addr = f30, sh_size = 10, sh_offset = f30, sh_name = 76
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [10] .plt.got: sh_addr = f40, sh_size = 10, sh_offset = f40, sh_name = 7b
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [11] .text: sh_addr = f50, sh_size = 1d1a4, sh_offset = f50, sh_name = 84
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [12] .nipx: sh_addr = 1e100, sh_size = aaa, sh_offset = 1e100, sh_name = 8a
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [13] .rodata: sh_addr = 1ebc0, sh_size = 1720, sh_offset = 1ebc0, sh_name = 90
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [14] .niprod: sh_addr = 20300, sh_size = 8c0, sh_offset = 20300, sh_name = 98
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [15] .eh_frame_hdr: sh_addr = 20bc0, sh_size = c84, sh_offset = 20bc0, sh_name = a0
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [16] .eh_frame: sh_addr = 21848, sh_size = 3c9c, sh_offset = 21848, sh_name = ae
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [17] .gcc_except_table: sh_addr = 254e4, sh_size = 149, sh_offset = 254e4, sh_name = b8
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [18] .fini_array: sh_addr = 225940, sh_size = 40, sh_offset = 25940, sh_name = ca
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [19] .data.rel.ro: sh_addr = 225980, sh_size = 4b8, sh_offset = 25980, sh_name = d6
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [20] .dynamic: sh_addr = 225e38, sh_size = 180, sh_offset = 25e38, sh_name = e3
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [21] .got: sh_addr = 225fb8, sh_size = 38, sh_offset = 25fb8, sh_name = 7f
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [22] .data: sh_addr = 226000, sh_size = 29f, sh_offset = 26000, sh_name = ec
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [23] .nipd: sh_addr = 2262a0, sh_size = 8, sh_offset = 262a0, sh_name = f2
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [24] .bss: sh_addr = 2262c0, sh_size = f780, sh_offset = 262a8, sh_name = f8
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [25] .comment: sh_addr = 0, sh_size = 52, sh_offset = 262a8, sh_name = fd
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [26] .note.sgxmeta: sh_addr = 0, sh_size = 501c, sh_offset = 262fc, sh_name = 106
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [27] .debug_aranges: sh_addr = 0, sh_size = 760, sh_offset = 2b318, sh_name = 114
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [28] .debug_info: sh_addr = 0, sh_size = 12d3c, sh_offset = 2ba78, sh_name = 123
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [29] .debug_abbrev: sh_addr = 0, sh_size = 1536, sh_offset = 3e7b4, sh_name = 12f
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [30] .debug_line: sh_addr = 0, sh_size = 3411, sh_offset = 3fcea, sh_name = 13d
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [31] .debug_str: sh_addr = 0, sh_size = 1599d, sh_offset = 430fb, sh_name = 149
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [32] .debug_ranges: sh_addr = 0, sh_size = 760, sh_offset = 58a98, sh_name = 154
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [33] .symtab: sh_addr = 0, sh_size = 4668, sh_offset = 591f8, sh_name = 1
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [34] .strtab: sh_addr = 0, sh_size = 3ee9, sh_offset = 5d860, sh_name = 9
[get_section /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/parser/elfparser.cpp:83] section [35] .shstrtab: sh_addr = 0, sh_size = 162, sh_offset = 61749, sh_name = 11
[enclave_create sgx_enclave_common.cpp:356] 
 secs->attibutes.flags = 6, secs->attributes.xfrm = 7 
[build_secs /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/loader.cpp:525] Enclave start addr. = 0x7fb800000000, Size = 0x800000000, 33554432 KB
[build_image /home/lww/project/01_SGX/linux-sgx-sgx_2.9.1/psw/urts/loader.cpp:568] 
        Metadata Version = 0x0000000100000004
build_contexts, step = 0x0000000000000000
        Entry Id( 0) =    1, HEAP_MIN        , Page Count =     1, Attributes = 0x01, Flags = 0x0000000000000203, RVA = 0x0000000000236000 + 0x0000000000000000
        build_context
        Entry Id     =    1, HEAP_MIN        , Page Count =     1, Attributes = 0x01, Flags = 0x0000000000000203, RVA = 0x0000000000236000 -> RVA = 0x0000000000236000
build_contexts, step = 0x0000000000000000
        Entry Id( 0) =    2, HEAP_INIT       , Page Count = 4194303, Attributes = 0x11, Flags = 0x0000000000000203, RVA = 0x0000000000237000 + 0x0000000000000000
        build_context
        Entry Id     =    2, HEAP_INIT       , Page Count = 4194303, Attributes = 0x11, Flags = 0x0000000000000203, RVA = 0x0000000000237000 -> RVA = 0x0000000000237000
*** buffer overflow detected ***: ./app terminated
Caught signal 6
!!! SIGABRT received, exiting
/home/lixiang/sgx/sgx-perf/build/lib/liblogger.so(_Z14sigint_handleriP9siginfo_tPv+0x38c)[0x7fc3df6600bc]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x128a0)[0x7fc3df3928a0]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7fc3dea2cf47]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7fc3dea2e8b1]
/lib/x86_64-linux-gnu/libc.so.6(+0x89907)[0x7fc3dea77907]
/lib/x86_64-linux-gnu/libc.so.6(+0x134eaf)[0x7fc3deb22eaf]
/lib/x86_64-linux-gnu/libc.so.6(+0x134ed1)[0x7fc3deb22ed1]
/lib/x86_64-linux-gnu/libc.so.6(+0x132bc0)[0x7fc3deb20bc0]
/lib/x86_64-linux-gnu/libc.so.6(+0x134dba)[0x7fc3deb22dba]
/home/lixiang/sgx/sgx-perf/build/lib/liblogger.so(_ZN7sgxperf4Perf14sampler_threadEv+0x118)[0x7fc3df664e88]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0xbd6df)[0x7fc3df0b46df]
/home/lixiang/sgx/sgx-perf/build/lib/liblogger.so(_Z24intercepter_thread_startPv+0xb9)[0x7fc3df6641f9]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76db)[0x7fc3df3876db]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x3f)[0x7fc3deb0fa3f]
=== Writing to out-8400.db
(i) Starting serialization
(i) Mapping event IDs to names
(i) Serializing events (0 + 2 threads)
..
(i) Mapping thread start addresses to symbols
(i) Mapping OCall IDs to symbols
(i) Mapping ECall IDs to symbols (0 enclaves)
(i) Close all binary files
(i) Creating DB indices
(i) Serialization done
(i) Writing out file
=== Shutting down sgx-perf
pure virtual method called
terminate called without an active exception

I don't know why this error occurred.

envy commented 4 years ago

Ok, it might to be connected to the page tracing. Does it also happen without the page tracing enabled? That might be a bit harder to debug...

@iihihiuh Did you also got the error when using page tracing?

iihihiuh commented 4 years ago

Ok, it might to be connected to the page tracing. Does it also happen without the page tracing enabled? That might be a bit harder to debug...

@iihihiuh Did you also got the error when using page tracing?

Yes, I got the error when using the page tracing. Once I enabled page tracing and max heap size is bigger than 98MB. I got the buffer overflow error.