The author shared a bug they encountered in HyperQueue, a distributed task scheduler written in Rust. The bug caused tasks to fail after approximately ten seconds, without producing any output or exit code. Through investigation, they discovered that a commit introducing a task spawning optimization was the culprit. The bug was caused by moving the command spawning to a different thread, leading to the kernel sending a SIGTERM signal to the task when the worker thread died after inactivity. The bug was fixed by reverting the commit. The unusual behavior of the bug made for an interesting bughunting story for the author.
https://kobzol.github.io/rust/2025/02/23/tokio-plus-prctl-equals-nasty-bug.html