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

std::sys::windows::thread_parker::keyed_event_handle keyed events not available #1555

Closed
brandonros opened this issue Jun 6, 2022 · 2 comments

Comments

@brandonros
Copy link

Loading DLL: C:\dpdu-http\dpdu-http-vpi.dll
thread '<unnamed>' panicked at 'keyed events not available', library\std\src\sys\windows\c.rs:1261:9
stack backtrace:
   0: 0x68a8527a - core::fmt::write
                       at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e\/library\core\src\fmt\mod.rs:1194
   1: 0x68a67001 - std::io::Write::write_fmt<std::sys::windows::stdio::Stderr>
                       at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e\/library\std\src\io\mod.rs:1655
   2: 0x68a6ff3c - std::sys_common::backtrace::_print
                       at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e\/library\std\src\sys_common\backtrace.rs:48
   3: 0x68a6ff3c - std::sys_common::backtrace::print
                       at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e\/library\std\src\sys_common\backtrace.rs:35
   4: 0x68a6ff3c - std::panicking::default_hook::closure$1
                       at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e\/library\std\src\panicking.rs:295
   5: 0x68a6fb28 - std::panicking::default_hook
                       at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e\/library\std\src\panicking.rs:314
   6: 0x68a70627 - std::panicking::rust_panic_with_hook
                       at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e\/library\std\src\panicking.rs:698
   7: 0x68a704d6 - std::panicking::begin_panic_handler::closure$0
                       at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e\/library\std\src\panicking.rs:586
   8: 0x68a6e5af - std::sys_common::backtrace::__rust_end_short_backtrace<std::panicking::begin_panic_handler::closure_env$0,never$>
                       at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e\/library\std\src\sys_common\backtrace.rs:138
   9: 0x68a701a2 - std::panicking::begin_panic_handler
                       at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e\/library\std\src\panicking.rs:584
  10: 0x68a8e9cf - core::panicking::panic_fmt
                       at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e\/library\core\src\panicking.rs:143
  11: 0x68a73ada - std::sys::windows::thread_parker::keyed_event_handle
                       at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e\/library\std\src\sys\windows\thread_parker.rs:233
  12: 0x68a631f4 - std::sys::windows::thread_parker::Parker::park
                       at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e\/library\std\src\sys\windows\thread_parker.rs:125
  13: 0x68a631f4 - std::thread::park
                       at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e\/library\std\src\thread\mod.rs:926
  14: 0x682f973a - reqwest::blocking::wait::timeout<tokio::sync::oneshot::Receiver<enum$<core::result::Result<tuple$<>,reqwest::error::Error>, 1, 4294967295, Err> >,enum$<core::result::Result<tuple$<>,reqwest::error::Error>, 1, 4294967295, Err>,tokio::sync::oneshot::error::
                       at C:\Users\Brandon\.cargo\registry\src\github.com-1285ae84e5963aae\reqwest-0.11.10\src\blocking\wait.rs:50
  15: 0x6829d690 - reqwest::blocking::client::ClientHandle::new
                       at C:\Users\Brandon\.cargo\registry\src\github.com-1285ae84e5963aae\reqwest-0.11.10\src\blocking\client.rs:1001
  16: 0x6829cdd6 - reqwest::blocking::client::ClientBuilder::build
                       at C:\Users\Brandon\.cargo\registry\src\github.com-1285ae84e5963aae\reqwest-0.11.10\src\blocking\client.rs:103
  17: 0x6829ce98 - reqwest::blocking::client::Client::new
                       at C:\Users\Brandon\.cargo\registry\src\github.com-1285ae84e5963aae\reqwest-0.11.10\src\blocking\client.rs:803
  18: 0x680b22c5 - core::ops::function::FnOnce::call_once<reqwest::blocking::client::Client (*)(),tuple$<> >
                       at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e\library\core\src\ops\function.rs:227
  19: 0x6827f7d8 - core::mem::replace<enum$<core::option::Option<lazy_static::lazy::impl$0::get::closure_env$0<reqwest::blocking::client::Client,reqwest::blocking::client::Client (*)()> >, 1, 4294967295, Some> >
                       at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e\library\core\src\mem\mod.rs:899
  20: 0x6816ec49 - std::sync::once::impl$4::call_once::closure$0<lazy_static::lazy::impl$0::get::closure_env$0<reqwest::blocking::client::Client,reqwest::blocking::client::Client (*)()> >
                       at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e\library\std\src\sync\once.rs:276
  21: 0x6816eb57 - std::sync::once::Once::call_once<lazy_static::lazy::impl$0::get::closure_env$0<reqwest::blocking::client::Client,reqwest::blocking::client::Client (*)()> >
                       at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e\library\std\src\sync\once.rs:276
  22: 0x680c4edd - vpi::impl$1::initialize
                       at C:\Users\Brandon\.cargo\registry\src\github.com-1285ae84e5963aae\lazy_static-1.4.0\src\lib.rs:149
  23: 0x77a25dce - RtlAllocateHeap
  24: 0x77a25dce - RtlAllocateHeap
set PATH=%PATH%;C:\msys64\mingw32\bin
set CARGO_TARGET_DIR=C:/Users/Brandon/Desktop/dpdu-http/x86-target/
cargo +stable-i686-pc-windows-msvc build
@seanmonstar
Copy link
Owner

Well that's an interesting issue. Seems like something to file on the main Rust repo, that's something in the standard library.

@brandonros
Copy link
Author

closing in favor of mmastrac/rust-ctor#219

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