Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6916119

Crash in libfontmanager.so

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P2 P2
    • 7
    • 7
    • client-libs
    • None
    • 2d
    • x86
    • linux

      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

            srl Steven Loomis
            avu Alexey Ushakov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: