Skip to content

failing std lib test: std.compress.deflate.deflate_fast.best speed match #18885

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
andrewrk opened this issue Feb 10, 2024 · 1 comment · Fixed by #18971
Closed

failing std lib test: std.compress.deflate.deflate_fast.best speed match #18885

andrewrk opened this issue Feb 10, 2024 · 1 comment · Fixed by #18971
Labels
arch-wasm 32-bit and 64-bit WebAssembly bug Observed behavior contradicts documented or intended behavior os-wasi
Milestone

Comments

@andrewrk
Copy link
Member

andrewrk commented Feb 10, 2024

Zig Version

0.12.0-dev.2700+d12c8db64

Steps to Reproduce and Observed Behavior

$ wasmtime --version
wasmtime-cli 10.0.2
$ stage3/bin/zig test ../lib/std/std.zig -target wasm32-wasi
warning: the host system (x86_64-linux.6.1.53...6.1.53-gnu.2.36) does not appear to be capable of executing binaries from the target (wasm32-wasi-musl). Consider using '--test-cmd wasmtime --test-cmd-bin' to run the tests
error: the following command failed with 'InvalidExe':
/home/andy/dev/zig/zig-cache/o/b62899c13b0639911e2fcbfb2e8db074/test.wasm
$ WASMTIME_BACKTRACE_DETAILS=1 wasmtime --dir=. /home/andy/dev/zig/zig-cache/o/b62899c13b0639911e2fcbfb2e8db074/test.wasm
1789/2617 test.best speed match 1/3... Error: failed to run main module `/home/andy/dev/zig/zig-cache/o/b62899c13b0639911e2fcbfb2e8db074/test.wasm`

Caused by:
    0: failed to invoke command default
    1: error while executing at wasm backtrace:
           0: 0x12aafa4 - compress.deflate.deflate_fast.test.best speed match 1/3
                           at /home/andy/dev/zig/lib/std/compress/deflate/deflate_fast.zig:360:9
           1: 0xb476 - test_runner.mainTerminal
                           at /home/andy/dev/zig/lib/test_runner.zig:158:25
           2: 0x83f1 - test_runner.main
                           at /home/andy/dev/zig/lib/test_runner.zig:35:28
           3: 0x7fe4 - start.callMain
                           at /home/andy/dev/zig/lib/std/start.zig:501:22              - _start
                           at /home/andy/dev/zig/lib/std/start.zig:211:42
    2: memory fault at wasm address 0xfff3facc in linear memory of size 0x13780000
    3: wasm trap: out of bounds memory access

Expected Behavior

2463 passed; 154 skipped; 0 failed.
@andrewrk andrewrk added bug Observed behavior contradicts documented or intended behavior arch-wasm 32-bit and 64-bit WebAssembly os-wasi labels Feb 10, 2024
@andrewrk andrewrk added this to the 0.13.0 milestone Feb 10, 2024
@andrewrk
Copy link
Member Author

Next step: determine whether this is a problem with the LLVM backend, the standard library, or wasmtime.

andrewrk added a commit that referenced this issue Feb 17, 2024
to match the other operating systems. 16 MiB

closes #18885
@andrewrk andrewrk modified the milestones: 0.13.0, 0.12.0 Feb 17, 2024
andrewrk added a commit that referenced this issue Feb 26, 2024
to match the other operating systems. 16 MiB

closes #18885
andrewrk added a commit that referenced this issue Feb 26, 2024
to match the other operating systems. 16 MiB

closes #18885
RossComputerGuy pushed a commit to ExpidusOS-archive/zig that referenced this issue Mar 20, 2024
to match the other operating systems. 16 MiB

closes ziglang#18885
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-wasm 32-bit and 64-bit WebAssembly bug Observed behavior contradicts documented or intended behavior os-wasi
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant