GNOME Bugzilla – Bug 684959
crash after "Add pango_shape_full()"
Last modified: 2012-09-27 21:22:48 UTC
With pango 1.32.0 I'm seeing crashes in for example gedit (both 3.4.x and 3.6.x) on OpenBSD/amd64. I have no locales set, and when I locally revert this commit: http://git.gnome.org/browse/pango/commit/?id=bbec7e8697907a922f80c00b94f54b9b8634d264 the issue goes away. My stack is fully up to date wrt gtk/glib/harfbuzz/etc. axon:pango {1753} gdb /usr/local/bin/gedit GNU gdb 6.3 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-unknown-openbsd5.2"... (gdb) run Starting program: /usr/local/bin/gedit [New process 24098] (gedit:24098): Pango-CRITICAL **: pango_glyph_item_split: assertion `split_index < orig->item->length' failed Program received signal SIGSEGV, Segmentation fault. 0x00001c48e0817c97 in append_attrs (glyph_item=0x0, attrs=0x1c48d6c4d770) at pango-glyph-item.c:499 499 glyph_item->item->analysis.extra_attrs = (gdb) bt
+ Trace 230921
axon:pango {1754} ^Dexit Please let me know if there is any other information which I can provide in order to fix this issue.
*** Bug 684960 has been marked as a duplicate of this bug. ***
FWIW, this reproduces it for me: ./pango-view --markup --text 'به<span font="nazli">داد</span>' --width 1 --wrap=char
*** Bug 684987 has been marked as a duplicate of this bug. ***
Sorry everyone. Found and fixed the bug: commit 0d34c10108585b4cfed042aa2ef501780b2d2193 Author: Behdad Esfahbod <behdad@behdad.org> Date: Thu Sep 27 14:08:30 2012 -0400 Fixup grapheme clusters After adding pango_shape_full() and passing full paragraph text to HarfBuzz, we were getting cluster values relative to beginning to paragraph back from HarfBuzz, and I forgot to account for that. Caused severe crashes. Fixes: Bug 684959 - crash after "Add pango_shape_full()" and the dupes...
*** Bug 684999 has been marked as a duplicate of this bug. ***