Skip to content

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

@andrewrk

Description

@andrewrk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-wasm32-bit and 64-bit WebAssemblybugObserved behavior contradicts documented or intended behavioros-wasiWebAssembly System Interface

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions