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/immediate_aarch64.cpp:296 Shift exponent 32 is too large for 32-bit type 'int'
Invalid shift exponent
#0 0x0000000110811837 in expandLogicalImmediate(unsigned int, unsigned int, unsigned int, unsigned long long&) at /Users/gerard/Work/tmp/jdk/src/hotspot/cpu/aarch64/immediate_aarch64.cpp:296
#1 0x0000000110811e0b in initLITables() [inlined] at /Users/gerard/Work/tmp/jdk/src/hotspot/cpu/aarch64/immediate_aarch64.cpp:346
#2 0x0000000110811dcc in initLITables_t::initLITables_t() at /Users/gerard/Work/tmp/jdk/src/hotspot/cpu/aarch64/immediate_aarch64.cpp:338
#3 0x0000000110811dcb in initLITables_t::initLITables_t() at /Users/gerard/Work/tmp/jdk/src/hotspot/cpu/aarch64/immediate_aarch64.cpp:338
#4 0x000000018731f7c3 in invocation function for block in dyld4::Loader::findAndRunAllInitializers(dyld4::RuntimeState&) const ()
#13 0x000000018733caa7 in dyld4::APIs::dlopen_from(char const*, int, void*) ()
#14 0x00000001001050eb in LoadJavaVM at /Users/gerard/Work/tmp/jdk/src/java.base/macosx/native/libjli/java_md_macosx.m:553
#15 0x000000010010124b in JLI_Launch at /Users/gerard/Work/tmp/jdk/src/java.base/share/native/libjli/java.c:295
#16 0x0000000100003b9f in main at /Users/gerard/Work/tmp/jdk/src/java.base/share/native/launcher/main.c:166
#17 0x0000000100105c4b in apple_main at /Users/gerard/Work/tmp/jdk/src/java.base/macosx/native/libjli/java_md_macosx.m:310
#18 0x00000001000995d3 in _pthread_start ()
/Users/gerard/Work/tmp/jdk/src/hotspot/cpu/aarch64/immediate_aarch64.cpp:296 Shift exponent 32 is too large for 32-bit type 'int'
Invalid shift exponent
#0 0x0000000110811837 in expandLogicalImmediate(unsigned int, unsigned int, unsigned int, unsigned long long&) at /Users/gerard/Work/tmp/jdk/src/hotspot/cpu/aarch64/immediate_aarch64.cpp:296
#1 0x0000000110811e0b in initLITables() [inlined] at /Users/gerard/Work/tmp/jdk/src/hotspot/cpu/aarch64/immediate_aarch64.cpp:346
#2 0x0000000110811dcc in initLITables_t::initLITables_t() at /Users/gerard/Work/tmp/jdk/src/hotspot/cpu/aarch64/immediate_aarch64.cpp:338
#3 0x0000000110811dcb in initLITables_t::initLITables_t() at /Users/gerard/Work/tmp/jdk/src/hotspot/cpu/aarch64/immediate_aarch64.cpp:338
#4 0x000000018731f7c3 in invocation function for block in dyld4::Loader::findAndRunAllInitializers(dyld4::RuntimeState&) const ()
#13 0x000000018733caa7 in dyld4::APIs::dlopen_from(char const*, int, void*) ()
#14 0x00000001001050eb in LoadJavaVM at /Users/gerard/Work/tmp/jdk/src/java.base/macosx/native/libjli/java_md_macosx.m:553
#15 0x000000010010124b in JLI_Launch at /Users/gerard/Work/tmp/jdk/src/java.base/share/native/libjli/java.c:295
#16 0x0000000100003b9f in main at /Users/gerard/Work/tmp/jdk/src/java.base/share/native/launcher/main.c:166
#17 0x0000000100105c4b in apple_main at /Users/gerard/Work/tmp/jdk/src/java.base/macosx/native/libjli/java_md_macosx.m:310
#18 0x00000001000995d3 in _pthread_start ()
- relates to
-
JDK-8300935 Turn ON runtime sanitizer in clang toolkit to find issues
- Closed
- links to
-
Commit(master) openjdk/jdk/21ca91e5
-
Review(master) openjdk/jdk/20530