Skip to content

Tests crash on Linux #357

@renshyle

Description

@renshyle

Crashes like this are observed when running the test suite:

Restore complete (0.6s)
  Wasmtime netstandard2.0 succeeded (2.0s) → src/bin/Debug/netstandard2.0/Wasmtime.Dotnet.dll
  Wasmtime netstandard2.1 succeeded (2.2s) → src/bin/Debug/netstandard2.1/Wasmtime.Dotnet.dll
  Wasmtime net8.0 succeeded (2.3s) → src/bin/Debug/net8.0/Wasmtime.Dotnet.dll
  Wasmtime net9.0 succeeded (2.4s) → src/bin/Debug/net9.0/Wasmtime.Dotnet.dll
  Wasmtime.Tests net9.0 succeeded (0.1s) → tests/bin/Debug/net9.0/Wasmtime.Tests.dll
[xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v2.8.1+ce9211e970 (64-bit .NET 9.0.14)
[xUnit.net 00:00:00.06]   Discovering: Wasmtime.Tests
[xUnit.net 00:00:00.12]   Discovered:  Wasmtime.Tests
[xUnit.net 00:00:00.12]   Starting:    Wasmtime.Tests
thread '<unnamed>' (414349) panicked at crates/c-api/src/val.rs:325:22:
unknown wasmtime_valkind_t: 160
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[xUnit.net 00:00:00.17]     Wasmtime.Tests.Memory64AccessTests.ItThrowsForOutOfBoundsAccess [SKIP]
[xUnit.net 00:00:00.17]       Test consumes too much memory for CI
The active test run was aborted. Reason: Test host process crashed : thread '<unnamed>' (414349) panicked at crates/c-api/src/val.rs:325:22:
unknown wasmtime_valkind_t: 160
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

  Wasmtime.Tests test net9.0 failed with 1 error(s) (1.3s)
    /home/renshyle/tmp/wasmtime-dotnet/tests/bin/Debug/net9.0/Wasmtime.Tests.dll : error TESTRUNABORT: Test Run Aborted.

Build failed with 1 error(s) in 8.2s

But also other kinds of errors on other attemps, such as ones where a test crashes without any message:

Restore complete (0.6s)
  Wasmtime netstandard2.0 succeeded (2.0s) → src/bin/Debug/netstandard2.0/Wasmtime.Dotnet.dll
  Wasmtime net8.0 succeeded (2.2s) → src/bin/Debug/net8.0/Wasmtime.Dotnet.dll
  Wasmtime net9.0 succeeded (2.4s) → src/bin/Debug/net9.0/Wasmtime.Dotnet.dll
  Wasmtime netstandard2.1 succeeded (2.3s) → src/bin/Debug/netstandard2.1/Wasmtime.Dotnet.dll
  Wasmtime.Tests net9.0 succeeded (0.0s) → tests/bin/Debug/net9.0/Wasmtime.Tests.dll
[xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v2.8.1+ce9211e970 (64-bit .NET 9.0.14)
[xUnit.net 00:00:00.06]   Discovering: Wasmtime.Tests
[xUnit.net 00:00:00.12]   Discovered:  Wasmtime.Tests
[xUnit.net 00:00:00.12]   Starting:    Wasmtime.Tests
[xUnit.net 00:00:00.17]     Wasmtime.Tests.Memory64AccessTests.ItThrowsForOutOfBoundsAccess [SKIP]
[xUnit.net 00:00:00.17]       Test consumes too much memory for CI
The active test run was aborted. Reason: Test host process crashed
  Wasmtime.Tests test net9.0 failed with 1 error(s) (1.3s)
    /home/renshyle/tmp/wasmtime-dotnet/tests/bin/Debug/net9.0/Wasmtime.Tests.dll : error TESTRUNABORT: Test Run Aborted.

Build failed with 1 error(s) in 8.2s

Reproduction steps

  • Be on Linux (Windows might work too for all I know)
  • git clone https://github.com/bytecodealliance/wasmtime-dotnet
  • cd wasmtime-dotnet
  • dotnet test Wasmtime.sln

I reproduced this on a fresh Debian 13 install in a VM.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions