Stream: git-wasmtime

Topic: wasmtime / issue #3857 Stack overflow tests don't work on...


view this post on Zulip Wasmtime GitHub notifications bot (Feb 28 2022 at 15:00):

alexcrichton opened issue #3857:

This past Friday some tests were done on CI - https://github.com/bytecodealliance/wasmtime/pull/3853 - to figure out what was going wrong and the culprit ended up being the stack overflow tests on Windows. Our testing efforts were thwarted by the fact that if the test harness is run with --test-threads 1 then stack overflow tests will all legitimately stack overflow on Windows, presumably because we're by default giving too much stack space to WebAssembly.

This can be reproduced locally on Windows with:

$ cargo test --test all -- --test-threads 1

The best fix for this is likely to decrease the default amount of stack given to WebAssembly (specified here), perhaps only on Windows.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 28 2022 at 15:22):

alexcrichton commented on issue #3857:

I'm performing a test run at https://github.com/alexcrichton/wasmtime/actions/runs/1911049688 to see what happens when we limit the stack size of wasm for the entire test suite, and then run the tests on windows with --test-threads 1

view this post on Zulip Wasmtime GitHub notifications bot (Feb 28 2022 at 15:32):

alexcrichton edited a comment on issue #3857:

I'm performing a test run at https://github.com/alexcrichton/wasmtime/actions/runs/1911049688 https://github.com/alexcrichton/wasmtime/actions/runs/1911091901 to see what happens when we limit the stack size of wasm for the entire test suite, and then run the tests on windows with --test-threads 1

view this post on Zulip Wasmtime GitHub notifications bot (Feb 28 2022 at 15:54):

alexcrichton commented on issue #3857:

Learnings so far:

view this post on Zulip Wasmtime GitHub notifications bot (Feb 28 2022 at 18:18):

alexcrichton closed issue #3857:

This past Friday some tests were done on CI - https://github.com/bytecodealliance/wasmtime/pull/3853 - to figure out what was going wrong and the culprit ended up being the stack overflow tests on Windows. Our testing efforts were thwarted by the fact that if the test harness is run with --test-threads 1 then stack overflow tests will all legitimately stack overflow on Windows, presumably because we're by default giving too much stack space to WebAssembly.

This can be reproduced locally on Windows with:

$ cargo test --test all -- --test-threads 1

The best fix for this is likely to decrease the default amount of stack given to WebAssembly (specified here), perhaps only on Windows.


Last updated: Dec 23 2024 at 12:05 UTC