Skip to content

Intermittent CRASH in /permissions/crashtests/permissions-query-worker.window.html #45933

Closed

Description

@TimvdLippe
  ▶ CRASH [expected OK] /permissions/crashtests/permissions-query-worker.window.html
  │   → Traceback (most recent call last):
  │   →   File "/home/runner/work/servo/servo/tests/wpt/tests/tools/wptrunner/wptrunner/executors/executorwebdriver.py", line 1206, in run_func
  │   →     self.result = True, self.func(self.protocol, self.url, self.timeout)
  │   →                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  │   →   File "/home/runner/work/servo/servo/tests/wpt/tests/tools/wptrunner/wptrunner/executors/executorwebdriver.py", line 1303, in do_testharness
  │   →     raw_results = protocol.testdriver.run(url, self.script_resume, test_window)
  │   →                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  │   →   File "/home/runner/work/servo/servo/tests/wpt/tests/tools/wptrunner/wptrunner/executors/executorwebdriver.py", line 683, in run
  │   →     self.webdriver.url = url
  │   →     ^^^^^^^^^^^^^^^^^^
  │   →   File "/home/runner/work/servo/servo/tests/wpt/tests/tools/webdriver/webdriver/client.py", line 663, in url
  │   →     return self.send_session_command("POST", "url", body)
  │   →            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  │   →   File "/home/runner/work/servo/servo/tests/wpt/tests/tools/webdriver/webdriver/client.py", line 652, in send_session_command
  │   →     return self.send_command(method, url, body, timeout)
  │   →            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  │   →   File "/home/runner/work/servo/servo/tests/wpt/tests/tools/webdriver/webdriver/client.py", line 590, in send_command
  │   →     response = self.transport.send(
  │   →                ^^^^^^^^^^^^^^^^^^^^
  │   →   File "/home/runner/work/servo/servo/tests/wpt/tests/tools/webdriver/webdriver/transport.py", line 230, in send
  │   →     response = self._request(method, uri, payload, headers, timeout=timeout)
  │   →                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  │   →   File "/home/runner/work/servo/servo/tests/wpt/tests/tools/webdriver/webdriver/transport.py", line 265, in _request
  │   →     response = self.connection.getresponse()
  │   →                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  │   →   File "/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/http/client.py", line 1415, in getresponse
  │   →     response.begin()
  │   →   File "/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/http/client.py", line 330, in begin
  │   →     version, status, reason = self._read_status()
  │   →                               ^^^^^^^^^^^^^^^^^^^
  │   →   File "/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/http/client.py", line 299, in _read_status
  │   →     raise RemoteDisconnected("Remote end closed connection without"
  │   → http.client.RemoteDisconnected: Remote end closed connection without response
  │ 
  └ Caught signal 11 in thread "WW:blob:http://web-platform.test:8000/24c1caab-7c49-4114-aec3-1864bc4fb97b"

https://github.com/servo/servo/actions/runs/28083020490/job/83143839145

Activity

  1. added
    I-intermittent
    on Jun 24, 2026
  2. added
    I-crash
    on Jun 24, 2026
  3. jdm commented on Jun 27, 2026

    @jdm
    Member
    Thread 41 "WW:blob:http://" received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 0x7fffb61766c0 (LWP 57965)]
    0x000055556384b5ce in JS_HasProperty(JSContext*, JS::Handle<JSObject*>, char const*, bool*) ()
    (gdb) bt
    #0  0x000055556384b5ce in JS_HasProperty(JSContext*, JS::Handle<JSObject*>, char const*, bool*) ()
    #1  0x0000555563519215 in mozjs::rust::wrappers2::JS_HasProperty (cx=0x7fffb616aa90, obj=..., name=0x5555574d7bdf, foundp=0x7fffb616a077)
        at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/mozjs-0.16.4/src/rust.rs:1600
    #2  0x0000555563490964 in script_bindings::utils::get_dictionary_property (cx=0x7fffb616aa90, object=..., property=..., rval=...) at components/script_bindings/utils.rs:244
    #3  0x000055556365c578 in script_bindings::codegen::GenericBindings::PermissionStatusBinding::PermissionDescriptor::new (cx=0x7fffb616aa90, val=...)
        at target/debug/build/servo-script-bindings-ef2a1256548a64be/out/Bindings/PermissionStatusBinding.rs:212
    #4  0x000055556021e5ad in script::dom::permission::permissions::{impl#2}::create_descriptor (cx=0x7fffb616aa90, permission_descriptor_obj=0x344e3b33ff60) at components/script/dom/permission/permissions.rs:223
    #5  0x000055556020796a in script::dom::permission::permissions::Permissions::manipulate
        (self=0x7fffd9616390, cx=0x7fffb616aac8, op=script::dom::permission::permissions::Operation::Query, permission_desc=0x344e3b33ff60, promise=...) at components/script/dom/permission/permissions.rs:101
    #6  0x0000555560223db1 in script::dom::permission::permissions::{impl#1}::Query (self=0x7fffd9616390, cx=0x7fffb616aac8, permission_desc=0x344e3b33ff60) at components/script/dom/permission/permissions.rs:197
    #7  0x000055555f7ff6df in script_bindings::codegen::GenericBindings::PermissionsBinding::Permissions_Binding::query::{closure#0}::{closure#0}<script::dom::bindings::codegen::DomTypeHolder::DomTypeHolder> ()
        at target/debug/build/servo-script-bindings-ef2a1256548a64be/out/Bindings/PermissionsBinding.rs:33
    #8  0x000055555f7fa063 in script_bindings::codegen::GenericBindings::PermissionsBinding::Permissions_Binding::query::{closure#0}<script::dom::bindings::codegen::DomTypeHolder::DomTypeHolder> ()
        at target/debug/build/servo-script-bindings-ef2a1256548a64be/out/Bindings/PermissionsBinding.rs:14
    #9  0x0000555563692a51 in core::ops::function::impls::{impl#4}::call_once<(), dyn core::ops::function::FnMut<(), Output=()>> (self=..., args=())
        at /root/.rustup/toolchains/1.95.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:310
    #10 0x000055556368ca14 in core::panic::unwind_safe::{impl#23}::call_once<(), &mut dyn core::ops::function::FnMut<(), Output=()>> (self=...)
        at /root/.rustup/toolchains/1.95.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panic/unwind_safe.rs:274
    #11 0x0000555563684567 in std::panicking::catch_unwind::do_call<core::panic::unwind_safe::AssertUnwindSafe<&mut dyn core::ops::function::FnMut<(), Output=()>>, ()> (data=0x7fffb616acd0)
        at /root/.rustup/toolchains/1.95.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:581
    #12 0x00005555636905db in __rust_try ()
    #13 0x000055556368d62a in std::panicking::catch_unwind<(), core::panic::unwind_safe::AssertUnwindSafe<&mut dyn core::ops::function::FnMut<(), Output=()>>> (f=...)
        at /root/.rustup/toolchains/1.95.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:544
    #14 std::panic::catch_unwind<core::panic::unwind_safe::AssertUnwindSafe<&mut dyn core::ops::function::FnMut<(), Output=()>>, ()> (f=...)
        at /root/.rustup/toolchains/1.95.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:359
    #15 0x0000555563692504 in mozjs::panic::wrap_panic (function=...) at src/panic.rs:22
    #16 0x000055555f7f3eb4 in script_bindings::codegen::GenericBindings::PermissionsBinding::Permissions_Binding::query<script::dom::bindings::codegen::DomTypeHolder::DomTypeHolder>
        (cx=0x7fffb0034140, _obj=..., this=0x7fffd9616390, args=0x7fffb616b070) at target/debug/build/servo-script-bindings-ef2a1256548a64be/out/Bindings/PermissionsBinding.rs:14
    #17 0x000055555f7fee76 in script_bindings::codegen::GenericBindings::PermissionsBinding::Permissions_Binding::query_promise_wrapper::{closure#0}::{closure#0}<script::dom::bindings::codegen::DomTypeHolder::DomTypeHolder> () at target/debug/build/servo-script-bindings-ef2a1256548a64be/out/Bindings/PermissionsBinding.rs:45
    #18 0x000055555f7f9f4d in script_bindings::codegen::GenericBindings::PermissionsBinding::Permissions_Binding::query_promise_wrapper::{closure#0}<script::dom::bindings::codegen::DomTypeHolder::DomTypeHolder> ()
        at target/debug/build/servo-script-bindings-ef2a1256548a64be/out/Bindings/PermissionsBinding.rs:44
    #19 0x0000555563692a51 in core::ops::function::impls::{impl#4}::call_once<(), dyn core::ops::function::FnMut<(), Output=()>> (self=..., args=())
        at /root/.rustup/toolchains/1.95.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:310
    #20 0x000055556368ca14 in core::panic::unwind_safe::{impl#23}::call_once<(), &mut dyn core::ops::function::FnMut<(), Output=()>> (self=...)
        at /root/.rustup/toolchains/1.95.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panic/unwind_safe.rs:274
    #21 0x0000555563684567 in std::panicking::catch_unwind::do_call<core::panic::unwind_safe::AssertUnwindSafe<&mut dyn core::ops::function::FnMut<(), Output=()>>, ()> (data=0x7fffb616af30)
        at /root/.rustup/toolchains/1.95.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:581
    #22 0x00005555636905db in __rust_try ()
    #23 0x000055556368d62a in std::panicking::catch_unwind<(), core::panic::unwind_safe::AssertUnwindSafe<&mut dyn core::ops::function::FnMut<(), Output=()>>> (f=...)
        at /root/.rustup/toolchains/1.95.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:544
    #24 std::panic::catch_unwind<core::panic::unwind_safe::AssertUnwindSafe<&mut dyn core::ops::function::FnMut<(), Output=()>>, ()> (f=...)
        at /root/.rustup/toolchains/1.95.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:359
    #25 0x0000555563692504 in mozjs::panic::wrap_panic (function=...) at src/panic.rs:22
    #26 0x000055555f7f325b in script_bindings::codegen::GenericBindings::PermissionsBinding::Permissions_Binding::query_promise_wrapper<script::dom::bindings::codegen::DomTypeHolder::DomTypeHolder>
        (cx=0x7fffb0034140, _obj=..., this=0x7fffd9616390, args=0x7fffb616b070) at target/debug/build/servo-script-bindings-ef2a1256548a64be/out/Bindings/PermissionsBinding.rs:44
    #27 0x000055556436ff62 in CallJitMethodOp
        (info=0x5555693f3038 <script_bindings::codegen::GenericBindings::PermissionsBinding::Permissions_Binding::query_methodinfo>, cx=0x7fffb0034140, thisObj=..., specializedThis=0x7fffd9616390, argc=1, vp=0x7fffb616b668) at ./src/jsglue.cpp:717
    #28 0x0000555561432dfb in mozjs::rust::wrappers2::CallJitMethodOp
        (info=0x5555693f3038 <script_bindings::codegen::GenericBindings::PermissionsBinding::Permissions_Binding::query_methodinfo>, cx=0x7fffb616b5f0, thisObj=..., specializedThis=0x7fffd9616390, argc=1, vp=0x7fffb616--Type <RET> for more, q to quit, c to continue without paging--
    b668) at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/mozjs-0.16.4/src/rust.rs:1600
    #29 0x00005555607730fb in script_bindings::utils::generic_call<script::dom::bindings::codegen::DomTypeHolder::DomTypeHolder, true>
        (cx=0x7fffb616b5f0, argc=1, vp=0x7fffb616b668, call=0x555561432d50 <mozjs::rust::wrappers2::CallJitMethodOp>) at components/script_bindings/utils.rs:592
    #30 0x0000555560773cd2 in script_bindings::utils::generic_method<script::dom::bindings::codegen::DomTypeHolder::DomTypeHolder, script_bindings::utils::call_policies::Normal, true>
        (cx=0x7fffb0034140, argc=1, vp=0x7fffb616b668) at components/script_bindings/utils.rs:613
    #31 0x00003100367d3493 in ??? ()
    #32 0x01007fffb0034160 in ??? ()
    #33 0x00007fffb616b640 in ??? ()
    #34 0x0000000000000000 in ??? ()
    
  4. jdm commented on Jun 27, 2026

    @jdm
    Member

    I'm pretty confident this is a symptom of #46019 and a GC occurring that invalidates the JSObject pointer that is passed around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-crashI-intermittent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions