News for hackers. Stuff that matters.
Re:The Deadlock Empire by gfody on Friday December 03, 2021 @02:06PM (#29433841)
the evil scheduler would be useful for catching deadlock bugs early
Re:The Deadlock Empire by Nzen on Friday December 03, 2021 @02:34PM (#29434239)
I don't doubt someone has built something like that for testing, though perhaps not as a library. I'm reminded of a networking service that does the same at a higher level, given its easy to remember name : https://github.com/tylertreat/comcast
Re:The Deadlock Empire by nyanpasu64 on Friday December 03, 2021 @02:50PM (#29434444)
https://github.com/tokio-rs/loom perhaps? It also models weak memory reordering, but takes some work to integrate into existing apps.

For triggering race conditions in compiled binaries, you could try https://robert.ocallahan.org/2016/02/introducing-rr-chaos-mo....

Re:The Deadlock Empire by neerajsi on Saturday December 04, 2021 @03:00AM (#29439471)
There's also https://www.microsoft.com/en-us/research/project/cuzz-concur.... This is part of the Windows App Verifier, so it should be usable for any Windows app.
Re:The Deadlock Empire by reubenbond on Saturday December 04, 2021 @02:34AM (#29439390)
Coyote is a great tool/library from Microsoft for testing large numbers of schedules in .NET programs: https://microsoft.github.io/coyote/