[Webkit-unassigned] [Bug 271954] New: Make run-jsc-stress-tests handle expected crashes correctly.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Mar 31 15:41:54 PDT 2024


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

            Bug ID: 271954
           Summary: Make run-jsc-stress-tests handle expected crashes
                    correctly.
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Keywords: InRadar
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mark.lam at apple.com

It does not make sense to have a crashOK! test attribute, which imply that the test will be flaky.  A test should be deterministic.  We should either expect a crash or no crash.  To enable this, we'll make the following changes:

1. Change the jsc shell "crash detector" signal handler to exit with exitCode 137 (to indicate a fatal crash).
2. Fix the JSC stress test harness to actually be able to handle crashes (terminations with exitCode > 130).
3. Rename the "crashOK!" test attribute to "mustCrash!".  It now makes it clear that a test is expected to crash, instead of flakily crashing sometimes.
4. Add filter conditions to tests that "mustCrash!" so that they are only run with configurations where they are expected to crash.  Skip the rest.
5. Make WTFCrash() crash with WTFBreakpointTrap() on Darwin ARM64 platforms to be consistent with all other crashes.

6. Opportunistic quality of life improvement: make jsc shell timeouts crash below crashDueToJSCShellTimeout() to distinguish it from other crashes.

rdar://124471961

-- 
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/20240331/8052243f/attachment.htm>


More information about the webkit-unassigned mailing list