After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 585806 - crash during pango_fc_font_map_shutdown
crash during pango_fc_font_map_shutdown
Status: RESOLVED FIXED
Product: pango
Classification: Platform
Component: general
1.24.x
Other All
: Normal critical
: ---
Assigned To: pango-maint
pango-maint
Depends on:
Blocks:
 
 
Reported: 2009-06-15 05:42 UTC by Karl Tomlinson
Modified: 2009-07-20 20:35 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Karl Tomlinson 2009-06-15 05:42:01 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:
  • #4 <signal handler called>
  • #5 IA__g_hash_table_foreach
    from /usr/lib64/libglib-2.0.so.0
  • #6 pango_fc_font_map_shutdown
    at pangofc-fontmap.c line 2011


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.
Comment 1 Karl Tomlinson 2009-07-07 05:07:08 UTC
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 ***
Comment 2 Behdad Esfahbod 2009-07-20 20:35:00 UTC
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