Bug 87717 - Unresponsive WebProcesses can be mistaken for crashes.
Summary: Unresponsive WebProcesses can be mistaken for crashes.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 87720
  Show dependency treegraph
 
Reported: 2012-05-29 02:43 PDT by Stephanie Lewis
Modified: 2012-05-30 18:53 PDT (History)
6 users (show)

See Also:


Attachments
patch (8.17 KB, patch)
2012-05-29 02:53 PDT, Stephanie Lewis
dpranke: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stephanie Lewis 2012-05-29 02:43:42 PDT
WebKitTestRunner reports #CRASHED in two places. The first place, webProcessDidCrash, always writes out a crash report (eventually).
The second spot is when we are resetting the WebProcess.  See https://bugs.webkit.org/show_bug.cgi?id=52757

If it becomes unresponsive the WebProcess is killed, which for all intents and purposes looks like a crash.  However, this makes the WebKit2 tests look very flaky, and creates confusion because no crash logs can be found for the unresponsive processes.

The first step is separating the two types of crashes, and giving an error message when the process was just unresponsive, not crashing.
Comment 1 Stephanie Lewis 2012-05-29 02:53:30 PDT
Created attachment 144497 [details]
patch
Comment 2 WebKit Review Bot 2012-05-29 02:54:54 PDT
Attachment 144497 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Tools/ChangeLog', u'Tools/Scripts/webkitpy..." exit_code: 1
Tools/Scripts/webkitpy/layout_tests/port/webkit_unittest.py:346:  trailing whitespace  [pep8/W291] [5]
Total errors found: 1 in 4 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Dirk Pranke 2012-05-29 12:07:09 PDT
Comment on attachment 144497 [details]
patch

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

The patch looks fine. I'm not sure how you're defining "unresponsive" in WebKit2, but does it make sense to map these things onto TIMEOUTs rather than CRASHes?

> Tools/Scripts/webkitpy/layout_tests/port/webkit.py:588
> +            crash_log += '  Process failed to become responsive before timing out.'

See my comment in bug 87714 about possibly changing the interface to _get_crash_log() so that you don't have to do the .startswith() check here.
Comment 4 Dirk Pranke 2012-05-29 12:07:22 PDT
Oh, and fix the style nit, obviously :).
Comment 5 Stephanie Lewis 2012-05-30 18:53:37 PDT
committed http://trac.webkit.org/projects/webkit/changeset/119018