-
Notifications
You must be signed in to change notification settings - Fork 153
Open
Labels
bugSomething isn't workingSomething isn't workingtriageIssues that need to be triaged.Issues that need to be triaged.wasmIssues related to WebAssemblyIssues related to WebAssembly
Description
Is there an existing issue for this?
- I have searched the existing issues
Code of Conduct
- I agree to follow this project's Code of Conduct
Current Behaviour
Some .wasm files are failing (not right away).
Error: failed to execute default function
Caused by:
0: error while executing at wasm backtrace:
0: 0x4d2e - <unknown>!<wasm function 21>
1: 0x307a8 - <unknown>!<wasm function 295>
2: 0x1ad4f - <unknown>!<wasm function 117>
3: 0x18f1f - <unknown>!<wasm function 112>
4: 0x191f7 - <unknown>!<wasm function 116>
5: 0x4565d - <unknown>!<wasm function 449>
6: 0x8f0 - <unknown>!<wasm function 15>
1: Unknown OS error
2: Function not implemented (os error 38)
This binary in particular works fine, but sometimes fails after several seconds or a couple of minutes.
Things to check:
- Rust 1.67: Mangle "main" as "__main_void" on wasm32-wasi rust-lang/rust#105468
- Rust 1.70: Can not disable sign-ext feature for wasm32 target rust-lang/rust#109807
Expected Behaviour
Running until user killed without crashing.
Environment Information
❯ ./enarx platform info
Enarx version 0.7.1
System Info: Linux 6.1.0-16-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.67-1 (2023-12-12) x86_64
✔ Backend: sgx
✔ Driver: /dev/sgx_enclave
✔ CPU: Intel(R) Core(TM) i5-1035G7 CPU @ 1.20GHz | GenuineIntel
✔ SGX Support
✔ Version 1
✔ Version 2
✔ FLC Support
✔ Max Size (32-bit): 2 GiB
✔ Max Size (64-bit): 128 TiB
✔ MiscSelect: EXINFO
✔ Features: DEBUG | MODE64BIT | PROVISIONING_KEY | EINIT_KEY | KSS
✔ Xfrm: X87 | SSE | AVX | YMM | OPMASK | ZMM_HI256 | HI16_ZMM | MPK
✔ EPC Size: 188 MiB
✔ Intel CRL cache file: /var/cache/intel-sgx/crls.der, next update 2024-01-24T15:49:48Z
✔ TCB & FMSPC cache: Next update: 2024-01-24 16:37:25 +00:00
✔ AESM Daemon Socket: /var/run/aesmd/aesm.socket
Steps To Reproduce
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingtriageIssues that need to be triaged.Issues that need to be triaged.wasmIssues related to WebAssemblyIssues related to WebAssembly
Type
Projects
Status
New