RFR: 8342449: reimplement: JDK-8327114 Attach in Linux may have wrong behavior when pid == ns_pid
Serguei Spitsyn
sspitsyn at openjdk.org
Wed Nov 13 02:21:48 UTC 2024
On Tue, 12 Nov 2024 23:52:35 GMT, Laurence Cable <larry.cable at oracle.com> wrote:
> t is not feasible to introspect on the target process to determine if
it is a JVM or not, this is the best case not to send SIGQUIT to a
process that is neither catching nor blocking it, where the default is
to terminate it!
Even if the target process is not terminated with the SIGQUIT it would still be more safe to make sure it is a VM process before sending the SIGQUIT signal. I wonder if the JDP (Java Discovery Protocol) can be used. Anyway, this discussion can be separated from this fix.
There is still this question:
> What mach5 tests were run to make sure the fix caused no regression?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/21688#issuecomment-2472207465
More information about the serviceability-dev
mailing list