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

[AOT] SEGV in AMD64MathStub.pow: alignment for ArrayDataPointerConstant is not honored

XMLWordPrintable

    • b21
    • x86
    • generic
    • Verified

      This works fine in 9 so I'm not exactly sure what's different.

      Steps to reproduce:

      1) Find a machine without AVX support
      2) Build jdk10/hs
      3) Run:

      $ sh hotspot/test/compiler/aot/scripts/build-jdk.vm-modules.sh

      4) Run:

      $ ./build/linux-x86_64-normal-server-release/images/jdk/bin/java -XX:+UnlockDiagnosticVMOptions -XX:+UseAOTStrictLoading -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+UseJVMCICompiler -XX:+BootstrapJVMCI -XX:-TieredCompilation -version
      Bootstrapping JVMCI#
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0x00007fbdec95fe70, pid=15947, tid=15967
      #
      # JRE version: OpenJDK Runtime Environment (10.0) (build 10-internal+0-adhoc.cthalinger.hs)
      # Java VM: OpenJDK 64-Bit Server VM (10-internal+0-adhoc.cthalinger.hs, mixed mode, aot, jvmci, jvmci compiler, compressed oops, serial gc, linux-amd64)
      # Problematic frame:
      # v ~RuntimeStub::AOT Stub<AMD64MathStub.pow>
      #

      The crash happens at the addpd instruction:

        0x00007f09dc95fe5e: lea 0x6c1d5f(%rip),%rdi # 0x00007f09dd021bc4
        0x00007f09dc95fe65: and $0xffc000,%r8d
        0x00007f09dc95fe6c: shr $0xa,%r8d
        0x00007f09dc95fe70: addpd -0xe40(%rdi,%r8,1),%xmm5

            bobv Bob Vandette (Inactive)
            twisti Christian Thalinger (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: