Bug 490331 - Crash of galeon in libpango
Crash of galeon in libpango
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: pango (Show other bugs)
rawhide
x86_64 Linux
low Severity low
: ---
: ---
Assigned To: Behdad Esfahbod
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-03-15 08:53 EDT by Jan Kratochvil
Modified: 2009-03-17 12:21 EDT (History)
2 users (show)

See Also:
Fixed In Version: pango-1.24.0-1.fc11.x86_64
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-03-17 08:07:06 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Jan Kratochvil 2009-03-15 08:53:29 EDT
Description of problem:
Trying to run galeon in a virtual machine with minimal set of rpms/libraries I get a NULL dereference in libpango.
(It also may be due to some missing resources not covered by rpm dependencies requirements.)

Version-Release number of selected component (if applicable):
pango-1.23.0-4.g5317893.fc11.x86_64

How reproducible:
Always.

Steps to Reproduce:
1. ssh -X kvm-virtual-machine
2. gdb galeon
3. run

Actual results:
GNU gdb (GDB) Fedora (6.8.50.20090302-9.fc11)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
(gdb) r
Starting program: /usr/bin/galeon 
[Thread debugging using libthread_db enabled]
warning: Unable to get location for thread creation breakpoint: generic error
Xlib:  extension "Generic Event Extension" missing on display "localhost:10.0".
Xlib:  extension "Generic Event Extension" missing on display "localhost:10.0".
Xlib:  extension "Generic Event Extension" missing on display "localhost:10.0".
Xlib:  extension "Generic Event Extension" missing on display "localhost:10.0".
Xlib:  extension "Generic Event Extension" missing on display "localhost:10.0".
Xlib:  extension "Generic Event Extension" missing on display "localhost:10.0".
Gtk-Message: Failed to load module "gnomebreakpad": libgnomebreakpad.so: cannot open shared object file: No such file or directory
Gtk-Message: Failed to load module "canberra-gtk-module": libcanberra-gtk-module.so: cannot open shared object file: No such file or directory
Detaching after fork from child process 2200.
Detaching after fork from child process 2203.

** (galeon:2197): WARNING **: Failed to instantiate LoginManager

Program received signal SIGSEGV, Segmentation fault.
pango_fc_patterns_get_font_pattern (i=<value optimized out>, pats=<value optimized out>) at pangofc-fontmap.c:727
727	  if (i < pats->fontset->nfont)
Missing separate debuginfos, use: [...]
(gdb) l
722		      pats->match = NULL;
723		    }
724		}
725	    }
726	
727	  if (i < pats->fontset->nfont)
728	    return pats->fontset->fonts[i];
729	  else
730	    return NULL;
731	}
(gdb) p pats
$1 = <value optimized out>
(gdb) x/5i $rip
0x7ffff3f7715e <pango_fc_patterns_get_font_pattern+199>:	cmp    (%rax),%ebp
0x7ffff3f77160 <pango_fc_patterns_get_font_pattern+201>:	jge    0x7ffff3f77122 <pango_fc_fontset_get_font_at+162>
0x7ffff3f77162 <pango_fc_patterns_get_font_pattern+203>:	mov    0x8(%rax),%rax
0x7ffff3f77166 <pango_fc_patterns_get_font_pattern+207>:	movslq %ebp,%rbp
0x7ffff3f77169 <pango_fc_patterns_get_font_pattern+210>:	mov    (%rax,%rbp,8),%rdx
(gdb) p/x $rax
$2 = 0x0
(gdb) 


Expected results:
No crash.

Additional info:
GConf2-2.25.2-3.fc11.x86_64 ORBit2-2.14.16-3.fc11.x86_64 alsa-lib-1.0.19-3.fc11.x86_64 atk-1.25.2-2.fc11.x86_64 avahi-0.6.24-2.fc11.x86_64 avahi-glib-0.6.24-2.fc11.x86_64 cairo-1.8.6-2.fc11.x86_64 dbus-glib-0.80-2.fc11.x86_64 dbus-libs-1.2.4.4permissive-4.fc11.x86_64 e2fsprogs-libs-1.41.4-5.fc11.x86_64 expat-2.0.1-6.x86_64 fontconfig-2.6.99.behdad-3.fc11.x86_64 freetype-2.3.9-1.fc11.x86_64 galeon-2.0.7-7.fc11.x86_64 glib2-2.19.10-2.fc11.x86_64 glibc-2.9.90-10.x86_64 glibc-common-2.9.90-10.x86_64 gnome-desktop-2.25.92-2.fc11.x86_64 gnome-keyring-2.25.92-1.fc11.x86_64 gnome-vfs2-2.24.0-5.fc11.x86_64 gtk-nodoka-engine-0.7.2-4.fc11.x86_64 gtk2-2.16.0-1.fc11.x86_64 keyutils-libs-1.2-5.fc11.x86_64 krb5-libs-1.6.3-18.fc11.x86_64 libICE-1.0.4-7.fc11.x86_64 libSM-1.1.0-4.fc11.x86_64 libX11-1.2-3.fc11.x86_64 libXau-1.0.4-4.fc11.x86_64 libXcomposite-0.4.0-7.fc11.x86_64 libXcursor-1.1.9-4.fc11.x86_64 libXdamage-1.1.1-6.fc11.x86_64 libXext-1.0.99.1-2.fc11.x86_64 libXfixes-4.0.3-5.fc11.x86_64 libXi-1.2.1-1.fc11.x86_64 libXinerama-1.0.3-4.fc11.x86_64 libXrandr-1.2.99.4-3.fc11.x86_64 libXrender-0.9.4-5.fc11.x86_64 libXt-1.0.5-2.fc11.x86_64 libart_lgpl-2.3.20-4.fc11.x86_64 libbonobo-2.24.0-4.fc11.x86_64 libbonoboui-2.24.0-3.fc11.x86_64 libcap-2.10-2.fc10.x86_64 libgcc-4.4.0-0.26.x86_64 libglade2-2.6.3-4.fc11.x86_64 libgnome-2.24.1-10.fc11.x86_64 libgnomecanvas-2.25.90-3.fc11.x86_64 libgnomeui-2.24.0-4.fc11.x86_64 libjpeg-6b-45.fc11.x86_64 libpng-1.2.35-1.fc11.x86_64 libselinux-2.0.79-1.fc11.x86_64 libstdc++-4.4.0-0.26.x86_64 libxcb-1.2-2.fc11.x86_64 libxml2-2.7.3-2.fc11.x86_64 nspr-4.7.3-5.fc11.x86_64 nss-3.12.2.0-4.fc11.x86_64 openssl-0.9.8j-9.fc11.x86_64 pango-1.23.0-4.g5317893.fc11.x86_64 pixman-0.14.0-2.fc11.x86_64 popt-1.13-5.fc11.x86_64 sqlite-3.6.10-4.fc11.x86_64 startup-notification-0.9-6.fc11.x86_64 xulrunner-1.9.1-0.10.beta3.fc11.x86_64 zlib-1.2.3-20.fc11.x86_64
Comment 1 Jan Kratochvil 2009-03-15 09:13:28 EDT
The crash gets workarounded by installing:
  xorg-x11-fonts-Type1 libXfont ttmkfdir xorg-x11-font-utils

(fontconfig fonts dependency is Bug 438006 / Bug 257901 but is should not crash)
Comment 2 Behdad Esfahbod 2009-03-15 13:09:19 EDT
Will be fixed when pango 1.24.0 hits rawhide today.
Comment 3 Jan Kratochvil 2009-03-17 08:07:06 EDT
Verified as no longer crashing.  It just now prints:
(galeon:10431): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='common'
(galeon:10431): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='latin'
and a lot of:
(galeon:10431): Pango-CRITICAL **: _pango_engine_shape_covers: assertion `PANGO_IS_FONT (font)' failed
Comment 4 Behdad Esfahbod 2009-03-17 12:21:12 EDT
Thanks, fixed the assertion upstream.

Note You need to log in before you can comment on or make changes to this bug.