JDK-8285792 : Posix signal handler modification checking issues.
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 19
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-04-28
  • Updated: 2023-08-22
  • Resolved: 2022-07-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 20
20 b08Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
There are a few issues with the signal handler modification check in src/hotspot/os/posix/signals_posix.cpp:

The periodic warning triggers when crash_handler is the handler: should be ignored, as it is in PosixSignals::print_signal_handler().

check_signal_handler(int) prints ALL signal handlers when it finds one that is modified.  When multiple changes are detected, this is very noisy.

Code duplication/inconsistency.  Noted in PR for JDK-8283337, different code uses different guards for checking for changes handlers.

Comments
Changeset: 48b77a69 Author: Harold Seigel <hseigel@openjdk.org> Date: 2022-07-27 12:22:55 +0000 URL: https://git.openjdk.org/jdk/commit/48b77a69697adb9967e58a18e1f248afb30e1b26
27-07-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/9631 Date: 2022-07-25 17:21:27 +0000
25-07-2022

JDK-8285647 is caused by this issue.
28-04-2022