The tokio tag covers discussions about the Tokio asynchronous runtime for Rust, including security vulnerabilities, bug fixes, and best practices. A key topic is CVE-2021-38191, a task-abort safety issue fixed in version 1.8.x where JoinHandle::abort could drop a task's future on the wrong thread, violating Rust's thread-safety guarantees for non-Send data. This affected applications using LocalSet or spawn_local, potentially causing race conditions and crashes. The tag also includes general troubleshooting and updates related to Tokio's async runtime, task management, and thread safety in Rust systems programming.
-
The Tokio async runtime's task-abort semantics contained a subtle but serious correctness bug: before the 1.8.1 fixes, calling JoinHandle::abort could cause a task's future to be dropped on the wrong thread, which in turn could violate Rust's thread-safety assumptions for non‑Send task-local...