tquic 封装一个 client库,使用 libuv 库,在win下面使用 vs2022跑,有崩溃,同样的代码在 ubuntu 虚拟机下面是正常的 #444
-
环境:windows vs2022 ip:192.168.31.6 port:5000
sock:496
connect success
[DEBUG] connect() returned true
[DEBUG] QUIC connection established!
Sender thread started
Connection established
Default stream created: 0
Sent: Hello, QUIC!1
Sent: Hello, QUIC!2
Sent: Hello, QUIC!3
Sent: Hello, QUIC!4
Sent: Hello, QUIC!5
Sent: Hello, QUIC!6
Sent: Hello, QUIC!7
Sent: Hello, QUIC!8
Sent: Hello, QUIC!9
Sent: Hello, QUIC!10
Sent: Hello, QUIC!11
Sent: Hello, QUIC!12
Sent: Hello, QUIC!13
Sent: Hello, QUIC!14thread '
<unnamed>' panicked at src\connection\connection.rs:4041:30:
already borrowed: BorrowMutError
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread '<unnamed>' panicked at core\src\panicking.rs:223:5:
panic in a function that cannot unwind
stack backtrace:
0: 0x7ff63ca7fb11 - std::backtrace_rs::backtrace::dbghelp64::trace
at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869\library/std\src\..\..\backtrace\src\backtrace\dbghelp64.rs:91
1: 0x7ff63ca7fb11 - std::backtrace_rs::backtrace::trace_unsynchronized
at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869\library/std\src\..\..\backtrace\src\backtrace\mod.rs:66
2: 0x7ff63ca7fb11 - std::sys::backtrace::_print_fmt
at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869\library/std\src\sys\backtrace.rs:66
3: 0x7ff63ca7fb11 - std::sys::backtrace::impl$0::print::impl$0::fmt
at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869\library/std\src\sys\backtrace.rs:39
4: 0x7ff63ca3dfba - core::fmt::rt::Argument::fmt
at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869\library/core\src\fmt\rt.rs:177
5: 0x7ff63ca3dfba - core::fmt::write
at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869\library/core\src\fmt\mod.rs:1189
6: 0x7ff63ca7dc17 - std::io::Write::write_fmt<std::sys::pal::windows::stdio::Stderr>
at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869\library/std\src\io\mod.rs:1884
7: 0x7ff63ca7f955 - std::sys::backtrace::BacktraceLock::print
at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869\library/std\src\sys\backtrace.rs:42
8: 0x7ff63ca80f25 - std::panicking::default_hook::closure$1
at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869\library/std\src\panicking.rs:268
9: 0x7ff63ca80d04 - std::panicking::default_hook
at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869\library/std\src\panicking.rs:295
10: 0x7ff63ca815b3 - std::panicking::rust_panic_with_hook
at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869\library/std\src\panicking.rs:801
11: 0x7ff63ca81402 - std::panicking::begin_panic_handler::closure$0
at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869\library/std\src\panicking.rs:667
12: 0x7ff63ca8025f - std::sys::backtrace::__rust_end_short_backtrace<std::panicking::begin_panic_handler::closure_env$0,never$>
at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869\library/std\src\sys\backtrace.rs:170
13: 0x7ff63ca8103e - std::panicking::begin_panic_handler
at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869\library/std\src\panicking.rs:665
14: 0x7ff63cbd5045 - core::panicking::panic_nounwind_fmt
at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869\library/core\src\intrinsics\mod.rs:3535
15: 0x7ff63cbd50f3 - core::panicking::panic_nounwind
at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869\library/core\src\panicking.rs:223
16: 0x7ff63cbd5171 - core::panicking::panic_cannot_unwind
at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869\library/core\src\panicking.rs:315
17: 0x7ff63ca36194 - quic_endpoint_process_connections
Sent: Hello, QUIC!15
18: 0x7fffadbc1060 - <unknown>
19: 0x7fffadbc4d38 - is_exception_typeof
20: 0x7fffe05d4cb6 - RtlCaptureContext2
21: 0x7ff63ca3601f - quic_endpoint_process_connections
22: 0x7ff63cb2c81a - QuicClient::processConnections
at C:\code\tquic\demo\quic_client.cpp:377
23: 0x7ff63cb2f56e - uv__run_timers
24: 0x7ff63cb2e322 - uv_run
25: 0x7ff63cb2ac3f - QuicClient::run
at C:\code\tquic\demo\quic_client.cpp:373
26: 0x7ff63cb2ac3f - main
Sent: Hello, QUIC!16
at C:\code\tquic\demo\main_client.cpp:45
27: 0x7ff63cbd3f78 - invoke_main
at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
28: 0x7ff63cbd3f78 - __scrt_common_main_seh
at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
29: 0x7fffdf79259d - BaseThreadInitThunk
30: 0x7fffe058af38 - RtlUserThreadStart
thread caused non-unwinding panic. aborting.
[qa.txt](https://github.com/user-attachments/files/19147161/qa.txt) |
Beta Was this translation helpful? Give feedback.
Answered by
yflisa
Mar 9, 2025
Replies: 1 comment
-
查到原因了 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
yflisa
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
查到原因了