On Thu, 9 Jan 2025 15:13:01 GMT, Matthias Baesken <mbaes...@openjdk.org> wrote:

> When running ubsan-enabled binaries on macOS aarch64, in test
> javax/management/MBeanServer/OldMBeanServerTest.java
> the following division by zero is shown :
> src/jdk.management/macosx/native/libmanagement_ext/UnixOperatingSystem.c:67:40:
>  runtime error: division by zero
> UndefinedBehaviorSanitizer:DEADLYSIGNAL
> UndefinedBehaviorSanitizer: nested bug in the same thread, aborting.
> 
> We should add special handling for the case ` (total_delta == 0)` .

This pull request has now been integrated.

Changeset: 5e92a4ce
Author:    Matthias Baesken <mbaes...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/5e92a4ceafd0626e3600e44a3370ca2f5d9347c8
Stats:     4 lines in 1 file changed: 3 ins; 0 del; 1 mod

8347267: [macOS]: UnixOperatingSystem.c:67:40: runtime error: division by zero

Reviewed-by: kevinw, cjplummer

-------------

PR: https://git.openjdk.org/jdk/pull/23010

Reply via email to