pango-graphite causes several applications to crash

Bug #540035 reported by Chris Sykes
144
This bug affects 24 people
Affects Status Importance Assigned to Milestone
pango-graphite (Debian)
Fix Released
Unknown
pango-graphite (Ubuntu)
Fix Released
High
Unassigned
Declined for Hardy by Micah Gersten
Declined for Jaunty by Micah Gersten
Declined for Karmic by Micah Gersten
Lucid
Fix Released
Undecided
Unassigned

Bug Description

[Impact]
Installing pango-graphite in combination with some of the ttf-sil-* fonts causes all kinds of crashes in several applications. On Ubuntu 10.04 (Lucid) this includes GDM, which makes it impossible to start a graphical session.

[Test Case] (10.04 Lucid)
$ sudo apt-get install pango-graphite ttf-sil-doulos
$ sudo service gdm restart

[Test Pass]
Login screen is presented and works

[Test Fail]
Login screen is not presented

[Regression Potential]
Fixing this bug might introduce issues in other applications instead, as is evident due to pango-graphite's wide scope, it's very unlikely to get worse than gdm not starting though.

[Original Description]
Binary package hint: gimp

I'm running 32-bit Kubuntu Lucid on an external hard drive. Opening GIMP causes a little bouncing GIMP icon next to to my cursor which just disappears without the window loading, and running from the command line tells me a Segmentation fault has occurred. This happens every time GIMP is opened. Same deal with firefox, which I'll report separately

ProblemType: Crash
Architecture: i386
CrashCounter: 1
Date: Tue Mar 16 23:57:02 2010
DistroRelease: Ubuntu 10.04
ExecutablePath: /usr/bin/gimp-2.6
InstallationMedia: Kubuntu 10.04 "Lucid Lynx" - Alpha i386 (20100225)
Package: gimp 2.6.8-2ubuntu1
ProcCmdline: /usr/bin/gimp-2.6
ProcEnviron:
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-16.25-generic
SegvAnalysis:
 Segfault happened at: 0x3963ba2 <_ZN2gr9GlyphInfo12logicalIndexEv+34>: mov (%esi),%eax
 PC (0x03963ba2) ok
 source "(%esi)" (0x7b706074) not located in a known VMA region (needed readable region)!
 destination "%eax" ok
SegvReason: reading unknown VMA
Signal: 11
SourcePackage: gimp
StacktraceTop:
 gr::GlyphInfo::logicalIndex() ()
 graphite_PangoLogAttrs ()
 graphite_engine_break ()
 tailor_break (text=0x97ee728 "H\340{\t\f",
 get_items_log_attrs (layout=<value optimised out>)
Title: gimp-2.6 crashed with SIGSEGV in gr::GlyphInfo::logicalIndex()
Uname: Linux 2.6.32-16-generic i686
UserGroups: adm admin cdrom dialout lpadmin netdev plugdev sambashare
XsessionErrors: (process:1854): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

Related branches

Revision history for this message
Chris Sykes (jcgs) wrote :
visibility: private → public
Chris Sykes (jcgs)
affects: gimp (Ubuntu) → pango-graphite (Ubuntu)
Revision history for this message
Thura (trh) wrote :

Confirmed on Lucid ..
It aslo effects firefox, gedit, other application using pango ...

tags: added: pango-graphite
removed: apport-crash i386 need-i386-retrace
Changed in pango-graphite (Ubuntu):
status: New → Confirmed
assignee: nobody → graphite-dev (graphite-dev)
assignee: graphite-dev (graphite-dev) → nobody
Revision history for this message
sputnik (sputnik) wrote :

Workaround: Simply remove the package pango-graphite.

I don't know how it came that pango-graphite has been installed on my Kubuntu system - but I was not able to start a lot of non-KDE programs. Removing pango-graphite and restarting helped.

Revision history for this message
Ian Santopietro (isantop) wrote :

What is the status of this bug? I need to have pango-graphite installed for smart font support, and removing the package removes all of this support.

Revision history for this message
Chris Sykes (jcgs) wrote :

It seems like this bug has been fixed. I've installed the pango-graphite package, and it doesn't seem to be causing any problems.

Changed in pango-graphite (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Bernard Hurley (bernard-marcade) wrote : Re: [Bug 540035] Re: gimp-2.6 crashed on launch with SIGSEGV in gr::GlyphInfo::logicalIndex()

On Sat, May 15, 2010 at 09:24:12AM -0000, jcgs wrote:
> It seems like this bug has been fixed. I've installed the pango-graphite
> package, and it doesn't seem to be causing any problems.
>
> ** Changed in: pango-graphite (Ubuntu)
> Status: Confirmed => Invalid
>
> --

Well I have just tried installing it and gdm didn't dispaly a logon dialog. uninstalling the package solved the problem

Revision history for this message
Chris Sykes (jcgs) wrote : Re: gimp-2.6 crashed on launch with SIGSEGV in gr::GlyphInfo::logicalIndex()

Sorry, when I said it had been fixed, I messed up the test. Still broken. Isantop: are you displaying the same symptoms? ie, having pango-graphite installed causes lots of applications to segfault without doing anything so helpful as drawing windows. If no-one can use pango-graphite, what is the point of it?

Changed in pango-graphite (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
Johan Winge (johan-winge) wrote :

Yes, this package is utterly broken. (I think it is because of a version incompatibility with libgraphite3.) Please, can someone either fix it, or remove it. It's dangerous as it is: if someone installs it and then restarts the system, Gnome will not even start.

WORKAROUND: If you need Graphite rendering, you should use the SIL repository: http://packages.sil.org/ubuntu/
It has an updated version of pango-graphite, and it works beautifully.

Revision history for this message
Chris Sykes (jcgs) wrote :

If this package is so broken, does anybody know why it is still in the repositories? Is there a person responsible for it, and can we get them to investigate? It seems that there's no way it could have been rigorously tested before being released.

Revision history for this message
Chris Sykes (jcgs) wrote :

Does anyone know if it would be possible to perform a straight swap in the repositories, if the sil.org packages definitely works?

Revision history for this message
Martin Erik Werner (arand) wrote :

Testing on Maverick development release seems to indicate that only a combination of some of the ttf-sil-* packages (e.g. doulos and abyssinica, but not gentium) creates problems.

Revision history for this message
Martin Erik Werner (arand) wrote :

Updated version available from http://sourceforge.net/projects/silgraphite/files/ fixes the issue both on maverick and sid, a NMU has been sent to get the updated version quickly into debian unstable, which should sync to maverick, by which time we'll start worrying about fixing earlier versions of ubuntu as well (either by updating, or removing, i guess).

Source for the new version in debian is available here: http://mentors.debian.net/debian/pool/main/p/pango-graphite/

I'm thinking I'll mark all earlier bug reports as a duplicate of this one, just to collect some structure.

Changed in pango-graphite (Debian):
status: Unknown → New
description: updated
summary: - gimp-2.6 crashed on launch with SIGSEGV in gr::GlyphInfo::logicalIndex()
+ pango-graphite causes several applications to crash
Revision history for this message
Philip Muškovac (yofel) wrote :

Setting to status of dup bug 290532.

Changed in pango-graphite (Ubuntu):
importance: Undecided → High
status: Confirmed → Triaged
Revision history for this message
Martin Erik Werner (arand) wrote :

Carsten Hey made a reduced version of the patch (autofoo and docs removed). And I've tested and confirmed it fixing the issue on maverick, here attached. Might be SRU-material?

Changed in pango-graphite (Debian):
status: New → Fix Committed
Changed in pango-graphite (Debian):
status: Fix Committed → Fix Released
Revision history for this message
Martin Erik Werner (arand) wrote :

Fixed with the new version from Debian in Maverick, is likely material for SRU, hence opening tasks...

Changed in pango-graphite (Ubuntu):
status: Triaged → Fix Released
description: updated
Revision history for this message
Martin Erik Werner (arand) wrote :
Revision history for this message
Martin Erik Werner (arand) wrote :

This bug affect Ubuntu 10.04 in that installing pango-graphite plus ttf-sil-doulos (and some other ttf-sil-*) causes GDM to not be able to auto-login nor present the user login screen.

Since this is quite a serious issue, it would suggest that pango-graphite 0.9.3-0.1 was synced from Debian stable in order to fix this bug.

The full upstream diff is attached above and should hopefully qualify as an "upstream microrelease" according to the SRU guidelines.

A reduced version with the autotools diff removed is attached above as u01_crasher-fix.patch

If this diff still turns out to be too intrusive to qualify for SRU I'd suggest removing the pango-graphite package completely from Lucid (specifically), since it there appears to do more harm than good...

Revision history for this message
Martin Erik Werner (arand) wrote :

The linked branch lp:~arand/ubuntu/lucid/pango-graphite/suggested-sru-deb-sync contains the suggested changes for the SRU.

The corresponding orig.tar.gz can be retrieved via
dget --download-only http://cdn.debian.net/debian/pool/main/p/pango-graphite/pango-graphite_0.9.3-0.1.dsc

The diff is easiest examined via the above attached diffs (and not via bzr diff or debdiff) since the cdbs packaging has a tarball-in-yo-tarball format.

I'm subscribing ubuntu-sru for judgement.

Revision history for this message
Martin Erik Werner (arand) wrote :

I contacted the technical board which suggested I should not do a new upstream version for this SRU, hence I have now linked another branch where the fix is included as a patch instead.

Attached is the version of the patch which is used in this branch.

Revision history for this message
Martin Pitt (pitti) wrote :

Uploaded to lucid-proposed queue for SRU team review.

Changed in pango-graphite (Ubuntu Lucid):
status: New → Fix Committed
Revision history for this message
Adam Conrad (adconrad) wrote : Please test proposed package

Hello Chris, or anyone else affected,

Accepted pango-graphite into lucid-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/pango-graphite/0.9.2-3.1ubuntu0.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please change the bug tag from verification-needed to verification-done. If it does not, change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

tags: added: verification-needed
Revision history for this message
Martin Erik Werner (arand) wrote :

I've tested and confirmed that the lucid-proposed update for pango-graphite (0.9.2-3.1ubuntu0.1) works in a kvm instance of Ubuntu 10.04:

* GDM and login works
* No visible regressions in firefox
* Doulos font (ttf-sil-doulos) seems to work as it should in OpenOffice (just tested selecting and writing)

tags: added: verification-done
removed: verification-needed
Revision history for this message
Clint Byrum (clint-fewbar) wrote : Update Released

The verification of this Stable Release Update has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pango-graphite - 0.9.2-3.1ubuntu0.1

---------------
pango-graphite (0.9.2-3.1ubuntu0.1) lucid-proposed; urgency=low

  * Add debian/patches/u01_crasher-fix.patch:
    Fixes for causing crashes in several applications, including GDM
    (LP: #540035)
 -- Martin Erik Werner <email address hidden> Fri, 06 Jul 2012 00:25:22 +0200

Changed in pango-graphite (Ubuntu Lucid):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.