Bug 161218

Summary: The same crash shows up in both "Tests that crashed" and "Other Crashes"
Product: WebKit Reporter: Jonathan Bedard <jbedard>
Component: Tools / TestsAssignee: Jonathan Bedard <jbedard>
Status: RESOLVED LATER    
Severity: Minor CC: ap, commit-queue, glenn, lforschler
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: iPhone / iPad   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=161257
Attachments:
Description Flags
Patch darin: review+

Attachments
Patch (2.09 KB, patch)
2016-08-25 15:58 PDT, Jonathan Bedard
darin: review+
Jonathan Bedard
Comment 1 2016-08-25 15:58:07 PDT
Alexey Proskuryakov
Comment 2 2016-08-29 09:34:46 PDT
Comment on attachment 287038 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=287038&action=review > Tools/ChangeLog:12 > + (Manager._look_for_new_crash_logs): Tied search to PID and test name, instead of just test name. Will there be confusion with regards to UI process vs. web process PID? My suspicion was that this was a logic error related to tests that are expected crashes per TestExpectations.
Jonathan Bedard
Comment 3 2016-08-29 09:53:58 PDT
Comment on attachment 287038 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=287038&action=review >> Tools/ChangeLog:12 >> + (Manager._look_for_new_crash_logs): Tied search to PID and test name, instead of just test name. > > Will there be confusion with regards to UI process vs. web process PID? > > My suspicion was that this was a logic error related to tests that are expected crashes per TestExpectations. Well, in the specific crash that prompted this change, the crash-log was explicitly added twice (i.e., two "Adding results for other crash: ..." messages were in standard out). Previously, we were comparing the entire process name to all previously recognized crashed processes, assuming that our list of crashlogs had no doubles in it. First, this fix eliminates a problem when a crashlog is somehow included twice in the list of crash logs, since that's the only way to get two "Adding results for other crash: ..." Messages. Second, it bases comparison off of process names and ID instead of assuming that the test name will be the process name. I don't think that there should be any issues confusing the UI process and web process, since we are still tracking the process name (that's process[1]) .
Jonathan Bedard
Comment 4 2016-08-29 10:41:43 PDT
This is a symptom of a larger issue with Webkitpy confusing process names and test names. Marking resolved, will revisit in a later over-haul of crash handling in Webkitpy.
Note You need to log in before you can comment on or make changes to this bug.