BT:
Test: test/hotspot/jtreg/runtime/ErrorHandling/TestOnError.java
stderr: [/home/amit/ubsan/jdk/src/hotspot/share/nmt/mallocTracker.cpp:243:26: runtime error: pointer index expression with base 0x000000001000 overflowed to 0xfffffffffffffff0
#0 0x3ff9075862f in MallocTracker::print_pointer_information(void const*, outputStream*) /home/amit/ubsan/jdk/src/hotspot/share/nmt/mallocTracker.cpp:24
3
#1 0x3ff907fd17f in MemTracker::print_containing_region(void const*, outputStream*) /home/amit/ubsan/jdk/src/hotspot/share/nmt/memTracker.cpp:125
#2 0x3ff90b32043 in os::print_location(outputStream*, long, bool) /home/amit/ubsan/jdk/src/hotspot/share/runtime/os.cpp:1338
#3 0x3ff90b6cc5f in os::print_register_info(outputStream*, void const*, int&) /home/amit/ubsan/jdk/src/hotspot/os_cpu/linux_s390/os_linux_s390.cpp:467
#4 0x3ff914c1975 in VMError::report(outputStream*, bool) /home/amit/ubsan/jdk/src/hotspot/share/utilities/vmError.cpp:1011
#5 0x3ff914c4dc3 in VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void const*, void const*, char const
*, int, unsigned long) /home/amit/ubsan/jdk/src/hotspot/share/utilities/vmError.cpp:1773
#6 0x3ff914c5ebd in VMError::report_and_die(Thread*, unsigned int, unsigned char*, void const*, void const*, char const*, ...) /home/amit/ubsan/jdk/src/
hotspot/share/utilities/vmError.cpp:1523
#7 0x3ff914c5ef7 in VMError::report_and_die(Thread*, unsigned int, unsigned char*, void const*, void const*) /home/amit/ubsan/jdk/src/hotspot/share/util
ities/vmError.cpp:1537
#8 0x3ff90facb65 in JVM_handle_linux_signal /home/amit/ubsan/jdk/src/hotspot/os/posix/signals_posix.cpp:648
#9 0x3ff94efe47f (linux-vdso64.so.1+0x47f)
#10 0x3ff914bc441 in crash_with_segfault /home/amit/ubsan/jdk/src/hotspot/share/utilities/vmError.cpp:2042
#11 0x3ff914bc441 in VMError::controlled_crash(int) /home/amit/ubsan/jdk/src/hotspot/share/utilities/vmError.cpp:2072
#12 0x3ff900562dd in JNI_CreateJavaVM_inner /home/amit/ubsan/jdk/src/hotspot/share/prims/jni.cpp:3629
#13 0x3ff900562dd in JNI_CreateJavaVM /home/amit/ubsan/jdk/src/hotspot/share/prims/jni.cpp:3680
#14 0x3ff94e10789 in InitializeJVM /home/amit/ubsan/jdk/src/java.base/share/native/libjli/java.c:1495
#15 0x3ff94e10789 in JavaMain /home/amit/ubsan/jdk/src/java.base/share/native/libjli/java.c:494
#16 0x3ff94e199a7 in ThreadJavaMain /home/amit/ubsan/jdk/src/java.base/unix/native/libjli/java_md.c:649
#17 0x3ff94516295 in start_thread nptl/pthread_create.c:442
#18 0x3ff9458ff8d (/lib/s390x-linux-gnu/libc.so.6+0x10ff8d)
I got a different error at the same location for a different test case:
Test: test/hotspot/jtreg/runtime/ErrorHandling/TestDwarf.java
/home/amit/ubsan/jdk/src/hotspot/share/nmt/mallocTracker.cpp:243:26: runtime error: applying non-zero offset 18446744073709547504 to null pointer
#0 0x3ffb315862f in MallocTracker::print_pointer_information(void const*, outputStream*) /home/amit/ubsan/jdk/src/hotspot/share/nmt/mallocTracker.cpp:24
3
#1 0x3ffb31fd17f in MemTracker::print_containing_region(void const*, outputStream*) /home/amit/ubsan/jdk/src/hotspot/share/nmt/memTracker.cpp:125
#2 0x3ffb3532043 in os::print_location(outputStream*, long, bool) /home/amit/ubsan/jdk/src/hotspot/share/runtime/os.cpp:1338
#3 0x3ffb356cc5f in os::print_register_info(outputStream*, void const*, int&) /home/amit/ubsan/jdk/src/hotspot/os_cpu/linux_s390/os_linux_s390.cpp:467
#4 0x3ffb3ec1975 in VMError::report(outputStream*, bool) /home/amit/ubsan/jdk/src/hotspot/share/utilities/vmError.cpp:1011
#5 0x3ffb3ec4dc3 in VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void const*, void const*, char const
*, int, unsigned long) /home/amit/ubsan/jdk/src/hotspot/share/utilities/vmError.cpp:1773
#6 0x3ffb1eb6f69 in report_vm_error(char const*, int, char const*, char const*, ...) /home/amit/ubsan/jdk/src/hotspot/share/utilities/debug.cpp:197
#7 0x3ffb155de03 in Compilation::~Compilation() /home/amit/ubsan/jdk/src/hotspot/share/c1/c1_Compilation.cpp:626
#8 0x3ffb155de03 in Compilation::~Compilation() /home/amit/ubsan/jdk/src/hotspot/share/c1/c1_Compilation.cpp:624
#9 0x3ffb157109d in Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*) /home/amit/ubsan/jdk/src/hotspot/share/c1/c1_Compiler.cpp:264
#10 0x3ffb1d90cc7 in CompileBroker::invoke_compiler_on_method(CompileTask*) /home/amit/ubsan/jdk/src/hotspot/share/compiler/compileBroker.cpp:2319
#11 0x3ffb1d9287d in CompileBroker::compiler_thread_loop() /home/amit/ubsan/jdk/src/hotspot/share/compiler/compileBroker.cpp:1977
#12 0x3ffb282be79 in JavaThread::thread_main_inner() /home/amit/ubsan/jdk/src/hotspot/share/runtime/javaThread.cpp:777
#13 0x3ffb3c6d509 in Thread::call_run() /home/amit/ubsan/jdk/src/hotspot/share/runtime/thread.cpp:232
#14 0x3ffb35530af in thread_native_entry /home/amit/ubsan/jdk/src/hotspot/os/linux/os_linux.cpp:860
#15 0x3ffb6f16295 in start_thread nptl/pthread_create.c:442
#16 0x3ffb6f8ff8d (/lib/s390x-linux-gnu/libc.so.6+0x10ff8d)
Test: test/hotspot/jtreg/runtime/ErrorHandling/TestOnError.java
stderr: [/home/amit/ubsan/jdk/src/hotspot/share/nmt/mallocTracker.cpp:243:26: runtime error: pointer index expression with base 0x000000001000 overflowed to 0xfffffffffffffff0
#0 0x3ff9075862f in MallocTracker::print_pointer_information(void const*, outputStream*) /home/amit/ubsan/jdk/src/hotspot/share/nmt/mallocTracker.cpp:24
3
#1 0x3ff907fd17f in MemTracker::print_containing_region(void const*, outputStream*) /home/amit/ubsan/jdk/src/hotspot/share/nmt/memTracker.cpp:125
#2 0x3ff90b32043 in os::print_location(outputStream*, long, bool) /home/amit/ubsan/jdk/src/hotspot/share/runtime/os.cpp:1338
#3 0x3ff90b6cc5f in os::print_register_info(outputStream*, void const*, int&) /home/amit/ubsan/jdk/src/hotspot/os_cpu/linux_s390/os_linux_s390.cpp:467
#4 0x3ff914c1975 in VMError::report(outputStream*, bool) /home/amit/ubsan/jdk/src/hotspot/share/utilities/vmError.cpp:1011
#5 0x3ff914c4dc3 in VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void const*, void const*, char const
*, int, unsigned long) /home/amit/ubsan/jdk/src/hotspot/share/utilities/vmError.cpp:1773
#6 0x3ff914c5ebd in VMError::report_and_die(Thread*, unsigned int, unsigned char*, void const*, void const*, char const*, ...) /home/amit/ubsan/jdk/src/
hotspot/share/utilities/vmError.cpp:1523
#7 0x3ff914c5ef7 in VMError::report_and_die(Thread*, unsigned int, unsigned char*, void const*, void const*) /home/amit/ubsan/jdk/src/hotspot/share/util
ities/vmError.cpp:1537
#8 0x3ff90facb65 in JVM_handle_linux_signal /home/amit/ubsan/jdk/src/hotspot/os/posix/signals_posix.cpp:648
#9 0x3ff94efe47f (linux-vdso64.so.1+0x47f)
#10 0x3ff914bc441 in crash_with_segfault /home/amit/ubsan/jdk/src/hotspot/share/utilities/vmError.cpp:2042
#11 0x3ff914bc441 in VMError::controlled_crash(int) /home/amit/ubsan/jdk/src/hotspot/share/utilities/vmError.cpp:2072
#12 0x3ff900562dd in JNI_CreateJavaVM_inner /home/amit/ubsan/jdk/src/hotspot/share/prims/jni.cpp:3629
#13 0x3ff900562dd in JNI_CreateJavaVM /home/amit/ubsan/jdk/src/hotspot/share/prims/jni.cpp:3680
#14 0x3ff94e10789 in InitializeJVM /home/amit/ubsan/jdk/src/java.base/share/native/libjli/java.c:1495
#15 0x3ff94e10789 in JavaMain /home/amit/ubsan/jdk/src/java.base/share/native/libjli/java.c:494
#16 0x3ff94e199a7 in ThreadJavaMain /home/amit/ubsan/jdk/src/java.base/unix/native/libjli/java_md.c:649
#17 0x3ff94516295 in start_thread nptl/pthread_create.c:442
#18 0x3ff9458ff8d (/lib/s390x-linux-gnu/libc.so.6+0x10ff8d)
I got a different error at the same location for a different test case:
Test: test/hotspot/jtreg/runtime/ErrorHandling/TestDwarf.java
/home/amit/ubsan/jdk/src/hotspot/share/nmt/mallocTracker.cpp:243:26: runtime error: applying non-zero offset 18446744073709547504 to null pointer
#0 0x3ffb315862f in MallocTracker::print_pointer_information(void const*, outputStream*) /home/amit/ubsan/jdk/src/hotspot/share/nmt/mallocTracker.cpp:24
3
#1 0x3ffb31fd17f in MemTracker::print_containing_region(void const*, outputStream*) /home/amit/ubsan/jdk/src/hotspot/share/nmt/memTracker.cpp:125
#2 0x3ffb3532043 in os::print_location(outputStream*, long, bool) /home/amit/ubsan/jdk/src/hotspot/share/runtime/os.cpp:1338
#3 0x3ffb356cc5f in os::print_register_info(outputStream*, void const*, int&) /home/amit/ubsan/jdk/src/hotspot/os_cpu/linux_s390/os_linux_s390.cpp:467
#4 0x3ffb3ec1975 in VMError::report(outputStream*, bool) /home/amit/ubsan/jdk/src/hotspot/share/utilities/vmError.cpp:1011
#5 0x3ffb3ec4dc3 in VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void const*, void const*, char const
*, int, unsigned long) /home/amit/ubsan/jdk/src/hotspot/share/utilities/vmError.cpp:1773
#6 0x3ffb1eb6f69 in report_vm_error(char const*, int, char const*, char const*, ...) /home/amit/ubsan/jdk/src/hotspot/share/utilities/debug.cpp:197
#7 0x3ffb155de03 in Compilation::~Compilation() /home/amit/ubsan/jdk/src/hotspot/share/c1/c1_Compilation.cpp:626
#8 0x3ffb155de03 in Compilation::~Compilation() /home/amit/ubsan/jdk/src/hotspot/share/c1/c1_Compilation.cpp:624
#9 0x3ffb157109d in Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*) /home/amit/ubsan/jdk/src/hotspot/share/c1/c1_Compiler.cpp:264
#10 0x3ffb1d90cc7 in CompileBroker::invoke_compiler_on_method(CompileTask*) /home/amit/ubsan/jdk/src/hotspot/share/compiler/compileBroker.cpp:2319
#11 0x3ffb1d9287d in CompileBroker::compiler_thread_loop() /home/amit/ubsan/jdk/src/hotspot/share/compiler/compileBroker.cpp:1977
#12 0x3ffb282be79 in JavaThread::thread_main_inner() /home/amit/ubsan/jdk/src/hotspot/share/runtime/javaThread.cpp:777
#13 0x3ffb3c6d509 in Thread::call_run() /home/amit/ubsan/jdk/src/hotspot/share/runtime/thread.cpp:232
#14 0x3ffb35530af in thread_native_entry /home/amit/ubsan/jdk/src/hotspot/os/linux/os_linux.cpp:860
#15 0x3ffb6f16295 in start_thread nptl/pthread_create.c:442
#16 0x3ffb6f8ff8d (/lib/s390x-linux-gnu/libc.so.6+0x10ff8d)