fontforge crashed with SIGSEGV in GImageRead_Png() due to optipng
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| FontForge |
Undecided
|
|||
| fontforge (Debian) |
Fix Released
|
Unknown
|
||
| fontforge (Ubuntu) |
High
|
Michael Terry | ||
| Oneiric |
High
|
Michael Terry | ||
| optipng (Ubuntu) |
Undecided
|
Unassigned | ||
| Oneiric |
Undecided
|
Unassigned |
Bug Description
I simply clicked on one of the free fonts downloaded from Google (Cabin). Fontforge consistently crashes with any TTF font.
TEST CASE:
1. Launch fontforge
2. Open a TTF file
Result:
fontforge segfaults
ProblemType: Crash
DistroRelease: Ubuntu 11.10
Package: fontforge 0.0.20110222-1
ProcVersionSign
Uname: Linux 3.0-3-generic x86_64
NonfreeKernelMo
Architecture: amd64
CrashCounter: 1
Date: Mon Jul 4 22:13:11 2011
ExecutablePath: /usr/bin/fontforge
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
ProcCmdline: fontforge /home/username/
ProcEnviron:
LANGUAGE=pt_BR:en
PATH=(custom, user)
LANG=pt_BR.UTF-8
SHELL=/bin/bash
SegvAnalysis:
Segfault happened at: 0x7f9fc30d0d0f <GImageRead_
PC (0x7f9fc30d0d0f) ok
source "(%rax)" (0x00000000) not located in a known VMA region (needed readable region)!
destination "%eax" ok
SegvReason: reading NULL VMA
Signal: 11
SourcePackage: fontforge
StacktraceTop:
GImageRead_Png () from /usr/lib/
GImageReadPng () from /usr/lib/
?? () from /usr/lib/
?? () from /usr/lib/
GMenuItem2Arra
Title: fontforge crashed with SIGSEGV in GImageRead_Png()
UpgradeStatus: Upgraded to oneiric on 2011-07-02 (2 days ago)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
Jorge Godoy (jgodoy) wrote : | #1 |
Apport retracing service (apport) wrote : | #2 |
Changed in fontforge (Ubuntu): | |
importance: | Undecided → Medium |
tags: | removed: need-amd64-retrace |
Thanks for your report. This is reproducible in Oneiric by opening any ttf file.
Changed in fontforge (Ubuntu): | |
importance: | Medium → High |
status: | New → Triaged |
visibility: | private → public |
description: | updated |
Michal Suchanek (hramrach) wrote : | #6 |
Rebuilding the package fixes the issue.
tags: | added: testcase |
dmiranda (dmiranda) wrote : | #7 |
the bug still persists on oneiric
Ricardo Bánffy (rbanffy) wrote : | #8 |
I tried to open an OTF font and it crashed the same way it does with TTF
alienfoundery (alienfoundery) wrote : | #9 |
Freezing then crashing when creating a new font under oneiric.
Fumihito YOSHIDA (hito) wrote : | #10 |
I have tested with no-change rebuild (apt-get build-dep; apt-get source fontforge; cd fontforge*; debuild) at latest oneiric, the bug goes away.
So, we need no-change rebuild at this time.
Paul Sladen (sladen) wrote : | #11 |
It appears to be either buggy PNG images, or a buggy PNG reader. I worked around it a few days ago by deleting the problematic files:
$ dpkg -L fontforge | grep png | xargs ls -1 > /dev/null
ls: cannot access /usr/share/
ls: cannot access /usr/share/
ls: cannot access /usr/share/
Paul Sladen (sladen) wrote : | #12 |
Confirms; rebuild fixes it.
Changed in fontforge (Ubuntu): | |
status: | Triaged → In Progress |
milestone: | none → ubuntu-11.10 |
summary: |
- fontforge crashed with SIGSEGV in GImageRead_Png() + fontforge crashed with SIGSEGV in GImageRead_Png(): no change rebuild + required |
Changed in fontforge (Ubuntu): | |
status: | In Progress → Fix Committed |
Launchpad Janitor (janitor) wrote : Re: fontforge crashed with SIGSEGV in GImageRead_Png(): no change rebuild required | #13 |
This bug was fixed in the package fontforge - 0.0.20110222-
---------------
fontforge (0.0.20110222-
* No change rebuild to prevent crash-on-startup (LP: #805752)
-- Paul Sladen <email address hidden> Fri, 30 Sep 2011 15:42:14 +0100
Changed in fontforge (Ubuntu): | |
status: | Fix Committed → Fix Released |
Fumihito YOSHIDA (hito) wrote : | #14 |
0.0.20110222-
Anyone can repro this behavior?
Jason (1-launchpad-stathern-com) wrote : | #15 |
I can confirm this. Upgraded Maverick to latest Oneiric Daily build today.
My Fontforge version fontforge is 0.0.20110222-
I open an SFD file and it segfaults.
Jason (1-launchpad-stathern-com) wrote : | #16 |
[sorry, upgraded Natty to Oneiric, pardon me!]
Fumihito YOSHIDA (hito) wrote : | #17 |
Okay, I tested with clean installed oneiric Beta2, problem still exists. The suspect is pkgbinarymangle
Collateral evidence:
When you install good fontforge packegs from my PPA[3], exec below command...problem reproduced! Breaker is optipng (of cource, fontforges PNG reader is still suspicous, and we need workaround).
<<<WARNING: Before exec, please backup *png files>>>
$ cd /usr/share/
$ sudo optipng -o4 -preserve *png
So, we have to one-more-rebuild with NO_PNG_PKG_MANGLE for good fontforge packages.
# But, we are in FinalFreeze :(
[1] https:/
[2] https:/
[3] https:/
Pietro (pietro) wrote : | #18 |
hramrach or sladen, can you please post the command-line sequence for rebuilding the package?
As a non-tech user, I fear it could take me hours to figure out how to get ForntForge to work.
This page comes up right near the top with the Google string "Ubuntu 11.10 FontForge," so this is where us noobs will find the fix.
Thanks.
Fumihito YOSHIDA (hito) wrote : | #19 |
Dear bug triagers,
This bug still exist in Oneiric. Could you please revert "Fix Released" to "Confirmed"?
(Or, we have to re-file as new bug?)
Jean-Baptiste Lallement (jibel) wrote : | #20 |
I confirm it is still an issue and it crashes in Precise as well.
Changed in fontforge (Ubuntu): | |
milestone: | ubuntu-11.10 → none |
status: | Fix Released → Triaged |
Shane M. Brandes (smbrandes) wrote : | #21 |
On Oneiric it still crashes. I also tried uninstalling and reinstalling Fontforge. Not sure if that is the same a rebuilding. It never gets beyond asking what file to open. So I guess I am on vacation till that is fixed.
Changed in fontforge (Ubuntu): | |
assignee: | nobody → Michael Terry (mterry) |
summary: |
- fontforge crashed with SIGSEGV in GImageRead_Png(): no change rebuild - required + fontforge crashed with SIGSEGV in GImageRead_Png() due to optipng |
Paul Sladen (sladen) wrote : | #22 |
Pitti: looks like Optipng is producing duff PNGs that are causing the crashes.
Michael Terry (mterry) wrote : | #23 |
I can confirm that using the NO_PNG_PKG_MANGLE will workaround this bug. But I suspect that the bug is actually in fontforge's built-in image reader code.
Launchpad Janitor (janitor) wrote : | #24 |
This bug was fixed in the package fontforge - 0.0.20110222-
---------------
fontforge (0.0.20110222-
* debian/
- Don't crash when reading optimized png files (LP: #805752)
-- Michael Terry <email address hidden> Tue, 25 Oct 2011 14:26:03 -0400
Changed in fontforge (Ubuntu): | |
status: | Triaged → Fix Released |
Michael Terry (mterry) wrote : | #25 |
I've uploaded a fixed version in oneiric-proposed. This is a good SRU candidate because the bug causes a crash regression that makes fontforge unusable.
To reproduce, run "fontforge /usr/share/
Subscribing ubuntu-sru.
Changed in optipng (Ubuntu): | |
status: | New → Invalid |
Changed in optipng (Ubuntu Oneiric): | |
status: | New → Invalid |
Changed in fontforge (Ubuntu Oneiric): | |
assignee: | nobody → Michael Terry (mterry) |
importance: | Undecided → High |
status: | New → In Progress |
Changed in fontforge (Debian): | |
status: | Unknown → New |
Changed in fontforge (Debian): | |
status: | New → Fix Released |
Chris Halse Rogers (raof) wrote : | #26 |
You've also merged a couple of Debian revisions into the package you've uploaded to oneiric-proposed. While they look like harmless changes, you haven't mentioned this in the changelog, nor are there any LP bug references.
Those other changes look reasonable - assuming that it's possible to hit those bugs in Oneiric - but I'd just like to check they're intentional before accepting into -proposed.
Michael Terry (mterry) wrote : | #27 |
Chris, good catch. Totally my fault, in using the precise package as a base for the oneiric. I had forgotten that they diverged.
If you'd like to reject, I can upload one based just on oneiric's packaging.
Martin Pitt (pitti) wrote : | #28 |
@Michael: rejected, please reupload. Thanks!
Michael Terry (mterry) wrote : | #29 |
Re-uploaded.
Hello Jorge, or anyone else affected,
Accepted fontforge into oneiric-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https:/
Changed in fontforge (Ubuntu Oneiric): | |
status: | In Progress → Fix Committed |
tags: | added: verification-needed |
Adolfo Jayme (fitojb) wrote : | #31 |
The proposed package no longer segfaults.
tags: |
added: verification-done removed: verification-needed |
I can confirm it now works with the new proposed update.
Paul Sladen (sladen) wrote : | #33 |
The proposed fontforge=
fontforge /usr/share/
K. Sethu (skhome) wrote : | #34 |
Confirming that the proposed update is working for me - Ubuntu 11.04 / Unity Desktop
annnie (seventyeightist) wrote : | #35 |
Hi, now working for me also (I was one of those affected by this bug) for creating a new font project and opening an existing .TTF file.
Xubuntu 11.10 64-bit
K. Sethu (skhome) wrote : | #36 |
I might as well add to my comment on #34 that the distro I tested on is 32 bit the Fontforge is i386 archi.
Launchpad Janitor (janitor) wrote : | #37 |
This bug was fixed in the package fontforge - 0.0.20110222-
---------------
fontforge (0.0.20110222-
* debian/
- Don't crash when reading optimized png files (LP: #805752)
-- Michael Terry <email address hidden> Thu, 27 Oct 2011 09:05:00 -0400
Changed in fontforge (Ubuntu Oneiric): | |
status: | Fix Committed → Fix Released |
BlogCrawler (blogcrawler) wrote : | #38 |
I am still suffering this bug on Ubuntu 11.10 amd64. Fontforge gives segmentation fault whenever I try to edit (e.g. transform) a glyph.
Paul Sladen (sladen) wrote : | #39 |
Blogcrawler: is your font transformation bug definitely showing GImageRead_Png() as the course?
(a) If it is, can you attach a stacktrace/
(b) If it's something else causing the crash; can you open a new bug against Fontforge and we'll try to debug it there so that we don't confuse two bugs (one of which is hopefully fixed).
BlogCrawler (blogcrawler) wrote : | #40 |
Paul: I noticed that the bug has already been reported in #817290
StacktraceTop: Lookup (ti=<value optimized out>) at gtextinfo.c:560 Lookup (ti=<value optimized out>) at gtextinfo.c:539
GImageRead_Png (fp=0x18d3620) at gimagereadpng.c:287
GImageReadPng (filename=<value optimized out>) at gimagereadpng.c:341
_GGadgetImageCache (filename=0x57d0d3 "fileclose.png", foundname=0x0) at gtextinfo.c:468
GTextInfoImage
GTextInfoImage