Skip to content

Investigate CI failure on Windows #588

Description

@Wodann

Investigate this CI failure:

──── STDERR:             mun_runtime::memory map_array_to_array_different_array_to_struct_same

thread 'notify-rs windows loop' panicked at crates\mun_runtime\src\lib.rs:264:26:
Failed to send filesystem event.: SendError { .. }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

thread 'notify-rs windows loop' panicked at library\core\src\panicking.rs:218:5:
panic in a function that cannot unwind
stack backtrace:
   0:     0x7ff7a77b4c21 - std::backtrace_rs::backtrace::win64::trace
                               at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\std\src\..\..\backtrace\src\backtrace\win64.rs:85
   1:     0x7ff7a77b4c21 - std::backtrace_rs::backtrace::trace_unsynchronized
                               at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\std\src\..\..\backtrace\src\backtrace\mod.rs:66
   2:     0x7ff7a77b4c21 - std::sys::backtrace::_print_fmt
                               at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\std\src\sys\backtrace.rs:66
   3:     0x7ff7a77b4c21 - std::sys::backtrace::impl$0::print::impl$0::fmt
                               at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\std\src\sys\backtrace.rs:39
   4:     0x7ff7a77dd23a - core::fmt::rt::Argument::fmt
                               at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\core\src\fmt\rt.rs:177
   5:     0x7ff7a77dd23a - core::fmt::write
                               at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\core\src\fmt\mod.rs:1449
   6:     0x7ff7a77aed77 - std::io::Write::write_fmt<std::sys::pal::windows::stdio::Stderr>
                               at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\std\src\io\mod.rs:1890
   7:     0x7ff7a77b4a65 - std::sys::backtrace::BacktraceLock::print
                               at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\std\src\sys\backtrace.rs:42
   8:     0x7ff7a77b7090 - std::panicking::default_hook::closure$0
                               at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\std\src\panicking.rs:298
   9:     0x7ff7a77b6e81 - std::panicking::default_hook
                               at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\std\src\panicking.rs:325
  10:     0x7ff7a77b7c6f - std::panicking::rust_panic_with_hook
                               at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\std\src\panicking.rs:831
  11:     0x7ff7a77b79d2 - std::panicking::begin_panic_handler::closure$0
                               at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\std\src\panicking.rs:697
  12:     0x7ff7a77b578f - std::sys::backtrace::__rust_end_short_backtrace<std::panicking::begin_panic_handler::closure_env$0,never$>
                               at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\std\src\sys\backtrace.rs:168
  13:     0x7ff7a77b760e - std::panicking::begin_panic_handler
                               at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\std\src\panicking.rs:695
  14:     0x7ff7aa30faa5 - core::panicking::panic_nounwind_fmt
                               at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\core\src\intrinsics\mod.rs:3886
  15:     0x7ff7aa30fb53 - core::panicking::panic_nounwind
                               at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\core\src\panicking.rs:218
  16:     0x7ff7aa30fd11 - core::panicking::panic_cannot_unwind
                               at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\core\src\panicking.rs:323
  17:     0x7ff7a75eba16 - <notify[bf624afb2150600b]::windows::ReadDirectoryChangesServer>::start::{closure#0}
  18:     0x7ff7aa2d2680 - _CallSettingFrame
                               at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\amd64\handlers.asm:49
  19:     0x7ff7aa2d1a66 - __FrameHandler3::FrameUnwindToState
                               at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\frame.cpp:1222
  20:     0x7ff7aa2cdecc - __FrameHandler3::FrameUnwindToEmptyState
                               at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\risctrnsctrl.cpp:255
  21:     0x7ff7aa2d0d5d - __InternalCxxFrameHandler<__FrameHandler3>
                               at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\frame.cpp:355
  22:     0x7ff7aa2ce7e5 - __CxxFrameHandler3
                               at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\risctrnsctrl.cpp:281
  23:     0x7ffe0528496f - _chkstk
  24:     0x7ffe0520f1cc - RtlUnwindEx
  25:     0x7ff7aa2ce392 - __FrameHandler3::UnwindNestedFrames
                               at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\risctrnsctrl.cpp:759
  26:     0x7ff7aa2cf995 - CatchIt<__FrameHandler3>
                               at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\frame.cpp:1326
  27:     0x7ff7aa2cfdae - FindHandler<__FrameHandler3>
                               at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\frame.cpp:670
  28:     0x7ff7aa2d0e59 - __InternalCxxFrameHandler<__FrameHandler3>
                               at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\frame.cpp:396
  29:     0x7ff7aa2ce7e5 - __CxxFrameHandler3
                               at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\risctrnsctrl.cpp:281
  30:     0x7ffe052848ef - _chkstk
  31:     0x7ffe0521192e - RtlVirtualUnwind2
  32:     0x7ffe0522fb01 - RtlRaiseException
  33:     0x7ffe029af47c - RaiseException
  34:     0x7ff7aa2cea37 - _CxxThrowException
                               at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\throw.cpp:79
  35:     0x7ff7a77cad50 - panic_unwind::imp::panic
                               at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\panic_unwind\src\seh.rs:350
  36:     0x7ff7a77cad50 - panic_unwind::__rust_start_panic
                               at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\panic_unwind\src\lib.rs:99
  37:     0x7ff7a77b7fa5 - std::panicking::rust_panic
                               at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\std\src\panicking.rs:892
  38:     0x7ff7a77b7ce7 - std::panicking::rust_panic_with_hook
                               at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\std\src\panicking.rs:856
  39:     0x7ff7a77b7a09 - std::panicking::begin_panic_handler::closure$0
                               at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\std\src\panicking.rs:704
  40:     0x7ff7a77b578f - std::sys::backtrace::__rust_end_short_backtrace<std::panicking::begin_panic_handler::closure_env$0,never$>
                               at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\std\src\sys\backtrace.rs:168
  41:     0x7ff7a77b760e - std::panicking::begin_panic_handler
                               at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\std\src\panicking.rs:695
  42:     0x7ff7aa30fa51 - core::panicking::panic_fmt
                               at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\core\src\panicking.rs:75
  43:     0x7ff7aa30ff60 - core::result::unwrap_failed
                               at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\core\src\result.rs:1704
  44:     0x7ff7a75a1004 - <core[379ed1e85498c8da]::result::Result<(), std[69e129e0dd256456]::sync::mpsc::SendError<core[379ed1e85498c8da]::result::Result<notify[bf624afb2150600b]::event::Event, notify[bf624afb2150600b]::error::Error>>>>::expect
  45:     0x7ff7a759661a - <mun_runtime[602e9e35804b53d4]::Runtime>::new::{closure#0}
  46:     0x7ff7a7595460 - <<mun_runtime[602e9e35804b53d4]::Runtime>::new::{closure#1} as notify[bf624afb2150600b]::EventHandler>::handle_event
  47:     0x7ff7a75ebad5 - <notify[bf624afb2150600b]::windows::ReadDirectoryChangesServer>::start::{closure#0}
  48:     0x7ff7a75ebc36 - <notify[bf624afb2150600b]::windows::ReadDirectoryChangesServer>::start::{closure#0}
  49:     0x7ff7a75eb632 - <notify[bf624afb2150600b]::windows::ReadDirectoryChangesServer>::start::{closure#0}
  50:     0x7ffe0528377e - KiUserApcDispatcher
  51:     0x7ffe0527fa14 - ZwWaitForSingleObject
  52:     0x7ffe029ada4e - WaitForSingleObjectEx
  53:     0x7ff7a75e9a36 - <notify[bf624afb2150600b]::windows::ReadDirectoryChangesServer>::start::{closure#0}
  54:     0x7ff7a75e9704 - <notify[bf624afb2150600b]::windows::ReadDirectoryChangesServer>::start::{closure#0}
  55:     0x7ff7a75dd179 - std[69e129e0dd256456]::sys::backtrace::__rust_begin_short_backtrace::<<notify[bf624afb2150600b]::windows::ReadDirectoryChangesServer>::start::{closure#0}, ()>
  56:     0x7ff7a75ee383 - <std[69e129e0dd256456]::thread::Builder>::spawn_unchecked_::<<notify[bf624afb2150600b]::windows::ReadDirectoryChangesServer>::start::{closure#0}, ()>::{closure#1}::{closure#0}
  57:     0x7ff7a75e9354 - RNvXsn_NtNtCs4M45Py2ANNS_4core5panic11unwind_safeINtB5_16AssertUnwindSafeNCNCINvMNtCs95AQCFfcpgw_3std6threadNtB1h_7Builder16spawn_unchecked_NCNvMNtCsgqJp02pf5HP_6notify7windowsNtB2j_26ReadDirectoryChangesServer5start0uEs_00EINtNtNtB9_3ops8function6FnOnceuE
  58:     0x7ff7a75fd6d4 - std[69e129e0dd256456]::panicking::try::do_call::<core[379ed1e85498c8da]::panic::unwind_safe::AssertUnwindSafe<<std[69e129e0dd256456]::thread::Builder>::spawn_unchecked_<<notify[bf624afb2150600b]::windows::ReadDirectoryChangesServer>::start::{closure#0}, ()>::{closure#1}::{closure#0}>, ()>
  59:     0x7ff7a75ef473 - <std[69e129e0dd256456]::thread::ThreadId as core[379ed1e85498c8da]::cmp::PartialEq>::ne
  60:     0x7ff7a75ee065 - <std[69e129e0dd256456]::thread::Builder>::spawn_unchecked_::<<notify[bf624afb2150600b]::windows::ReadDirectoryChangesServer>::start::{closure#0}, ()>::{closure#1}
  61:     0x7ff7a75dd969 - <<std[69e129e0dd256456]::thread::Builder>::spawn_unchecked_<<notify[bf624afb2150600b]::windows::ReadDirectoryChangesServer>::start::{closure#0}, ()>::{closure#1} as core[379ed1e85498c8da]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  62:     0x7ff7a77c64dd - alloc::boxed::impl$28::call_once
                               at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\alloc\src\boxed.rs:1976
  63:     0x7ff7a77c64dd - alloc::boxed::impl$28::call_once
                               at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\alloc\src\boxed.rs:1976
  64:     0x7ff7a77c64dd - std::sys::pal::windows::thread::impl$0::new::thread_start
                               at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\std\src\sys\pal\windows\thread.rs:56
  65:     0x7ffe042b4cb0 - BaseThreadInitThunk
  66:     0x7ffe0525edcb - RtlUserThreadStart
thread caused non-unwinding panic. aborting.

       ABORT [   3.517s] mun_runtime::memory map_array_to_array_different_array_to_struct_same
           - with code 0xc0000409: The system detected an overrun of a stack-based buffer in this application. This overrun could potentially allow a malicious user to gain control of this application. (os error 1282)
error: test run failed
error: process didn't exit successfully: `\\?\C:\Users\runneradmin\.rustup\toolchains\1.86.0-x86_64-pc-windows-msvc\bin\cargo.exe nextest run --manifest-path D:\a\mun\mun\Cargo.toml --target-dir C:\cargo-target-dir\llvm-cov-target --all-features --workspace --profile ci` (exit code: 100)
Error: The process 'C:\Users\runneradmin\.cargo\bin\cargo.exe' failed with exit code 1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions