Crash in [@ nsTextFrame::ReflowText]
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
People
(Reporter: woyece, Unassigned)
References
Details
(Whiteboard: [not-a-fission-bug])
Crash Data
Maybe Fission related. (DOMFissionEnabled=1)
Crash report: crash-stats .mozilla .org/report/index/bf20f73d-2432-44c2-bf33-e24680210103
Reason: SIGSEGV /SEGV_MAPERR
Top 10 frames of crashing thread:
0 libxul.so nsTextFrame::ReflowText layout/generic/nsTextFrame.cpp:9435
1 libxul.so nsLineLayout::ReflowFrame layout/generic/nsLineLayout.cpp:878
2 libxul.so nsBlockFrame::DoReflowInlineFrames layout/generic/nsBlockFrame.cpp:4333
3 libxul.so nsBlockFrame::Reflow layout/generic/nsBlockFrame.cpp:1375
4 libxul.so nsContainerFrame::ReflowChild layout/generic/nsContainerFrame.cpp:1082
5 libxul.so nsHTMLButtonControlFrame::Reflow layout/forms/nsHTMLButtonControlFrame.cpp:184
6 libxul.so nsAbsoluteContainingBlock::ReflowAbsoluteFrame layout/generic/nsAbsoluteContainingBlock.cpp:761
7 libxul.so nsBlockFrame::Reflow layout/generic/nsBlockFrame.cpp:1626
8 libxul.so nsBlockFrame::ReflowBlockFrame layout/generic/nsBlockFrame.cpp:3854
9 libxul.so nsBlockFrame::Reflow layout/generic/nsBlockFrame.cpp:1375
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Comment 1•4 years ago
|
||
The bug has a crash signature, thus the bug will be considered confirmed.
Updated•4 years ago
|
Comment 2•4 years ago
|
||
FWIW, it looks like a lot of these are stack overflows (i.e. running out of stack memory, effectively); and ReflowText happens to be the straw that breaks the camel's back, so to speak.
In a couple of those cases that I saw, the backtrace shows that we've got JS calling into something that we don't have symbols for (maybe just directly executing jitted code?), which then spins the event loop while it's waiting for something; and we hit a stack overflow while we're inside that nested event loop.
e.g.: bp-06ed44a0-c511-4879-8411-e9ff10221019, bp-05e110b3-5fa2-48cb-b0ad-8cebf0221015
Comment 3•4 years ago
|
||
EventLoopNestingLevel: 106 in the crash report, yeah, that looks borked.
Comment 4•4 years ago
|
||
aha, and both of the crash reports in comment 2 have, in their "Crash Annotations" tab, the XPCOMSpinEventLoopStack field showing default: prompts/Prompter.jsm:openPromptSync|prompts/Prompter.jsm:openPromptSync|prompts/Prompter.jsm:openPromptSync|..., apparently deeply recursively nested in that openPromptSync API's event-loop-spinning...
Comment 5•4 years ago
|
||
One of the user comments is: it was asking for a permission of f7
If I press and hold F7, I do get an infinite number of nested caret-browsing prompts. In some cases (e.g. this user) maybe the F7 key got stuck and those prompts appeared until the event-loop-nexting exhausted the available stack space...
Comment 6•4 years ago
|
||
(That's tracked in bug 1743878, though I don't think we'd put together in that bug that it could lead to stack exhaustion / parent-process-crash.)
Comment 7•4 years ago
|
||
This also looks quite reminiscent of bug 1153736 -- I suspect the recent reports mentioned there may be the same kind of thing.
Comment 8•4 years ago
|
||
Based on crash-stats super-search for the last 6 months of crash data, it looks like:
- 71% of the crashes with this signature are parent-process crashes (880 out of 1242)
- Of those parent-process crashes, 40% of them (352 crashes) actually have
_chkstk | nsTextFrame::ReflowTextas their crash signature, where the crash in_chkstkis an indication that we've got a stack overflow.
Comment 9•4 years ago
|
||
(In reply to Daniel Holbert [:dholbert] from comment #8)
- Of those parent-process crashes, 40% of them (352 crashes) actually have
_chkstk | nsTextFrame::ReflowTextas their crash signature, where the crash in_chkstkis an indication that we've got a stack overflow.
That's actually an under-count, since we only show _chkstk as part of the signature for some of the crashes where it shows up in the backtrace...
e.g. bp-06ed44a0-c511-4879-8411-e9ff10221019 is shown as Crash Report [@ nsTextFrame::ReflowText ] despite _chkstk being stack level 0, whereas bp-4991362b-9a61-4dfc-a6ba-bdafd0220726 is shown as Crash Report [@ _chkstk | nsTextFrame::ReflowText ]
Comment 10•4 years ago
|
||
I spun off bug 1796382 for the stack overflows here. (If anyone knows how to massage the bugzilla crash signatures fields to make more of the stack overflows show up in the volume over there rather than over here, please do.)
I spun off bug 1796389 on the fact that we seem to have changed how we generate signatures such that _chkstk disappeared for stack overflows, resulting in the recent spike in crash volume here (which was really just bug 1796382's preexisting crash volume starting to show up under a different signature.)
Comment 11•4 years ago
•
|
||
Here's Super Search for this signature ( [@ nsTextFrame::ReflowText ]) excluding EXCEPTION_STACK_OVERFLOW (since I'm lumping those under bug 1796382):
https://crash-stats.mozilla.org/search/?reason=%21~EXCEPTION_STACK_OVERFLOW&signature=%3DnsTextFrame%3A%3AReflowText&product=Firefox&_facets=signature&_sort=-date&_columns=date&_columns=signature&_columns=product&_columns=version&_columns=build_id&_columns=platform#facet-signature
Extending the default date range to cover the past 6 months, there are 392 crashes, which works out to about 15/week, or roughly 2/day.
Comment 12•4 years ago
|
||
(Bug 1743878's fix landed in the last day; as that rides the trains, hopefully we'll see a reduction in the stack-overflow-from-Prompter.jsm category of crashes that were contributing to crash volume here.)
Comment 13•4 years ago
|
||
Also, bug 1796389 was deployed on Nov 9th, to add stackoverflow to the crash signature for stack overflows. So as of that day, some portion of the crashes here will be showing up on bug 1796382 instead of here (which is great).
Comment 14•4 years ago
•
|
||
Looking at the last month of crashes here, 85% of the crashes were stack overflows (EXCEPTION_STACK_OVERFLOW ) from before Nov 9th when that category was rebucketed as bug 1796382. (Hopefully that volume should drop dramatically in v108+ as noted over there).
The remaining crash volume from non-stackoverflow categories is quite low, so I think we can reprioritize as S3.
Description
•