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

unsafe.cpp:162:38: runtime error in index_oop_from_field_offset_long - applying non-zero offset 4563897424 to null pointer

    XMLWordPrintable

Details

    • b22
    • x86
    • generic

    Backports

      Description

        In the macos x86_64 build with '--enable-ubsan' set, we run deterministically into this error :

        /jdk/src/hotspot/share/prims/unsafe.cpp:162:38: runtime error: applying non-zero offset 4563897424 to null pointer
            #0 0x10e37a724 in index_oop_from_field_offset_long(oop, long) unsafe.cpp:162
            #1 0x10e37ba9e in MemoryAccess<long>::addr() unsafe.cpp:216
            #2 0x10e37bbb9 in MemoryAccess<long>::get_volatile() unsafe.cpp:257
            #3 0x10e370f28 in Unsafe_GetLongVolatile(JNIEnv_*, _jobject*, _jobject*, long) unsafe.cpp:343
            #4 0x12e425f0d (<unknown module>)
            #5 0x12e41f22b (<unknown module>)
            #6 0x12e41f22b (<unknown module>)

        Adding a big offset to nullptr seems to be detected as an issue.

        Attachments

          Issue Links

            Activity

              People

                mbaesken Matthias Baesken
                mbaesken Matthias Baesken
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: