Info
This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Program compiled with the new version of Rust crash on Win11
Old code can't be compiled with the new version of Rust.
When I try to compile my old code that used to work well, I get an error.
this is an inference error on crate `time` caused by an API change in Rust 1.80.0; update `time` to version `>=0.3.35` by calling `cargo update`
So I had to use cargo update -p time
.Successfully compiled without warnings or errors.
But the program(debug and release) crash on win11 without any error message. Works fine on win10.
It's the same even with cargo update
.
I tried to get a little bit of information with Procdump.The program crashed so fast that I couldn't enter the corresponding pid in the command.So I started this program with x64dbg and was able to find the pid. Detach and quickly execute the ProcDump command.
Got a little bit of information
[00:54:25] Exception: C0000005.ACCESS_VIOLATION
[00:54:25] Unhandled: C000041D
Use WinDbg to view dmp file
uiautomationcore!EventMap::AddEntry+0x84:
00007ff9`cdd6e254 488b4008 mov rax,qword ptr [rax+8] ds:feeefeee`feeefef6=????????????????
I don't have unsafe in my code. I'm wondering how to determine which dependency or rust itself is causing the problem.
(I found the program I saved that I compiled in the past, and it works very well on win10 and win11.)
8 posts - 4 participants
🏷️ rust_feed