[Webkit-unassigned] [Bug 263792] New: run-jsc may kill the whole process group on some unix platforms

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 27 11:39:09 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=263792

            Bug ID: 263792
           Summary: run-jsc may kill the whole process group on some unix
                    platforms
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: asumu at igalia.com

There are two related issues with the `run-jsc` script on some unix systems (Linux specifically, but possibly on others).

When running `run-jsc` without any port flags on Linux, it fails to find the JSC executable. This is confusing but can be easily fixed by adding `prohibitUnknownPort()` in the script, which will tell the user to supply the right flags.

The second problem is that when there is an error such as the previous one, `run-jsc` will try to propagate the signal received by calling Perl's `system` with `kill`. On Linux systems it's possible that this will call `/usr/bin/kill` which has different behavior on unknown signals, and specifically will kill the entire process group.

This can lead to a situation where running `run-jsc` will just kill the whole terminal session. This can be fixed by using the Perl `kill` instead, which is probably more portable.

I'll attach a proposed patch later.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20231027/fc145980/attachment-0001.htm>


More information about the webkit-unassigned mailing list