# Is there a known recent Linux locking bug that affects the OCaml runtime?

**URL:** <https://discuss.ocaml.org/t/is-there-a-known-recent-linux-locking-bug-that-affects-the-ocaml-runtime/6542>\
**Category:** Ecosystem\
**Created:** [October 2, 2020, 4:43pm UTC](https://discuss.ocaml.org/t/is-there-a-known-recent-linux-locking-bug-that-affects-the-ocaml-runtime/6542 "2020-10-02T16:43:52Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![edwin](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/edwin/32/627_2.png) [@edwin](https://discuss.ocaml.org/u/edwin)\
**Post date:** [January 25, 2025, 9:59pm UTC](https://discuss.ocaml.org/t/is-there-a-known-recent-linux-locking-bug-that-affects-the-ocaml-runtime/6542/21 "2025-01-25T21:59:11Z")

</div>

Finally some good news!

The glibc fixes have been committed upstream, see commit hashes listed here:  
[https://sourceware.org/bugzilla/show\_bug.cgi?id=25847#c72](https://sourceware.org/bugzilla/show_bug.cgi?id=25847#c72)

They have also been backported to the glibc package that will be in Fedora 42:  
[https://bugzilla.redhat.com/show\_activity.cgi?id=1889892](https://bugzilla.redhat.com/show_activity.cgi?id=1889892)  
[https://src.fedoraproject.org/rpms/glibc/c/f7aa0c142598fe50cbaa3430cecda7e96ce7027f?branch=rawhide](https://src.fedoraproject.org/rpms/glibc/c/f7aa0c142598fe50cbaa3430cecda7e96ce7027f?branch=rawhide)  
Fixed In Version glibc-2.40.9000-30.fc42

(note that upstream’s 2.40.9000 doesn’t include these yet, just Fedora’s package)

---

<div class="post-metadata">

**Author:** ![mbacarella](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/mbacarella/32/6765_2.png) [@mbacarella](https://discuss.ocaml.org/u/mbacarella)\
**Post date:** [October 20, 2025, 5:35pm UTC](https://discuss.ocaml.org/t/is-there-a-known-recent-linux-locking-bug-that-affects-the-ocaml-runtime/6542/22 "2025-10-20T17:35:29Z")

</div>

Please don’t ban me for linking to a talk at a C++ convention but I thought this would be of general interest to us elite language enjoyers who have been haunted by this bug.

[Malte Skarupke gave a presentation on how he diagnosed and (provably!) fixed this bug](https://www.youtube.com/watch?v=Brgfp7_OP2c). He insists mere mortals can learn some basic TLA+ to solve their own excruciatingly rare pthread condition variable corruption issues in standard glibc infrastructure.

I appreciate the talk and the closure!

[Previous page](https://discuss.ocaml.org/t/is-there-a-known-recent-linux-locking-bug-that-affects-the-ocaml-runtime/6542.md?page=1)
