Repository navigation
Accept WebSocket protocols as string or sequence - #9360
Conversation
There was a problem hiding this comment.
I don't think the type annotation is necessary here.
|
With my comments addressed, please squash and we'll merge this! |
5868ffe to
0bffffd
Compare
|
@KiChjang: Done! |
|
@bors-servo r+ |
|
📌 Commit 0bffffd has been approved by |
Accept WebSocket protocols as string or sequence Fixes #9053 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9360) <!-- Reviewable:end -->
|
💔 Test failed - linux-rel |
|
|
Hrrm, Got them all passing locally with this patch... @KiChjang Do you know if there's a way to see the stack trace on the builders? I can't find any in the wpt log. |
|
Unfortunately we don't have any automation to report backtraces of actual segfaults. These would need to be run under gdb either locally or on the build machine to get that information. |
|
Just for the record, while I dig into this, the segfault is on spidermonkey, which is a bit worrying, and just on release builds (which is even more). At least it seems deterministic... There it goes my backtrace: |
|
Make sure you're building with debug mozjs enabled in your .servobuild to obtain maximal helpful assertions. |
|
Heh, you'll like this, @jdm: in rust-mozjs/src/conversions.rs: Segfault: let handle_obj = Handle::from_marked_location(&value.to_object());No segfault (nor triggered assertions): let object = value.to_object();
assert!(!object.is_null());
let handle_obj = Handle::from_marked_location(&object);So... Maybe optimisations are playing a big role here (I guess the assert prevents some kind of optimisation). You can try this (in EDIT: Seems that the assert is meaningless, using: let object = value.to_object();
let handle_obj = Handle::from_marked_location(&object);Also results in consistent success. |
|
BTW: A servo build with debug-mozjs enabled gives me this on startup, independently of the page loaded of course. |
|
There is a reason I give every use of Handle::from_marked_location extreme side-eye. As established over IRC, the handle is outliving the stack |
|
@jsanders Actually it was my fault. This will have to wait until a |
|
@ecoal95: Ok no problem! |
|
rust-mozjs update has landed, let's land this. @bors-servo retry |
Accept WebSocket protocols as string or sequence Fixes #9053 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9360) <!-- Reviewable:end -->
|
☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt |
Fixes #9053