enarx / codex

Code examples that can be compiled to WebAssembly for use with Enarx
Apache License 2.0
22 stars 14 forks source link

[Bug]: Zig fails to run on Enarx #15

Closed rvolosatovs closed 2 years ago

rvolosatovs commented 2 years ago

Is there an existing issue for this?

Code of Conduct

Current Behaviour

fibonacci of 7 is: 13 
 Error: Exited with i32 exit status 0
wasm backtrace:
    0:  0xd89 - <unknown>!<wasm function 7>

This fails only on Enarx

Enarx tracking issue https://github.com/enarx/enarx/issues/2090 (and another one to be filed)

Expected Behaviour

Success.

Environment Information

enarx 0.6.1

Steps To Reproduce

No response

rvolosatovs commented 2 years ago

Did a bit more research, it seems that Wasmtime actually works fine without I/O, but Enarx fails with the same error. Looks like a missing syscall support.

rvolosatovs commented 2 years ago

Fixed in enarx 0.6.2