Skip to content

Crash loading https://lemonde.fr with experimental features enabled. #36114

@webbeef

Description

@webbeef

STR:

  • Prepare a debug build, and then run ./mach run --enable-experimental-web-platform-features https://lemonde.fr

  • Wait for this modal to appear (this can take a while!)

Image

  • Tap on "Accepter et continuer"
  • Wait for the crash

Here's the crash stack:

Subscriptions Runtime: 1.0.99
w.implcit.breadcrumb.c:1
[kleanads][script] Rename dynamique AdUnits done
[Extra-script style_banniere_haute] Custom styles for 'banniere_haute' have been injected.
assertion failed: !GetCurrentRealmOrNull(*cx).is_null() (thread SW:www.googletagmanager.com/static/service_worker/53k0/sw.js?origin=https%3A%2F%2Fwww.lemonde.fr, at components/script/realms.rs:24)
   0: servoshell::backtrace::print
             at /home/webbeef/servo/ports/servoshell/backtrace.rs:18:5
   1: servoshell::panic_hook::panic_hook
             at /home/webbeef/servo/ports/servoshell/panic_hook.rs:40:17
   2: core::ops::function::Fn::call
             at /home/webbeef/.rustup/toolchains/1.85.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:79:5
   3: <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call
             at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/alloc/src/boxed.rs:2007:9
      std::panicking::rust_panic_with_hook
             at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/std/src/panicking.rs:836:13
   4: std::panicking::begin_panic_handler::{{closure}}
             at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/std/src/panicking.rs:694:13
   5: std::sys::backtrace::__rust_end_short_backtrace
             at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/std/src/sys/backtrace.rs:168:18
   6: rust_begin_unwind
             at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/std/src/panicking.rs:692:5
   7: core::panicking::panic_fmt
             at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/core/src/panicking.rs:75:14
   8: core::panicking::panic
             at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/core/src/panicking.rs:145:5
   9: script::realms::AlreadyInRealm::assert_for_cx
             at /home/webbeef/servo/components/script/realms.rs:24:13
  10: script::dom::bindings::reflector::DomGlobalGeneric::global
             at /home/webbeef/servo/components/script/dom/bindings/reflector.rs:53:21
  11: <T as script::dom::bindings::reflector::DomGlobal>::global
             at /home/webbeef/servo/components/script/dom/bindings/reflector.rs:66:9
  12: script::dom::event::Event::dispatch
             at /home/webbeef/servo/components/script/dom/event.rs:513:63
  13: script::dom::eventtarget::EventTarget::dispatch_event
             at /home/webbeef/servo/components/script/dom/eventtarget.rs:438:9
  14: script::dom::serviceworkerglobalscope::ServiceWorkerGlobalScope::dispatch_activate
             at /home/webbeef/servo/components/script/dom/serviceworkerglobalscope.rs:481:9
  15: script::dom::serviceworkerglobalscope::ServiceWorkerGlobalScope::run_serviceworker_scope::{{closure}}
             at /home/webbeef/servo/components/script/dom/serviceworkerglobalscope.rs:383:17
  16: std::sys::backtrace::__rust_begin_short_backtrace
             at /home/webbeef/.rustup/toolchains/1.85.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/backtrace.rs:152:18
  17: std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}
             at /home/webbeef/.rustup/toolchains/1.85.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/mod.rs:564:17
  18: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /home/webbeef/.rustup/toolchains/1.85.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panic/unwind_safe.rs:272:9
  19: std::panicking::try::do_call
             at /home/webbeef/.rustup/toolchains/1.85.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:584:40
  20: __rust_try
  21: std::panicking::try
             at /home/webbeef/.rustup/toolchains/1.85.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:547:19
      std::panic::catch_unwind
             at /home/webbeef/.rustup/toolchains/1.85.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:358:14
      std::thread::Builder::spawn_unchecked_::{{closure}}
             at /home/webbeef/.rustup/toolchains/1.85.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/mod.rs:562:30
  22: core::ops::function::FnOnce::call_once{{vtable.shim}}
             at /home/webbeef/.rustup/toolchains/1.85.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  23: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
             at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/alloc/src/boxed.rs:1993:9
      <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
             at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/alloc/src/boxed.rs:1993:9
      std::sys::pal::unix::thread::Thread::new::thread_start
             at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/std/src/sys/pal/unix/thread.rs:106:17
  24: start_thread
             at ./nptl/pthread_create.c:447:8
  25: clone3
             at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78:0
[2025-03-24T01:14:48Z ERROR servoshell::panic_hook] assertion failed: !GetCurrentRealmOrNull(*cx).is_null()

Metadata

Metadata

Assignees

Labels

A-content/scriptRelated to the script threadI-panicServo encounters a panic.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions