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]
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]
PDF that triggers the bug if viewed in evince (Cairo 1.12.16).
Created attachment 125495 [details]
gdb trace. See thread 6.
Thanks. Verified fixed and pushed to master.