RFR: 8256594: Unexpected warning: SIGSEGV handler flags expected:SA_RESTART|SA_SIGINFO found:SA_RESTART|SA_SIGINFO [v3]

David Holmes dholmes at openjdk.java.net
Fri Nov 20 04:21:13 UTC 2020


> In the recent POSIX signal code cleanup (JDK-8253742) I misunderstood the role of the SIGNIFICANT_SIGNAL_MASK and removing its application causes -Xcheck:jni to report errors with the signal handler due to an unexpected bit in the sigaction.sa_flags field.
> 
> This fix restores the masking of that flag, for Linux only, and more clearly indicating what it is. I also augmented the flag printing code to show when an unexpected flag is present (and so avoid the mysterious "expected X found X" message).
> 
> See bug report for more details.
> 
> Thanks.

David Holmes has updated the pull request incrementally with one additional commit since the last revision:

  Tweaked a comment.

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/1309/files
  - new: https://git.openjdk.java.net/jdk/pull/1309/files/f7626ba1..42847fe5

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=1309&range=02
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=1309&range=01-02

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/1309.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/1309/head:pull/1309

PR: https://git.openjdk.java.net/jdk/pull/1309


More information about the hotspot-runtime-dev mailing list