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

Unaligned memory access in Bits.c

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Environment:

      Reproducible on Ubuntu 14.04 x64.

    • Subcomponent:
    • Resolved In Build:
      b108
    • CPU:
      x86_64
    • OS:
      linux
    • Verification:
      Verified

      Description

      This is a follow-on issue to JDK-8140630. When devkit was updated to version 4.9.2 on Linux-x86_64, the JDK test java/nio/Buffer/Basic.java crashed with a SIG_SEGV in Mach5 testing. This is a tier 1 failure.

      It was found that compiling src/java.base/share/native/libjava/Bits.c using normal (-O2) optimization instead of high (-O3) resolved the immediate problem. The concern however is that there is an underlying pattern in the optimized compiled code which might manifest itself elsewhere. It would be better to examine the problem in detail in order to find the root cause and hopefully a better solution.
      1. bits.c
        0.3 kB
        Mikael Vidstedt
      2. bits.h
        0.1 kB
        Mikael Vidstedt
      3. hellobits.c
        0.2 kB
        Mikael Vidstedt
      4. Makefile
        0.5 kB
        Mikael Vidstedt

        Issue Links

          Activity

          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/hs-rt/hotspot/rev/75f6573e9c44
          User: mikael
          Date: 2016-02-11 01:02:44 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/hs-rt/hotspot/rev/75f6573e9c44 User: mikael Date: 2016-02-11 01:02:44 +0000
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/hs-rt/jdk/rev/13759d57abca
          User: mikael
          Date: 2016-02-11 01:02:45 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/hs-rt/jdk/rev/13759d57abca User: mikael Date: 2016-02-11 01:02:45 +0000
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/75f6573e9c44
          User: lana
          Date: 2016-03-02 19:34:38 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/75f6573e9c44 User: lana Date: 2016-03-02 19:34:38 +0000
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/13759d57abca
          User: lana
          Date: 2016-03-02 19:34:40 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/13759d57abca User: lana Date: 2016-03-02 19:34:40 +0000
          Hide
          mli Hamlin Li added a comment -
          verified in b139
          Show
          mli Hamlin Li added a comment - verified in b139

            People

            • Assignee:
              mikael Mikael Vidstedt
              Reporter:
              bpb Brian Burkhalter
            • Votes:
              0 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: