The destruction of a scaled font can indirectly trigger the destruction of a second scaled font, causing the global cache to be locked twice in the same thread. This can cause applications to deadlock when rendering certain PDF documents.
Created attachment 121328 [details] [review] 0001-scaled-font-Fix-deadlock-when-recursing-in-_cairo_sc.patch Patch that fixes the bug here.
I don't pretend to know the glyph cache anymore, but I trust you with your analysis. Humm, let's see any of the surviving maintainers can push this in. Anyone?
Created attachment 125494 [details] evince-11.3test.pdf PDF that triggers the bug if viewed in evince (Cairo 1.12.16).
Created attachment 125495 [details] gdb.txt gdb trace. See thread 6.
Thanks. Verified fixed and pushed to master.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.