[PATCH v2 0/1] MR29: mfplat: Avoid a race condition when releasing a tracked sample.

Giovanni Mascellani (@giomasce) wine at gitlab.winehq.org
Tue May 10 08:43:09 CDT 2022


On Tue May 10 13:43:09 2022 +0000, Nikolay Sivov wrote:
> Turns out I missed a problem with this. When queues are shut down,
> releasing result object reenters sample release method, and potentially
> destroys it. On return original call continues, and uses critical
> section that has been just destroyed.
> Attaching a possible fix for this.
> [2.diff](/uploads/94a959648e483587b11172a6cc34b015/2.diff)
That patch looks sensible to me. Did you actually manage to get a crash out of that?

-- 
https://gitlab.winehq.org/wine/wine/-/merge_requests/29#note_754



More information about the wine-devel mailing list