GNOME Bugzilla – Bug 420916
scim-helper-launcher crashed with SIGSEGV in pango_fc_font_real_get_glyph()
Last modified: 2007-09-07 19:20:28 UTC
The bug has been opened on https://launchpad.net/bugs/94328 "Binary package hint: scim i am sorry about information this bug. after feisty upgrading by internet downloading i logged in kde session succesflly ProblemType: Crash Architecture: i386 Date: Tue Mar 20 00:53:37 2007 DistroRelease: Ubuntu 7.04 ExecutablePath: /usr/lib/scim-1.0/scim-helper-launcher Package: scim 1.4.4-7ubuntu1 PackageArchitecture: i386 ... libpango1.0-0 1.16.1-0ubuntu1 ... .
+ Trace 120685
Thread 1 (process 8891)
corresponding source line: " if (index > (FT_UInt)face->num_glyphs)"
Hmm, face can only be NULL at that point iff !PANGO_IS_FC_FONT(font) or else the lock face would have called exit() instead of returning an error.
Created attachment 85022 [details] [review] Missing g_return_val_if_fail(PANGO_IS_FC_FONT()) on public function
Created attachment 85023 [details] [review] Throw a g_error instead of warning+exit
However I can not see how a non-PangoFcFont could have been utilized along that path... Sebastien, could you ask the original reporter to run the crash through valgrind? Thanks.
I've added a comment to the launchpad bug about the valgrind log
Hmm if it's really a non-PangoFcFont, pango_fc_font_real_get_glyph() should not be called...
closing for now, I'll reopen if the submitter reply
letting the upstream bug open rather, there is patches attached there
2007-09-07 Behdad Esfahbod <behdad@gnome.org> Patch from Chris Wilson * pango/pangoft2.c (load_fallback_face): Use g_error() instead of g_warning()+exit().
I fixed this a while ago: 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.