RFR: 8292695: SIGQUIT and jcmd attaching mechanism does not work with signal chaining library [v3]
Man Cao
manc at openjdk.org
Fri Sep 9 08:39:05 UTC 2022
On Thu, 8 Sep 2022 10:41:59 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
> Can you also add a test that checks that:
>
> if VM is started with -Xrs, and we send a SIGQUIT, the VM shall crash with a core. The crash should look like a system crash, not an hs-err file crash, like this:
I struggled to get this to work. I found out it is due to https://bugs.openjdk.org/browse/JDK-8234262, and ProcessBuilder changes how SIGQUIT is handled in the subprocess. This is further complicated by how jtreg runs the parent process. The workaround (passing -Xrs to the parent process) does not work through jtreg using "main/othervm -Xrs".
I uploaded the not-working test in here: https://github.com/caoman/jdk/commit/73e3a5f90985fcad9a383c704429cefb07011932
-------------
PR: https://git.openjdk.org/jdk/pull/9955
More information about the hotspot-runtime-dev
mailing list