Stream: wasmtime

Topic: test failure on main branch


view this post on Zulip bjorn3 (Jul 05 2024 at 15:10):

In https://github.com/bytecodealliance/wasmtime/pull/8903 I was confused for quite a while why the first commit would cause a segfault. Turns out that it also segfaults with the current commit on the main branch. How did CI pass for it to be merged?

These are the relatively trivial parts split out of #8875. Each commit is a separate improvement.

view this post on Zulip Alex Crichton (Jul 08 2024 at 14:24):

CI turns on optimizations and disables incremental for cross-compiled tests, which might explain a crash locally but not on CI?

view this post on Zulip Alex Crichton (Jul 08 2024 at 14:24):

The command you pasted in the PR passes locally for me though on main

view this post on Zulip Alex Crichton (Jul 08 2024 at 14:24):

so it may also depend on QEMU version? In the past that's sometimes been a bit finnicky as to some versions fault and some don't and we never bottomed it out

view this post on Zulip bjorn3 (Jul 08 2024 at 17:36):

I got the crash for the main branch while running natively on arm64.

view this post on Zulip bjorn3 (Jul 08 2024 at 17:37):

I was using debug mode with incr comp enabled though.

view this post on Zulip bjorn3 (Jul 08 2024 at 17:47):

Reproduces in release mode too:

gh-bjorn3@dev-desktop-eu-1:~/wasmtime$ git rev-parse HEAD
9e22c4e762c78cb6273bb863dbbb03b7d9795e22
gh-bjorn3@dev-desktop-eu-1:~/wasmtime$ git status
On branch main
Your branch is up to date with 'origin/main'.

nothing to commit, working tree clean
gh-bjorn3@dev-desktop-eu-1:~/wasmtime$ cargo test --release --test wast -- --format=pretty --test-threads 1 -- Cranelift/pooling/tests/misc_testsuite/custom-page-sizes/custom-page-sizes.wast
    Finished `release` profile [optimized] target(s) in 0.27s
     Running tests/wast.rs (target/release/deps/wast-18d73d9165bc244a)

running 1 test
test Cranelift/pooling/tests/misc_testsuite/custom-page-sizes/custom-page-sizes.wast ... error: test failed, to rerun pass `--test wast`

Caused by:
  process didn't exit successfully: `/home/gh-bjorn3/wasmtime/target/release/deps/wast-18d73d9165bc244a --format=pretty --test-threads 1 -- Cranelift/pooling/tests/misc_testsuite/custom-page-sizes/custom-page-sizes.wast` (signal: 11, SIGSEGV: invalid memory reference)

view this post on Zulip bjorn3 (Jul 08 2024 at 17:48):

Rebased https://github.com/bytecodealliance/wasmtime/pull/8903 to see if that is enough to make CI pass for it.

These are the relatively trivial parts split out of #8875. Each commit is a separate improvement.

view this post on Zulip Alex Crichton (Jul 08 2024 at 17:58):

do you have anything in ~/.cargo/config.toml that would affect codegen or something like that

view this post on Zulip Alex Crichton (Jul 08 2024 at 17:58):

on aarch64-apple-darwin the command above works for me

view this post on Zulip Alex Crichton (Jul 08 2024 at 17:58):

same commit

view this post on Zulip bjorn3 (Jul 08 2024 at 19:00):

I don't have a ~/.cargo/config.toml.

view this post on Zulip bjorn3 (Jul 08 2024 at 19:00):

I'm running on linux.

view this post on Zulip Alex Crichton (Jul 08 2024 at 19:14):

on arm64 linux I can also reproduce by simply trying to instantiate this module

A fast and secure runtime for WebAssembly. Contribute to bytecodealliance/wasmtime development by creating an account on GitHub.

view this post on Zulip bjorn3 (Jul 08 2024 at 19:20):

https://github.com/bytecodealliance/wasmtime/pull/8903 passes CI after the rebase.

These are the relatively trivial parts split out of #8875. Each commit is a separate improvement.

view this post on Zulip Alex Crichton (Jul 08 2024 at 19:54):

I think CI passes due to WASMTIME_TEST_NO_HOG_MEMORY=1, still digging

view this post on Zulip Alex Crichton (Jul 08 2024 at 20:21):

https://github.com/bytecodealliance/wasmtime/pull/8918 is at least one problem

This commit fixes an issue with static memory initialization and custom page sizes interacting together on aarch64 Linux. (is that specific enough?) When static memory initialization is enabled chu...

Last updated: Dec 23 2024 at 14:03 UTC