GNOME Bugzilla – Bug 126262
gnome-terminal crashed when using with pango
Last modified: 2005-07-25 08:49:52 UTC
Distribution: Red Hat Linux release 8.0 (Psyche) Package: gnome-terminal Severity: normal Version: GNOME2.4.0 2.4.0.1 Gnome-Distributor: GARNOME Synopsis: gnome-terminal crashed when using with pango Bugzilla-Product: gnome-terminal Bugzilla-Component: general Bugzilla-Version: 2.4.0.1 BugBuddy-GnomeVersion: 2.0 (2.4.0.1) Description: Description of the crash: I want to use gnome-terminal with pango, but crashed. Steps to reproduce the crash: 1. On kterm, set environment variables. setenv VTE_USE_SKEL 0 setenv VTE_USE_XFT 0 setenv VTE_USE_FT2 0 setenv VTE_USE_GL 0 setenv VTE_USE_PANGO 1 setenv VTE_USE_PANGOX 0 2. execute gnome-terminal gnome-terminal & 3. fatal-error-occurred dialog popped up. Expected Results: gnome-terminal worked using pango. How often does this happen? Every time. Additional Information: GNOME-2.4 environment is cunstructed by GARNOME-0.27.1.
[I can't reproduce this] Thanks for the bug report. Without a stack trace from the crash it's very hard to determine what caused the crash. Please see http://bugzilla.gnome.org/getting-traces.cgi for more information about getting a useful stack trace.
I'm sorry. Bug Buddy generated stack trace is below. [New Thread 16384 (LWP 14150)] 0x405827f7 in waitpid () from /lib/i686/libpthread.so.0
+ Trace 41470
Thread 1 (Thread 16384 (LWP 14150))
I do an additional test. A LANG environment variable set to `C', gnome-terminal works well. (But cannot use Japanese.) I am generally use `ja_JP.eucJP', gnome-terminal crashed.
Stacktrace has been added, reopening bug. (not sure if it is gnome-terminal or vte, so leaving it here)
This is vte. Note that _vte_pango_destroy is getting called with a _vte_draw struct that has its data member set to NULL, so that it segfaults when it tries to set something there. I still can't reproduce this, though (LANG and other env vars set as the reporter lists): when _vte_pango_destroy is called while vte_terminal_realize is running, the data member is not NULL... Moving to vte
Created attachment 49357 [details] [review] Fixes crashes in Pango vte draw backend
The patch above fixes this crasher. Here's the relevant ChangeLog entry: 2005-07-18 Michele Baldessari <michele@pupazzo.org> * src/vtepango.c (_vte_pango_create): Initialize PangoContext * data->ctx with NULL. Closes bug #126262
Crash fix which is pretty straight forward. I'm commiting this.