ibr-ds / sgx-perf

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

!!! Could not open file for writing! & Segmentation fault #5

Open gogo9th opened 5 years ago

gogo9th commented 5 years ago

If,

Could you please give me some help on fixing the following issue? Thanks very much.

:myproxy-v33/sgx-mprotect$ LD_PRELOAD=~/Desktop/sgx-perf-master/build/lib/libloggersim.so ./App_exe 
=== Initializing sgx-perf
(i) No config file found, load defaults
=== Done initializing
pagesize: 4096 bytes, function1()'s size: 15 bytes, function2()'s size: 39 bytes

ocall_mprotect(): received memory address 0x7fab73247000 from SGX
ocall_mprotect(): modified page permission of memory address 0x7fab73247000 to 7
SGX's dynamic_execute(): copied function1() to memory address 0x7fab732252e0
SGX's dynamic_execute(): executed original function1() --> returned 1
Caught signal 11
Fault address is 0x7fab732252e0
=== Writing to out-28363.db
(i) Starting serialization
(i) Mapping event IDs to names
(i) Serializing events (0 + 1 threads)
.
(i) Mapping thread start addresses to symbols
(i) Mapping OCall IDs to symbols
(i) Mapping ECall IDs to symbols (1 enclaves)
(i) Enclave 121818157416450(enclave.signed.so)
(i) Close all binary files
(i) Creating DB indices
(i) Serialization done
(i) Writing out file
!!! Could not open file for writing!
=== Shutting down sgx-perf
Segmentation fault
envy commented 5 years ago

Sorry for the long wait.

Not being able to write the file might be a permission issue on the folder. Regarding the segmentation fault, I don't know if it happens inside sgx-perf or inside your application.