Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101350 - media-fonts/freefonts ebuild causes JVM segmentation fault
Summary: media-fonts/freefonts ebuild causes JVM segmentation fault
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-04 09:43 UTC by Dane Foster
Modified: 2009-06-10 19:19 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for freefonts-0.10-r3 ebuild to workaround JVM bug (freefonts-jvm-workaround.diff,705 bytes, patch)
2006-05-21 09:46 UTC, Joël
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dane Foster 2005-08-04 09:43:58 UTC
In Sun's Java 1.5.0_04 AMD64 ${JRE_HOME}/lib/amd64/libfontmanager.so dies a
horrible death whenever it interacts with Type1 font[s] in the
media-fonts/freefonts package. Unfortunately I haven't had the opportunity to
find the exact font that causes the crash but I'm positive that the font resides
w/i media-fonts/freefonts.
Comment 1 Guillaume 2005-10-30 09:14:58 UTC
This is a JDK bug and is already reported here:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6289811

Here you can find a small java program to test the fonts:
http://support.jetbrains.com/kb/entry.jspa?externalID=172&categoryID=4

And it looks like the Old-Town fonts are the problematic ones:
Checking Font: Old-Town-Normal#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0xa9e5f7dd, pid=7461, tid=3085076160
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_05-b05 mixed mode)

A quick fix:
rm /usr/share/fonts/freefonts/old*
Comment 2 Guillaume 2005-10-30 11:51:37 UTC
BTW, the bug is also valid on x86.
Comment 3 Alias John Doe 2005-11-01 04:13:58 UTC
Checking Font: OSWALDblackopen("/usr/share/fonts/freefont/oswaldbl.pfb", 
O_RDONLY|O_LARGEFILE) = 17 
 OK. 
Checking Font: Old-Townopen("/usr/share/fonts/freefont/oldtwn_r.pfb", O_RDONLY|
O_LARGEFILE) = 4 
--- SIGSEGV (Segmentation fault) @ 0 (0) --- 
that is true.  
old-Town fonts is evil and crash evry java app that need to scan you fonts 
Comment 4 Joël 2006-05-21 08:21:51 UTC
Bug still persists on java 1.5.0.06 (x86).
Comment 5 Joël 2006-05-21 09:46:04 UTC
Created attachment 87202 [details, diff]
Patch for freefonts-0.10-r3 ebuild to workaround JVM bug

Please apply and report any issues :-)
Comment 6 Alistair Bush (RETIRED) gentoo-dev 2007-03-04 09:20:18 UTC
I am able to replicate this issue on amd64 using

blackdown-jdk-1.4.2
and
sun-jdk-1.5

I am unable to replicate this issue using sun-jdk-1.6.0

Comment 7 Alistair Bush (RETIRED) gentoo-dev 2009-06-10 19:19:29 UTC
fixed in 1.6