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 596614 - Pango application receives SIGSEGV on pasting text with U+202E
Pango application receives SIGSEGV on pasting text with U+202E
Status: RESOLVED FIXED
Product: pango
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: pango-maint
pango-maint
: 602210 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-09-28 15:01 UTC by Manatsawin
Modified: 2009-11-17 21:23 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Manatsawin 2009-09-28 15:01:13 UTC
Pango application (tested with gedit) receives SIGSEGV when pasting text with U+202E in some languages.

Test cases:
- http://a.dt.in.th/public/course.html or http://pastie.org/633416.txt for Thai characters
- http://a.dt.in.th/public/course-other.html or http://pastie.org/633415.txt for Korea characters (Note that copying only Japanese characters doesn't crash gedit)

This problem, as far as I know only found in Thai and Korea. Japanese and Chinese characters works.

Errors found so far

gedit: malloc.c:4628: _int_malloc: Assertion `(unsigned long)(size) >= (unsigned long)(nb)' failed.

Program received signal SIGABRT, Aborted.
0x003ab424 in __kernel_vsyscall ()

(For Thai characters test case)

Program received signal SIGSEGV, Segmentation fault.
0x00ca227e in pango_glyph_item_iter_next_cluster ()
   from /usr/lib/libpango-1.0.so.0

(For Korea character test case)

Program received signal SIGSEGV, Segmentation fault.
0x005b65c7 in g_slice_alloc () from /lib/libglib-2.0.so.0

(For Korea character test case)

Distro: Fedora 12 Rawhide, fully upgraded as of 09/09/28
Pango: 1.26.0-1.fc12
Gedit: 2.28.0-1.fc12
Comment 1 Manatsawin 2009-09-28 15:03:08 UTC
glib version is 1.2.10-33.fc12
Comment 2 Behdad Esfahbod 2009-11-17 19:23:40 UTC
*** Bug 602210 has been marked as a duplicate of this bug. ***
Comment 3 Behdad Esfahbod 2009-11-17 20:47:57 UTC
Tracked down the bug.  Working on a fix.
Comment 4 Behdad Esfahbod 2009-11-17 21:23:17 UTC
commit 4ccabeffc20f899163bf610356871afb197e9bf8
Author: Behdad Esfahbod <behdad@behdad.org>
Date:   Tue Nov 17 16:20:42 2009 -0500

    Bug 596614 - Pango application receives SIGSEGV on pasting text with U+202E
    
    Fixed all modules to reverse glyphs if run is rtl.  Except for Hangul module.
    Fixed pango_shape() to detect that, warn, and reverse.