Openenclave: ctest | many tests fail | ubuntu 18.04 LTS | SGX1 mode

Created on 9 Feb 2020  Â·  7Comments  Â·  Source: openenclave/openenclave

Hello,

I have installed the OE SDK using this document (and also with @jhand2 help):
https://github.com/openenclave/openenclave/blob/master/docs/GettingStartedDocs/Contributors/SGX1GettingStarted.md

After this

cmake -DHAS_QUOTE_PROVIDER=OFF ..
make

When running

ctest

Many unit tests fail. This is a fraction of ctest -V

build git:(master) ✗ ctest -V
UpdateCTestConfiguration  from :/home/username/repos/openenclave/build/DartConfiguration.tcl
UpdateCTestConfiguration  from :/home/username/repos/openenclave/build/DartConfiguration.tcl
Test project /home/username/repos/openenclave/build
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 1
        Start   1: tests/mem

1: Test command: /home/username/repos/openenclave/build/tests/mem/mem
1: Test timeout computed to be: 10000000
1: === passed TestMem()
1: === passed TestMem()
1: === passed TestMem()
1: === passed all tests (mem)
  1/196 Test   #1: tests/mem .............................................................................................................................   Passed    0.00 sec
test 2
        Start   2: tests/safecrt

2: Test command: /home/username/repos/openenclave/build/tests/safecrt/host/safecrt_host "/home/username/repos/openenclave/build/tests/safecrt/enc/safecrt_enc"
2: Test timeout computed to be: 10000000
2: Test failed: /home/username/repos/openenclave/tests/safecrt/host/host.cpp(26): main result == OE_OK
  2/196 Test   #2: tests/safecrt .........................................................................................................................Child aborted***Exception:   0.29 sec
test 3
        Start   3: tests/safemath

3: Test command: /home/username/repos/openenclave/build/tests/safemath/safemath
3: Test timeout computed to be: 10000000
3: === passed all tests (safemath)
  3/196 Test   #3: tests/safemath ........................................................................................................................   Passed    0.02 sec
test 4
        Start   4: tests/str

4: Test command: /home/username/repos/openenclave/build/tests/str/str
4: Test timeout computed to be: 10000000
4: === passed standard tests
4: === passed str_substr()
4: === passed str_substr()
4: === passed str_substr()
4: === passed str_replace()
4: === passed str_replace()
4: === passed str_replace()
4: === passed str_fgets()
4: === passed TestStr()
4: === passed standard tests
4: === passed str_substr()
4: === passed str_substr()
4: === passed str_substr()
4: === passed str_replace()
4: === passed str_replace()
4: === passed str_replace()
4: === passed str_fgets()
4: === passed TestStr()
4: === passed all tests (str)
  4/196 Test   #4: tests/str .............................................................................................................................   Passed    0.00 sec
test 5
        Start   5: tests/logging

5: Test command: /home/username/repos/openenclave/build/tests/logging/logging
5: Test timeout computed to be: 10000000
5: === passed TestEscapedCharachters()
  5/196 Test   #5: tests/logging .........................................................................................................................   Passed    0.00 sec
test 6
        Start   6: oegdb-test

6: Test command: /home/username/repos/openenclave/build/output/bin/oegdb "--batch" "--command=/home/username/repos/openenclave/tests/debugger/oegdb/commands.gdb" "--return-child-result" "-arg" "host/oe_gdb_test_host" "enc/oe_gdb_test_enc"
6: Test timeout computed to be: 10000000
6: No symbol table is loaded.  Use the "file" command.
6: No symbol table is loaded.  Use the "file" command.
6: No symbol table is loaded.  Use the "file" command.
6: Setting environment variable "LD_PRELOAD" to null value.
6: oegdb: Found global enclave list.
6: oegdb: 0 enclaves in global enclave list.
6: Breakpoint 1 at 0x4087d4: file /home/username/repos/openenclave/tests/debugger/oegdb/host/host.c, line 19.
6: No source file named enc.c.
6: Breakpoint 2 (enc.c:17) pending.
6: No source file named enc.c.
6: Breakpoint 3 (enc.c:26) pending.
6: No source file named enc.c.
6: Breakpoint 4 (enc.c:30) pending.
6: Breakpoint 5 at 0x408e89: file /home/username/repos/openenclave/tests/debugger/oegdb/host/contract.c, line 54.
6: Function "assert_debugger_binary_contract_enclave_side" not defined.
6: Breakpoint 6 (assert_debugger_binary_contract_enclave_side) pending.
6: [Thread debugging using libthread_db enabled]
6: Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
6: 
6: Breakpoint 1, main (argc=2, argv=0x7fffffffdea8) at /home/username/repos/openenclave/tests/debugger/oegdb/host/host.c:19
6: 19       oe_enclave_t* enclave1 = NULL;
6: ** Hit breakpoint in main** enclave = enc/oe_gdb_test_enc
6: : /home/username/repos/openenclave/tests/debugger/oegdb/host/host.c(42): error: oe_create_enclave(): result=21
6: 2020-02-07T06:49:58.825885Z [(H)ERROR] tid(0x7ffff7fddb80) | enclave_initialize failed (err=0x1001) (oe_result_t=OE_PLATFORM_ERROR) [/home/username/repos/openenclave/host/sgx/sgxload.c:oe_sgx_initialize_enclave:733]
6: 2020-02-07T06:49:58.825894Z [(H)ERROR] tid(0x7ffff7fddb80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_sgx_build_enclave:660]
6: 2020-02-07T06:49:58.826048Z [(H)ERROR] tid(0x7ffff7fddb80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_create_enclave:763]
6: [Inferior 1 (process 14507) exited with code 01]
6: ** Test aborted
  6/196 Test   #6: oegdb-test ............................................................................................................................***Failed    0.61 sec
test 7
        Start   7: oegdb-test-simulation-mode

7: Test command: /home/username/repos/openenclave/build/output/bin/oegdb "--batch" "--command=/home/username/repos/openenclave/tests/debugger/oegdb/commands.gdb" "--return-child-result" "-arg" "host/oe_gdb_test_host" "enc/oe_gdb_test_enc" "--simulation-mode"
7: Test timeout computed to be: 10000000
7: No symbol table is loaded.  Use the "file" command.
7: No symbol table is loaded.  Use the "file" command.
7: No symbol table is loaded.  Use the "file" command.
7: Setting environment variable "LD_PRELOAD" to null value.
7: oegdb: Found global enclave list.
7: oegdb: 0 enclaves in global enclave list.
7: Breakpoint 1 at 0x4087d4: file /home/username/repos/openenclave/tests/debugger/oegdb/host/host.c, line 19.
7: No source file named enc.c.
7: Breakpoint 2 (enc.c:17) pending.
7: No source file named enc.c.
7: Breakpoint 3 (enc.c:26) pending.
7: No source file named enc.c.
7: Breakpoint 4 (enc.c:30) pending.
7: Breakpoint 5 at 0x408e89: file /home/username/repos/openenclave/tests/debugger/oegdb/host/contract.c, line 54.
7: Function "assert_debugger_binary_contract_enclave_side" not defined.
7: Breakpoint 6 (assert_debugger_binary_contract_enclave_side) pending.
7: [Thread debugging using libthread_db enabled]
7: Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
7: 
7: Breakpoint 1, main (argc=3, argv=0x7fffffffde88) at /home/username/repos/openenclave/tests/debugger/oegdb/host/host.c:19
7: 19       oe_enclave_t* enclave1 = NULL;
7: ** Hit breakpoint in main** enclave = enc/oe_gdb_test_enc
7: oegdb: Enclave /home/username/repos/openenclave/build/tests/debugger/oegdb/enc/oe_gdb_test_enc loaded in simulation mode
7: oegdb: Symbols loaded for enclave 
7: 
7: oegdb: All tcs set to debug for enclave 
7: 
7: 
7: Breakpoint 2, enc_add (a=5, b=6) at /home/username/repos/openenclave/tests/debugger/oegdb/enc/enc.c:21
7: 21       volatile int c = a + b;
7: ** Hit breakpoint in enclave
7: ** a = 5, b = 6
7: hello: c = 11
7: 
7: Breakpoint 3, enc_add (a=5, b=6) at /home/username/repos/openenclave/tests/debugger/oegdb/enc/enc.c:26
7: 26       OE_TEST(c == 100);
7: ** c = 11
7: Setting c
7: hello: c = 100
7: 
7: Breakpoint 4, enc_add (a=5, b=6) at /home/username/repos/openenclave/tests/debugger/oegdb/enc/enc.c:30
7: 30       OE_TEST(c == 10000);
7: ** c = 100
7: square called with 100
7: x lies within enclave
7: $1 = 10000
7: hello: c = 10000
7: 
7: Breakpoint 5, assert_debugger_binary_contract_host_side () at /home/username/repos/openenclave/tests/debugger/oegdb/host/contract.c:54
7: 54       OE_TEST(OFFSETOF_MAGIC == OE_OFFSETOF(oe_debug_enclave_t, magic));
7: Serializing debugger contract on host side....
7: Debugger contract serialized on host side.
7: 
7: Breakpoint 6, assert_debugger_binary_contract_enclave_side () at /home/username/repos/openenclave/tests/debugger/oegdb/enc/contract.c:27
7: 27       OE_TEST(TCS_GSBASE_OFFSET == OE_OFFSETOF(sgx_tcs_t, gsbase));
7: Serializing debugger contract on enclave side....
7: Debugger contract serialized on enclave side.
7: Debugger contract validated on enclave side.
7: Debugger contract validated on host side.
7: === passed all tests (oegdb-test-simulation-mode)
7: [Inferior 1 (process 14521) exited normally]
  7/196 Test   #7: oegdb-test-simulation-mode ............................................................................................................   Passed    0.67 sec
test 8
        Start   8: tests/host_verify

8: Test command: /home/username/repos/openenclave/build/tests/host_verify/host/test_host_verify
8: Test timeout computed to be: 10000000
8: 2020-02-07T06:49:59.508355Z [(H)ERROR] tid(0x7f40688b6740) | sgxquoteprovider: libdcap_quoteprov.so libdcap_quoteprov.so: cannot open shared object file: No such file or directory
8:  [/home/username/repos/openenclave/host/sgx/linux/sgxquoteproviderloader.c:oe_load_quote_provider:77]
8: 2020-02-07T06:49:59.508364Z [(H)ERROR] tid(0x7f40688b6740) | oe_initialize_quote_provider failed (oe_result_t=(null)) [OE_QUOTE_PROVIDER_LOAD_ERROR:/home/username/repos/openenclave/host/sgx/sgxquoteprovider.c:4600032]
8: 2020-02-07T06:49:59.508366Z [(H)ERROR] tid(0x7f40688b6740) | :OE_QUOTE_PROVIDER_LOAD_ERROR [/home/username/repos/openenclave/host/sgx/hostverify_report.c:oe_verify_remote_report:32]
8: 2020-02-07T06:49:59.508367Z [(H)ERROR] tid(0x7f40688b6740) | :OE_QUOTE_PROVIDER_LOAD_ERROR [/home/username/repos/openenclave/common/sgx/tlsverifier.c:oe_verify_attestation_certificate:134]
8: 2020-02-07T06:49:59.508508Z [(H)ERROR] tid(0x7f40688b6740) | oe_initialize_quote_provider failed (oe_result_t=(null)) [OE_QUOTE_PROVIDER_LOAD_ERROR:/home/username/repos/openenclave/host/sgx/sgxquoteprovider.c:4600032]
8: 2020-02-07T06:49:59.508510Z [(H)ERROR] tid(0x7f40688b6740) | :OE_QUOTE_PROVIDER_LOAD_ERROR [/home/username/repos/openenclave/host/sgx/hostverify_report.c:oe_verify_remote_report:32]
8: 2020-02-07T06:49:59.508511Z [(H)ERROR] tid(0x7f40688b6740) | :OE_QUOTE_PROVIDER_LOAD_ERROR [/home/username/repos/openenclave/common/sgx/tlsverifier.c:oe_verify_attestation_certificate:134]
8: 2020-02-07T06:49:59.508530Z [(H)ERROR] tid(0x7f40688b6740) | oe_initialize_quote_provider failed (oe_result_t=(null)) [OE_QUOTE_PROVIDER_LOAD_ERROR:/home/username/repos/openenclave/host/sgx/sgxquoteprovider.c:4600032]
8: 2020-02-07T06:49:59.508531Z [(H)ERROR] tid(0x7f40688b6740) | :OE_QUOTE_PROVIDER_LOAD_ERROR [/home/username/repos/openenclave/host/sgx/hostverify_report.c:oe_verify_remote_report:32]
  8/196 Test   #8: tests/host_verify .....................................................................................................................   Passed    0.00 sec
test 9
        Start   9: tests/switchless

9: Test command: /home/username/repos/openenclave/build/tests/switchless/host/switchless_host "/home/username/repos/openenclave/build/tests/switchless/enc/switchless_enc"
9: Test timeout computed to be: 10000000
9: : /home/username/repos/openenclave/tests/switchless/host/host.c(152): error: oe_create_enclave(): result=21
9: 2020-02-07T06:49:59.648819Z [(H)ERROR] tid(0x7f4b5a8aab80) | enclave_initialize failed (err=0x1001) (oe_result_t=OE_PLATFORM_ERROR) [/home/username/repos/openenclave/host/sgx/sgxload.c:oe_sgx_initialize_enclave:733]
9: 2020-02-07T06:49:59.648828Z [(H)ERROR] tid(0x7f4b5a8aab80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_sgx_build_enclave:660]
9: 2020-02-07T06:49:59.649014Z [(H)ERROR] tid(0x7f4b5a8aab80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_create_enclave:763]
  9/196 Test   #9: tests/switchless ......................................................................................................................***Failed    0.14 sec
test 10
        Start  10: tests/switchless_threads

10: Test command: /home/username/repos/openenclave/build/tests/switchless_threads/host/switchless_threads_host "/home/username/repos/openenclave/build/tests/switchless_threads/enc/switchless_threads_enc"
10: Test timeout computed to be: 10000000
10: : /home/username/repos/openenclave/tests/switchless_threads/host/host.c(94): error: oe_create_enclave(): result=21
10: 2020-02-07T06:49:59.789896Z [(H)ERROR] tid(0x7f6317278b80) | enclave_initialize failed (err=0x1001) (oe_result_t=OE_PLATFORM_ERROR) [/home/username/repos/openenclave/host/sgx/sgxload.c:oe_sgx_initialize_enclave:733]
10: 2020-02-07T06:49:59.789905Z [(H)ERROR] tid(0x7f6317278b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_sgx_build_enclave:660]
10: 2020-02-07T06:49:59.790083Z [(H)ERROR] tid(0x7f6317278b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_create_enclave:763]
 10/196 Test  #10: tests/switchless_threads ..............................................................................................................***Failed    0.14 sec
test 11
        Start  11: tests/abortStatus

11: Test command: /home/username/repos/openenclave/build/tests/abortStatus/host/abortStatus_host "/home/username/repos/openenclave/build/tests/abortStatus/enc/abortStatus_enc"
11: Test timeout computed to be: 10000000
11: : /home/username/repos/openenclave/tests/abortStatus/host/host.cpp(118): error: oe_create_abortStatus_enclave(): result=21
11: === This program is used to test enclave abort status.
11: 2020-02-07T06:49:59.900077Z [(H)ERROR] tid(0x7fb634bf2b80) | enclave_initialize failed (err=0x1001) (oe_result_t=OE_PLATFORM_ERROR) [/home/username/repos/openenclave/host/sgx/sgxload.c:oe_sgx_initialize_enclave:733]
11: 2020-02-07T06:49:59.900085Z [(H)ERROR] tid(0x7fb634bf2b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_sgx_build_enclave:660]
11: 2020-02-07T06:49:59.900259Z [(H)ERROR] tid(0x7fb634bf2b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_create_enclave:763]
 11/196 Test  #11: tests/abortStatus .....................................................................................................................***Failed    0.11 sec
test 12
        Start  12: tests/attestation_plugin

12: Test command: /home/username/repos/openenclave/build/tests/attestation_plugin/host/plugin_host "/home/username/repos/openenclave/build/tests/attestation_plugin/enc/plugin_enc"
12: Test timeout computed to be: 10000000
12: === tests skipped when built with HAS_QUOTE_PROVIDER=OFF
 12/196 Test  #12: tests/attestation_plugin ..............................................................................................................***Skipped   0.00 sec
test 13
        Start  13: tests/cppException

13: Test command: /home/username/repos/openenclave/build/tests/cppException/host/cppException_host "/home/username/repos/openenclave/build/tests/cppException/enc/cppException_enc"
13: Test timeout computed to be: 10000000
13: : /home/username/repos/openenclave/tests/cppException/host/host.cpp(53): error: oe_create_enclave(): result=21
13: === This program is used to test basic cpp exception functionalities.
13: 2020-02-07T06:50:00.065342Z [(H)ERROR] tid(0x7f6047147b80) | enclave_initialize failed (err=0x1001) (oe_result_t=OE_PLATFORM_ERROR) [/home/username/repos/openenclave/host/sgx/sgxload.c:oe_sgx_initialize_enclave:733]
13: 2020-02-07T06:50:00.065349Z [(H)ERROR] tid(0x7f6047147b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_sgx_build_enclave:660]
13: 2020-02-07T06:50:00.065581Z [(H)ERROR] tid(0x7f6047147b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_create_enclave:763]
 13/196 Test  #13: tests/cppException ....................................................................................................................***Failed    0.16 sec
test 14
        Start  14: tests/create-rapid

14: Test command: /home/username/repos/openenclave/build/tests/create-rapid/host/create_rapid_host "/home/username/repos/openenclave/build/tests/create-rapid/enc/create_rapid_enc"
14: Test timeout computed to be: 10000000
14: : /home/username/repos/openenclave/tests/create-rapid/host/host.cpp(27): error: oe_create_create_rapid_enclave(): result=21
14: 2020-02-07T06:50:00.158976Z [(H)ERROR] tid(0x7efe2c2e6b80) | enclave_initialize failed (err=0x1001) (oe_result_t=OE_PLATFORM_ERROR) [/home/username/repos/openenclave/host/sgx/sgxload.c:oe_sgx_initialize_enclave:733]
14: 2020-02-07T06:50:00.158985Z [(H)ERROR] tid(0x7efe2c2e6b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_sgx_build_enclave:660]
14: 2020-02-07T06:50:00.159157Z [(H)ERROR] tid(0x7efe2c2e6b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_create_enclave:763]
 14/196 Test  #14: tests/create-rapid ....................................................................................................................***Failed    0.09 sec
test 15
        Start  15: tests/ecall

15: Test command: /home/username/repos/openenclave/build/tests/ecall/host/ecall_host "/home/username/repos/openenclave/build/tests/ecall/enc/ecall_enc"
15: Test timeout computed to be: 10000000
15: : /home/username/repos/openenclave/tests/ecall/host/host.cpp(79): error: oe_create_ecall_enclave(): result=21
15: 2020-02-07T06:50:00.350129Z [(H)ERROR] tid(0x7f7dd3dd8b80) | enclave_initialize failed (err=0x1001) (oe_result_t=OE_PLATFORM_ERROR) [/home/username/repos/openenclave/host/sgx/sgxload.c:oe_sgx_initialize_enclave:733]
15: 2020-02-07T06:50:00.350139Z [(H)ERROR] tid(0x7f7dd3dd8b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_sgx_build_enclave:660]
15: 2020-02-07T06:50:00.350317Z [(H)ERROR] tid(0x7f7dd3dd8b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_create_enclave:763]
 15/196 Test  #15: tests/ecall ...........................................................................................................................***Failed    0.20 sec
test 16
        Start  16: tests/ecall_ocall

16: Test command: /home/username/repos/openenclave/build/tests/ecall_ocall/host/ecall_ocall_host "/home/username/repos/openenclave/build/tests/ecall_ocall/enc/ecall_ocall_enc"
16: Test timeout computed to be: 10000000
16: : /home/username/repos/openenclave/tests/ecall_ocall/host/host.cpp(35): error: oe_create_ecall_ocall_enclave(): result=21
16: 2020-02-07T06:50:00.492762Z [(H)ERROR] tid(0x7fe4f3797b80) | enclave_initialize failed (err=0x1001) (oe_result_t=OE_PLATFORM_ERROR) [/home/username/repos/openenclave/host/sgx/sgxload.c:oe_sgx_initialize_enclave:733]
16: 2020-02-07T06:50:00.492771Z [(H)ERROR] tid(0x7fe4f3797b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_sgx_build_enclave:660]
16: 2020-02-07T06:50:00.492983Z [(H)ERROR] tid(0x7fe4f3797b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_create_enclave:763]
 16/196 Test  #16: tests/ecall_ocall .....................................................................................................................***Failed    0.14 sec
test 17
        Start  17: tests/file

17: Test command: /home/username/repos/openenclave/build/tests/file/host/file_host "/home/username/repos/openenclave/build/tests/file/enc/file_enc"
17: Test timeout computed to be: 10000000
17: /home/username/repos/openenclave/build/tests/file/host/file_host: cannot create enclave: 21
17: 2020-02-07T06:50:00.635286Z [(H)ERROR] tid(0x7fb3ad4c9b80) | enclave_initialize failed (err=0x1001) (oe_result_t=OE_PLATFORM_ERROR) [/home/username/repos/openenclave/host/sgx/sgxload.c:oe_sgx_initialize_enclave:733]
17: 2020-02-07T06:50:00.635295Z [(H)ERROR] tid(0x7fb3ad4c9b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_sgx_build_enclave:660]
17: 2020-02-07T06:50:00.635469Z [(H)ERROR] tid(0x7fb3ad4c9b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_create_enclave:763]
 17/196 Test  #17: tests/file ............................................................................................................................***Failed    0.14 sec
test 18
        Start  18: tests/libcxxtest-libcxx_containers_unord_next_pow2.pass

18: Test command: /home/username/repos/openenclave/build/tests/libcxx/host/libcxx_host "/home/username/repos/openenclave/build/tests/libcxx/enc/libcxxtest-libcxx_containers_unord_next_pow2.pass_enc"
18: Test timeout computed to be: 10000000
18: === /home/username/repos/openenclave/build/tests/libcxx/host/libcxx_host: /home/username/repos/openenclave/build/tests/libcxx/enc/libcxxtest-libcxx_containers_unord_next_pow2.pass_enc
18: 2020-02-07T06:50:00.990069Z [(H)ERROR] tid(0x7fcb12b53b80) | enclave_initialize failed (err=0x1001) (oe_result_t=OE_PLATFORM_ERROR) [/home/username/repos/openenclave/host/sgx/sgxload.c:oe_sgx_initialize_enclave:733]
18: 2020-02-07T06:50:00.990084Z [(H)ERROR] tid(0x7fcb12b53b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_sgx_build_enclave:660]
18: 2020-02-07T06:50:00.990370Z [(H)ERROR] tid(0x7fcb12b53b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_create_enclave:763]
18: : /home/username/repos/openenclave/tests/libcxx/host/host.cpp(299): error: oe_create_enclave(): result=21
 18/196 Test  #18: tests/libcxxtest-libcxx_containers_unord_next_pow2.pass ...............................................................................***Failed    0.36 sec
test 19
        Start  19: tests/libcxxtest-libcxx_depr_depr.c.headers_complex.h.pass

19: Test command: /home/username/repos/openenclave/build/tests/libcxx/host/libcxx_host "/home/username/repos/openenclave/build/tests/libcxx/enc/libcxxtest-libcxx_depr_depr.c.headers_complex.h.pass_enc"
19: Test timeout computed to be: 10000000
19: === /home/username/repos/openenclave/build/tests/libcxx/host/libcxx_host: /home/username/repos/openenclave/build/tests/libcxx/enc/libcxxtest-libcxx_depr_depr.c.headers_complex.h.pass_enc
19: 2020-02-07T06:50:01.347078Z [(H)ERROR] tid(0x7f49390efb80) | enclave_initialize failed (err=0x1001) (oe_result_t=OE_PLATFORM_ERROR) [/home/username/repos/openenclave/host/sgx/sgxload.c:oe_sgx_initialize_enclave:733]
19: 2020-02-07T06:50:01.347092Z [(H)ERROR] tid(0x7f49390efb80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_sgx_build_enclave:660]
19: 2020-02-07T06:50:01.347370Z [(H)ERROR] tid(0x7f49390efb80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_create_enclave:763]
19: : /home/username/repos/openenclave/tests/libcxx/host/host.cpp(299): error: oe_create_enclave(): result=21
 19/196 Test  #19: tests/libcxxtest-libcxx_depr_depr.c.headers_complex.h.pass ............................................................................***Failed    0.36 sec
test 20
        Start  20: tests/libcxxtest-libcxx_input.output_file.streams_c.files_version_ccstdio.pass

20: Test command: /home/username/repos/openenclave/build/tests/libcxx/host/libcxx_host "/home/username/repos/openenclave/build/tests/libcxx/enc/libcxxtest-libcxx_input.output_file.streams_c.files_version_ccstdio.pass_enc"
20: Test timeout computed to be: 10000000
20: === /home/username/repos/openenclave/build/tests/libcxx/host/libcxx_host: /home/username/repos/openenclave/build/tests/libcxx/enc/libcxxtest-libcxx_input.output_file.streams_c.files_version_ccstdio.pass_enc
20: 2020-02-07T06:50:01.705889Z [(H)ERROR] tid(0x7f302193ab80) | enclave_initialize failed (err=0x1001) (oe_result_t=OE_PLATFORM_ERROR) [/home/username/repos/openenclave/host/sgx/sgxload.c:oe_sgx_initialize_enclave:733]
20: 2020-02-07T06:50:01.705904Z [(H)ERROR] tid(0x7f302193ab80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_sgx_build_enclave:660]
20: 2020-02-07T06:50:01.706171Z [(H)ERROR] tid(0x7f302193ab80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_create_enclave:763]
20: : /home/username/repos/openenclave/tests/libcxx/host/host.cpp(299): error: oe_create_enclave(): result=21
 20/196 Test  #20: tests/libcxxtest-libcxx_input.output_file.streams_c.files_version_ccstdio.pass ........................................................***Failed    0.36 sec
test 21
        Start  21: tests/libcxxtest-libcxx_input.output_file.streams_fstreams_version.pass

21: Test command: /home/username/repos/openenclave/build/tests/libcxx/host/libcxx_host "/home/username/repos/openenclave/build/tests/libcxx/enc/libcxxtest-libcxx_input.output_file.streams_fstreams_version.pass_enc"
21: Test timeout computed to be: 10000000
21: === /home/username/repos/openenclave/build/tests/libcxx/host/libcxx_host: /home/username/repos/openenclave/build/tests/libcxx/enc/libcxxtest-libcxx_input.output_file.streams_fstreams_version.pass_enc
21: 2020-02-07T06:50:02.064817Z [(H)ERROR] tid(0x7fb2b3850b80) | enclave_initialize failed (err=0x1001) (oe_result_t=OE_PLATFORM_ERROR) [/home/username/repos/openenclave/host/sgx/sgxload.c:oe_sgx_initialize_enclave:733]
21: 2020-02-07T06:50:02.064832Z [(H)ERROR] tid(0x7fb2b3850b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_sgx_build_enclave:660]
21: 2020-02-07T06:50:02.065115Z [(H)ERROR] tid(0x7fb2b3850b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_create_enclave:763]
21: : /home/username/repos/openenclave/tests/libcxx/host/host.cpp(299): error: oe_create_enclave(): result=21
 21/196 Test  #21: tests/libcxxtest-libcxx_input.output_file.streams_fstreams_version.pass ...............................................................***Failed    0.36 sec
test 22
        Start  22: tests/libcxxtest-libcxx_thread_thread.threads_thread.thread.class_thread.thread.member_native_handle.pass

22: Test command: /home/username/repos/openenclave/build/tests/libcxx/host/libcxx_host "/home/username/repos/openenclave/build/tests/libcxx/enc/libcxxtest-libcxx_thread_thread.threads_thread.thread.class_thread.thread.member_native_handle.pass_enc"
22: Test timeout computed to be: 10000000
22: === /home/username/repos/openenclave/build/tests/libcxx/host/libcxx_host: /home/username/repos/openenclave/build/tests/libcxx/enc/libcxxtest-libcxx_thread_thread.threads_thread.thread.class_thread.thread.member_native_handle.pass_enc
22: 2020-02-07T06:50:02.422655Z [(H)ERROR] tid(0x7fb816487b80) | enclave_initialize failed (err=0x1001) (oe_result_t=OE_PLATFORM_ERROR) [/home/username/repos/openenclave/host/sgx/sgxload.c:oe_sgx_initialize_enclave:733]
22: 2020-02-07T06:50:02.422669Z [(H)ERROR] tid(0x7fb816487b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_sgx_build_enclave:660]
22: 2020-02-07T06:50:02.422945Z [(H)ERROR] tid(0x7fb816487b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_create_enclave:763]
22: : /home/username/repos/openenclave/tests/libcxx/host/host.cpp(299): error: oe_create_enclave(): result=21
 22/196 Test  #22: tests/libcxxtest-libcxx_thread_thread.threads_thread.thread.class_thread.thread.member_native_handle.pass .............................***Failed    0.36 sec
test 23
        Start  23: tests/libcxxtest-libcxx_utilities_memory_util.smartptr_race_condition.pass

23: Test command: /home/username/repos/openenclave/build/tests/libcxx/host/libcxx_host "/home/username/repos/openenclave/build/tests/libcxx/enc/libcxxtest-libcxx_utilities_memory_util.smartptr_race_condition.pass_enc"
23: Test timeout computed to be: 10000000
23: === /home/username/repos/openenclave/build/tests/libcxx/host/libcxx_host: /home/username/repos/openenclave/build/tests/libcxx/enc/libcxxtest-libcxx_utilities_memory_util.smartptr_race_condition.pass_enc
23: 2020-02-07T06:50:02.785600Z [(H)ERROR] tid(0x7f27bbbc0b80) | enclave_initialize failed (err=0x1001) (oe_result_t=OE_PLATFORM_ERROR) [/home/username/repos/openenclave/host/sgx/sgxload.c:oe_sgx_initialize_enclave:733]
23: 2020-02-07T06:50:02.785614Z [(H)ERROR] tid(0x7f27bbbc0b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_sgx_build_enclave:660]
23: 2020-02-07T06:50:02.785892Z [(H)ERROR] tid(0x7f27bbbc0b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_create_enclave:763]
23: : /home/username/repos/openenclave/tests/libcxx/host/host.cpp(299): error: oe_create_enclave(): result=21
 23/196 Test  #23: tests/libcxxtest-libcxx_utilities_memory_util.smartptr_race_condition.pass ............................................................***Failed    0.36 sec
test 24
        Start  24: tests/libcxxtest-std_containers_associative_multimap_incomplete_type.pass

24: Test command: /home/username/repos/openenclave/build/tests/libcxx/host/libcxx_host "/home/username/repos/openenclave/build/tests/libcxx/enc/libcxxtest-std_containers_associative_multimap_incomplete_type.pass_enc"
24: Test timeout computed to be: 10000000
24: === /home/username/repos/openenclave/build/tests/libcxx/host/libcxx_host: /home/username/repos/openenclave/build/tests/libcxx/enc/libcxxtest-std_containers_associative_multimap_incomplete_type.pass_enc
24: 2020-02-07T06:50:03.141920Z [(H)ERROR] tid(0x7fa336c46b80) | enclave_initialize failed (err=0x1001) (oe_result_t=OE_PLATFORM_ERROR) [/home/username/repos/openenclave/host/sgx/sgxload.c:oe_sgx_initialize_enclave:733]
24: 2020-02-07T06:50:03.141934Z [(H)ERROR] tid(0x7fa336c46b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_sgx_build_enclave:660]
24: 2020-02-07T06:50:03.142224Z [(H)ERROR] tid(0x7fa336c46b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_create_enclave:763]
24: : /home/username/repos/openenclave/tests/libcxx/host/host.cpp(299): error: oe_create_enclave(): result=21
 24/196 Test  #24: tests/libcxxtest-std_containers_associative_multimap_incomplete_type.pass .............................................................***Failed    0.36 sec
test 25
        Start  25: tests/libcxxtest-std_containers_sequences_vector.bool_assign_move.pass

25: Test command: /home/username/repos/openenclave/build/tests/libcxx/host/libcxx_host "/home/username/repos/openenclave/build/tests/libcxx/enc/libcxxtest-std_containers_sequences_vector.bool_assign_move.pass_enc"
25: Test timeout computed to be: 10000000
25: === /home/username/repos/openenclave/build/tests/libcxx/host/libcxx_host: /home/username/repos/openenclave/build/tests/libcxx/enc/libcxxtest-std_containers_sequences_vector.bool_assign_move.pass_enc
25: 2020-02-07T06:50:03.504608Z [(H)ERROR] tid(0x7f72bfee6b80) | enclave_initialize failed (err=0x1001) (oe_result_t=OE_PLATFORM_ERROR) [/home/username/repos/openenclave/host/sgx/sgxload.c:oe_sgx_initialize_enclave:733]
25: 2020-02-07T06:50:03.504623Z [(H)ERROR] tid(0x7f72bfee6b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_sgx_build_enclave:660]
25: 2020-02-07T06:50:03.504919Z [(H)ERROR] tid(0x7f72bfee6b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_create_enclave:763]
25: : /home/username/repos/openenclave/tests/libcxx/host/host.cpp(299): error: oe_create_enclave(): result=21
 25/196 Test  #25: tests/libcxxtest-std_containers_sequences_vector.bool_assign_move.pass ................................................................***Failed    0.36 sec
test 26
        Start  26: tests/libcxxtest-std_containers_unord_unord.multimap_unord.multimap.cnstr_copy.pass

26: Test command: /home/username/repos/openenclave/build/tests/libcxx/host/libcxx_host "/home/username/repos/openenclave/build/tests/libcxx/enc/libcxxtest-std_containers_unord_unord.multimap_unord.multimap.cnstr_copy.pass_enc"
26: Test timeout computed to be: 10000000
26: === /home/username/repos/openenclave/build/tests/libcxx/host/libcxx_host: /home/username/repos/openenclave/build/tests/libcxx/enc/libcxxtest-std_containers_unord_unord.multimap_unord.multimap.cnstr_copy.pass_enc
26: 2020-02-07T06:50:03.867680Z [(H)ERROR] tid(0x7fd4958c5b80) | enclave_initialize failed (err=0x1001) (oe_result_t=OE_PLATFORM_ERROR) [/home/username/repos/openenclave/host/sgx/sgxload.c:oe_sgx_initialize_enclave:733]
26: 2020-02-07T06:50:03.867694Z [(H)ERROR] tid(0x7fd4958c5b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_sgx_build_enclave:660]
26: 2020-02-07T06:50:03.867996Z [(H)ERROR] tid(0x7fd4958c5b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_create_enclave:763]
26: : /home/username/repos/openenclave/tests/libcxx/host/host.cpp(299): error: oe_create_enclave(): result=21
 26/196 Test  #26: tests/libcxxtest-std_containers_unord_unord.multimap_unord.multimap.cnstr_copy.pass ...................................................***Failed    0.36 sec
test 27
        Start  27: tests/libcxxtest-std_diagnostics_syserr_syserr.errcat_syserr.errcat.objects_system_category.pass

27: Test command: /home/username/repos/openenclave/build/tests/libcxx/host/libcxx_host "/home/username/repos/openenclave/build/tests/libcxx/enc/libcxxtest-std_diagnostics_syserr_syserr.errcat_syserr.errcat.objects_system_category.pass_enc"
27: Test timeout computed to be: 10000000
27: === /home/username/repos/openenclave/build/tests/libcxx/host/libcxx_host: /home/username/repos/openenclave/build/tests/libcxx/enc/libcxxtest-std_diagnostics_syserr_syserr.errcat_syserr.errcat.objects_system_category.pass_enc
27: 2020-02-07T06:50:04.227414Z [(H)ERROR] tid(0x7f36e509bb80) | enclave_initialize failed (err=0x1001) (oe_result_t=OE_PLATFORM_ERROR) [/home/username/repos/openenclave/host/sgx/sgxload.c:oe_sgx_initialize_enclave:733]
27: 2020-02-07T06:50:04.227428Z [(H)ERROR] tid(0x7f36e509bb80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_sgx_build_enclave:660]
27: 2020-02-07T06:50:04.227703Z [(H)ERROR] tid(0x7f36e509bb80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_create_enclave:763]
27: : /home/username/repos/openenclave/tests/libcxx/host/host.cpp(299): error: oe_create_enclave(): result=21
 27/196 Test  #27: tests/libcxxtest-std_diagnostics_syserr_syserr.errcat_syserr.errcat.objects_system_category.pass ......................................***Failed    0.36 sec
test 28
        Start  28: tests/libcxxtest-std_language.support_support.dynamic_new.delete_new.delete.array_sized_delete_array14.pass

28: Test command: /home/username/repos/openenclave/build/tests/libcxx/host/libcxx_host "/home/username/repos/openenclave/build/tests/libcxx/enc/libcxxtest-std_language.support_support.dynamic_new.delete_new.delete.array_sized_delete_array14.pass_enc"
28: Test timeout computed to be: 10000000
28: === /home/username/repos/openenclave/build/tests/libcxx/host/libcxx_host: /home/username/repos/openenclave/build/tests/libcxx/enc/libcxxtest-std_language.support_support.dynamic_new.delete_new.delete.array_sized_delete_array14.pass_enc
28: 2020-02-07T06:50:04.585399Z [(H)ERROR] tid(0x7fe32a9e2b80) | enclave_initialize failed (err=0x1001) (oe_result_t=OE_PLATFORM_ERROR) [/home/username/repos/openenclave/host/sgx/sgxload.c:oe_sgx_initialize_enclave:733]
28: 2020-02-07T06:50:04.585413Z [(H)ERROR] tid(0x7fe32a9e2b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_sgx_build_enclave:660]
28: 2020-02-07T06:50:04.585710Z [(H)ERROR] tid(0x7fe32a9e2b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_create_enclave:763]
28: : /home/username/repos/openenclave/tests/libcxx/host/host.cpp(299): error: oe_create_enclave(): result=21
 28/196 Test  #28: tests/libcxxtest-std_language.support_support.dynamic_new.delete_new.delete.array_sized_delete_array14.pass ...........................***Failed    0.36 sec
test 29
        Start  29: tests/libcxxtest-std_language.support_support.general_nothing_to_do.pass

29: Test command: /home/username/repos/openenclave/build/tests/libcxx/host/libcxx_host "/home/username/repos/openenclave/build/tests/libcxx/enc/libcxxtest-std_language.support_support.general_nothing_to_do.pass_enc"
29: Test timeout computed to be: 10000000
29: === /home/username/repos/openenclave/build/tests/libcxx/host/libcxx_host: /home/username/repos/openenclave/build/tests/libcxx/enc/libcxxtest-std_language.support_support.general_nothing_to_do.pass_enc
29: 2020-02-07T06:50:04.942834Z [(H)ERROR] tid(0x7f839d573b80) | enclave_initialize failed (err=0x1001) (oe_result_t=OE_PLATFORM_ERROR) [/home/username/repos/openenclave/host/sgx/sgxload.c:oe_sgx_initialize_enclave:733]
29: 2020-02-07T06:50:04.942848Z [(H)ERROR] tid(0x7f839d573b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_sgx_build_enclave:660]
29: 2020-02-07T06:50:04.943144Z [(H)ERROR] tid(0x7f839d573b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_create_enclave:763]
29: : /home/username/repos/openenclave/tests/libcxx/host/host.cpp(299): error: oe_create_enclave(): result=21
 29/196 Test  #29: tests/libcxxtest-std_language.support_support.general_nothing_to_do.pass ..............................................................***Failed    0.36 sec
test 30
        Start  30: tests/libcxxtest-std_localization_locale.categories_category.numeric_locale.nm.put_facet.num.put.members_put_bool.pass

30: Test command: /home/username/repos/openenclave/build/tests/libcxx/host/libcxx_host "/home/username/repos/openenclave/build/tests/libcxx/enc/libcxxtest-std_localization_locale.categories_category.numeric_locale.nm.put_facet.num.put.members_put_bool.pass_enc"
30: Test timeout computed to be: 10000000
30: === /home/username/repos/openenclave/build/tests/libcxx/host/libcxx_host: /home/username/repos/openenclave/build/tests/libcxx/enc/libcxxtest-std_localization_locale.categories_category.numeric_locale.nm.put_facet.num.put.members_put_bool.pass_enc
30: 2020-02-07T06:50:05.367643Z [(H)ERROR] tid(0x7fe12907db80) | enclave_initialize failed (err=0x1001) (oe_result_t=OE_PLATFORM_ERROR) [/home/username/repos/openenclave/host/sgx/sgxload.c:oe_sgx_initialize_enclave:733]
30: 2020-02-07T06:50:05.367657Z [(H)ERROR] tid(0x7fe12907db80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_sgx_build_enclave:660]
30: 2020-02-07T06:50:05.368059Z [(H)ERROR] tid(0x7fe12907db80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_create_enclave:763]
30: : /home/username/repos/openenclave/tests/libcxx/host/host.cpp(299): error: oe_create_enclave(): result=21
 30/196 Test  #30: tests/libcxxtest-std_localization_locale.categories_category.numeric_locale.nm.put_facet.num.put.members_put_bool.pass ................***Failed    0.43 sec
test 31
        Start  31: tests/libcxxtest-std_strings_string.view_string.view.access_back.pass

31: Test command: /home/username/repos/openenclave/build/tests/libcxx/host/libcxx_host "/home/username/repos/openenclave/build/tests/libcxx/enc/libcxxtest-std_strings_string.view_string.view.access_back.pass_enc"
31: Test timeout computed to be: 10000000
31: === /home/username/repos/openenclave/build/tests/libcxx/host/libcxx_host: /home/username/repos/openenclave/build/tests/libcxx/enc/libcxxtest-std_strings_string.view_string.view.access_back.pass_enc
31: 2020-02-07T06:50:05.728493Z [(H)ERROR] tid(0x7f1ffd694b80) | enclave_initialize failed (err=0x1001) (oe_result_t=OE_PLATFORM_ERROR) [/home/username/repos/openenclave/host/sgx/sgxload.c:oe_sgx_initialize_enclave:733]
31: 2020-02-07T06:50:05.728508Z [(H)ERROR] tid(0x7f1ffd694b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_sgx_build_enclave:660]
31: 2020-02-07T06:50:05.728809Z [(H)ERROR] tid(0x7f1ffd694b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_create_enclave:763]
31: : /home/username/repos/openenclave/tests/libcxx/host/host.cpp(299): error: oe_create_enclave(): result=21
 31/196 Test  #31: tests/libcxxtest-std_strings_string.view_string.view.access_back.pass .................................................................***Failed    0.36 sec
test 32
        Start  32: tests/libcxxtest-std_thread_futures_futures.promise_set_exception_at_thread_exit.pass

32: Test command: /home/username/repos/openenclave/build/tests/libcxx/host/libcxx_host "/home/username/repos/openenclave/build/tests/libcxx/enc/libcxxtest-std_thread_futures_futures.promise_set_exception_at_thread_exit.pass_enc"
32: Test timeout computed to be: 10000000
32: === /home/username/repos/openenclave/build/tests/libcxx/host/libcxx_host: /home/username/repos/openenclave/build/tests/libcxx/enc/libcxxtest-std_thread_futures_futures.promise_set_exception_at_thread_exit.pass_enc
32: 2020-02-07T06:50:06.086474Z [(H)ERROR] tid(0x7f3c71647b80) | enclave_initialize failed (err=0x1001) (oe_result_t=OE_PLATFORM_ERROR) [/home/username/repos/openenclave/host/sgx/sgxload.c:oe_sgx_initialize_enclave:733]
32: 2020-02-07T06:50:06.086489Z [(H)ERROR] tid(0x7f3c71647b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_sgx_build_enclave:660]
32: 2020-02-07T06:50:06.086780Z [(H)ERROR] tid(0x7f3c71647b80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_create_enclave:763]
32: : /home/username/repos/openenclave/tests/libcxx/host/host.cpp(299): error: oe_create_enclave(): result=21
 32/196 Test  #32: tests/libcxxtest-std_thread_futures_futures.promise_set_exception_at_thread_exit.pass .................................................***Failed    0.36 sec
test 33
        Start  33: tests/libcxxtest-std_thread_futures_futures.promise_set_lvalue_at_thread_exit.pass

33: Test command: /home/username/repos/openenclave/build/tests/libcxx/host/libcxx_host "/home/username/repos/openenclave/build/tests/libcxx/enc/libcxxtest-std_thread_futures_futures.promise_set_lvalue_at_thread_exit.pass_enc"
33: Test timeout computed to be: 10000000
33: === /home/username/repos/openenclave/build/tests/libcxx/host/libcxx_host: /home/username/repos/openenclave/build/tests/libcxx/enc/libcxxtest-std_thread_futures_futures.promise_set_lvalue_at_thread_exit.pass_enc
33: 2020-02-07T06:50:06.445672Z [(H)ERROR] tid(0x7f011bd8eb80) | enclave_initialize failed (err=0x1001) (oe_result_t=OE_PLATFORM_ERROR) [/home/username/repos/openenclave/host/sgx/sgxload.c:oe_sgx_initialize_enclave:733]
33: 2020-02-07T06:50:06.445686Z [(H)ERROR] tid(0x7f011bd8eb80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_sgx_build_enclave:660]
33: 2020-02-07T06:50:06.445993Z [(H)ERROR] tid(0x7f011bd8eb80) | :OE_PLATFORM_ERROR [/home/username/repos/openenclave/host/sgx/create.c:oe_create_enclave:763]
33: : /home/username/repos/openenclave/tests/libcxx/host/host.cpp(299): error: oe_create_enclave(): result=21
 33/196 Test  #33: tests/libcxxtest-std_thread_futures_futures.promise_set_lvalue_at_thread_exit.pass ....................................................***Failed    0.36 sec
test 34
        Start  34: tests/libcxxtest-std_thread_futures_futures.promise_set_rvalue_at_thread_exit.pass

I can see that OE_PLATFORM_ERROR is repeated, so I presume fixing this will make the rest of the tests pass.

Thank you in advance for the help.

question triaged

Most helpful comment

This is a significant improvement:

100% tests passed, 0 tests failed out of 196

Total Test time (real) = 247.63 sec

The following tests did not run:
   12 - tests/attestation_plugin (Skipped)
  139 - tests/tls_e2e (Skipped)
  141 - tests/attestation_cert_api (Skipped)
  143 - tests/bigmalloc (Skipped)
  158 - tests/report_attestation_without_enclave (Skipped)

I installed the Intel SGX {driver, psw, sdk} from scratch again. That solved all the issues. I would say the openenclave documentation can be upgraded to reflect ALL necessary steps needed to have an environment in which we can test openenclave. I can gladly help with this. I am preparing a document of all issues found and how to get to the point that Intel SGX + openenclave actually works (without assuming that the user already has done all the necessary steps.)

Thank you for your help @mingweishih.

In fact I thought the same. The document regarding setting openclave up on bare-metal environment may not be sufficient. Please feel free to open another issue for documenting those. I can also work with you if you'd like to contribute to openenclave :)

All 7 comments

This seems like a problem with driver/daemon. Can you try lsmod | grep sgx & service aesmd status and provide the results?

➜  ~ lsmod | grep sgx                       
➜  ~ service aesmd status 
Unit aesmd.service could not be found.

@mingweishih, no results, :(
Thank you for your help.

➜  ~ lsmod | grep sgx                       
➜  ~ service aesmd status 
Unit aesmd.service could not be found.

@mingweishih, no results, :(
Thank you for your help.

No problem. Any update on the issue?

➜  ~ lsmod | grep sgx                       
➜  ~ service aesmd status 
Unit aesmd.service could not be found.

@mingweishih, no results, :(
Thank you for your help.

No problem. Any update on the issue?

Same thing, tests are failing. I am looking into the tests. Perhaps I am forgetting an environmental variable or something? I just followed the documentation details to run the SGX1 mode.

➜  ~ lsmod | grep sgx                       
➜  ~ service aesmd status 
Unit aesmd.service could not be found.

@mingweishih, no results, :(
Thank you for your help.

No problem. Any update on the issue?

Same thing, tests are failing. I am looking into the tests. Perhaps I am forgetting an environmental variable or something? I just followed the documentation details to run the SGX1 mode.

I source this file:

source /opt/openenclave/share/openenclave/openenclaverc

Same thing, tests failed.

Should I uninstall psw and sgx-driver and then install them again? Apparently, following the steps in script does not prepare the Ubuntu node to run tests and samples. Perhaps there are some missing steps in here. I will review the scripts and try this thing again.

This is a significant improvement:

100% tests passed, 0 tests failed out of 196

Total Test time (real) = 247.63 sec

The following tests did not run:
     12 - tests/attestation_plugin (Skipped)
    139 - tests/tls_e2e (Skipped)
    141 - tests/attestation_cert_api (Skipped)
    143 - tests/bigmalloc (Skipped)
    158 - tests/report_attestation_without_enclave (Skipped)

I installed the Intel SGX {driver, psw, sdk} from scratch again. That solved all the issues. I would say the openenclave documentation can be upgraded to reflect ALL necessary steps needed to have an environment in which we can test openenclave. I can gladly help with this. I am preparing a document of all issues found and how to get to the point that Intel SGX + openenclave actually works (without assuming that the user already has done all the necessary steps.)

Thank you for your help @mingweishih.

This is a significant improvement:

100% tests passed, 0 tests failed out of 196

Total Test time (real) = 247.63 sec

The following tests did not run:
   12 - tests/attestation_plugin (Skipped)
  139 - tests/tls_e2e (Skipped)
  141 - tests/attestation_cert_api (Skipped)
  143 - tests/bigmalloc (Skipped)
  158 - tests/report_attestation_without_enclave (Skipped)

I installed the Intel SGX {driver, psw, sdk} from scratch again. That solved all the issues. I would say the openenclave documentation can be upgraded to reflect ALL necessary steps needed to have an environment in which we can test openenclave. I can gladly help with this. I am preparing a document of all issues found and how to get to the point that Intel SGX + openenclave actually works (without assuming that the user already has done all the necessary steps.)

Thank you for your help @mingweishih.

In fact I thought the same. The document regarding setting openclave up on bare-metal environment may not be sufficient. Please feel free to open another issue for documenting those. I can also work with you if you'd like to contribute to openenclave :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

anakrish picture anakrish  Â·  7Comments

dthaler picture dthaler  Â·  5Comments

andschwa picture andschwa  Â·  3Comments

radhikaj picture radhikaj  Â·  7Comments

radhikaj picture radhikaj  Â·  7Comments