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.
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*
BTW, the bug is also valid on x86.
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
Bug still persists on java 1.5.0.06 (x86).
Created attachment 87202 [details, diff] Patch for freefonts-0.10-r3 ebuild to workaround JVM bug Please apply and report any issues :-)
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
fixed in 1.6