Comments (3)
The backtrace is not helpful:
(gdb) bt
#0 0x000055fefeaf5994 in async_exit_pointer ()
#1 0x0000000000000000 in ?? ()
The instruction triggering this seems to be ENCLU
:
(gdb) layout asm
[...]
│0x55fefeaf595b <pal_printf+139> leaveq │
│0x55fefeaf595c <pal_printf+140> retq │
│0x55fefeaf595d <sgx_ecall> lea 0x43(%rip),%rdx # 0x55fefeaf59a7 <sgx_entry> │
│0x55fefeaf5964 <sgx_ecall+7> mov $0xffffffffffffffe8,%r8 │
│0x55fefeaf596b <sgx_ecall+14> mov %fs:0x0,%rcx │
│0x55fefeaf5974 <sgx_ecall+23> lea (%rcx,%r8,1),%r8 │
│0x55fefeaf5978 <sgx_ecall+27> mov $0xfffffffffffffff0,%rbx │
│0x55fefeaf597f <sgx_ecall+34> mov %fs:(%rbx),%rbx │
│0x55fefeaf5983 <sgx_ecall+38> lea 0xa(%rip),%rcx # 0x55fefeaf5994 <async_exit_po│
│0x55fefeaf598a <sgx_ecall+45> mov $0x2,%rax │
│0x55fefeaf5991 <sgx_ecall+52> enclu │
>│0x55fefeaf5994 <async_exit_pointer> enclu
[...]
from graphene.
The occurrence of SIGILL is mostly benign. it happens when the unmodified applications or libc contain restricted instructions like CPUID or RTDSC. Graphene-SGX can handle these instructions through its exception handlers.
When using regular gdb, the execution will be blocked by SIGILL and show the backtrace at async_exit_pointer()
. To avoid this problem, it is suggested to use the debugger given by Graphene (Pal/src/host/Linux-SGX/debugger/gdb
) instead of the regular gdb.
from graphene.
Are you using the patched gdb included with Graphene (under Pal/src/host/Linux-SGX/debugger), or regular? The sgx-enabled gdb can give more visibility into what is happening.
If your code is really doing an enclu in the enclave, that probably won't work. I suspect this is the debugger's view from outside the enclave.
from graphene.
Related Issues (20)
- Data transmission error with Python gRPC running in graphene HOT 9
- Huge performance drop when running pytorch training with graphene-sgx HOT 26
- Graphene-SGX: Syscalls wakes up early/prematurely on Server Machines HOT 12
- untrusted PAL sent PAL event HOT 10
- BUG() triggered during vfork and clone HOT 15
- With Go program, inside a docker container, bind fails with permission denied error, invalid handle error. HOT 7
- Workloads (Redis, Curl, R) failing with Out of memory PAL error after new manifest syntax to define lists of SGX trusted files. HOT 7
- Unable to Sign the graphenized Docker image using gsc sign-image: HOT 5
- RFC: Trusted files metadata sideloading
- [Error:38]Function not implemented. multiprocessing in graphene HOT 7
- How to transmit variables between SGX and untrusted environments HOT 4
- Function not implemented (src/ip.cpp:563) in testing GSC container HOT 2
- [Examples] Python Example Stuck Without Any Error Message HOT 1
- ModuleNotFoundError: No module named 'graphenelibos' HOT 5
- web server use golang, QPS(queries per second) is very low HOT 4
- File Listener Based on INOTIFY Throws Error HOT 1
- Issue with libprotobuf version. HOT 1
- Issue in Cloud Deployment to AKS HOT 3
- Decimal type prone to float rounding error. HOT 1
- pytorch sample config for better performance HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphene.