[Webkit-unassigned] [Bug 159827] run-webkit-tests should trigger a spindump when WebContent process is unresponsive
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Aug 2 11:19:44 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=159827
Daniel Bates <dbates at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #285120|review? |review+
Flags| |
--- Comment #49 from Daniel Bates <dbates at webkit.org> ---
Comment on attachment 285120
--> https://bugs.webkit.org/attachment.cgi?id=285120
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=285120&action=review
> Tools/Scripts/webkitpy/port/ios.py:423
> + exit_status = self._executive.run_command([
> + "/usr/bin/sudo",
> + "-n",
> + "/usr/sbin/spindump",
> pid,
> 10,
> 10,
> "-file",
> hang_report,
> - ])
> + ], return_exit_code=True)
Notice that Executive.run_command() only throws a ScriptError exception if return_exit_code := False. It is good programming practice to limit the scope of a try-except to the minimum code that can raise an exception to help make it straightforward to debug the cause of an exception. In comment #25 I gave an example of one way we can write this code such that we limit the scope of the try-except block.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160802/5ef43ac8/attachment-0001.html>
More information about the webkit-unassigned
mailing list