RFR: 8351309: test/hotspot/jtreg/runtime/posixSig/TestPosixSig.java fails on static-jdk
Jiangli Zhou
jiangli at openjdk.org
Thu Mar 6 17:47:02 UTC 2025
On Thu, 6 Mar 2025 12:37:52 GMT, David Holmes <dholmes at openjdk.org> wrote:
> I am a bit confused here. libjsig is an application/end-user library.
libjsig is provided by JDK.
> It sounds like something is statically linking libjsig and causing signal chaining to break. ???
AFAICT, signal chaining works when libjsig is statically linked (I stepped through the code in `gdb` and checked).
TestPosixSig.java failure is a test problem. The test looks for the print output from `os::run_periodic_checks`. The periodic signal checker is disabled, when libjsig is used. See https://github.com/openjdk/jdk/blob/08929134b3533362133139c4e964b1b28de6ebfb/src/hotspot/os/posix/signals_posix.cpp#L1359:
// We don't activate signal checker if libjsig is in place, we trust ourselves
// and if UserSignalHandler is installed all bets are off.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23924#issuecomment-2704532379
More information about the build-dev
mailing list