Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8361037

[ubsan] compiler/c2/irTests/TestFloat16ScalarOperations division by 0 after JDK-8352635

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 26
    • hotspot
    • aarch64
    • linux

      When running jtreg tests using ubsan-enabled binaries on Linux aarch64, the following issue is reported (test compiler/c2/irTests/TestFloat16ScalarOperations) :

      /jdk/src/hotspot/share/opto/divnode.cpp:828:35: runtime error: division by zero
          #0 0xffffa7ffd458 in DivHFNode::Value(PhaseGVN*) const src/hotspot/share/opto/divnode.cpp:828
          #1 0xffffa9042a78 in PhaseIterGVN::transform_old(Node*) src/hotspot/share/opto/phaseX.cpp:2138
          #2 0xffffa9035d7c in PhaseIterGVN::optimize() src/hotspot/share/opto/phaseX.cpp:1054
          #3 0xffffa7dbbe20 in Compile::Optimize() src/hotspot/share/opto/compile.cpp:2414
          #4 0xffffa7dc6ce4 in Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*) src/hotspot/share/opto/compile.cpp:858
          #5 0xffffa7ae949c in C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*) src/hotspot/share/opto/c2compiler.cpp:141
          #6 0xffffa7ddb6d0 in CompileBroker::invoke_compiler_on_method(CompileTask*) src/hotspot/share/compiler/compileBroker.cpp:2323
          #7 0xffffa7dddc3c in CompileBroker::compiler_thread_loop() src/hotspot/share/compiler/compileBroker.cpp:1967
          #8 0xffffa8537d5c in JavaThread::thread_main_inner() src/hotspot/share/runtime/javaThread.cpp:773
          #9 0xffffa8537d5c in JavaThread::thread_main_inner() src/hotspot/share/runtime/javaThread.cpp:761
          #10 0xffffa96a8900 in Thread::call_run() src/hotspot/share/runtime/thread.cpp:243
          #11 0xffffa8f4bff4 in thread_native_entry src/hotspot/os/linux/os_linux.cpp:868
          #12 0xffffac6c2694 in start_thread (/lib64/libc.so.6+0x80694)
          #13 0xffffac72cbd8 in thread_start (/lib64/libc.so.6+0xeabd8)

      Probably the issue is related to JDK-8352635 because this change removed a 0-check ( t2->getf() != 0.0 ).

            Unassigned Unassigned
            mbaesken Matthias Baesken
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: