[Webkit-unassigned] [Bug 184039] webkitpy: Implement coredumpctl support on linux

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 29 08:11:33 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=184039

--- Comment #7 from Thibault Saunier <tsaunier at gnome.org> ---
(In reply to Michael Catanzaro from comment #6)
> Comment on attachment 336766 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=336766&action=review
> 
> FWIW, I can't think of a better way to check for the backtrace than this
> sleep loop. It's not like we can poll a filesystem location or hook into
> some form of notifications or anything, so the sleep loop looks OK to me.
> 
> So this looks good to me. And I believe Carlos Lopez was also OK with it,
> right?
> 
> > Tools/Scripts/webkitpy/port/linux_get_crash_log.py:63
> > +        for try_number in xrange(5):
> 
> Use range() so that it works with python3

Done... xrange sounds so old to me, well python2.

> Um, I see Daniel asked you to not do that, but reality is going to catch up
> with us pretty soon here, so my vote is definitely for range().
> 
> > Tools/Scripts/webkitpy/port/linux_get_crash_log.py:65
> > +                # Loopping, it means we consider the logs might not be ready yet.
> 
> Looping

Done.

> > Tools/Scripts/webkitpy/port/linux_get_crash_log.py:71
> > +            except ScriptError:
> 
> What happens if coredumpctl is not installed? Are you sure it only throws
> ScriptError? I think it can throw an OSError. Check by changing
> 'coredumpctl' to gibberish.

Fixed, you were right.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180329/b6fdc797/attachment.html>


More information about the webkit-unassigned mailing list