You're right, sorry. Attached now:
gnome-shell-jsgc-crash-symbolized.txt, from today's gnome-shell core and a
gjs (ding.js) core, symbolized with the matching -dbgsym packages
(gnome-shell 50.1-0ubuntu1.5, gjs 1.88.0-1, libmozjs-140-0 140.8.0-4).

  #6  js::TraceNullableRoot<js::Shape*> (thingp=0x400000000010, 
name="exact-Shape")  gc/Tracer.h:235
  #8  TraceExactStackRootList<js::Shape*>            gc/RootMarking.cpp:52
  #10 JS::RootingContext::traceStackRoots            gc/RootMarking.cpp:83
  #12 js::gc::GCRuntime::traceRuntimeCommon          gc/RootMarking.cpp:310
  #14 js::gc::GCRuntime::beginMarkPhase              gc/GC.cpp:3142
  #19 JS_GC (reason=35)                              jsapi.cpp:1324
  #20 GjsContextPrivate::trigger_gc_if_needed        gjs/context.cpp:879  
(m_force_gc=true)
  #26 meta_context_run_main_loop

What the cores show:
- cx->stackRoots_[RootKind::Shape] (JSContext+0x28) contains 0x400000000000,
  so root marking dereferences it and segfaults at 0x400000000010.
- All other root lists (Object, Script, Id, Value, Traceable) are intact:
  every node's 'stack' points back at its head slot, lies in a live frame,
  and the chains end in NULL. Only that one 8-byte head is wrong; the value
  has a single bit set (byte 0x40 at JSContext+0x2d).
- The gjs desktop-icons process (ding.js, separate process, no shell
  extensions loaded) has the same slot overwritten with the same value.
- All 21 gjs segfaults in the kernel log since the upgrade are identical
  ("segfault at 400000000010 ... libmozjs-140.so.140.8.0[6b7370,...]").
  Same slot and value across many boots and processes, so it looks like one
  deterministic stray write into the JSContext, not random corruption.

dpkg -V is clean for libmozjs-140-0, libgjs0, gjs, gnome-shell and
libmutter-18-0. Since the 26.04 upgrade (2026-10-17): 12 gnome-shell
crashes, 2 of them today, and 21 gjs/ding crashes; timestamps and the full
root-list dumps for both processes are in the attachment.

No third-party shell extensions were loaded in any of these crashes; only
the Ubuntu defaults are active (details in the attachment).

Uploads to errors.ubuntu.com still fail (HTTP 400/502 again today), so the
core dumps exist only locally.

** Attachment added: "gnome-shell-jsgc-crash-symbolized.txt"
   
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2172586/+attachment/6020972/+files/gnome-shell-jsgc-crash-symbolized.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2172586

Title:
  gnome-shell 50.1 crashes with SIGSEGV in JS_GC (libmozjs-140
  140.8.0-4), logging the user out

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2172586/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to