Bug 72526 - REGRESSION (NRWT): WebKitTestRunner crash log gets saved when web process crashes, but WebProcess crash log should get saved instead
Summary: REGRESSION (NRWT): WebKitTestRunner crash log gets saved when web process cra...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-16 11:03 PST by Adam Roben (:aroben)
Modified: 2011-11-17 11:18 PST (History)
6 users (show)

See Also:


Attachments
Make NRWT find crash logs for the crashed process, which may not necessarily be the driver process (10.71 KB, patch)
2011-11-17 08:01 PST, Adam Roben (:aroben)
eric: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Roben (:aroben) 2011-11-16 11:03:53 PST
When the web process crashes, NRWT saves a WebKitTestRunner crash log. But it needs to save a WebProcess crash log instead! (ORWT handled this case correctly.)
Comment 1 Adam Roben (:aroben) 2011-11-16 11:12:48 PST
Here's an example:

http://build.webkit.org/results/Lion%20Intel%20Debug%20(WebKit2%20Tests)/r100464%20(1808)/results.html

All those crashes are actually assertions in the web process (which you can see here: <http://build.webkit.org/builders/Lion%20Intel%20Debug%20%28WebKit2%20Tests%29/builds/1808/steps/layout-test/logs/stdio>). But the wrong crash log has gotten uploaded.
Comment 2 Eric Seidel (no email) 2011-11-16 11:13:39 PST
I explicitly wrote the code to do this... at one point it worked.  So clearly something broke or I failed to unittest correctly.  Will investigate.
Comment 3 Adam Roben (:aroben) 2011-11-16 12:01:02 PST
Looks like we do save the crashed process name:

http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/layout_tests/port/driver.py?rev=100374#L52

…but then always look for crash logs matching the driver name, not the crashed process name:

http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/layout_tests/layout_package/test_result_writer.py?rev=100374#L165
Comment 4 Adam Roben (:aroben) 2011-11-17 08:01:30 PST
Created attachment 115591 [details]
Make NRWT find crash logs for the crashed process, which may not necessarily be the driver process
Comment 5 Eric Seidel (no email) 2011-11-17 11:12:40 PST
Comment on attachment 115591 [details]
Make NRWT find crash logs for the crashed process, which may not necessarily be the driver process

OK.  so it looks like when I finally landed or re-landed the --leaks dff, it must have failed to apply and I never noticed due to insuffcient testing.  Thank you for fixing!
Comment 6 Adam Roben (:aroben) 2011-11-17 11:18:14 PST
Committed r100648: <http://trac.webkit.org/changeset/100648>