JDK-6916119 : Crash in libfontmanager.so
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 7
  • Priority: P2
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: linux
  • CPU: x86
  • Submitted: 2010-01-12
  • Updated: 2011-03-06
  • Resolved: 2011-03-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7Resolved
Related Reports
Relates :  
Description
Creating TextLayout object with some non Latin strings causes jvm crash on linux. Here is minimized test case:

import java.awt.*;
import java.awt.image.*;
import java.awt.font.*;
public class t {
    public static void main(String[] args) {
        BufferedImage img = new BufferedImage(BufferedImage.TYPE_INT_RGB, 10, 10);
        Graphics2D g2d = img.createGraphics();
        FontRenderContext frc = g2d.getFontRenderContext();
        Font  f = new Font("SansSerif", Font.PLAIN, 13);
        String str = new String(new int[] {2835,2849,2879,2876,2822}, 0, 5);
        new TextLayout(str, f, frc);
    }
}

#java -version
java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b78)
Java HotSpot(TM) Client VM (build 17.0-b05, mixed mode)

#java t
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xacb87e2c, pid=31163, tid=3075615632
#
# JRE version: 7.0-b78
# Java VM: Java HotSpot(TM) Client VM (17.0-b05 mixed mode linux-x86 )
# Problematic frame:
# C  [libfontmanager.so+0xbe2c]
#
# An error report file with more information is saved as:
# /export/bugs/7/FontManager.NOBUGID/hs_err_pid31163.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Aborted

Comments
EVALUATION Also crashes on Solaris SPARC with 6u18.
13-01-2010

EVALUATION Here is more info concerning configuration and font file. The problem was encountered on Ubuntu 8.10 (the Intrepid Ibex) #uname -a Linux ubuntu 2.6.27-11-generic #1 SMP Thu Jan 29 19:24:39 UTC 2009 i686 GNU/Linux It was caused by following font file (attached): /usr/share/fonts/truetype/ttf-oriya-fonts/lohit_or.ttf Here is modified test case: import java.awt.*; import java.awt.image.*; import java.awt.font.*; import java.io.*; public class t1 { public static void main(String[] args) throws Exception { BufferedImage img = new BufferedImage(BufferedImage.TYPE_INT_RGB, 10, 10); Graphics2D g2d = img.createGraphics(); FontRenderContext frc = g2d.getFontRenderContext(); String str = new String(new int[] {2835,2849,2879,2876,2822}, 0, 5); Font f = Font.createFont(Font.TRUETYPE_FONT, new File("lohit_or.ttf")); new TextLayout(str, f, frc); } }
13-01-2010

EVALUATION The code points in question are in the Indic Oriya script. This will be directed down to the ICU OpenType layout engine and I suspect the crash is there. What I can't tell from the info supplied is whether the logical font has a component font that supports Oriya. However I recall that we've seen at least one other bug (6817043) where such a crash occurred even though the script in question wasn't supported by the font. Requesting more info.
12-01-2010