Open Bug 1869325 Opened 1 year ago Updated 1 year ago

Startup Crash in [@ nsContentList::PopulateSelf] via mozilla::dom::Document::DoNotifyPossibleTitleChange | mozilla::dom::Document::GetTitle

Categories

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

Unspecified
Windows 11
defect

Tracking

()

People

(Reporter: wsmwk, Unassigned)

References

Details

(Keywords: crash, Whiteboard: [tbird crash])

Crash Data

We have several startup crashes going through mozilla::dom::Document::DoNotifyPossibleTitleChange | mozilla::dom::Document::GetTitle

Reason: EXCEPTION_ACCESS_VIOLATION_READ

Top 10 frames of crashing thread:

0  xul.dll  nsContentList::PopulateSelf  dom/base/nsContentList.cpp:885
1  xul.dll  nsContentList::Item  dom/base/nsContentList.cpp:488
2  xul.dll  mozilla::dom::Document::GetTitleElement  dom/base/Document.cpp:9138
3  xul.dll  mozilla::dom::Document::GetTitle  dom/base/Document.cpp:9156
4  xul.dll  mozilla::dom::Document::DoNotifyPossibleTitleChange  dom/base/Document.cpp:9254
5  xul.dll  mozilla::detail::RunnableMethodArguments<>::apply<nsMemoryReporterManager, nsresult  const  xpcom/threads/nsThreadUtils.h:1164
5  xul.dll  std::invoke  /builds/worker/fetches/vs/VC/Tools/MSVC/14.29.30133/include/type_traits:1524
5  xul.dll  std::_Apply_impl  /builds/worker/fetches/vs/VC/Tools/MSVC/14.29.30133/include/tuple:974
5  xul.dll  std::apply  /builds/worker/fetches/vs/VC/Tools/MSVC/14.29.30133/include/tuple:979
5  xul.dll  mozilla::detail::RunnableMethodArguments<>::apply  xpcom/threads/nsThreadUtils.h:1162

Reason: EXCEPTION_PRIV_INSTRUCTION

Top 10 frames of crashing thread:

0  xul.dll  nsTPromiseFlatString<char16_t>::nsTPromiseFlatString  xpcom/string/nsTPromiseFlatString.h:100
0  xul.dll  TPromiseFlatString  xpcom/string/nsTPromiseFlatString.h:119
0  xul.dll  mozilla::places::History::SetURITitle  toolkit/components/places/History.cpp:2101
1  xul.dll  nsDocShell::UpdateGlobalHistoryTitle  docshell/base/nsDocShell.cpp:13445
1  xul.dll  nsDocShell::SetTitle  docshell/base/nsDocShell.cpp:5025
2  xul.dll  mozilla::dom::Document::DoNotifyPossibleTitleChange  dom/base/Document.cpp:9263
3  xul.dll  mozilla::detail::RunnableMethodArguments<>::apply<nsMemoryReporterManager, nsresult  const  xpcom/threads/nsThreadUtils.h:1164
3  xul.dll  std::invoke  /builds/worker/fetches/vs/VC/Tools/MSVC/14.29.30133/include/type_traits:1524
3  xul.dll  std::_Apply_impl  /builds/worker/fetches/vs/VC/Tools/MSVC/14.29.30133/include/tuple:974
3  xul.dll  std::apply  /builds/worker/fetches/vs/VC/Tools/MSVC/14.29.30133/include/tuple:979

Reason: EXCEPTION_ACCESS_VIOLATION_READ

Top 10 frames of crashing thread:

0  xul.dll  RefPtr<nsRunnableMethod<mozilla::dom::Document, void, 0, 0> >::get const  mfbt/RefPtr.h:325
0  xul.dll  operator!=  mfbt/RefPtr.h:576
0  xul.dll  nsRevocableEventPtr<nsRunnableMethod<mozilla::dom::Document, void, 0, 0> >::IsPending  xpcom/threads/nsThreadUtils.h:1640
0  xul.dll  mozilla::dom::Document::DoNotifyPossibleTitleChange  dom/base/Document.cpp:9246
1  xul.dll  mozilla::detail::RunnableMethodArguments<>::apply<nsMemoryReporterManager, nsresult  const  xpcom/threads/nsThreadUtils.h:1164
1  xul.dll  std::invoke  /builds/worker/fetches/vs/VC/Tools/MSVC/14.29.30133/include/type_traits:1524
1  xul.dll  std::_Apply_impl  /builds/worker/fetches/vs/VC/Tools/MSVC/14.29.30133/include/tuple:974
1  xul.dll  std::apply  /builds/worker/fetches/vs/VC/Tools/MSVC/14.29.30133/include/tuple:979
1  xul.dll  mozilla::detail::RunnableMethodArguments<>::apply  xpcom/threads/nsThreadUtils.h:1162
1  xul.dll  mozilla::detail::RunnableMethodImpl<nsMemoryReporterManager*, nsresult   xpcom/threads/nsThreadUtils.h:1213

Reason: EXCEPTION_ILLEGAL_INSTRUCTION

Top 10 frames of crashing thread:

0  xul.dll  mozilla::RustCell<unsigned int>::RustCell  layout/style/RustCell.h:28
0  xul.dll  nsWrapperCache::nsWrapperCache  dom/base/nsWrapperCache.h:93
0  xul.dll  nsINodeList::nsINodeList  dom/base/nsINodeList.h:28
0  xul.dll  nsBaseContentList::nsBaseContentList  dom/base/nsContentList.h:40
0  xul.dll  nsContentList::nsContentList  dom/base/nsContentList.cpp:390
1  xul.dll  mozilla::dom::Document::GetTitleElement  dom/base/Document.cpp:9133
2  xul.dll  mozilla::dom::Document::GetTitle  dom/base/Document.cpp:9156
3  xul.dll  mozilla::dom::Document::DoNotifyPossibleTitleChange  dom/base/Document.cpp:9254
4  xul.dll  mozilla::detail::RunnableMethodArguments<>::apply<nsMemoryReporterManager, nsresult  const  xpcom/threads/nsThreadUtils.h:1164
4  xul.dll  std::invoke  /builds/worker/fetches/vs/VC/Tools/MSVC/14.29.30133/include/type_traits:1524
Flags: needinfo?(mkmelin+mozilla)

This bug should be somewhere else.

Component: General → DOM: Core & HTML
Flags: needinfo?(mkmelin+mozilla)
Product: Thunderbird → Core
Version: Thunderbird 115 → unspecified
Whiteboard: [tbird crash]
Crash Signature: [@ nsContentList::PopulateSelf] → [@ mozilla::dom::Document::DoNotifyPossibleTitleChange][@ nsContentList::PopulateSelf]

There are 24 crashes at mozilla::dom::Document::DoNotifyPossibleTitleChange in this 6 months, but the last reported version is 115. 115 was moved to beta branch at start of June and I find this change which stops using nsContentList to get a <title>.

Emilio, do you think that the patch for bug 1838265 fixed this crash? If yes, could you request uplift the patch to ESR 115 branch?

Flags: needinfo?(emilio)

At least the first one, yeah

Depends on: 1838265
Flags: needinfo?(emilio)
You need to log in before you can comment on or make changes to this bug.