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 409369 - Crash in pango_fc_font_real_get_glyph when using thai module
Crash in pango_fc_font_real_get_glyph when using thai module
Status: RESOLVED FIXED
Product: pango
Classification: Platform
Component: general
unspecified
Other Linux
: Normal major
: ---
Assigned To: pango-maint
pango-maint
Depends on:
Blocks:
 
 
Reported: 2007-02-18 18:44 UTC by Josselin Mouette
Modified: 2007-09-07 19:21 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
test case (23.55 KB, text/html)
2007-06-05 20:07 UTC, Josselin Mouette
Details

Description Josselin Mouette 2007-02-18 18:44:27 UTC
[ forwarded from http://bugs.debian.org/410167 ]

This is similar to Bug#364620 but the backtrace is different. When using the thai module, a user is getting reproducible crashes:


Program received signal SIGSEGV, Segmentation fault.

Thread 47616068345712 (LWP 27460)

  • #0 pango_fc_font_real_get_glyph
    at /usr/src/pango/pango1.0-1.14.8/./pango/pangofc-font.c line 565
  • #1 thai_make_glyph_uni
    at /usr/src/pango/pango1.0-1.14.8/./modules/thai/thai-fc.c line 230
  • #2 get_adjusted_glyphs_list
    at /usr/src/pango/pango1.0-1.14.8/./modules/thai/thai-shaper.c line 179
  • #3 thai_engine_shape
    at /usr/src/pango/pango1.0-1.14.8/./modules/thai/thai-shaper.c line 465
  • #4 pango_shape
    at /usr/src/pango/pango1.0-1.14.8/./pango/shape.c line 51
  • #5 shape_run
    at /usr/src/pango/pango1.0-1.14.8/./pango/pango-layout.c line 2771
  • #6 process_item
    at /usr/src/pango/pango1.0-1.14.8/./pango/pango-layout.c line 2863
  • #7 pango_layout_check_lines
    at /usr/src/pango/pango1.0-1.14.8/./pango/pango-layout.c line 3065
  • #8 pango_layout_get_extents_internal
    at /usr/src/pango/pango1.0-1.14.8/./pango/pango-layout.c line 2070
  • #9 gtk_text_layout_get_line_display
    from /usr/lib/libgtk-x11-2.0.so.0
  • #10 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #11 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #12 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #13 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #14 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #15 _gtk_text_btree_validate
    from /usr/lib/libgtk-x11-2.0.so.0
  • #16 gtk_text_layout_validate
    from /usr/lib/libgtk-x11-2.0.so.0
  • #17 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #18 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #19 ??
    from /usr/lib/libglib-2.0.so.0
  • #20 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #21 gtk_main
    from /usr/lib/libgtk-x11-2.0.so.0
  • #22 main

Comment 1 Josselin Mouette 2007-06-05 20:07:15 UTC
Created attachment 89430 [details]
test case

According to the original submitter, the following file allows to reproduce the bug with as soon as the thai module is enabled.
Comment 2 Behdad Esfahbod 2007-09-07 19:21:36 UTC
Fixed already:

2007-08-14  Behdad Esfahbod  <behdad@gnome.org>

        Bug 466755 – pango hangul is crashing in gnome-about because it is
        failing to retrieve a font.

        * pango/pangofc-font.c (pango_fc_font_real_get_glyph),
        (pango_fc_font_kern_glyphs), (pango_fc_font_get_raw_extents):
        Protect against NULL face.