You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should harden the constellation so that constellation panics are vanishingly rare.
Currently, we have a number of panics that take down the constellation. This should not happen! The constellation code already handles failure messages by replacing the pipeline with about:failure, this should happen for all panics.
The trickiest to deal with is (4). There's already code to handle failure messages in constellation.rs, should we treat errors on send as the same as receiving a failure message?
The trickiest to deal with is (4). There's already code to handle failure messages in constellation.rs, should we treat errors on send as the same as receiving a failure message?
The Erlang user in me says yes. Constellation should never die.
TL;DR: #6462 causes double-panic, when SM panics and leaves the GC roots in an unsafe state, and this double-panic aborts the process. We'd need multi-process execution to isolate pipelines (in particular, put the constellation in a separate process).
In order to run wpt-test with random pipeline closure, we need to be able to pass command line arguments in to servo via wptrunner. This is the issue: w3c/wptrunner#176 and this is the PR: w3c/wptrunner#177
Why do recv failures always indicate bugs? Couldn't a crashed pipeline (in multiprocess mode, or just a panicking one) cause arbitrary recv failures in the constellation?
In cases where the receivers do not have a 1:1 relationship with a sender, the constellation holds on to a sender which should make it impossible for the recv to fail.
Activity
asajeffrey commentedon Mar 22, 2016
There are four sources of panic in constellation.rs:
The trickiest to deal with is (4). There's already code to handle failure messages in constellation.rs, should we treat errors on send as the same as receiving a failure message?
nox commentedon Mar 22, 2016
The Erlang user in me says yes. Constellation should never die.
asajeffrey commentedon Mar 23, 2016
Testing the hardened constellation requires some way of injecting panics, see #10144.
asajeffrey commentedon Mar 23, 2016
Some IRC discussion http://logs.glob.uno/?c=mozilla%23servo#c390119 about double-panics.
TL;DR: #6462 causes double-panic, when SM panics and leaves the GC roots in an unsafe state, and this double-panic aborts the process. We'd need multi-process execution to isolate pipelines (in particular, put the constellation in a separate process).
asajeffrey commentedon Mar 23, 2016
I started on a patch to randomly close pipelines: asajeffrey@a9fb350
asajeffrey commentedon Mar 25, 2016
The patch to randomly close pipelines is now PR #10179.
asajeffrey commentedon Mar 28, 2016
In order to run wpt-test with random pipeline closure, we need to be able to pass command line arguments in to servo via wptrunner. This is the issue: w3c/wptrunner#176 and this is the PR: w3c/wptrunner#177
asajeffrey commentedon Mar 28, 2016
I submitted PR #10242, which removes constellation panics caused by
chan.send(msg).unwrap().Auto merge of #10242 - asajeffrey:remove-constellation-send-panic, r=…
Auto merge of #10242 - asajeffrey:remove-constellation-send-panic, r=…
Auto merge of #10242 - asajeffrey:remove-constellation-send-panic, r=…
5 remaining items
Auto merge of #10242 - asajeffrey:remove-constellation-send-panic, r=…
Auto merge of #10242 - asajeffrey:remove-constellation-send-panic, r=…
asajeffrey commentedon Mar 30, 2016
PR #10242 merged.
asajeffrey commentedon Mar 30, 2016
I submitted PR #10295, which fixes some miscellaneous constellation panics. At this point, I think the only remaining panics are unavoidable:
pcwalton commentedon Apr 1, 2016
Why do recv failures always indicate bugs? Couldn't a crashed pipeline (in multiprocess mode, or just a panicking one) cause arbitrary recv failures in the constellation?
jdm commentedon Apr 1, 2016
In cases where the receivers do not have a 1:1 relationship with a sender, the constellation holds on to a sender which should make it impossible for the recv to fail.
asajeffrey commentedon Apr 1, 2016
@paulrouget in #10334 points out that we should notify browser.html when a pipeline panics.
asajeffrey commentedon Apr 1, 2016
PRs #10082 and #10295 landed.
asajeffrey commentedon Apr 1, 2016
PR #10294 ran into homu trouble, and is now PR #10343.
asajeffrey commentedon Apr 1, 2016
PR #10345 addresses some coding style issues raised by @nox, about using
unwrap_or_elsefor side-effects, rather thanif let.asajeffrey commentedon Apr 8, 2016
#10446 puts a test in to travis to ensure against regressions.
asajeffrey commentedon Apr 28, 2016
#10899 adds a test for constellation hardening. If we're feeling brave we could gate on it.
asajeffrey commentedon Apr 29, 2016
Once #10899 lands, we can close this metabug, woo hoo!
paulrouget commentedon May 2, 2016
#10899 has landed.