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

SIGSEV in Java_sun_font_FreetypeFontScaler_getGlyphMetricsNative+0x17

    Details

    • Subcomponent:
      2d
    • Introduced In Build:
      b24
    • Introduced In Version:
      12
    • Resolved In Build:
      b29
    • CPU:
      generic
    • OS:
      linux

      Description

      ADDITIONAL SYSTEM INFORMATION :
      Ubuntu Linux x64, Java 12-ea+28 or Java 13-ea+4

      A DESCRIPTION OF THE PROBLEM :
      The latest build JDK 12-ea+28 and JDK 13-ea+4 crash with a SIGSEV when we execute the test-suite of Apache POI. Previous builds of JDK 12 up to 12-ea+20 did not show this issue, it seems to be recent regression

      See https://builds.apache.org/view/P/view/POI/job/POI-DSL-1.12/14/ and https://builds.apache.org/view/P/view/POI/job/POI-DSL-1.13/2/ for the CI builds which both triggered this bug.

      REGRESSION : Last worked in version 12

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      svn co https://svn.apache.org/repos/asf/poi/trunk/ poi
      cd poi
      #!/bin/sh

      set -e

      . setJava12.sh

      # requires Ant >= 1.9.5 due to https://bz.apache.org/bugzilla/show_bug.cgi?id=58271
      export ANT_HOME=/opt/apache/apache-ant/apache-ant-1.9.7
      export PATH=$ANT_HOME/bin:$PATH

      export ANT_OPTS="-Xmx1524m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=. --illegal-access=deny"

      ant \
          -Duser.language=en \
          -Duser.country=US \
          -Djava9addopens1=--illegal-access=deny \
          -Djava9addopens2=--add-opens=java.base/java.io=ALL-UNNAMED \
          -Djava9addopens3=--add-opens=java.base/java.nio=ALL-UNNAMED \
          -Djava9addopens4=--add-opens=java.base/java.lang=ALL-UNNAMED \
          -Djava9addopens5=--add-opens=java.base/jdk.internal.ref=ALL-UNNAMED \
              -Djava.locale.providers=JRE,CLDR \
              -Dcoverage.enabled=false \
              -Dorg.apache.poi.util.POILogger=org.apache.poi.util.NullLogger \
              -Dhalt.on.test.failure=false \
              test-all

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Test compile and pass fine
      ACTUAL -
      A segmentation fault is reported by the JVM:

          [junit] #
          [junit] # A fatal error has been detected by the Java Runtime Environment:
          [junit] #
          [junit] # SIGSEGV (0xb) at pc=0x00007fefb67f2ec6, pid=23084, tid=23087
          [junit] #
          [junit] # JRE version: OpenJDK Runtime Environment (12.0+28) (build 12-ea+28)
          [junit] # Java VM: OpenJDK 64-Bit Server VM (12-ea+28, mixed mode, sharing, tiered, compressed oops, g1 gc, linux-amd64)
          [junit] # Problematic frame:
          [junit] # C [libc.so.6+0x15fec6]
          [junit] #
          [junit] # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
          [junit] #
          [junit] # An error report file with more information is saved as:
          [junit] # /home/jenkins/jenkins-slave/workspace/POI-DSL-1.12/hs_err_pid23084.log
          [junit] #
          [junit] # If you would like to submit a bug report, please visit:
          [junit] # http://bugreport.java.com/bugreport/crash.jsp
          [junit] # The crash happened outside the Java Virtual Machine in native code.
          [junit] # See problematic frame for where to report the bug.
          [junit] #

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0x00007fefb67f2ec6, pid=23084, tid=23087
      #
      # JRE version: OpenJDK Runtime Environment (12.0+28) (build 12-ea+28)
      # Java VM: OpenJDK 64-Bit Server VM (12-ea+28, mixed mode, sharing, tiered, compressed oops, g1 gc, linux-amd64)
      # Problematic frame:
      # C [libc.so.6+0x15fec6]
      #
      # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
      #
      # If you would like to submit a bug report, please visit:
      # http://bugreport.java.com/bugreport/crash.jsp
      # The crash happened outside the Java Virtual Machine in native code.
      # See problematic frame for where to report the bug.
      #


      ---------- BEGIN SOURCE ----------
      https://svn.apache.org/repos/asf/poi/trunk/
      ---------- END SOURCE ----------

      FREQUENCY : always


        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                akolarkunnu Abdul Kolarkunnu
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: