Bug 372391 - Firefox crashes on some fonts
Summary: Firefox crashes on some fonts
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: firefox
Version: 8
Hardware: i386
OS: Linux
low
high
Target Milestone: ---
Assignee: Gecko Maintainer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-11-09 09:41 UTC by Bart Vanbrabant
Modified: 2018-04-11 07:32 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-11-12 10:10:30 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Backtrace from crash (4.46 KB, text/plain)
2007-11-09 09:42 UTC, Bart Vanbrabant
no flags Details
screenshot of unsuccesful attempt to reproduce (225.58 KB, image/png)
2007-11-09 16:38 UTC, Matěj Cepl
no flags Details

Description Bart Vanbrabant 2007-11-09 09:41:00 UTC
Description of problem:
Firefox crashes on some sites. The problem seems related to some fonts, just
before the crash ff prints out this:

(gecko:2883): Pango-WARNING **: failed to create cairo scaled font, expect ugly
output. the offending font is 'Lucida Sans 8.25'

Gdb tells me this (first 13 items from backtrace in attachment):
0x00f1c6bd in nsHTMLReflowState::CalcLineHeight (aPresContext=0xaecb988,
    aRenderingContext=0xaf27138, aFrame=0xaf262ec)
    at nsHTMLReflowState.cpp:2224
2224      aFontMetrics->GetNormalLineHeight(normalLineHeight);

When I don't allow websites to use other fonts then I've defined in the
preferences the websites causing trouble work fine.

Version-Release number of selected component (if applicable):
firefox-2.0.0.9-1.fc8

But ff 2.0.0.8 alsa had the problem. The version that can be downloaded from
mozilla.org works fine.

How reproducible:
Always

Steps to Reproduce:
1. Make sure that you have Lucida Sans installed. It's included in the JVM's
from SUN. When installing the rpms and the compat packages from jpackage these
fonts are also available.
2. Make sure that "Allow pages to use their own fonts ..." is set in the preferences
3. Go to a website using this font. Like my own http://blog.zoeloelip.be
  
Actual results:
Firefox crashes (segmentation fault)

Expected results:
I can view the website!

Comment 1 Bart Vanbrabant 2007-11-09 09:42:55 UTC
Created attachment 252511 [details]
Backtrace from crash

Comment 2 Matěj Cepl 2007-11-09 16:38:26 UTC
Created attachment 253011 [details]
screenshot of unsuccesful attempt to reproduce

Cannot reproduce here with FF3alpha neither with 2.0.0.9. One possibility might
be something about the conflict between bitmap version of Lucida Sans from
xorg-fonts and the TTF ones from Java package?

Comment 3 Matěj Cepl 2007-11-09 16:40:42 UTC
Please, try to describe more details about your system to enable us to reproduce
this bug here.

Moreover, the backtrace is almost useless because it is the one only from one
thread of multithreaded firefox. You have to run gdb command

thread apply all backtrace

instead to get all threads.

Comment 4 Bart Vanbrabant 2007-11-10 10:47:42 UTC
The symlinks in /usr/share/fonts/java seemed to be dangling symlinks. I removed
them and the problem was gone. Afterwards I recated the dangling symlinks by I
can't reproduce the crash anymore.

Comment 5 Matěj Cepl 2007-11-12 10:10:30 UTC
OK, closing this bug per comment 4.


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