Skip to content

[Bug]: Newer Rust versions might cause issues with Enarx until Enarx upgrades Rust version & Wasmtime #2567

@rjzak

Description

@rjzak

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:

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

No one assigned

    Labels

    bugSomething isn't workingtriageIssues that need to be triaged.wasmIssues related to WebAssembly

    Type

    No type

    Projects

    Status

    New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions