Bug 239372 - Use the ProcessTerminationReason enum for all the process types
Summary: Use the ProcessTerminationReason enum for all the process types
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Process Model (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Simon Fraser (smfr)
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-04-14 20:15 PDT by Simon Fraser (smfr)
Modified: 2022-04-15 11:53 PDT (History)
5 users (show)

See Also:


Attachments
Patch (27.17 KB, patch)
2022-04-14 20:16 PDT, Simon Fraser (smfr)
cdumez: review+
cdumez: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2022-04-14 20:15:02 PDT
Use the ProcessTerminationReason enum for all the process types
Comment 1 Simon Fraser (smfr) 2022-04-14 20:16:48 PDT
Created attachment 457670 [details]
Patch
Comment 2 Chris Dumez 2022-04-14 20:23:57 PDT
Comment on attachment 457670 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=457670&action=review

> Source/WebKit/Shared/ProcessTerminationReason.cpp:55
> +

ASSERT_NOT_REACHED() ?

> Source/WebKit/UIProcess/GPU/GPUProcessProxy.cpp:429
> +        RELEASE_LOG_ERROR(Process, "%p - GPUProcessProxy::gpuProcessExited: reason=%s", this, processTerminationReasonToString(reason));

Needs to be %{public}s or we won't see the reason on production builds.

> Source/WebKit/UIProcess/WebProcessPool.cpp:476
> +    WEBPROCESSPOOL_RELEASE_LOG(Process, "gpuProcessDidExit: PID=%d, reason=%s", identifier, processTerminationReasonToString(reason));

Needs to be %{public}s or we won't see the reason on production builds.
Comment 3 Simon Fraser (smfr) 2022-04-15 10:24:01 PDT
https://trac.webkit.org/changeset/292912/webkit
Comment 4 Radar WebKit Bug Importer 2022-04-15 10:24:15 PDT
<rdar://problem/91814862>
Comment 5 Alex Christensen 2022-04-15 11:53:10 PDT
Comment on attachment 457670 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=457670&action=review

> Source/WebKit/Shared/ProcessTerminationReason.cpp:56
> +    return "";

"Invalid"?