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

0/0 not throw Exception in Apple M1 JVM

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      other
    • OS:
      other

      Description

      ADDITIONAL SYSTEM INFORMATION :
      apple macbook pro M1

      A DESCRIPTION OF THE PROBLEM :
      System.out.println(10/0);

      Abnormal build process termination:
      /Library/Java/JavaVirtualMachines/jdk1.8.0_201.jdk/Contents/Home/bin/java -Xmx700m -Djava.awt.headless=true -Djava.endorsed.dirs=\"\" -Djdt.compiler.useSingleThread=true -Dpreload.project.path=/Users/liyibo/IdeaProjects/xwxy-edu "-Dpreload.config.path=/Users/liyibo/Library/Application Support/JetBrains/IntelliJIdea2020.3/options" -Dcompile.parallel=false -Drebuild.on.dependency.change=true -Dio.netty.initialSeedUniquifier=4525965194270275683 -Dfile.encoding=UTF-8 -Duser.language=zh -Duser.country=CN -Didea.paths.selector=IntelliJIdea2020.3 "-Didea.home.path=/Applications/IntelliJ IDEA.app/Contents" "-Didea.config.path=/Users/liyibo/Library/Application Support/JetBrains/IntelliJIdea2020.3" "-Didea.plugins.path=/Users/liyibo/Library/Application Support/JetBrains/IntelliJIdea2020.3/plugins" -Djps.log.dir=/Users/liyibo/Library/Logs/JetBrains/IntelliJIdea2020.3/build-log "-Djps.fallback.jdk.home=/Applications/IntelliJ IDEA.app/Contents/jbr/Contents/Home" -Djps.fallback.jdk.version=11.0.9.1 -Dio.netty.noUnsafe=true -Djava.io.tmpdir=/Users/liyibo/Library/Caches/JetBrains/IntelliJIdea2020.3/compile-server/xwxy_edu_f84c92de/_temp_ -Djps.backward.ref.index.builder=true -Djps.track.ap.dependencies=false -Dkotlin.incremental.compilation=true -Dkotlin.incremental.compilation.js=true -Dkotlin.daemon.enabled -Dkotlin.daemon.client.alive.path=\"/var/folders/88/tl3wtmhj6ml52wjcy2y4vdmm0000gn/T/kotlin-idea-1938880225892979814-is-running\" -classpath "/Applications/IntelliJ IDEA.app/Contents/plugins/java/lib/jps-launcher.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_201.jdk/Contents/Home/lib/tools.jar" org.jetbrains.jps.cmdline.Launcher "/Applications/IntelliJ IDEA.app/Contents/lib/netty-common-4.1.52.Final.jar:/Applications/IntelliJ IDEA.app/Contents/lib/netty-resolver-4.1.52.Final.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/java/lib/javac2.jar:/Applications/IntelliJ IDEA.app/Contents/lib/httpclient-4.5.12.jar:/Applications/IntelliJ IDEA.app/Contents/lib/plexus-component-annotations-1.7.1.jar:/Applications/IntelliJ IDEA.app/Contents/lib/maven-resolver-spi-1.3.3.jar:/Applications/IntelliJ IDEA.app/Contents/lib/util.jar:/Applications/IntelliJ IDEA.app/Contents/lib/platform-api.jar:/Applications/IntelliJ IDEA.app/Contents/lib/qdox-2.0-M10.jar:/Applications/IntelliJ IDEA.app/Contents/lib/asm-all-9.0.jar:/Applications/IntelliJ IDEA.app/Contents/lib/commons-lang3-3.10.jar:/Applications/IntelliJ IDEA.app/Contents/lib/jna.jar:/Applications/IntelliJ IDEA.app/Contents/lib/trove4j.jar:/Applications/IntelliJ IDEA.app/Contents/lib/nanoxml-2.2.3.jar:/Applications/IntelliJ IDEA.app/Contents/lib/maven-resolver-api-1.3.3.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/java/lib/maven-resolver-connector-basic-1.3.3.jar:/Applications/IntelliJ IDEA.app/Contents/lib/plexus-utils-3.2.0.jar:/Applications/IntelliJ IDEA.app/Contents/lib/maven-resolver-impl-1.3.3.jar:/Applications/IntelliJ IDEA.app/Contents/lib/jdom.jar:/Applications/IntelliJ IDEA.app/Contents/lib/maven-resolver-util-1.3.3.jar:/Applications/IntelliJ IDEA.app/Contents/lib/protobuf-java-3.13.0.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/java/lib/aether-dependency-resolver.jar:/Applications/IntelliJ IDEA.app/Contents/lib/netty-buffer-4.1.52.Final.jar:/Applications/IntelliJ IDEA.app/Contents/lib/forms-1.1-preview.jar:/Applications/IntelliJ IDEA.app/Contents/lib/annotations.jar:/Applications/IntelliJ IDEA.app/Contents/lib/maven-resolver-provider-3.6.1.jar:/Applications/IntelliJ IDEA.app/Contents/lib/resources_en.jar:/Applications/IntelliJ IDEA.app/Contents/lib/netty-transport-4.1.52.Final.jar:/Applications/IntelliJ IDEA.app/Contents/lib/netty-codec-4.1.52.Final.jar:/Applications/IntelliJ IDEA.app/Contents/lib/maven-model-3.6.1.jar:/Applications/IntelliJ IDEA.app/Contents/lib/guava-29.0-jre.jar:/Applications/IntelliJ IDEA.app/Contents/lib/intellij-deps-fastutil-8.4.1-4.jar:/Applications/IntelliJ IDEA.app/Contents/lib/lz4-java-1.7.1.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/java/lib/jps-javac-extension-1.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/java/lib/jps-builders-6.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/java/lib/maven-resolver-transport-file-1.3.3.jar:/Applications/IntelliJ IDEA.app/Contents/lib/jna-platform.jar:/Applications/IntelliJ IDEA.app/Contents/lib/oro-2.0.8.jar:/Applications/IntelliJ IDEA.app/Contents/lib/plexus-interpolation-1.25.jar:/Applications/IntelliJ IDEA.app/Contents/lib/jps-model.jar:/Applications/IntelliJ IDEA.app/Contents/lib/gson-2.8.6.jar:/Applications/IntelliJ IDEA.app/Contents/lib/maven-model-builder-3.6.1.jar:/Applications/IntelliJ IDEA.app/Contents/lib/maven-builder-support-3.6.1.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/java/lib/maven-resolver-transport-http-1.3.3.jar:/Applications/IntelliJ IDEA.app/Contents/lib/commons-logging-1.2.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/java/lib/jps-builders.jar:/Applications/IntelliJ IDEA.app/Contents/lib/maven-artifact-3.6.1.jar:/Applications/IntelliJ IDEA.app/Contents/lib/log4j.jar:/Applications/IntelliJ IDEA.app/Contents/lib/httpcore-4.4.13.jar:/Applications/IntelliJ IDEA.app/Contents/lib/slf4j-api-1.7.25.jar:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar:/Applications/IntelliJ IDEA.app/Contents/lib/maven-repository-metadata-3.6.1.jar:/Applications/IntelliJ IDEA.app/Contents/lib/gson-2.8.6.jar:/Applications/IntelliJ IDEA.app/Contents/lib/guava-29.0-jre.jar:/Applications/IntelliJ IDEA.app/Contents/lib/failureaccess-1.0.1.jar:/Applications/IntelliJ IDEA.app/Contents/lib/bcprov-jdk15on-1.65.jar:/Applications/IntelliJ IDEA.app/Contents/lib/bcpkix-jdk15on-1.65.jar:/Applications/IntelliJ IDEA.app/Contents/lib/jaxb-api-2.3.1.jar:/Applications/IntelliJ IDEA.app/Contents/lib/jaxb-runtime-2.3.1.jar:/Applications/IntelliJ IDEA.app/Contents/lib/istack-commons-runtime-3.0.7.jar:/Applications/IntelliJ IDEA.app/Contents/lib/javax.activation-1.2.0.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/android/lib/studio.android.sdktools.common-27.0.0.0.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/gradle/lib/gradle-api-6.7.jar:/Applications/IntelliJ IDEA.app/Contents/lib/gson-2.8.6.jar:/Applications/IntelliJ IDEA.app/Contents/lib/guava-29.0-jre.jar:/Applications/IntelliJ IDEA.app/Contents/lib/failureaccess-1.0.1.jar:/Applications/IntelliJ IDEA.app/Contents/lib/bcprov-jdk15on-1.65.jar:/Applications/IntelliJ IDEA.app/Contents/lib/bcpkix-jdk15on-1.65.jar:/Applications/IntelliJ IDEA.app/Contents/lib/jaxb-api-2.3.1.jar:/Applications/IntelliJ IDEA.app/Contents/lib/jaxb-runtime-2.3.1.jar:/Applications/IntelliJ IDEA.app/Contents/lib/istack-commons-runtime-3.0.7.jar:/Applications/IntelliJ IDEA.app/Contents/lib/javax.activation-1.2.0.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/android/lib/studio.android.sdktools.common-27.0.0.0.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/gradle/lib/gradle-api-6.7.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/JavaEE/lib/jasper-v2-rt.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/ant/lib/ant-jps.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/uiDesigner/lib/jps/java-guiForms-jps.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/eclipse/lib/eclipse-jps.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/eclipse/lib/eclipse-common.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/IntelliLang/lib/java-langInjection-jps.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/Groovy/lib/groovy-jps.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/Groovy/lib/groovy-constants-rt.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven-jps.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/aspectj/lib/aspectj-jps.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/gradle-java/lib/gradle-jps.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/devkit/lib/devkit-jps.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/javaFX/lib/javaFX-jps.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/javaFX/lib/javaFX-common.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/JavaEE/lib/javaee-jps.jar:/Users/liyibo/Library/Application Support/JetBrains/IntelliJIdea2020.3/plugins/Kotlin/lib/jps/kotlin-jps-plugin.jar:/Users/liyibo/Library/Application Support/JetBrains/IntelliJIdea2020.3/plugins/Kotlin/lib/kotlin-stdlib.jar:/Users/liyibo/Library/Application Support/JetBrains/IntelliJIdea2020.3/plugins/Kotlin/lib/kotlin-stdlib-jdk7.jar:/Users/liyibo/Library/Application Support/JetBrains/IntelliJIdea2020.3/plugins/Kotlin/lib/kotlin-stdlib-jdk8.jar:/Users/liyibo/Library/Application Support/JetBrains/IntelliJIdea2020.3/plugins/Kotlin/lib/kotlin-reflect.jar:/Users/liyibo/Library/Application Support/JetBrains/IntelliJIdea2020.3/plugins/Kotlin/lib/kotlin-plugin.jar:/Users/liyibo/Library/Application Support/JetBrains/IntelliJIdea2020.3/plugins/Kotlin/lib/kotlin-jps-common.jar:/Users/liyibo/Library/Application Support/JetBrains/IntelliJIdea2020.3/plugins/Kotlin/lib/kotlin-common.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/android/lib/apkzlib-4.0.0.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/android/lib/apksig-4.0.0.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/android/lib/jps/android-jps-plugin.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/android/lib/android-jps-model.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/android/lib/build-common.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/android/lib/android-rt.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/android/lib/studio.android.sdktools.sdk-common-27.0.0.0.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/android/lib/studio.android.sdktools.common-27.0.0.0.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/android/lib/studio.android.sdktools.repository-27.0.0.0.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/android/lib/studio.android.sdktools.sdklib-27.0.0.0.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/android/lib/studio.android.sdktools.layoutlib-api-27.0.0.0.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/android/lib/studio.android.sdktools.manifest-merger-27.0.0.0.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/JPA/lib/jps/javaee-jpa-jps.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/webSphereIntegration/lib/jps/javaee-appServers-websphere-jps.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/weblogicIntegration/lib/jps/javaee-appServers-weblogic-jps.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/Grails/lib/groovy-grails-jps.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/Grails/lib/groovy-grails-compilerPatch.jar" org.jetbrains.jps.cmdline.BuildMain 127.0.0.1 52220 0935654d-5fd1-4c9d-9809-776f474c378b /Users/liyibo/Library/Caches/JetBrains/IntelliJIdea2020.3/compile-server
      Build process started. Classpath: /Applications/IntelliJ IDEA.app/Contents/plugins/java/lib/jps-launcher.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_201.jdk/Contents/Home/lib/tools.jarSLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
      SLF4J: Defaulting to no-operation (NOP) logger implementation
      SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGFPE (0x8) at pc=0x0000000112ed3868, pid=55585, tid=0x00000000000040e3
      #
      # JRE version: Java(TM) SE Runtime Environment (8.0_201-b09) (build 1.8.0_201-b09)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.201-b09 mixed mode bsd-amd64 compressed oops)
      # 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
      #
      # Failed to write core dump. 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/liyibo/Library/Caches/JetBrains/IntelliJIdea2020.3/compile-server/hs_err_pid55585.log
      Compiled method (c1) 15360 1626 1 java.lang.Integer::intValue (5 bytes)
       total in heap [0x00000001133e9e50,0x00000001133ea0e0] = 656
       relocation [0x00000001133e9f78,0x00000001133e9fa0] = 40
       main code [0x00000001133e9fa0,0x00000001133ea020] = 128
       stub code [0x00000001133ea020,0x00000001133ea0b0] = 144
       scopes data [0x00000001133ea0b0,0x00000001133ea0b8] = 8
       scopes pcs [0x00000001133ea0b8,0x00000001133ea0d8] = 32
       dependencies [0x00000001133ea0d8,0x00000001133ea0e0] = 8
      #
      # If you would like to submit a bug report, please visit:
      # http://bugreport.java.com/bugreport/crash.jsp
      #

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      by zero exception
      ACTUAL -
      jvm send an error

      ---------- BEGIN SOURCE ----------
      System.out.println(10/0);
      ---------- END SOURCE ----------

        Attachments

          Activity

            People

            Assignee:
            adev ANUPAM DEV
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: