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

UB: Load of misaligned address 0x00012f53417c for type 'uint64_t' (aka 'unsigned long long'), which requires 8 byte alignment

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 21
    • hotspot
    • None

      Undefined Behavior discovered after turning "UndefinedBehaviorSanitizer" in Xcode running simple HelloWorld java app. More info on clang undefined behavior sanitizer can be found https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html

      /Users/gerard/Work/tmp/jdk/src/hotspot/cpu/aarch64/nativeInst_aarch64.hpp:679 Load of misaligned address 0x00012f53417c for type 'uint64_t' (aka 'unsigned long long'), which requires 8 byte alignment

      Misaligned pointer use
      #0 0x0000000110fba8a7 in NativePostCallNop::check() const at /Users/gerard/Work/tmp/jdk/src/hotspot/cpu/aarch64/nativeInst_aarch64.hpp:679
      #1 0x00000001110bd403 in nativePostCallNop_at(unsigned char*) [inlined] at /Users/gerard/Work/tmp/jdk/src/hotspot/cpu/aarch64/nativeInst_aarch64.hpp:702
      #2 0x00000001110bd3f8 in CodeCache::find_blob_and_oopmap(void*, int&) at /Users/gerard/Work/tmp/jdk/src/hotspot/share/code/codeCache.inline.hpp:38
      #3 0x00000001110bd3f7 in CodeCache::find_blob_and_oopmap(void*, int&) at /Users/gerard/Work/tmp/jdk/src/hotspot/share/code/codeCache.inline.hpp:37
      #4 0x0000000110d8fae7 in CodeCache::find_blob_fast(void*) [inlined] at /Users/gerard/Work/tmp/jdk/src/hotspot/share/code/codeCache.inline.hpp:34
      #5 0x0000000110d8fad8 in frame::frame(long*, long*, long*, unsigned char*) at /Users/gerard/Work/tmp/jdk/src/hotspot/cpu/aarch64/frame_aarch64.inline.hpp:146
      #6 0x0000000110d8fad7 in frame::frame(long*, long*, long*, unsigned char*) at /Users/gerard/Work/tmp/jdk/src/hotspot/cpu/aarch64/frame_aarch64.inline.hpp:145
      #7 0x0000000110e386e0 in frame::frame(long*, long*, long*, unsigned char*) [inlined] at /Users/gerard/Work/tmp/jdk/src/hotspot/cpu/aarch64/frame_aarch64.inline.hpp:139
      #8 0x0000000110e386b4 in frame::sender_for_compiled_frame(RegisterMap*) const at /Users/gerard/Work/tmp/jdk/src/hotspot/cpu/aarch64/frame_aarch64.inline.hpp:454
      #9 0x0000000110e38178 in frame::sender_raw(RegisterMap*) const at /Users/gerard/Work/tmp/jdk/src/hotspot/cpu/aarch64/frame_aarch64.inline.hpp:397
      #10 0x0000000110eaf627 in frame::sender(RegisterMap*) const at /Users/gerard/Work/tmp/jdk/src/hotspot/cpu/aarch64/frame_aarch64.inline.hpp:374
      #11 0x00000001110cc21f in vframeStreamCommon::next() at /Users/gerard/Work/tmp/jdk/src/hotspot/share/runtime/vframe.inline.hpp:103
      #12 0x000000011112c7b3 in ::JVM_GetStackAccessControlContext(JNIEnv *, jclass) at /Users/gerard/Work/tmp/jdk/src/hotspot/share/prims/jvm.cpp:1309
      #13 0x000000012f54915b in 0x12f54915b ()
      #17 0x000000012f53417b in 0x12f53417b ()
      #18 0x0000000110ea2d8f in JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*) at /Users/gerard/Work/tmp/jdk/src/hotspot/share/runtime/javaCalls.cpp:417
      #19 0x0000000110ea1adb in JavaCalls::call_special(JavaValue*, Klass*, Symbol*, Symbol*, JavaCallArguments*, JavaThread*) at /Users/gerard/Work/tmp/jdk/src/hotspot/share/runtime/javaCalls.cpp:223
      #20 0x0000000110ea1ddf in JavaCalls::call_special(JavaValue*, Handle, Klass*, Symbol*, Symbol*, Handle, Handle, JavaThread*) at /Users/gerard/Work/tmp/jdk/src/hotspot/share/runtime/javaCalls.cpp:244
      #21 0x0000000110ef9f37 in create_initial_thread(Handle, JavaThread*, JavaThread*) [inlined] at /Users/gerard/Work/tmp/jdk/src/hotspot/share/runtime/threads.cpp:158
      #22 0x0000000110ef9e7c in Threads::initialize_java_lang_classes(JavaThread*, JavaThread*) at /Users/gerard/Work/tmp/jdk/src/hotspot/share/runtime/threads.cpp:349
      #23 0x0000000110ef9e7b in Threads::initialize_java_lang_classes(JavaThread*, JavaThread*) at /Users/gerard/Work/tmp/jdk/src/hotspot/share/runtime/threads.cpp:336
      #24 0x0000000110efb4df in Threads::create_vm(JavaVMInitArgs*, bool*) at /Users/gerard/Work/tmp/jdk/src/hotspot/share/runtime/threads.cpp:631
      #25 0x0000000111111b0b in JNI_CreateJavaVM_inner(JavaVM_**, void**, void*) [inlined] at /Users/gerard/Work/tmp/jdk/src/hotspot/share/prims/jni.cpp:3591
      #26 0x0000000111111a74 in ::JNI_CreateJavaVM(JavaVM **, void **, void *) at /Users/gerard/Work/tmp/jdk/src/hotspot/share/prims/jni.cpp:3677
      #27 0x0000000111111a73 in ::JNI_CreateJavaVM(JavaVM **, void **, void *) at /Users/gerard/Work/tmp/jdk/src/hotspot/share/prims/jni.cpp:3671
      #28 0x00000001001027f7 in InitializeJVM [inlined] at /Users/gerard/Work/tmp/jdk/src/java.base/share/native/libjli/java.c:1459
      #29 0x0000000100102744 in JavaMain at /Users/gerard/Work/tmp/jdk/src/java.base/share/native/libjli/java.c:413
      #30 0x0000000100102743 in JavaMain ()
      #31 0x00000001001053f7 in ThreadJavaMain at /Users/gerard/Work/tmp/jdk/src/java.base/macosx/native/libjli/java_md_macosx.m:720
      #32 0x00000001000995d3 in _pthread_start ()

            Unassigned Unassigned
            gziemski Gerard Ziemski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: