A detailed analysis of a bug in HyperQueue where tasks were unexpectedly terminated after 10 seconds due to an interaction between tokio thread management, PR_SET_PDEATHSIG, and process spawning optimization. The bug emerged from moving process spawning to a worker thread, causing processes to receive SIGTERM when tokio cleaned up idle threads.
https://kobzol.github.io/rust/2025/02/23/tokio-plus-prctl-equals-nasty-bug.html
#debugging #rust #concurrency #linux #processmanagement