Closed Bug 1982261 Opened 1 year ago Closed 1 year ago

Crash in [@ IPCError-browser | SetCookies Invalid cookie received.]

Categories

(Core :: DOM: Core & HTML, defect)

Other
All
defect

Tracking

()

RESOLVED FIXED
145 Branch
Tracking Status
firefox-esr128 --- unaffected
firefox-esr140 --- unaffected
firefox141 --- unaffected
firefox142 --- wontfix
firefox143 --- wontfix
firefox144 --- fixed
firefox145 --- fixed

People

(Reporter: release-mgmt-account-bot, Assigned: baku)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: crash, regression)

Crash Data

Attachments

(2 files)

Crash report: https://crash-stats.mozilla.org/report/index/ee441322-b777-4419-8e5d-bffec0250723

Reason: DUMP_REQUESTED

Top 10 frames of crashing thread:

0  libxul.so  mozilla::dom::binding_detail::GenericGetter<mozilla::dom::binding_detail::NormalThisPolicy, mozilla::dom::binding_detail::ThrowExceptions>  dom/bindings/BindingUtils.cpp
0  libxul.so  CallJSNative  js/src/vm/Interpreter.cpp:501
0  libxul.so  js::InternalCallOrConstruct  js/src/vm/Interpreter.cpp:597
0  libxul.so  InternalCall  js/src/vm/Interpreter.cpp:664
0  libxul.so  js::Call  js/src/vm/Interpreter.cpp:696
0  libxul.so  js::CallGetter  js/src/vm/Interpreter.cpp:818
0  libxul.so  CallGetter  js/src/vm/NativeObject.cpp:2125
0  libxul.so  GetExistingProperty<  js/src/vm/NativeObject.cpp:2153
0  libxul.so  NativeGetPropertyInline<  js/src/vm/NativeObject.cpp:2296
0  libxul.so  js::NativeGetProperty  js/src/vm/NativeObject.cpp:2326

By querying Nightly crashes reported within the last 2 months, here are some insights about the signature:

  • First crash report: 2025-07-23
  • Process type: Content
  • Is startup crash: No
  • Has user comments: No
  • Is null crash: No

By analyzing the backtrace, the regression may have been introduced by a patch [1] to fix Bug 1976971.

[1] https://hg.mozilla.org/mozilla-central/rev?node=9638f25e3a87

:jrmuizel, since you are the author of the potential regressor, could you please take a look?

Flags: needinfo?(jmuizelaar)

Set release status flags based on info from the regressing bug 1976971

Set release status flags based on info from the regressing bug 1976971

Flags: needinfo?(jmuizelaar) → needinfo?(amarchesini)

Somehow, there is an IPC call to set an invalid cookie. Unfortunately in the crash there is no details about what called that method. I'm going to change the approach and log a warning message and return IPC_OK.

Flags: needinfo?(amarchesini)
Assignee: nobody → amarchesini
Status: NEW → ASSIGNED
Pushed by amarchesini@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/de8e54ecf601 https://hg.mozilla.org/integration/autoland/rev/05d9c3f01472 CookieServiceParent logs about invalid cookies instead of crashing, r=valentin,cookie-reviewers
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 145 Branch

:baku, does this need uplift requests? The only crash reports are in nightly, are beta and release affected?

Flags: needinfo?(amarchesini)

beta yes. No release. The number of crashes is low.

Flags: needinfo?(amarchesini)

firefox-beta Uplift Approval Request

  • User impact if declined: A rare crash can occur when storing invalid cookies.
  • Code covered by automated testing: yes
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: n/a
  • Risk associated with taking this patch: low
  • Explanation of risk level: The crash is triggered by a MOZ_ASSERT, replaced with a MOZ_DIAGNOSTIC_ASSERT.
  • String changes made/needed: none.
  • Is Android affected?: yes
Attachment #9513796 - Flags: approval-mozilla-beta?
Attachment #9513796 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Regressions: 1989143
No longer regressions: 1989143
Regressions: 1991019
Regressions: 1992536
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: