The function of 'Node::dump_idx(bool, outputStream*, Node::DumpConfig*)' in file src/hotspot/share/opto/node.cpp:2430 reported "runtime error: -inf is outside the range of representable values of type 'unsigned int'" by clang17's UndefinedBehaviorSanitizer.
The test output snippet:
src/hotspot/share/opto/node.cpp:2430:36: runtime error: -inf is outside the range of representable values of type 'unsigned int'
#0 0x7f32acc0250b in Node::dump_idx(bool, outputStream*, Node::DumpConfig*) const /home/yansendao/git/jdk-asan-clang/src/hotspot/share/opto/node.cpp:2430:36
#1 0x7f32acc01079 in Node::dump(char const*, bool, outputStream*, Node::DumpConfig*) const /home/yansendao/git/jdk-asan-clang/src/hotspot/share/opto/node.cpp:2532:3
#2 0x7f32acbfb5ee in PrintBFS::print() /home/yansendao/git/jdk-asan-clang/src/hotspot/share/opto/node.cpp:2052:7
#3 0x7f32acc01eac in Node::dump_bfs(int, Node*, char const*, outputStream*) const /home/yansendao/git/jdk-asan-clang/src/hotspot/share/opto/node.cpp:2411:7
#4 0x7f32aa7e92a5 in Compile::print_ideal_ir(char const*) /home/yansendao/git/jdk-asan-clang/src/hotspot/share/opto/compile.cpp:582:13
#5 0x7f32aa7edc10 in Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*) /home/yansendao/git/jdk-asan-clang/src/hotspot/share/opto/compile.cpp:854:5
#6 0x7f32aa379e8a in C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*) /home/yansendao/git/jdk-asan-clang/src/hotspot/share/opto/c2compiler.cpp:141:13
#7 0x7f32aa8628e8 in CompileBroker::invoke_compiler_on_method(CompileTask*) /home/yansendao/git/jdk-asan-clang/src/hotspot/share/compiler/compileBroker.cpp:2317:13
#8 0x7f32aa860157 in CompileBroker::compiler_thread_loop() /home/yansendao/git/jdk-asan-clang/src/hotspot/share/compiler/compileBroker.cpp:1975:11
#9 0x7f32abb1225b in JavaThread::thread_main_inner() /home/yansendao/git/jdk-asan-clang/src/hotspot/share/runtime/javaThread.cpp:776:5
#10 0x7f32abb1135e in JavaThread::run() /home/yansendao/git/jdk-asan-clang/src/hotspot/share/runtime/javaThread.cpp:761:3
#11 0x7f32ade2b06f in Thread::call_run() /home/yansendao/git/jdk-asan-clang/src/hotspot/share/runtime/thread.cpp:231:9
#12 0x7f32acd5c302 in thread_native_entry(Thread*) /home/yansendao/git/jdk-asan-clang/src/hotspot/os/linux/os_linux.cpp:877:11
#13 0x7f32b3d36a0a (/home/yansendao/software/acc/x86_64/lib64/clang/17/lib/linux/libclang_rt.asan-x86_64.so+0x136a0a)
#14 0x7f32b36d53fa in start_thread pthread_create.c
#15 0x7f32b3a61e82 in clone (/lib64/libc.so.6+0x3de82) (BuildId: 3308b7b1df603240fd3f43dd895bcb2ad87e7eb9)
Repeoduce command:
build/linux-x86_64-server-fastdebug/images/jdk/bin/java -DReproduce=true -cp tmp/classes/compiler/c2/cr7200264/TestIntVect.d:test/hotspot/jtreg/compiler/c2/cr7200264:tmp/classes/test/lib:test/lib:tmp/classes:test/hotspot/jtreg:/home/yansendao/software/jdk/jtreg-7.4/lib/javatest.jar:/home/yansendao/software/jdk/jtreg-7.4/lib/jtreg.jar -Djava.library.path=. -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Dir.framework.server.port=40619 -XX:+PrintCompilation -XX:+UnlockDiagnosticVMOptions -XX:+LogCompilation -XX:CompilerDirectivesFile=test-vm-compile-commands-pid-105028.log -XX:CompilerDirectivesLimit=431 -XX:-OmitStackTraceInFastThrow -DShouldDoIRVerification=true -XX:-BackgroundCompilation -XX:CompileCommand=quiet compiler.lib.ir_framework.test.TestVM compiler.c2.cr7200264.TestIntVect
The test output snippet:
src/hotspot/share/opto/node.cpp:2430:36: runtime error: -inf is outside the range of representable values of type 'unsigned int'
#0 0x7f32acc0250b in Node::dump_idx(bool, outputStream*, Node::DumpConfig*) const /home/yansendao/git/jdk-asan-clang/src/hotspot/share/opto/node.cpp:2430:36
#1 0x7f32acc01079 in Node::dump(char const*, bool, outputStream*, Node::DumpConfig*) const /home/yansendao/git/jdk-asan-clang/src/hotspot/share/opto/node.cpp:2532:3
#2 0x7f32acbfb5ee in PrintBFS::print() /home/yansendao/git/jdk-asan-clang/src/hotspot/share/opto/node.cpp:2052:7
#3 0x7f32acc01eac in Node::dump_bfs(int, Node*, char const*, outputStream*) const /home/yansendao/git/jdk-asan-clang/src/hotspot/share/opto/node.cpp:2411:7
#4 0x7f32aa7e92a5 in Compile::print_ideal_ir(char const*) /home/yansendao/git/jdk-asan-clang/src/hotspot/share/opto/compile.cpp:582:13
#5 0x7f32aa7edc10 in Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*) /home/yansendao/git/jdk-asan-clang/src/hotspot/share/opto/compile.cpp:854:5
#6 0x7f32aa379e8a in C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*) /home/yansendao/git/jdk-asan-clang/src/hotspot/share/opto/c2compiler.cpp:141:13
#7 0x7f32aa8628e8 in CompileBroker::invoke_compiler_on_method(CompileTask*) /home/yansendao/git/jdk-asan-clang/src/hotspot/share/compiler/compileBroker.cpp:2317:13
#8 0x7f32aa860157 in CompileBroker::compiler_thread_loop() /home/yansendao/git/jdk-asan-clang/src/hotspot/share/compiler/compileBroker.cpp:1975:11
#9 0x7f32abb1225b in JavaThread::thread_main_inner() /home/yansendao/git/jdk-asan-clang/src/hotspot/share/runtime/javaThread.cpp:776:5
#10 0x7f32abb1135e in JavaThread::run() /home/yansendao/git/jdk-asan-clang/src/hotspot/share/runtime/javaThread.cpp:761:3
#11 0x7f32ade2b06f in Thread::call_run() /home/yansendao/git/jdk-asan-clang/src/hotspot/share/runtime/thread.cpp:231:9
#12 0x7f32acd5c302 in thread_native_entry(Thread*) /home/yansendao/git/jdk-asan-clang/src/hotspot/os/linux/os_linux.cpp:877:11
#13 0x7f32b3d36a0a (/home/yansendao/software/acc/x86_64/lib64/clang/17/lib/linux/libclang_rt.asan-x86_64.so+0x136a0a)
#14 0x7f32b36d53fa in start_thread pthread_create.c
#15 0x7f32b3a61e82 in clone (/lib64/libc.so.6+0x3de82) (BuildId: 3308b7b1df603240fd3f43dd895bcb2ad87e7eb9)
Repeoduce command:
build/linux-x86_64-server-fastdebug/images/jdk/bin/java -DReproduce=true -cp tmp/classes/compiler/c2/cr7200264/TestIntVect.d:test/hotspot/jtreg/compiler/c2/cr7200264:tmp/classes/test/lib:test/lib:tmp/classes:test/hotspot/jtreg:/home/yansendao/software/jdk/jtreg-7.4/lib/javatest.jar:/home/yansendao/software/jdk/jtreg-7.4/lib/jtreg.jar -Djava.library.path=. -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Dir.framework.server.port=40619 -XX:+PrintCompilation -XX:+UnlockDiagnosticVMOptions -XX:+LogCompilation -XX:CompilerDirectivesFile=test-vm-compile-commands-pid-105028.log -XX:CompilerDirectivesLimit=431 -XX:-OmitStackTraceInFastThrow -DShouldDoIRVerification=true -XX:-BackgroundCompilation -XX:CompileCommand=quiet compiler.lib.ir_framework.test.TestVM compiler.c2.cr7200264.TestIntVect
- links to
-
Commit(master) openjdk/jdk/04659a40
-
Review(master) openjdk/jdk/23662