Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 242316 - Firefox crashes when fonts are missing
Firefox crashes when fonts are missing
Product: Fedora
Classification: Fedora
Component: firefox (Show other bugs)
i386 Linux
low Severity medium
: ---
: ---
Assigned To: Martin Stransky
Depends On:
  Show dependency treegraph
Reported: 2007-06-03 04:29 EDT by Krzysio (Chris) Leszczynski
Modified: 2018-04-11 13:14 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-10-16 07:49:08 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
The result of strace running firefox (102.97 KB, application/x-bzip)
2007-06-03 04:29 EDT, Krzysio (Chris) Leszczynski
no flags Details

  None (edit)
Description Krzysio (Chris) Leszczynski 2007-06-03 04:29:39 EDT
Description of problem:
Firefox crashes within a second when pointed to http://pl.wikipedia.org/
I'm not sure whether this is a bug in firefox or in pango. 

Version-Release number of selected component (if applicable):
latest yummed today:

How reproducible:

Steps to Reproduce:
1. firefox http://pl.wikipedia.org/

Actual results:
Crashes immediately, other pages (google, slashdot, en.wikipedia.org) work

Expected results:

Additional info:
It worked perfectly just before I upgraded from FC6 to F7 yesterday.
I'm not sure whether this is problem with firefox or with pango.
The firefox output the following to stderr:
(gecko:13045): Pango-WARNING **: shape engine failure, expect ugly output. the
offending font is 'Lucida Sans Not-Rotated 8.4990234375'

I'm attaching the result of strace. I was unable to make ltrace.
Comment 1 Krzysio (Chris) Leszczynski 2007-06-03 04:29:39 EDT
Created attachment 156018 [details]
The result of strace running firefox
Comment 2 Matěj Cepl 2007-06-04 07:18:26 EDT
Not able to reproduce this on FC7. Tried to use Lucida Sans Unicode fonts (which
is presumably what you have) and even browse through many different wikipedias
(even those, which are not possible to display with Lucida Sans font) and
firefox didn't crash.
Comment 3 Krzysio (Chris) Leszczynski 2007-06-04 18:48:13 EDT
I found that after upgrading from FC6 to FC7 my Java Development Kit was
uninstalled. I found that Firefox tries to open the font from Java toolkit and
then crashes immediately.
      futex(0xa340508, FUTEX_WAKE, 1)         = 1
      open("/usr/share/fonts/java/LucidaSansRegular.ttf", O_RDONLY) = -1 ENOENT
(No such file or directory)
      --- SIGSEGV (Segmentation fault) @ 0 (0) ---
      unlink("/home/chris/.mozilla/firefox/0vio21ts.default/lock") = 0
      rt_sigaction(SIGSEGV, {SIG_DFL}, NULL, 8) = 0

I just added the missing font and voila! Firefox runs on every page sweetly.
Still I think it should make SIGSEGV just because one of its truetype is
missing. Again, I'm not sure whether this is inside firefox or pango library.
Comment 4 Behdad Esfahbod 2007-06-04 22:28:51 EDT
can you somehow get a backtrace of who's opening that font file?
I'm pretty sure I've hardened Pango to survive missing fonts.
Comment 5 Martin Stransky 2007-09-11 08:29:51 EDT
Taking that bug.
Comment 6 Martin Stransky 2007-10-16 07:49:08 EDT
Unable to reproduce. Closing as WORKSFORME. Please reopen if you find a reliable
way how to reproduce it.

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