GNOME Bugzilla – Bug 120891
gnome-terminal crashes in Pango when signal received
Last modified: 2004-12-22 21:47:04 UTC
Package: pango Severity: major Version: 2.2.1 Synopsis: gnome-terminal crashes in Pango when signal received Bugzilla-Product: pango Bugzilla-Component: general BugBuddy-GnomeVersion: 2.0 (2.2.0.1) Description: Description of Problem: gnome-terminal crashes if a signal is received while inside the Pango routines Steps to reproduce the problem: 1. Load some complex UTF-8 text, e.g. Japanese, in one tab 2. Have a SIGCHLD (or other?) signal hit precisely while Pango is rendering Actual Results: Crash! Expected Results: Happiness How often does this happen? Irregularly. On heavily-loaded machine (load 4.5 frequently), running gnome-terminal 24x7, crashes about every day or two. Additional Information: Running blended mass of source builds from Red Hat 9, Yellow Dog 3 (Red Hat 8), and nobody can tell where else. GNOME-2.2 mostly. Debugging Information: Backtrace was generated from '/usr/bin/gnome-terminal' (no debugging symbols found)...[New Thread 16384 (LWP 12035)] 0x0f0432c4 in __libc_waitpid (pid=31667, stat_loc=0x7fffdb58, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:28 in ../sysdeps/unix/sysv/linux/waitpid.c
+ Trace 39829
Thread 1 (Thread 16384 (LWP 12035))
0x0f0432c4 28 in ../sysdeps/unix/sysv/linux/waitpid.c ------- Bug moved to this database by unknown@bugzilla.gnome.org 2003-08-27 21:53 ------- The original reporter (BRPocock-Bugzilla-GNOME@Sidereal.Net) of this bug does not have an account here. Reassigning to the exporter, unknown@bugzilla.gnome.org. Reassigning to the default owner of the component, pango-maint@bugzilla.gnome.org.
It's barely possible that some place in Pango/fontconfig/freetype doesn't handle EINTR correctly; though I can't imagine what that would be. Generally, Pango doesn't make any system calls when rendering. To have any chance of debugging this, I need a backtrace with debugging symbols for Pango.
*** Bug 116108 has been marked as a duplicate of this bug. ***
Trying to find what causes bug 116108, I found I could reproduce this bug independently of gnome-terminal. Here follows a patch that segfaults systematically for me using pango 1.2.* and 1.3.0; the string comes from an example posted by a reporter somewhere.
Created attachment 21079 [details] Expose a segfault in pango_layout_iter_get_char_extents
Generally, just part of the breakage in bug 85941. I think I can come up with a fix for this particular crash, but especially when you add RTL text, I bet there are lots of others. *** This bug has been marked as a duplicate of 89541 ***
*** Bug 107262 has been marked as a duplicate of this bug. ***
*** Bug 126897 has been marked as a duplicate of this bug. ***
*** Bug 127225 has been marked as a duplicate of this bug. ***
*** Bug 108482 has been marked as a duplicate of this bug. ***
*** Bug 132488 has been marked as a duplicate of this bug. ***
*** Bug 130108 has been marked as a duplicate of this bug. ***
*** Bug 150686 has been marked as a duplicate of this bug. ***