Subject: Re: bug#61058: [PATCH v2] Fix asymetric mutex locking when joining thread.

From: Ludovic Courtès <[email-masked]>
Date: Thu, 25 Jan 2024 23:14:26 +0100

Hello,

Olivier Dion <[email-masked]> skribis:

> If `join-thread' timeout, the thread mutex is not unlocked, resulting in
> deadlock to the next call to it or deadlock of the thread itself when it
> terminates.
>
> Thus, always unlock the mutex.
>
> Fix: #55356
>
> * module/ice-9/threads.scm (join-thread): Always unlock thread mutex.
> * test-suite/tests/threads.test (join-thread): New test to ensure the
> mutex is released

Pushed as 455ee49f5573baa1bc5237a8d49083ce588a13ee with a ‘NEWS’ entry
and an additional comment in the test.

Thanks!

Ludo’.