GNOME Bugzilla – Bug 585806
crash during pango_fc_font_map_shutdown
Last modified: 2009-07-20 20:35:00 UTC
Steps to reproduce: Call pango_fc_font_map_shutdown on a PangoFcFontMap from pango_cairo_font_map_get_default() after using the fontmap. (Though this only causes a crash sometimes.) Stack trace:
+ Trace 216005
Other information: I guess this is because pango_fc_font_map_shutdown uses g_hash_table_foreach, which does not expect the table to be modified, but g_hash_table_remove is used from _pango_fc_font_map_remove from shutdown_font.
Unfortunately, http://git.gnome.org/cgit/pango/commit/?id=f868f085dd22f74ea43426d21b13165ebcd091b4 (and http://git.gnome.org/cgit/pango/commit/?id=643b70644aabdbebd6bdfe7a5f128efde39caced) from bug 586814 don't fix this as fcfont->fontmap is non-NULL, so _pango_fc_font_map_remove is called from _pango_fc_font_shutdown. *** This bug has been marked as a duplicate of 586814 ***
commit 5a75ce1414f43a36a5e510cc5cfac085671bfdca Author: Behdad Esfahbod <behdad@behdad.org> Date: Mon Jul 20 16:31:33 2009 -0400 Bug 585806 – crash during pango_fc_font_map_shutdown