https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108288
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org --- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- I reproduced it by reducing the size of the mutex pool to one, so they always collide. And the patch above seems to fix it. I'll test it properly and push.