You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Windows: version and if you're running under Windows, Cygwin (unsupported), Linux Subsystem: Windows 11 23H2 (22631.3880)
If you're running as a privileged user (root, System):
If you're running in a container, details on the runtime and overlay:
If you're running in a VM, details on the hypervisor:
What you did (as detailed as you can)
Watch directory a
Delete directory a
Build and run in release mode (important)
The app crashes
What you expected
Not crashes
What happened
I can reproduce it with the following code through cargo run --release on Windows:
fnmain(){let p = Path::new("C:\\Users\\ika\\Desktop\\abc");
std::fs::create_dir(p).unwrap();letmut watcher = ::notify::RecommendedWatcher::new(|_| {},Default::default()).unwrap();
watcher.watch(p,::notify::RecursiveMode::NonRecursive).unwrap();// Try to comment on this line you'll see "Exited successfully" printed normally
std::fs::remove_dir_all(p).unwrap();
std::thread::sleep(Duration::from_secs(5));println!("Exited successfully");}
Error message:
error: process didn't exit successfully: `target\release\test.exe` (exit code: 0xc000001d, STATUS_ILLEGAL_INSTRUCTION)
The text was updated successfully, but these errors were encountered:
System details
rustc --version
: rustc 1.79.0 (129f3b996 2024-06-10)What you did (as detailed as you can)
a
a
What you expected
Not crashes
What happened
I can reproduce it with the following code through
cargo run --release
on Windows:Error message:
error: process didn't exit successfully: `target\release\test.exe` (exit code: 0xc000001d, STATUS_ILLEGAL_INSTRUCTION)
The text was updated successfully, but these errors were encountered: