Crash in [@ mozilla::dom::RangeBasedTextDirectiveCreator::CollectContextTermWordBoundaryDistances]
Categories
(Core :: DOM: Navigation, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr128 | --- | unaffected |
| firefox-esr140 | --- | unaffected |
| firefox141 | --- | unaffected |
| firefox142 | --- | unaffected |
| firefox143 | --- | disabled |
| firefox144 | --- | fixed |
People
(Reporter: release-mgmt-account-bot, Assigned: jjaschke)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: crash, regression)
Crash Data
Attachments
(1 file)
Crash report: https://crash-stats.mozilla.org/report/index/2091f660-9014-4b06-97c6-4b53d0250726
MOZ_CRASH Reason: MOZ_DIAGNOSTIC_ASSERT(!mEndContent.IsEmpty())
Top 10 frames of crashing thread:
0 xul.dll mozilla::dom::RangeBasedTextDirectiveCreator::CollectContextTermWordBoundaryDistances dom/base/TextDirectiveCreator.cpp:388
1 xul.dll mozilla::dom::TextDirectiveCreator::CreateTextDirectiveFromRange dom/base/TextDirectiveCreator.cpp:55
2 xul.dll mozilla::dom::FragmentDirective::CreateTextDirectiveForSelection dom/base/FragmentDirective.cpp:468
3 xul.dll mozilla::dom::FragmentDirective_Binding::createTextDirectiveForSelection dom/bindings/FragmentDirectiveBinding.cpp:145
3 xul.dll mozilla::dom::FragmentDirective_Binding::createTextDirectiveForSelection_promiseWrapper dom/bindings/FragmentDirectiveBinding.cpp:156
4 xul.dll mozilla::dom::binding_detail::GenericMethod<mozilla::dom::binding_detail::NormalThisPolicy, mozilla::dom::binding_detail::ConvertExceptionsToPromises> dom/bindings/BindingUtils.cpp:3309
5 xul.dll CallJSNative js/src/vm/Interpreter.cpp:501
5 xul.dll js::InternalCallOrConstruct js/src/vm/Interpreter.cpp:597
5 xul.dll InternalCall js/src/vm/Interpreter.cpp:664
5 xul.dll js::CallFromStack js/src/vm/Interpreter.cpp:669
By querying Nightly crashes reported within the last 2 months, here are some insights about the signature:
- First crash report: 2025-07-26
- 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 1978976.
[1] https://hg.mozilla.org/mozilla-central/rev?node=5266c5cc9daa
:jjaschke, since you are the author of the potential regressor, could you please take a look?
| Reporter | ||
Comment 1•11 months ago
|
||
Set release status flags based on info from the regressing bug 1978976
| Assignee | ||
Comment 2•11 months ago
|
||
Quite low volume, this is also a diagnostic assert on a feature that's currently Nightly only. I'll be monitoring this in hope of some STRs.
Updated•11 months ago
|
Updated•10 months ago
|
Comment 3•10 months ago
|
||
I have a profile and crash report indicating this issue that I can reproduce easily locally - This occurs when I highlight a URL in an email (not a hyperlink, but the actual https full address) and right click. The tab crashes every time. As indicated in the bug, I am reproducing this in Nightly.
https://share.firefox.dev/3JJTRrj
https://crash-stats.mozilla.org/report/index/f1a2f4f9-9855-4d7d-96ea-8ac740250904
| Assignee | ||
Comment 5•10 months ago
|
||
Thanks a lot, with that I can debug this. I don’t think this needs to be a sec issue, this is just hitting an assertion. (I can’t make it public again though)
(Keeping the ni)
Updated•10 months ago
|
| Assignee | ||
Comment 6•10 months ago
|
||
The range-based approach for creating a text directive uses the word breaker algorithm
to identify where to split between start and end term. If the range contains a word
which is over 50% of the length content, the algorithm would either return wordEnd=length or
wordStart=0, which would result in start or end term being empty, which is not allowed.
This patch catches these edge cases and ensures that start and end are always valid.
Updated•10 months ago
|
| Assignee | ||
Updated•10 months ago
|
Updated•10 months ago
|
Comment 10•10 months ago
|
||
Backed out for causing crashes (Bug 1987845) as part of the Nightly merge operations:
backout link: https://hg.mozilla.org/mozilla-central/rev/b1fda3f9af8ae58da0ea4a24078dd75b784e79cf
Comment 11•10 months ago
|
||
Comment 12•10 months ago
|
||
| bugherder | ||
| Assignee | ||
Updated•10 months ago
|
Updated•9 months ago
|
Description
•