Closed Bug 2055458 Opened 4 months ago Closed 3 months ago

Intermittent Assertion failure: p, at checkouts/gecko/js/src/proxy/Proxy.cpp:X

Categories

(Core :: JavaScript Engine, defect, P5)

defect

Tracking

()

RESOLVED FIXED
155 Branch
Tracking Status
firefox-esr140 --- unaffected
firefox-esr153 --- unaffected
firefox153 --- unaffected
firefox154 --- fixed
firefox155 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: jonco)

References

(Regression)

Details

(Keywords: assertion, intermittent-failure, regression)

Attachments

(2 external files)

Filed by: asilaghi [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=579087983&repo=autoland&task=cND7i_LMRr6A8nMmuQE5mA.0
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/cND7i_LMRr6A8nMmuQE5mA/runs/0/artifacts/public/logs/live_backing.log


[task 2026-07-16T11:59:24.124+00:00] 11:59:24     INFO - TEST-PASS | js/xpconnect/tests/chrome/test_bug1530146.html | took 357ms
[task 2026-07-16T11:59:24.125+00:00] 11:59:24     INFO - TEST-START | Shutdown
[task 2026-07-16T11:59:24.125+00:00] 11:59:24     INFO - Passed:  2
[task 2026-07-16T11:59:24.126+00:00] 11:59:24     INFO - Failed:  0
[task 2026-07-16T11:59:24.126+00:00] 11:59:24     INFO - Todo:    0
[task 2026-07-16T11:59:24.126+00:00] 11:59:24     INFO - Mode:    non-e10s
[task 2026-07-16T11:59:24.127+00:00] 11:59:24     INFO - Slowest: 241ms - chrome://mochitests/content/chrome/js/xpconnect/tests/chrome/test_bug1530146.html
[task 2026-07-16T11:59:24.127+00:00] 11:59:24     INFO - SimpleTest FINISHED
[task 2026-07-16T11:59:24.128+00:00] 11:59:24     INFO - TEST-INFO | Ran 1 Loops
[task 2026-07-16T11:59:24.128+00:00] 11:59:24     INFO - SimpleTest FINISHED
[task 2026-07-16T11:59:24.351+00:00] 11:59:24     INFO - GECKO(18557) | [Parent 18557, GMPThread] WARNING: Failed to delete GMP storage directory: file checkouts/gecko/dom/media/gmp/GMPServiceParent.cpp:1890
[task 2026-07-16T11:59:24.375+00:00] 11:59:24     INFO - GECKO(18557) | 1784203164374	Marionette	TRACE	Received observer notification quit-application
[task 2026-07-16T11:59:24.375+00:00] 11:59:24     INFO - GECKO(18557) | 1784203164374	Marionette	TRACE	Application is shutting down with reason: "shutdown"
[task 2026-07-16T11:59:24.375+00:00] 11:59:24     INFO - GECKO(18557) | 1784203164374	Marionette	INFO	Stopped listening on port 2828
[task 2026-07-16T11:59:24.431+00:00] 11:59:24     INFO - GECKO(18557) | 1784203164431	Marionette	DEBUG	Marionette stopped listening
[task 2026-07-16T11:59:24.839+00:00] 11:59:24     INFO - GECKO(18557) | [18557] Assertion failure: p, at checkouts/gecko/js/src/proxy/Proxy.cpp:878
[task 2026-07-16T11:59:24.839+00:00] 11:59:24     INFO -  Initializing stack-fixing for the first stack frame, this may take a while...
[task 2026-07-16T11:59:36.347+00:00] 11:59:36     INFO - GECKO(18557) | #01: js::ProxyObject::trace(JSTracer*, JSObject*) [git:github.com/mozilla-firefox/firefox:js/src/proxy/Proxy.cpp:cfbb962e31c89f8238e8bd989b6eb818e4756e9f:893]
[task 2026-07-16T11:59:36.347+00:00] 11:59:36     INFO - GECKO(18557) | #02: JSObject::traceChildren(JSTracer*) [git:github.com/mozilla-firefox/firefox:js/src/vm/JSObject.cpp:cfbb962e31c89f8238e8bd989b6eb818e4756e9f:2977]
[task 2026-07-16T11:59:36.348+00:00] 11:59:36     INFO - GECKO(18557) | #03: JS::TraceChildren(JSTracer*, JS::GCCellPtr) [git:github.com/mozilla-firefox/firefox:js/src/gc/Tracer.cpp:cfbb962e31c89f8238e8bd989b6eb818e4756e9f:64]
[task 2026-07-16T11:59:36.349+00:00] 11:59:36     INFO - GECKO(18557) | #04: js::gc::UnmarkGrayTracer<(unsigned int)0>::unmark(JS::GCCellPtr) [git:github.com/mozilla-firefox/firefox:js/src/gc/Marking.cpp:cfbb962e31c89f8238e8bd989b6eb818e4756e9f:3423]
[task 2026-07-16T11:59:36.349+00:00] 11:59:36     INFO - GECKO(18557) | #05: js::gc::UnmarkGrayGCThingUnchecked(js::GCMarker*, JS::GCCellPtr) [git:github.com/mozilla-firefox/firefox:js/src/gc/Marking.cpp:cfbb962e31c89f8238e8bd989b6eb818e4756e9f:3439]
[task 2026-07-16T11:59:36.350+00:00] 11:59:36     INFO - GECKO(18557) | #06: JS::UnmarkGrayGCThingRecursively(JS::GCCellPtr) [git:github.com/mozilla-firefox/firefox:js/src/gc/Marking.cpp:cfbb962e31c89f8238e8bd989b6eb818e4756e9f:3463]
[task 2026-07-16T11:59:36.350+00:00] 11:59:36     INFO - GECKO(18557) | #07: js::NukeRemovedCrossCompartmentWrapper(JSContext*, JSObject*) [git:github.com/mozilla-firefox/firefox:js/src/proxy/BaseProxyHandler.cpp:cfbb962e31c89f8238e8bd989b6eb818e4756e9f:415]
[task 2026-07-16T11:59:36.351+00:00] 11:59:36     INFO - GECKO(18557) | #08: js::NukeCrossCompartmentWrappers(JSContext*, js::CompartmentFilter const&, JS::Realm*, js::NukeReferencesToWindow, js::NukeReferencesFromTarget) [git:github.com/mozilla-firefox/firefox:js/src/proxy/CrossCompartmentWrapper.cpp:cfbb962e31c89f8238e8bd989b6eb818e4756e9f:471]
[task 2026-07-16T11:59:36.352+00:00] 11:59:36     INFO - GECKO(18557) | #09: mozilla::WindowDestroyedEvent::Run() [git:github.com/mozilla-firefox/firefox:dom/base/WindowDestroyedEvent.cpp:cfbb962e31c89f8238e8bd989b6eb818e4756e9f:140]
[task 2026-07-16T11:59:36.352+00:00] 11:59:36     INFO - GECKO(18557) | #10: IdleRunnableWrapper::Run() [git:github.com/mozilla-firefox/firefox:xpcom/threads/nsThreadUtils.cpp:cfbb962e31c89f8238e8bd989b6eb818e4756e9f:317]
[task 2026-07-16T11:59:36.353+00:00] 11:59:36     INFO - GECKO(18557) | #11: mozilla::RunnableTask::Run() [git:github.com/mozilla-firefox/firefox:xpcom/threads/TaskController.cpp:cfbb962e31c89f8238e8bd989b6eb818e4756e9f:722]
[task 2026-07-16T11:59:36.353+00:00] 11:59:36     INFO - GECKO(18557) | #12: mozilla::TaskController::DoExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) [git:github.com/mozilla-firefox/firefox:xpcom/threads/TaskController.cpp:cfbb962e31c89f8238e8bd989b6eb818e4756e9f:1360]
[task 2026-07-16T11:59:36.354+00:00] 11:59:36     INFO - GECKO(18557) | #13: mozilla::TaskController::ExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) [git:github.com/mozilla-firefox/firefox:xpcom/threads/TaskController.cpp:cfbb962e31c89f8238e8bd989b6eb818e4756e9f:1225]
[task 2026-07-16T11:59:36.355+00:00] 11:59:36     INFO - GECKO(18557) | #14: mozilla::TaskController::ProcessPendingMTTask(bool) [git:github.com/mozilla-firefox/firefox:xpcom/threads/TaskController.cpp:cfbb962e31c89f8238e8bd989b6eb818e4756e9f:657]
[task 2026-07-16T11:59:36.355+00:00] 11:59:36     INFO - GECKO(18557) | #15: mozilla::detail::RunnableFunction<mozilla::TaskController::TaskController()::$_0>::Run() [git:github.com/mozilla-firefox/firefox:xpcom/threads/nsThreadUtils.h:cfbb962e31c89f8238e8bd989b6eb818e4756e9f:536]
[task 2026-07-16T11:59:36.356+00:00] 11:59:36     INFO - GECKO(18557) | #16: nsThread::ProcessNextEvent(bool, bool*) [git:github.com/mozilla-firefox/firefox:xpcom/threads/nsThread.cpp:cfbb962e31c89f8238e8bd989b6eb818e4756e9f:1184]
[task 2026-07-16T11:59:36.356+00:00] 11:59:36     INFO - GECKO(18557) | #17: NS_ProcessPendingEvents(nsIThread*, unsigned int) [git:github.com/mozilla-firefox/firefox:xpcom/threads/nsThreadUtils.cpp:cfbb962e31c89f8238e8bd989b6eb818e4756e9f:436]
[task 2026-07-16T11:59:36.357+00:00] 11:59:36     INFO - GECKO(18557) | #18: mozilla::AppShutdown::AdvanceShutdownPhaseInternal(mozilla::ShutdownPhase, bool, char16_t const*, nsCOMPtr<nsISupports> const&) [git:github.com/mozilla-firefox/firefox:xpcom/base/AppShutdown.cpp:cfbb962e31c89f8238e8bd989b6eb818e4756e9f:409]
[task 2026-07-16T11:59:36.357+00:00] 11:59:36     INFO - GECKO(18557) | #18: mozilla::AppShutdown::AdvanceShutdownPhaseInternal(mozilla::ShutdownPhase, bool, char16_t const*, nsCOMPtr<nsISupports> const&) [git:github.com/mozilla-firefox/firefox:xpcom/base/AppShutdown.cpp:cfbb962e31c89f8238e8bd989b6eb818e4756e9f:409]
[task 2026-07-16T11:59:36.357+00:00] 11:59:36     INFO - GECKO(18557) | #19: nsXREDirProvider::DoShutdown() [git:github.com/mozilla-firefox/firefox:toolkit/xre/nsXREDirProvider.cpp:cfbb962e31c89f8238e8bd989b6eb818e4756e9f:746]
[task 2026-07-16T11:59:36.358+00:00] 11:59:36     INFO - GECKO(18557) | #20: ScopedXPCOMStartup::~ScopedXPCOMStartup() [git:github.com/mozilla-firefox/firefox:toolkit/xre/nsAppRunner.cpp:cfbb962e31c89f8238e8bd989b6eb818e4756e9f:2070]
[task 2026-07-16T11:59:36.358+00:00] 11:59:36     INFO - GECKO(18557) | #21: XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) [git:github.com/mozilla-firefox/firefox:toolkit/xre/nsAppRunner.cpp:cfbb962e31c89f8238e8bd989b6eb818e4756e9f:6610]
[task 2026-07-16T11:59:36.359+00:00] 11:59:36     INFO - GECKO(18557) | #22: XRE_main(int, char**, mozilla::BootstrapConfig const&) [git:github.com/mozilla-firefox/firefox:toolkit/xre/nsAppRunner.cpp:cfbb962e31c89f8238e8bd989b6eb818e4756e9f:6646]
[task 2026-07-16T11:59:36.359+00:00] 11:59:36     INFO - GECKO(18557) | #23: ??? [/builds/worker/workspace/build/application/firefox/firefox + 0x3eb74]
[task 2026-07-16T11:59:36.360+00:00] 11:59:36     INFO - GECKO(18557) | #24: ??? [/lib/x86_64-linux-gnu/libc.so.6 + 0x2a1ca]
[task 2026-07-16T11:59:36.360+00:00] 11:59:36     INFO - GECKO(18557) | #25: __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6 + 0x2a28b]
[task 2026-07-16T11:59:36.361+00:00] 11:59:36     INFO - GECKO(18557) | #26: ??? [/builds/worker/workspace/build/application/firefox/firefox + 0x3e639]
[task 2026-07-16T11:59:36.361+00:00] 11:59:36     INFO - GECKO(18557) | #27: ??? (???:???)
[task 2026-07-16T11:59:36.361+00:00] 11:59:36     INFO - GECKO(18557) | ExceptionHandler::GenerateDump attempting to generate:/tmp/tmpfvrj6vv0.mozrunner/minidumps/1972a858-7c6f-77b4-85d4-a608bece2f73.dmp
[task 2026-07-16T11:59:36.362+00:00] 11:59:36     INFO - GECKO(18557) | ExceptionHandler::GenerateDump cloned child 18725
[task 2026-07-16T11:59:36.362+00:00] 11:59:36     INFO - GECKO(18557) | ExceptionHandler::SendContinueSignalToChild sent continue signal to child
[task 2026-07-16T11:59:36.363+00:00] 11:59:36     INFO - GECKO(18557) | ExceptionHandler::WaitForContinueSignal waiting for continue signal...
[task 2026-07-16T11:59:36.363+00:00] 11:59:36     INFO - GECKO(18557) | ExceptionHandler::GenerateDump minidump generation succeeded
[task 2026-07-16T11:59:36.364+00:00] 11:59:36     INFO - GECKO(18557) | [Utility 18695, IPC I/O Child] WARNING: [4D3C8A8B44798E0C.B473BAAC04D8BFE5]: Dropping message '<null>'; no connection to unknown peer 1.1: file checkouts/gecko/ipc/glue/NodeController.cpp:371
[task 2026-07-16T11:59:36.364+00:00] 11:59:36     INFO - GECKO(18557) | [Utility 18695, Main Thread] WARNING: Shutting down Utility process early due to a crash!: file checkouts/gecko/ipc/glue/UtilityProcessChild.cpp:373
[task 2026-07-16T11:59:36.364+00:00] 11:59:36     INFO - TEST-INFO | Main app process: exit 11
[task 2026-07-16T11:59:36.365+00:00] 11:59:36     INFO - Buffered messages finished
[task 2026-07-16T11:59:36.365+00:00] 11:59:36     INFO - runtests.py | Application ran for: 0:00:17.885046
[task 2026-07-16T11:59:36.365+00:00] 11:59:36     INFO - zombiecheck | Reading PID log: /tmp/tmpxdm0ohtxpidlog
[task 2026-07-16T11:59:36.366+00:00] 11:59:36     INFO - ==> process 18557 launched child process 18668
[task 2026-07-16T11:59:36.366+00:00] 11:59:36     INFO - zombiecheck | Checking for orphan process with PID: 18668
[task 2026-07-16T11:59:36.367+00:00] 11:59:36     INFO - mozcrash Copy/paste: /builds/worker/fetches/minidump-stackwalk/minidump-stackwalk --symbols-url=https://symbols.mozilla.org/ --cyborg=/builds/worker/workspace/build/blobber_upload_dir/1972a858-7c6f-77b4-85d4-a608bece2f73.json /tmp/tmpfvrj6vv0.mozrunner/minidumps/1972a858-7c6f-77b4-85d4-a608bece2f73.dmp /builds/worker/workspace/build/symbols
[task 2026-07-16T11:59:41.726+00:00] 11:59:41     INFO - mozcrash Saved minidump as /builds/worker/workspace/build/blobber_upload_dir/1972a858-7c6f-77b4-85d4-a608bece2f73.dmp
[task 2026-07-16T11:59:41.726+00:00] 11:59:41     INFO - mozcrash Saved app info as /builds/worker/workspace/build/blobber_upload_dir/1972a858-7c6f-77b4-85d4-a608bece2f73.extra
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO - PROCESS-CRASH | 1972a858-7c6f-77b4-85d4-a608bece2f73 | MOZ_ASSERT(p) [@ CheckProxyIsInCCWMap] | js/xpconnect/tests/chrome/test_bug1530146.html (finished) 
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO - Process type: main
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO - Process pid: 18557
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO - Mozilla crash reason: MOZ_ASSERT(p)
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO - Crash dump filename: /tmp/tmpfvrj6vv0.mozrunner/minidumps/1972a858-7c6f-77b4-85d4-a608bece2f73.dmp
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO - Operating system: Linux
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO -                   6.17.0-1013-gcp #13~24.04.1-Ubuntu SMP Thu Apr 16 02:10:24 UTC 2026
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO - CPU: amd64
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO -      family 25 model 17 stepping 1
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO -      8 CPUs
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO - Linux Ubuntu 24.04 - noble (Ubuntu 24.04.2 LTS)
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO - 
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO - Crash reason:  SIGSEGV / SEGV_MAPERR
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO - Crash address: 0x0000000000000000 **
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO -     ** Null pointer detected with offset: 0x0000000000000000
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO - Crashing instruction: `mov qword [rax], rcx`
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO - Memory accessed by instruction:
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO -   0. Address: 0x0000000000000000
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO -      Size: 8
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO -      Access type: Write
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO - No instruction pointer update by instruction
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO - Process uptime: not available
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO - 
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO - Linux memory map count: 2883
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO - 
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO - Thread 0 firefox-bin (crashed) - tid: 18557
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO -  0  libxul.so!MOZ_CrashSequence(void*, long) [Assertions.h:cfbb962e31c89f8238e8bd989b6eb818e4756e9f : 261]
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO -     Found by: inlining
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO -  1  libxul.so!CheckProxyIsInCCWMap(js::ProxyObject*) [Proxy.cpp:cfbb962e31c89f8238e8bd989b6eb818e4756e9f : 878]
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO -     Found by: inlining
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO -  2  libxul.so!js::ProxyObject::trace(JSTracer*, JSObject*) [Proxy.cpp:cfbb962e31c89f8238e8bd989b6eb818e4756e9f : 893 + 0xa0]
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO -      rax = 0x0000000000000000    rdx = 0x00007f2719f0e563
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO -      rcx = 0x000000000000036e    rbx = 0x00002bc5852c5ba0
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO -      rsi = 0x0000000000000000    rdi = 0x00007f2719f0f700
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO -      rbp = 0x00007ffefa98ad00    rsp = 0x00007ffefa98aca0
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO -       r8 = 0x0000000000000000     r9 = 0x0000000000000003
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO -      r10 = 0x0000000000000002    r11 = 0x0000000000000293
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO -      r12 = 0x0000397c33a20fa0    r13 = 0x0000000000000000
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO -      r14 = 0x00007ffefa98add8    r15 = 0x00007f26f2042200
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO -      rip = 0x00007f270ae419b2
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO -     Found by: given as instruction pointer in context
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO -  3  libxul.so!JSClass::doTrace(JSTracer*, JSObject*) const [Class.h:cfbb962e31c89f8238e8bd989b6eb818e4756e9f : 665]
[task 2026-07-16T11:59:42.319+00:00] 11:59:42     INFO -     Found by: inlining
Component: Networking: HTTP → JavaScript Engine

This is caused by an assertion triggering a read barrier unnecessarily.

Assignee: nobody → jcoppeard
Keywords: regression
Regressed by: 2046893

The read barrier can end up causing an assertion to fail because the CCW isn't
in the wrapper map, but this is expected when calling
NukeRemovedCrossCompartmentWrapper. The barrier isn't necessary to assert the
pointers are different.

Pushed by jcoppeard@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/73e34a3371f2 https://hg.mozilla.org/integration/autoland/rev/648f25e97c42 Don't trigger read barrier for assertion in NukeRemovedCrossCompartmentWrapper r=spidermonkey-reviewers,mgaudet
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch

The patch landed in nightly and beta is affected.
:jonco, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(jcoppeard)

Requested uplift to fix intermittent test failures.

Flags: needinfo?(jcoppeard)

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: No user impact. Intermittent test failure only.
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: no
  • Steps to reproduce for manual QE testing:
  • Risk associated with taking this patch: low
  • Explanation of risk level: This is a super simple change that only affects debug builds.
  • String changes made/needed?: None
  • Is Android affected?: yes
Attachment #9617254 - Flags: approval-mozilla-beta?

The read barrier can end up causing an assertion to fail because the CCW isn't
in the wrapper map, but this is expected when calling
NukeRemovedCrossCompartmentWrapper. The barrier isn't necessary to assert the
pointers are different.

Original Revision: https://phabricator.services.mozilla.com/D313160

Attachment #9617254 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: