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

[ubsan] aotMapLogger.cpp:864:44: runtime error: applying non-zero offset NNNNN to null pointer

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • hotspot

      In macosx-aarch64 UBSAN build the following tests show the error message:
      runtime/cds/AOTMapTest.java
      runtime/logging/StressAsyncUL.java
      runtime/logging/AsyncDeathTest.java
      runtime/logging/RedefineClasses.java
      serviceability/logging/TestBasicLogOutput.java
      serviceability/logging/TestFullNames.java
      serviceability/logging/TestQuotedLogOutputs.java

      Error and stack:

      stderr: [OpenJDK 64-Bit Server VM warning: dependency logging results may be inflated by VerifyDependencies
      OpenJDK 64-Bit Server VM warning: class load cause logging will not produce output without LogClassLoadingCauseFor
      /Users/afshin/scratch/UBSAN_build/src/hotspot/share/cds/aotMapLogger.cpp:864:44: runtime error: applying non-zero offset 34357641216 to null pointer
          #0 0x10c54822c in AOTMapLogger::runtime_log_heap_region(FileMapInfo*) aotMapLogger.cpp:864
          #1 0x10c547520 in AOTMapLogger::runtime_log(FileMapInfo*, GrowableArrayCHeap<AOTMapLogger::ArchivedObjInfo, (MemTag)1>*) aotMapLogger.cpp:196
          #2 0x10c547190 in AOTMapLogger::runtime_log(FileMapInfo*, FileMapInfo*) aotMapLogger.cpp:182
          #3 0x10c557b98 in AOTMetaspace::post_initialize(JavaThread*) aotMetaspace.cpp:335
          #4 0x10f164634 in universe_post_init() universe.cpp:1176
          #5 0x10dededf8 in init_globals2() init.cpp:200
          #6 0x10f0dea58 in Threads::create_vm(JavaVMInitArgs*, bool*) threads.cpp:622
          #7 0x10e1c7c04 in JNI_CreateJavaVM_inner(JavaVM_**, void**, void*) jni.cpp:3587
          #8 0x10e1c7b08 in JNI_CreateJavaVM jni.cpp:3678
          #9 0x104bbef38 in InitializeJVM java.c:1506
          #10 0x104bbafa4 in JavaMain java.c:494
          #11 0x104bcdc70 in ThreadJavaMain java_md_macosx.m:679
          #12 0x18ee8bbc4 in _pthread_start+0x84 (libsystem_pthread.dylib:arm64e+0x6bc4)
          #13 0x18ee86b7c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1b7c)

      SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /Users/afshin/scratch/UBSAN_build/src/hotspot/share/cds/aotMapLogger.cpp:864:44 in
      ]
       exitValue = 134

            Unassigned Unassigned
            azafari Afshin Zafari
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: