When running jtreg test gtest/GTestWrapper.java (with ubsan enabled binaries) the following issue is reported :
(seems to be in gtest sub-test [ RUN ] OopStorageSetTest.print_containing_vm )
jdk/src/hotspot/share/gc/shared/oopStorage.cpp:374:8: runtime error: applying non-zero offset 18446744073709551168 to null pointer
#0 0x7f5a4bf8d5d9 in OopStorage::Block::block_for_ptr(OopStorage const*, oopDesc* const*) src/hotspot/share/gc/shared/oopStorage.cpp:374
#1 0x7f5a4bf8d5d9 in OopStorage::find_block_or_null(oopDesc* const*) const src/hotspot/share/gc/shared/oopStorage.cpp:648
#2 0x7f5a4bf8d5d9 in OopStorage::print_containing(oopDesc* const*, outputStream*) src/hotspot/share/gc/shared/oopStorage.cpp:1140
#3 0x7f5a4bf9501b in OopStorageSet::print_containing(void const*, outputStream*) src/hotspot/share/gc/shared/oopStorageSet.cpp:89
#4 0x7f5a491e6a4d in OopStorageSetTest_print_containing_vm_Test::TestBody() test/hotspot/gtest/gc/shared/test_oopStorageSet.cpp:167
#5 0x7f5a4d058253 in testing::Test::Run() /gtest/googletest-1.14.0/googletest/src/gtest.cc:2687
#6 0x7f5a4d058253 in testing::Test::Run() /gtest/googletest-1.14.0/googletest/src/gtest.cc:2677
#7 0x7f5a4d05895d in testing::TestInfo::Run() /gtest/googletest-1.14.0/googletest/src/gtest.cc:2836
#8 0x7f5a4d089268 in testing::TestSuite::Run() /gtest/googletest-1.14.0/googletest/src/gtest.cc:3015
#9 0x7f5a4d089268 in testing::TestSuite::Run() /gtest/googletest-1.14.0/googletest/src/gtest.cc:2968
#10 0x7f5a4d08a235 in testing::internal::UnitTestImpl::RunAllTests() /gtest/googletest-1.14.0/googletest/src/gtest.cc:5920
#11 0x7f5a4d0504df in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*)
#12 0x7f5a4d0504df in testing::UnitTest::Run() /gtest/googletest-1.14.0/googletest/src/gtest.cc:5484
#13 0x7f5a48b880b7 in RUN_ALL_TESTS() /gtest/googletest-1.14.0/googletest/include/gtest/gtest.h:2317
#14 0x7f5a48b880b7 in runUnitTestsInner test/hotspot/gtest/gtestMain.cpp:290
#15 0x557606b5e7d8 in main test/hotspot/gtest/gtestLauncher.cpp:40
(seems to be in gtest sub-test [ RUN ] OopStorageSetTest.print_containing_vm )
jdk/src/hotspot/share/gc/shared/oopStorage.cpp:374:8: runtime error: applying non-zero offset 18446744073709551168 to null pointer
#0 0x7f5a4bf8d5d9 in OopStorage::Block::block_for_ptr(OopStorage const*, oopDesc* const*) src/hotspot/share/gc/shared/oopStorage.cpp:374
#1 0x7f5a4bf8d5d9 in OopStorage::find_block_or_null(oopDesc* const*) const src/hotspot/share/gc/shared/oopStorage.cpp:648
#2 0x7f5a4bf8d5d9 in OopStorage::print_containing(oopDesc* const*, outputStream*) src/hotspot/share/gc/shared/oopStorage.cpp:1140
#3 0x7f5a4bf9501b in OopStorageSet::print_containing(void const*, outputStream*) src/hotspot/share/gc/shared/oopStorageSet.cpp:89
#4 0x7f5a491e6a4d in OopStorageSetTest_print_containing_vm_Test::TestBody() test/hotspot/gtest/gc/shared/test_oopStorageSet.cpp:167
#5 0x7f5a4d058253 in testing::Test::Run() /gtest/googletest-1.14.0/googletest/src/gtest.cc:2687
#6 0x7f5a4d058253 in testing::Test::Run() /gtest/googletest-1.14.0/googletest/src/gtest.cc:2677
#7 0x7f5a4d05895d in testing::TestInfo::Run() /gtest/googletest-1.14.0/googletest/src/gtest.cc:2836
#8 0x7f5a4d089268 in testing::TestSuite::Run() /gtest/googletest-1.14.0/googletest/src/gtest.cc:3015
#9 0x7f5a4d089268 in testing::TestSuite::Run() /gtest/googletest-1.14.0/googletest/src/gtest.cc:2968
#10 0x7f5a4d08a235 in testing::internal::UnitTestImpl::RunAllTests() /gtest/googletest-1.14.0/googletest/src/gtest.cc:5920
#11 0x7f5a4d0504df in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*)
#12 0x7f5a4d0504df in testing::UnitTest::Run() /gtest/googletest-1.14.0/googletest/src/gtest.cc:5484
#13 0x7f5a48b880b7 in RUN_ALL_TESTS() /gtest/googletest-1.14.0/googletest/include/gtest/gtest.h:2317
#14 0x7f5a48b880b7 in runUnitTestsInner test/hotspot/gtest/gtestMain.cpp:290
#15 0x557606b5e7d8 in main test/hotspot/gtest/gtestLauncher.cpp:40
- relates to
-
JDK-8340392 Handle OopStorage in location decoder
-
- Resolved
-
- links to
-
Commit(master) openjdk/jdk/feb6a830
-
Review(master) openjdk/jdk/21240