When running the mentioned jtreg tests with ubsan enabled binaries, the following issue is observed.
HS jtreg tests showing the issue
cds/appcds/LotsOfClasses.jtr
cds/appcds/cacheObject/ArchivedIntegerCacheTest.jtr
/jdk/src/hotspot/share/logging/logSelection.cpp:41:49: runtime error: load of value 32597, which is not a valid value for type 'type'
#0 0x7f55f6e84ac3 in LogSelection::LogSelection(LogTag::type const*, bool, LogLevel::type) /jdk/src/hotspot/share/logging/logSelection.cpp:41
#1 0x7f55f93f9d68 in LogSelection::suggest_similar_matching(outputStream*) const /jdk/src/hotspot/share/logging/logSelection.cpp:271
#2 0x7f55f93fb63f in LogSelectionList::verify_selections(outputStream*) const /jdk/src/hotspot/share/logging/logSelectionList.cpp:49
#3 0x7f55f93e5492 in LogConfiguration::parse_log_arguments(char const*, char const*, char const*, char const*, outputStream*) /jdk/src/hotspot/share/logging/logConfiguration.cpp:542
#4 0x7f55f93e5f77 in LogConfiguration::parse_command_line_arguments(char const*) /jdk/src/hotspot/share/logging/logConfiguration.cpp:451
#5 0x7f55f757af2e in Arguments::parse_each_vm_init_arg(JavaVMInitArgs const*, bool*, JVMFlagOrigin) /jdk/src/hotspot/share/runtime/arguments.cpp:2604
#6 0x7f55f757bc6b in Arguments::parse_vm_init_args(JavaVMInitArgs const*, JavaVMInitArgs const*, JavaVMInitArgs const*, JavaVMInitArgs const*) /jdk/src/hotspot/share/runtime/arguments.cpp:1993
#7 0x7f55f757c81e in Arguments::parse(JavaVMInitArgs const*) /jdk/src/hotspot/share/runtime/arguments.cpp:3551
#8 0x7f55fa3911b6 in Threads::create_vm(JavaVMInitArgs*, bool*) /jdk/src/hotspot/share/runtime/threads.cpp:454
#9 0x7f55f8ccee5f in JNI_CreateJavaVM_inner /jdk/src/hotspot/share/prims/jni.cpp:3581
#10 0x7f55f8ccee5f in JNI_CreateJavaVM /jdk/src/hotspot/share/prims/jni.cpp:3672
#11 0x7f55ff64b7d5 in InitializeJVM /jdk/src/java.base/share/native/libjli/java.c:1550
#12 0x7f55ff64b7d5 in JavaMain /jdk/src/java.base/share/native/libjli/java.c:491
#13 0x7f55ff654f68 in ThreadJavaMain /jdk/src/java.base/unix/native/libjli/java_md.c:642
#14 0x7f55ff3e66e9 in start_thread (/lib64/libpthread.so.0+0xa6e9) (BuildId: 2f8d3c2d0f4d7888c2598d2ff6356537f5708a73)
#15 0x7f55fecf150e in clone (/lib64/libc.so.6+0x11850e) (BuildId: f732026552f6adff988b338e92d466bc81a01c37)
HS jtreg tests showing the issue
cds/appcds/LotsOfClasses.jtr
cds/appcds/cacheObject/ArchivedIntegerCacheTest.jtr
/jdk/src/hotspot/share/logging/logSelection.cpp:41:49: runtime error: load of value 32597, which is not a valid value for type 'type'
#0 0x7f55f6e84ac3 in LogSelection::LogSelection(LogTag::type const*, bool, LogLevel::type) /jdk/src/hotspot/share/logging/logSelection.cpp:41
#1 0x7f55f93f9d68 in LogSelection::suggest_similar_matching(outputStream*) const /jdk/src/hotspot/share/logging/logSelection.cpp:271
#2 0x7f55f93fb63f in LogSelectionList::verify_selections(outputStream*) const /jdk/src/hotspot/share/logging/logSelectionList.cpp:49
#3 0x7f55f93e5492 in LogConfiguration::parse_log_arguments(char const*, char const*, char const*, char const*, outputStream*) /jdk/src/hotspot/share/logging/logConfiguration.cpp:542
#4 0x7f55f93e5f77 in LogConfiguration::parse_command_line_arguments(char const*) /jdk/src/hotspot/share/logging/logConfiguration.cpp:451
#5 0x7f55f757af2e in Arguments::parse_each_vm_init_arg(JavaVMInitArgs const*, bool*, JVMFlagOrigin) /jdk/src/hotspot/share/runtime/arguments.cpp:2604
#6 0x7f55f757bc6b in Arguments::parse_vm_init_args(JavaVMInitArgs const*, JavaVMInitArgs const*, JavaVMInitArgs const*, JavaVMInitArgs const*) /jdk/src/hotspot/share/runtime/arguments.cpp:1993
#7 0x7f55f757c81e in Arguments::parse(JavaVMInitArgs const*) /jdk/src/hotspot/share/runtime/arguments.cpp:3551
#8 0x7f55fa3911b6 in Threads::create_vm(JavaVMInitArgs*, bool*) /jdk/src/hotspot/share/runtime/threads.cpp:454
#9 0x7f55f8ccee5f in JNI_CreateJavaVM_inner /jdk/src/hotspot/share/prims/jni.cpp:3581
#10 0x7f55f8ccee5f in JNI_CreateJavaVM /jdk/src/hotspot/share/prims/jni.cpp:3672
#11 0x7f55ff64b7d5 in InitializeJVM /jdk/src/java.base/share/native/libjli/java.c:1550
#12 0x7f55ff64b7d5 in JavaMain /jdk/src/java.base/share/native/libjli/java.c:491
#13 0x7f55ff654f68 in ThreadJavaMain /jdk/src/java.base/unix/native/libjli/java_md.c:642
#14 0x7f55ff3e66e9 in start_thread (/lib64/libpthread.so.0+0xa6e9) (BuildId: 2f8d3c2d0f4d7888c2598d2ff6356537f5708a73)
#15 0x7f55fecf150e in clone (/lib64/libc.so.6+0x11850e) (BuildId: f732026552f6adff988b338e92d466bc81a01c37)
- duplicates
-
JDK-8340923 The class LogSelection copies uninitialized memory
- Resolved
- relates to
-
JDK-8340923 The class LogSelection copies uninitialized memory
- Resolved