Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gogo9th opened this issue Jun 10, 2019 · 1 comment
Open

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

gogo9th opened this issue Jun 10, 2019 · 1 comment

Comments

@gogo9th
Copy link

gogo9th commented Jun 10, 2019

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
Copy link
Member

envy commented Aug 30, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants