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

A simple testing method is causing a fatal error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 11.0.10
    • Fix Version/s: None
    • Component/s: hotspot
    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      os_x

      Description

      ADDITIONAL SYSTEM INFORMATION :
      Apple M1
      macOS Big Sur

      A DESCRIPTION OF THE PROBLEM :
      @Test(expectedExceptions = { IOException.class }, expectedExceptionsMessageRegExp = "Pass Message test")
          public void exceptionTest3() throws Exception {
      // throw new IOException("Pass Message test");
              System.out.println(2/0); // ***** This line is cause weird result
          }

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGFPE (0x8) at pc=0x0000000116e9ea48, pid=95155, tid=35227
      #
      # JRE version: Java(TM) SE Runtime Environment 18.9 (11.0.9+7) (build 11.0.9+7-LTS)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM 18.9 (11.0.9+7-LTS, mixed mode, tiered, compressed oops, g1 gc, bsd-amd64)
      # Problematic frame:
      # j com.sun.tools.javac.comp.ConstFold.fold2(ILcom/sun/tools/javac/code/Type;Lcom/sun/tools/javac/code/Type;)Lcom/sun/tools/javac/code/Type;+877 jdk.compiler@11.0.9
      #
      # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
      #
      # An error report file with more information is saved as:
      # /Users/kubilaydogan/Library/Caches/JetBrains/IdeaIC2020.3/compile-server/hs_err_pid95155.log
      Compiled method (c1) 26524 165 1 java.lang.Integer::intValue (5 bytes)
       total in heap [0x000000011e95c910,0x000000011e95cbe0] = 720
       relocation [0x000000011e95ca78,0x000000011e95caa0] = 40
       main code [0x000000011e95caa0,0x000000011e95cb20] = 128
       stub code [0x000000011e95cb20,0x000000011e95cbb0] = 144
       scopes data [0x000000011e95cbb0,0x000000011e95cbb8] = 8
       scopes pcs [0x000000011e95cbb8,0x000000011e95cbd8] = 32
       dependencies [0x000000011e95cbd8,0x000000011e95cbe0] = 8
      Could not load hsdis-amd64.dylib; library not loadable; PrintAssembly is disabled

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Create a java file
      2. Create the testing method given in description
      3. Right click => run

      ACTUAL -
      OUTPUT: Abnormal build process termination

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sswsharm swati sharma
              Reporter:
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: