Skip to content

threading: Fix a race on task_thread.init_done

Fixes a race where the tasks inserted by the init one could all be executed, signaling frame completion, leading to another frame starting before init_done could be set by the aforementioned init task, which then sets it, preventing the init task of the new frame to be executed.

This then caused an assert to trigger down the task picking loop.

Credits to Oss-Fuzz.

Edited by Victorien Le Couviour--Tuffet

Merge request reports

Loading