Oops, e-mail left a bit early with a wording that wasn't optimal... I will try again...
Merge request: https://gitlab.freedesktop.org/polkit/polkit/-/merge_requests/140 We discovered a race condition in the handling of runaway script which is not triggered very often but causes a failure when it occurs. The root cause is the lack of mutex lock/unlock protection around a section of code that updates the condition variable and calls the pthread_cond_signal() variable. Let me know if you have any questions. Kind regards, Laurent. On Tue, Oct 18, 2022 at 2:41 PM Laurent Gauthier <laurent.gauth...@soccasys.com> wrote: > > Hi all, > > Just a quick note to bring your attention to a merge request I have created: > > * https://gitlab.freedesktop.org/polkit/polkit/-/merge_requests/140 > > We discovered a a race condition in the execution of duktape rules > which is not triggered very often > but when it is results in > > The root-cause it appears is the lack of mutex lock/unlock operation > around the update of the return > AND the pthread_cond_signal(). > > Let me know if you have any questions. > > Kind regards, Laurent. > -- > Laurent Gauthier > Embedded Linux Systems & Software > Phone: +33 630 483 429 > https://soccasys.com -- Laurent Gauthier Embedded Linux Systems & Software Phone: +33 630 483 429 https://soccasys.com