Andrew Clayton
Andrew Clayton
Hmm ``` $ clang-format --dry-run src/nxt_php_sapi.c /home/andrew/src/unit/.clang-format:51:3: error: unknown key 'AlignFunctionDeclarations' AlignFunctionDeclarations: true ^~~~~~~~~~~~~~~~~~~~~~~~~ Error reading /home/andrew/src/unit/.clang-format: Invalid argument ```
That's way too new!, it's not even released yet, probably in March next year...
Was looking at this last night. The test runs fine on Fedora 40. Fails on Ubuntu 24.04. This thing seems generally pretty fragile...
The pytest wasm-wasi-component built on Ubuntu 24.04 does run under wasmtime v24 (on Fedora at least)
The hello_world component built under Ubuntu 24.04 does _not_ run under Unit on Fedora either. Same error I beleive ``` 2024/10/29 03:31:00 [alert] 490364#490364 failed to create initial state Caused...
Now that I'm on Fedora 41, it's broken here also... (from pytests) ``` 2024/11/06 21:08:50 [alert] 107196#107196 failed to create initial state Caused by: 0: failed to compile component 1:...
Looks like we may be hitting this https://github.com/bytecodealliance/wasmtime/issues/9130 Enabling the `gc` feature fixes it on Fedora 41, I'll test it on the GH stuff...
I wonder if we can just move to wasmtime 26.0.1... Seems like it...
Thanks for the _detailed_ report!. Indeed I do [this](https://github.com/nginx/unit/blob/98983f3f3b9dae111471043792dd24e5c834a6d3/src/wasm/nxt_rt_wasmtime.c#L278) in our original C based wasm language module but must have missed it wasn't being done in the rust one. This...
So I'm trying this out with the below patch ```diff diff --git ./src/wasm-wasi-component/src/lib.rs ./src/wasm-wasi-component/src/lib.rs index b0552e81..0df33914 100644 --- ./src/wasm-wasi-component/src/lib.rs +++ ./src/wasm-wasi-component/src/lib.rs @@ -256,6 +256,7 @@ impl GlobalState { // shouldn't...