Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Condition.wait inside Event is not protected against spurious wakeups #7013
Original bug ID: 7013
Condition.wait at Line 87 (
See for example: ocsigen/lwt#186
Steps to reproduce
It's difficult to reproduce this failure, it varies too much between different standard libraries and os kernels, when a wakeup is triggered. So I can't provide any reference code to demonstrate it.
Comment author: sebmondet
Hi (I'm the original poster of ocsigen/lwt#186)
I had that bug happening relatively often (but only on MacOSX I think).
I've been trying since yesterday with Xavier's commit: 307f55a
I haven't seen any thread dying with the backtrace so far with the patch in.