Skip to content

Intermittent CRASH in /fetch/api/response/response-stream-with-broken-then.any.html #35419

@gterzian

Description

@gterzian
pid:905 assertion failed: incumbent_global.is_some() (thread Script(1,1), at components/script/script_runtime.rs:226)
 0:08.01 pid:905 UNSUPPORTED (log once): POSSIBLE ISSUE: unit 1 GLD_TEXTURE_INDEX_2D is unloadable and bound to sampler type (Float) - using zero texture because texture unloadable
 0:09.59 pid:905    0: backtrace::backtrace::libunwind::trace
 0:09.59 pid:905              at /Users/Gregory/.cargo/registry/src/index.crates.io-6f17d22bba15001f/backtrace-0.3.74/src/backtrace/libunwind.rs:116:5
 0:09.59 pid:905       backtrace::backtrace::trace_unsynchronized
 0:09.59 pid:905              at /Users/Gregory/.cargo/registry/src/index.crates.io-6f17d22bba15001f/backtrace-0.3.74/src/backtrace/mod.rs:66:5
 0:09.59 pid:905    1: <servoshell::backtrace::Print as core::fmt::Debug>::fmt
 0:09.59 pid:905              at /Users/Gregory/Projects/servo/ports/servoshell/backtrace.rs:65:13
 0:09.61 pid:905    2: core::fmt::rt::Argument::fmt
 0:09.61 pid:905              at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/rt.rs:177:76
 0:09.61 pid:905       core::fmt::write
 0:09.61 pid:905              at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/mod.rs:1186:21
 0:09.62 pid:905    3: std::io::Write::write_fmt
 0:09.62 pid:905              at /Users/Gregory/.rustup/toolchains/1.83.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/io/mod.rs:1839:15
 0:09.62 pid:905    4: servoshell::backtrace::print
 0:09.62 pid:905              at /Users/Gregory/Projects/servo/ports/servoshell/backtrace.rs:18:5
 0:09.62 pid:905    5: servoshell::panic_hook::panic_hook
 0:09.62 pid:905              at /Users/Gregory/Projects/servo/ports/servoshell/panic_hook.rs:40:17
 0:09.64 pid:905    6: core::ops::function::Fn::call
 0:09.64 pid:905              at /Users/Gregory/.rustup/toolchains/1.83.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:79:5
 0:09.68 pid:905    7: <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call
 0:09.68 pid:905              at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
 0:09.68 pid:905       std::panicking::rust_panic_with_hook
 0:09.68 pid:905              at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:809:13
 0:09.68 pid:905    8: std::panicking::begin_panic_handler::{{closure}}
 0:09.69 pid:905              at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:667:13
 0:09.69 pid:905    9: std::sys::backtrace::__rust_end_short_backtrace
 0:09.69 pid:905              at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:170:18
 0:09.69 pid:905   10: rust_begin_unwind
 0:09.69 pid:905              at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:665:5
 0:09.69 pid:905   11: core::panicking::panic_fmt
 0:09.69 pid:905              at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:74:14
 0:09.69 pid:905   12: core::panicking::panic
 0:09.69 pid:905              at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:148:5
 0:09.74 pid:905   13: script::script_runtime::get_incumbent_global::{{closure}}
 0:09.74 pid:905              at /Users/Gregory/Projects/servo/components/script/script_runtime.rs:226:9
 0:09.75 pid:905   14: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &mut F>::call_once
 0:09.75 pid:905              at /Users/Gregory/.rustup/toolchains/1.83.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:305:13
 0:09.75 pid:905   15: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
 0:09.75 pid:905              at /Users/Gregory/.rustup/toolchains/1.83.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/panic/unwind_safe.rs:272:9
 0:09.75 pid:905   16: std::panicking::try::do_call
 0:09.75 pid:905              at /Users/Gregory/.rustup/toolchains/1.83.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/panicking.rs:557:40
 0:09.75 pid:905   17: ___rust_try
 0:09.75 pid:905   18: std::panicking::try
 0:09.75 pid:905              at /Users/Gregory/.rustup/toolchains/1.83.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/panicking.rs:520:19
 0:09.75 pid:905       std::panic::catch_unwind
 0:09.75 pid:905              at /Users/Gregory/.rustup/toolchains/1.83.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/panic.rs:358:14
 0:09.75 pid:905   19: mozjs::panic::wrap_panic
 0:09.75 pid:905              at /Users/Gregory/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/0081fc4/mozjs/src/panic.rs:22:11
 0:09.78 pid:905   20: script::script_runtime::get_incumbent_global
 0:09.78 pid:905              at /Users/Gregory/Projects/servo/components/script/script_runtime.rs:223:5
 0:09.82 pid:905   21: _ZN12RustJobQueue18getIncumbentGlobalEP9JSContext
 0:09.82 pid:905              at /Users/runner/work/mozjs/mozjs/mozjs-sys/src/jsglue.cpp:63:12
 0:09.82 pid:905   22: __ZN2js22ResolvePromiseInternalEP9JSContextN2JS6HandleIP8JSObjectEENS3_INS2_5ValueEEE
 0:09.82 pid:905   23: __ZL22ResolvePromiseFunctionP9JSContextjPN2JS5ValueE
 0:09.82 pid:905   24: __ZN2js23InternalCallOrConstructEP9JSContextRKN2JS8CallArgsENS_14MaybeConstructENS_10CallReasonE
 0:09.82 pid:905   25: __ZN2js4CallEP9JSContextN2JS6HandleINS2_5ValueEEES5_RKNS_13AnyInvokeArgsENS2_13MutableHandleIS4_EENS_10CallReasonE
 0:09.82 pid:905   26: __ZN2js13PromiseObject7resolveEP9JSContextN2JS6HandleIPS0_EENS4_INS3_5ValueEEE
 0:09.82 pid:905   27: __ZL22ResolveOrRejectPromiseP9JSContextN2JS6HandleIP8JSObjectEENS2_INS1_5ValueEEEb
 0:09.85 pid:905   28: mozjs::rust::wrappers::ResolvePromise
 0:09.85 pid:905              at /Users/Gregory/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/0081fc4/mozjs/src/rust.rs:1145:51
 0:09.87 pid:905   29: script::dom::promise::Promise::resolve
 0:09.87 pid:905              at /Users/Gregory/Projects/servo/components/script/dom/promise.rs:202:17
 0:09.90 pid:905   30: script::dom::promise::Promise::resolve_native
 0:09.90 pid:905              at /Users/Gregory/Projects/servo/components/script/dom/promise.rs:195:9
 0:09.93 pid:905   31: script::dom::fontfaceset::FontFaceSet::fulfill_ready_promise_if_needed
 0:09.93 pid:905              at /Users/Gregory/Projects/servo/components/script/dom/fontfaceset.rs:50:13
 0:09.96 pid:905   32: script::dom::window::Window::reflow
 0:09.96 pid:905              at /Users/Gregory/Projects/servo/components/script/dom/window.rs:2055:13
 0:09.98 pid:905   33: script::script_thread::ScriptThread::update_the_rendering
 0:09.98 pid:905              at /Users/Gregory/Projects/servo/components/script/script_thread.rs:1295:17
 0:09.98 pid:905   34: script::script_thread::ScriptThread::handle_msgs
 0:09.98 pid:905              at /Users/Gregory/Projects/servo/components/script/script_thread.rs:1566:9
 0:09.98 pid:905   35: script::script_thread::ScriptThread::start
 0:09.98 pid:905              at /Users/Gregory/Projects/servo/components/script/script_thread.rs:975:15
 0:10.01 pid:905   36: <script::script_thread::ScriptThread as script_layout_interface::ScriptThreadFactory>::create::{{closure}}::{{closure}}
 0:10.01 pid:905              at /Users/Gregory/Projects/servo/components/script/script_thread.rs:446:25
 0:10.04 pid:905   37: profile_traits::mem::ProfilerChan::run_with_memory_reporting
 0:10.04 pid:905              at /Users/Gregory/Projects/servo/components/shared/profile/mem.rs:91:9
 0:10.04 pid:905   38: <script::script_thread::ScriptThread as script_layout_interface::ScriptThreadFactory>::create::{{closure}}
 0:10.04 pid:905              at /Users/Gregory/Projects/servo/components/script/script_thread.rs:444:17
 0:10.07 pid:905   39: std::sys::backtrace::__rust_begin_short_backtrace
 0:10.07 pid:905              at /Users/Gregory/.rustup/toolchains/1.83.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/sys/backtrace.rs:154:18
 0:10.09 pid:905   40: std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}
 0:10.09 pid:905              at /Users/Gregory/.rustup/toolchains/1.83.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/thread/mod.rs:538:17
 0:10.12 pid:905   41: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
 0:10.12 pid:905              at /Users/Gregory/.rustup/toolchains/1.83.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/panic/unwind_safe.rs:272:9
 0:10.15 pid:905   42: std::panicking::try::do_call
 0:10.15 pid:905              at /Users/Gregory/.rustup/toolchains/1.83.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/panicking.rs:557:40
 0:10.15 pid:905   43: ___rust_try
 0:10.15 pid:905   44: std::panicking::try
 0:10.15 pid:905              at /Users/Gregory/.rustup/toolchains/1.83.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/panicking.rs:520:19
 0:10.15 pid:905       std::panic::catch_unwind
 0:10.15 pid:905              at /Users/Gregory/.rustup/toolchains/1.83.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/panic.rs:358:14
 0:10.15 pid:905       std::thread::Builder::spawn_unchecked_::{{closure}}
 0:10.15 pid:905              at /Users/Gregory/.rustup/toolchains/1.83.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/thread/mod.rs:537:30
 0:10.48 pid:905   45: core::ops::function::FnOnce::call_once{{vtable.shim}}
 0:10.48 pid:905              at /Users/Gregory/.rustup/toolchains/1.83.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
 0:10.48 pid:905   46: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
 0:10.48 pid:905              at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
 0:10.48 pid:905       <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
 0:10.48 pid:905              at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
 0:10.48 pid:905       std::sys::pal::unix::thread::Thread::new::thread_start
 0:10.48 pid:905              at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/pal/unix/thread.rs:105:17
 0:10.48 pid:905   47: __pthread_joiner_wake

Came-up at #34844, but appears unrelated, and intermittent from local testing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-content/scriptRelated to the script threadI-intermittentProblem reproduces intermittently.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions