Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8287034 [REDO] x86: Handle integral division overflow during parsing
  3. JDK-8286182

[BACKOUT] x86: Handle integral division overflow during parsing

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Build:
      b20
    • Introduced In Version:
      19
    • Resolved In Build:
      b24
    • CPU:
      x86

      Description

      # SIGFPE (0x8) at pc=0x00007fd2a0849b1a, pid=90495, tid=90496
      # J 106 c2 Test.mainTest([Ljava/lang/String;)V (853 bytes) @ 0x00007fd2a0849b1a [0x00007fd2a0848ca0+0x0000000000000e7a]

      Crashes at:
        0x00007fd2a0849b1a: idivl 0x7c(%rsp) ;*invokevirtual append {reexecute=0 rethrow=0 return_oop=0}
                                                                  ; - Test::mainTest@409 (line 154)

      HOW TO REPRODUCE IT:

      Generate bytecode targeting JVM 8 and run it on JVM 19 (b20 or later version, debug or release) as follows:

      $ javac --source 8 --target 8 Test.java FuzzerUtils.java
      $ java Test
      (...)
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGFPE (0x8) at pc=0x00007fa848af7a19, pid=89901, tid=89902
      #
      # JRE version: OpenJDK Runtime Environment (19.0) (fastdebug build 19-internal-adhoc.rocastan.open)
      # Java VM: OpenJDK 64-Bit Server VM (fastdebug 19-internal-adhoc.rocastan.open, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # J 294 c2 Test.mainTest([Ljava/lang/String;)V (853 bytes) @ 0x00007fa848af7a19 [0x00007fa848af7360+0x00000000000006b9]

      ORIGINAL INSTRUCTIONS:

      To reproduce:
      $ java -XX:-BackgroundCompilation Test

      For some reason, the crash doesn't seem to reproduce it I rebuild the class files from the java files. The class files were produced from the java files initially though. The out attached file contains the entire output, disassembly included.

        Attachments

        1. FuzzerUtils.class
          9 kB
        2. FuzzerUtils.java
          13 kB
        3. hs_err_pid90495.log
          930 kB
        4. out
          1.10 MB
        5. Test.class
          4 kB
        6. Test.java
          7 kB

          Issue Links

            Activity

              People

              Assignee:
              qamai Quan Anh Mai
              Reporter:
              roland Roland Westrelin
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: