Skip to content
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

TCP: sporadic integration tests failure #67

Closed
badeend opened this issue Oct 25, 2023 · 4 comments
Closed

TCP: sporadic integration tests failure #67

badeend opened this issue Oct 25, 2023 · 4 comments

Comments

@badeend
Copy link
Collaborator

badeend commented Oct 25, 2023

bytecodealliance/wasmtime#7373

@alexcrichton
Copy link
Contributor

For some more background, the test failure is here, although that link will probably go away in a few months.

Failure logs are:

failures:

---- async_::preview2_tcp_sockopts stdout ----
preopen: TempDir { path: "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\wasi_components_preview2_tcp_sockopts.component_AJmWpM" }
[guest] stderr:
thread 'main' panicked at crates\test-programs\src\bin\preview2_tcp_sockopts.rs:16:5:
assertion `left == right` failed
  left: true
 right: false
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

===
thread 'async_::preview2_tcp_sockopts' panicked at crates\wasi\tests\all\async_.rs:305:55:
called `Result::unwrap()` on an `Err` value: error while executing at wasm backtrace:
    0: 0x11fc3 - <unknown>!__rust_start_panic
    1: 0x11e13 - <unknown>!rust_panic
    2: 0x11df0 - <unknown>!std::panicking::rust_panic_with_hook::hc93abff18edee779
    3: 0x1119c - <unknown>!std::panicking::begin_panic_handler::{{closure}}::h922bcdd9c6fdedfb
    4: 0x110c9 - <unknown>!std::sys_common::backtrace::__rust_end_short_backtrace::h2597d6ecb1d3419e
    5: 0x1170b - <unknown>!rust_begin_unwind
    6: 0x16693 - <unknown>!core::panicking::panic_fmt::h35d9e7e9c02f9eb5
    7: 0x18778 - <unknown>!core::panicking::assert_failed_inner::h1349768c866a993e
    8: 0x2bb7 - <unknown>!core::panicking::assert_failed::hfff6c709fc76e6d9
    9: 0x2fff - <unknown>!preview2_tcp_sockopts::test_tcp_sockopt_defaults::h6ddd327a0789600d
   10: 0x7791 - <unknown>!preview2_tcp_sockopts::main::he71c63222c6e5513
   11: 0x20b9 - <unknown>!core::ops::function::FnOnce::call_once::h1de15351afbb525d
   12: 0x2090 - <unknown>!std::sys_common::backtrace::__rust_begin_short_backtrace::h958e61dc07273f6f
   13: 0x2171 - <unknown>!std::rt::lang_start::{{closure}}::hb580c779a4c8841c
   14: 0xf5f7 - <unknown>!std::rt::lang_start_internal::h394de9c4666f4612
   15: 0x211c - <unknown>!std::rt::lang_start::h8991cdf32c426374
   16: 0x7939 - <unknown>!__main_void
   17: 0x206b - <unknown>!_start
   18: 0x2e6667 - wit-component:adapter:wasi_snapshot_preview1!wasi:cli/run@0.2.0-rc-2023-11-05#run
note: using the `WASMTIME_BACKTRACE_DETAILS=1` environment variable may show more debugging information

Caused by:
    wasm trap: wasm `unreachable` instruction executed
stack backtrace:
   0: rust_begin_unwind
             at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library\std\src/panicking.rs:595:5
   1: core::panicking::panic_fmt
             at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library\core\src/panicking.rs:67:14
   2: core::result::unwrap_failed
             at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library\core\src/result.rs:1652:5
   3: core::result::Result<T,E>::unwrap
   4: all::async_::preview2_tcp_sockopts::{{closure}}::test_impl::{{closure}}
   5: all::async_::preview2_tcp_sockopts::{{closure}}
   6: <core::pin::Pin<P> as core::future::future::Future>::poll
   7: tokio::runtime::park::CachedParkThread::block_on::{{closure}}
   8: tokio::runtime::park::CachedParkThread::block_on
   9: tokio::runtime::context::blocking::BlockingRegionGuard::block_on
  10: tokio::runtime::scheduler::multi_thread::MultiThread::block_on::{{closure}}
  11: tokio::runtime::context::runtime::enter_runtime
             at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library\core\src/result.rs:1652:5
   3: core::result::Result<T,E>::unwrap
   4: all::sync::preview2_tcp_sockopts::test_impl
   5: all::sync::preview2_tcp_sockopts
   6: all::sync::preview2_tcp_sockopts::{{closure}}
   7: core::ops::function::FnOnce::call_once
   8: core::ops::function::FnOnce::call_once
             at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library\core\src\ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.


failures:
    async_::preview2_tcp_sockopts
    sync::preview2_tcp_sockopts

test result: FAILED. 170 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 216.38s

where the failing assertion is here

@alexcrichton
Copy link
Contributor

My assertion that this was spurious I think may in fact actually be a false conjecture instead. Failures happened twice on the same PR on the same test. I'm going to debug further there.

@alexcrichton
Copy link
Contributor

Ok tracked this down to bytecodealliance/rustix#901, apologies for the noise!

@badeend
Copy link
Collaborator Author

badeend commented Oct 26, 2023

Ah, nice find! Good to know this is resolved.
Thanks

@badeend badeend closed this as completed Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants