omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Firefox RDD media-decoder process SIGSEGV: deliberate MOZ_CRASH from MOZ_RELEASE_ASSERT(mHandle) after failed dup() in FileDescriptor::FileDescriptor (upstream Firefox bug, filed at user request)

Open AnoopLamba opened this issue 2 weeks ago • 0 comments

Summary

Firefox's RDD (Remote Data Decoder) process — the sandboxed child that decodes media — crashed with SIGSEGV at 2026-11-16 15:53:35 IST. Investigation shows this was not a wild-pointer bug: Firefox deliberately crashed itself on a release assertion after a dup() of a validated file descriptor failed.

Disclosure up front: this is a crash in upstream Firefox code (libxul.so, ipc/glue/FileDescriptor.cpp), not in Omarchy's own commands, shell, or configuration. I verified this machine (Intel-only, no LIBVA_DRIVER_NAME override in Firefox's environment) is not affected by the known Omarchy video-decode config issues (#13549, #14290). It is filed here at the user's explicit request for visibility; Omarchy maintainers should feel free to close as upstream if that is preferred. No existing Bugzilla report matches the signature MOZ_RELEASE_ASSERT(mHandle) as of 2026-11-16.

What happened

  • coredumpctl info 9132: process RDD Process, PID 9132, signal 11 (SEGV), SEGV_MAPERR at address 0, error 6 (user-mode write to unmapped null).

  • Crashing thread: MediaSupervisor #601 (TID 67315), created seconds before the crash — a new media decode had just started in an already-open tab. Firefox had been running since 11:41; the most recent browsing activity was YouTube and hyperframes.heygen.com tabs (no navigations after 14:01).

  • The kernel's logged instruction bytes at the fault IP, disassembled from the matching offset in libxul.so:

    4b312fc: lea  -0x3cb06ef(%rip),%rax   ; -> .rodata string "MOZ_RELEASE_ASSERT(mHandle)"
    4b31301: mov  0x63c42de(%rip),%rcx    ; -> crash-reason annotation global
    4b3130a: mov  %rax,(%rcx)             ; store annotation
    4b3130d: xor  %eax,%eax
    4b3130f: mov  $0x1f,%ecx
    4b31314: mov  %rcx,(%rax)             ; << FAULT: deliberate write-to-null (MOZ_CRASH)
    4b31317: call *abort@GLIBC
    

    The crashing function's GOT references resolve to mozilla::DuplicateFileHandle(int) and mozilla::detail::FileHandleDeleter::operator(), which pins it to:

    // ipc/glue/FileDescriptor.cpp (mozilla-central)
    FileDescriptor::FileDescriptor(PlatformHandleType aHandle)
        : mHandle(DuplicateFileHandle(aHandle)) {
      if (FileHandleIsValid(aHandle)) {
        MOZ_RELEASE_ASSERT(mHandle);   // <-- fired
      }
    }
    

    i.e. dup(aHandle) failed for a descriptor Firefox had just validated as open.

Proven vs inferred

  • Proven: deliberate self-abort via MOZ_CRASH after a failed dup() of a validated fd, in the RDD process, on a freshly started media thread.
  • Inferred, not provable from the core: why dup() failed. Candidates: EMFILE (per-process fd table exhausted in the long-lived RDD child) or EBADF (fd closed concurrently by another thread — a use-after-close race). The RDD process's fd table is not captured in a core dump, so this could not be settled. Not memory/OOM: 19 GiB RAM with 9.5 GiB in use, no swap used, no OOM events in the kernel log.
  • Limits: the stack could not be fully symbolized — debuginfod.archlinux.org has no debuginfo for this firefox build, and gdb aborted with an internal error while loading. Frames #1–#17 remain libxul.so + offset only.

Impact

No user data lost. An RDD child dying does not take the browser down; the worst effect is a failed/blanked video in the affected tab, and Firefox respawns the process. This is the only firefox entry in the machine's entire coredumpctl history (one-off, not a pattern).

Environment

  • Omarchy 4.5.0-3, kernel 7.2.15-1-omarchy, Hyprland (Wayland), MOZ_ENABLE_WAYLAND=1
  • firefox 158.0.1-1 (parentBuildID 20261020085820), installed/updated via pacman, last update 2026-10-23 — crash is not correlated with a package update
  • CPU/GPU: Intel Kaby Lake-R UHD Graphics 620 (iGPU only), no NVIDIA, no LIBVA_DRIVER_NAME/VDPAU_DRIVER overrides in Firefox's environment
  • libxul.so Build ID: 913375f28aa057f63e6d57f2f199b95a4dadc81c
  • Full core retained by systemd-coredump (20.1M, core.RDD Process.1000.6b994870ecef4b0d855395e6d4c9626b.9132.1794824613000000.zst) if a maintainer wants it symbolized against Mozilla's official symbols.

Suggested resolution

Belongs upstream at bugzilla.mozilla.org (Core :: IPC / Audio/Video), signature MOZ_RELEASE_ASSERT(mHandle) — no matching bug found there as of 2026-11-16. Nothing in Omarchy's packaging or configuration is implicated.

Filed by GLM-5.3-Flash via OpenCode.

AnoopLamba avatar Nov 16 '26 13:11 AnoopLamba