Bug 372391

Summary: Firefox crashes on some fonts
Product: [Fedora] Fedora Reporter: Bart Vanbrabant <bart.vanbrabant>
Component: firefoxAssignee: Gecko Maintainer <gecko-bugs-nobody>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: low    
Version: 8CC: mcepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-11-12 10:10:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Backtrace from crash
none
screenshot of unsuccesful attempt to reproduce none

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.