Reproduce command:
build/linux-x86_64-server-fastdebug/images/test/hotspot/gtest/server/gtestLauncher -jdk build/linux-x86_64-server-fastdebug/images/jdk --gtest_output=xml:test_result.xml --gtest_catch_exceptions=0 --gtest_filter=NMT*:os* -XX:NativeMemoryTracking=detail
Test output snippet:
[ RUN ] os.attempt_reserve_memory_between_combos_vm
src/hotspot/share/runtime/os.cpp:2023:42: runtime error: applying non-zero offset to non-null pointer 0x000000001000 produced null pointer
#0 0x7f30973939df in os::attempt_reserve_memory_between(char*, char*, unsigned long, unsigned long, bool) /home/yansendao/git/jdk-asan-clang/src/hotspot/share/runtime/os.cpp:2023:42
#1 0x7f30931ef0f5 in call_attempt_reserve_memory_between(char*, char*, unsigned long, unsigned long, bool) /home/yansendao/git/jdk-asan-clang/test/hotspot/gtest/runtime/test_os_reserve_between.cpp:68:23
#2 0x7f30931ec6d0 in test_attempt_reserve_memory_between(char*, char*, unsigned long, unsigned long, bool, Expect, int) /home/yansendao/git/jdk-asan-clang/test/hotspot/gtest/runtime/test_os_reserve_between.cpp:107:22
#3 0x7f30931ed3c0 in os_attempt_reserve_memory_between_combos_vm_Test::TestBody() /home/yansendao/git/jdk-asan-clang/test/hotspot/gtest/runtime/test_os_reserve_between.cpp:290:11
#4 0x7f3098b64129 in testing::Test::Run() /home/yansendao/git/googletest-v1.14.x/googletest/src/gtest.cc:2687:5
#5 0x7f3098b6623f in testing::TestInfo::Run() /home/yansendao/git/googletest-v1.14.x/googletest/src/gtest.cc:2836:11
#6 0x7f3098b67e80 in testing::TestSuite::Run() /home/yansendao/git/googletest-v1.14.x/googletest/src/gtest.cc:3015:30
#7 0x7f3098b9120b in testing::internal::UnitTestImpl::RunAllTests() /home/yansendao/git/googletest-v1.14.x/googletest/src/gtest.cc:5920:44
#8 0x7f3098b90854 in testing::UnitTest::Run() /home/yansendao/git/googletest-v1.14.x/googletest/src/gtest.cc:5484:10
#9 0x7f3092926387 in RUN_ALL_TESTS() /home/yansendao/git/googletest-v1.14.x/googletest/include/gtest/gtest.h:2317:73
#10 0x7f3092926387 in runUnitTestsInner(int, char**) /home/yansendao/git/jdk-asan-clang/test/hotspot/gtest/gtestMain.cpp:290:16
#11 0x7f3092926bfa in runUnitTests /home/yansendao/git/jdk-asan-clang/test/hotspot/gtest/gtestMain.cpp:371:5
#12 0x204350 in main /home/yansendao/git/jdk-asan-clang/test/hotspot/gtest/gtestLauncher.cpp:40:3
#13 0x7f308e862a71 in __libc_start_main (/lib64/libc.so.6+0x3ea71) (BuildId: 3308b7b1df603240fd3f43dd895bcb2ad87e7eb9)
#14 0x202e7d in _start (/home/yansendao/git/jdk-asan-clang/build/linux-x86_64-server-fastdebug/images/test/hotspot/gtest/server/gtestLauncher+0x202e7d)
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/hotspot/share/runtime/os.cpp:2023:42 in
build/linux-x86_64-server-fastdebug/images/test/hotspot/gtest/server/gtestLauncher -jdk build/linux-x86_64-server-fastdebug/images/jdk --gtest_output=xml:test_result.xml --gtest_catch_exceptions=0 --gtest_filter=NMT*:os* -XX:NativeMemoryTracking=detail
Test output snippet:
[ RUN ] os.attempt_reserve_memory_between_combos_vm
src/hotspot/share/runtime/os.cpp:2023:42: runtime error: applying non-zero offset to non-null pointer 0x000000001000 produced null pointer
#0 0x7f30973939df in os::attempt_reserve_memory_between(char*, char*, unsigned long, unsigned long, bool) /home/yansendao/git/jdk-asan-clang/src/hotspot/share/runtime/os.cpp:2023:42
#1 0x7f30931ef0f5 in call_attempt_reserve_memory_between(char*, char*, unsigned long, unsigned long, bool) /home/yansendao/git/jdk-asan-clang/test/hotspot/gtest/runtime/test_os_reserve_between.cpp:68:23
#2 0x7f30931ec6d0 in test_attempt_reserve_memory_between(char*, char*, unsigned long, unsigned long, bool, Expect, int) /home/yansendao/git/jdk-asan-clang/test/hotspot/gtest/runtime/test_os_reserve_between.cpp:107:22
#3 0x7f30931ed3c0 in os_attempt_reserve_memory_between_combos_vm_Test::TestBody() /home/yansendao/git/jdk-asan-clang/test/hotspot/gtest/runtime/test_os_reserve_between.cpp:290:11
#4 0x7f3098b64129 in testing::Test::Run() /home/yansendao/git/googletest-v1.14.x/googletest/src/gtest.cc:2687:5
#5 0x7f3098b6623f in testing::TestInfo::Run() /home/yansendao/git/googletest-v1.14.x/googletest/src/gtest.cc:2836:11
#6 0x7f3098b67e80 in testing::TestSuite::Run() /home/yansendao/git/googletest-v1.14.x/googletest/src/gtest.cc:3015:30
#7 0x7f3098b9120b in testing::internal::UnitTestImpl::RunAllTests() /home/yansendao/git/googletest-v1.14.x/googletest/src/gtest.cc:5920:44
#8 0x7f3098b90854 in testing::UnitTest::Run() /home/yansendao/git/googletest-v1.14.x/googletest/src/gtest.cc:5484:10
#9 0x7f3092926387 in RUN_ALL_TESTS() /home/yansendao/git/googletest-v1.14.x/googletest/include/gtest/gtest.h:2317:73
#10 0x7f3092926387 in runUnitTestsInner(int, char**) /home/yansendao/git/jdk-asan-clang/test/hotspot/gtest/gtestMain.cpp:290:16
#11 0x7f3092926bfa in runUnitTests /home/yansendao/git/jdk-asan-clang/test/hotspot/gtest/gtestMain.cpp:371:5
#12 0x204350 in main /home/yansendao/git/jdk-asan-clang/test/hotspot/gtest/gtestLauncher.cpp:40:3
#13 0x7f308e862a71 in __libc_start_main (/lib64/libc.so.6+0x3ea71) (BuildId: 3308b7b1df603240fd3f43dd895bcb2ad87e7eb9)
#14 0x202e7d in _start (/home/yansendao/git/jdk-asan-clang/build/linux-x86_64-server-fastdebug/images/test/hotspot/gtest/server/gtestLauncher+0x202e7d)
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/hotspot/share/runtime/os.cpp:2023:42 in
- links to
-
Commit(master) openjdk/jdk/8f6ccde9
-
Review(master) openjdk/jdk/23508