-
Bug
-
Resolution: Fixed
-
P4
-
8, 11, 17, 21, 24
-
b22
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8344409 | 21.0.6 | Matthias Baesken | P4 | Resolved | Fixed | b04 |
When running with ubsan enabled binaries on Linux ppc64le, these divisions by zero are detected.
test
java/lang/Math/Log10Tests.java: Tests for {Math, StrictMath}.log10
----------stderr:(4/324)----------
/jdk/src/hotspot/share/runtime/sharedRuntimeTrans.cpp:219:27: runtime error: division by zero
#0 0x7fffa7e14abc in SharedRuntime::dlog10(double) (/build_ubsan/images/jdk/lib/server/libjvm.so+0x69f4abc)
#1 0x7fff8b8fc8e8 (<unknown module>)
test
java/lang/Math/LogTests.java: Tests for {Math, StrictMath}.log
/jdk/src/hotspot/share/runtime/sharedRuntimeTrans.cpp:125:27: runtime error: division by zero
#0 0x7fff887f48bc in __ieee754_log(double) (/build_ubsan/images/jdk/lib/server/libjvm.so+0x69f48bc)
#1 0x7fff6b8fc768 (<unknown module>)
test
java/lang/Math/PowTests.java: Tests for {Math, StrictMath}.pow
/jdk/src/hotspot/share/runtime/sharedRuntimeTrans.cpp:508:23: runtime error: division by zero
#0 0x7fff92fd61f0 in SharedRuntime::dpow(double, double) (/build_ubsan/images/jdk/lib/server/libjvm.so+0x69f61f0)
#1 0x7fff7701c8ec (<unknown module>)
Might be that these divisions are desired so we could consider excluding the code from ubsan checks.
For some reason I do not see the failures on Linux x86_64 when running those tests .
test
java/lang/Math/Log10Tests.java: Tests for {Math, StrictMath}.log10
----------stderr:(4/324)----------
/jdk/src/hotspot/share/runtime/sharedRuntimeTrans.cpp:219:27: runtime error: division by zero
#0 0x7fffa7e14abc in SharedRuntime::dlog10(double) (/build_ubsan/images/jdk/lib/server/libjvm.so+0x69f4abc)
#1 0x7fff8b8fc8e8 (<unknown module>)
test
java/lang/Math/LogTests.java: Tests for {Math, StrictMath}.log
/jdk/src/hotspot/share/runtime/sharedRuntimeTrans.cpp:125:27: runtime error: division by zero
#0 0x7fff887f48bc in __ieee754_log(double) (/build_ubsan/images/jdk/lib/server/libjvm.so+0x69f48bc)
#1 0x7fff6b8fc768 (<unknown module>)
test
java/lang/Math/PowTests.java: Tests for {Math, StrictMath}.pow
/jdk/src/hotspot/share/runtime/sharedRuntimeTrans.cpp:508:23: runtime error: division by zero
#0 0x7fff92fd61f0 in SharedRuntime::dpow(double, double) (/build_ubsan/images/jdk/lib/server/libjvm.so+0x69f61f0)
#1 0x7fff7701c8ec (<unknown module>)
Might be that these divisions are desired so we could consider excluding the code from ubsan checks.
For some reason I do not see the failures on Linux x86_64 when running those tests .
- backported by
-
JDK-8344409 ubsan: division by zero in sharedRuntimeTrans.cpp
- Resolved
- relates to
-
JDK-8346931 Replace divisions by zero in sharedRuntimeTrans.cpp
- Open
- links to
-
Commit(master) openjdk/jdk21u-dev/a4927ca5
-
Commit(master) openjdk/jdk/37cfaa8d
-
Review(master) openjdk/jdk21u-dev/1150
-
Review(master) openjdk/jdk/21500
(1 links to)