Closed Bug 1841154 Opened 3 years ago Closed 3 years ago

Startup Crash in [@ mozilla::detail::InvalidArrayIndex_CRASH | nsMsgDBView::Sort]

Categories

(Thunderbird :: General, defect, P1)

Thunderbird 115
defect

Tracking

(thunderbird_esr115? verified, thunderbird116? affected)

RESOLVED FIXED
117 Branch
Tracking Status
thunderbird_esr115 ? verified
thunderbird116 ? affected

People

(Reporter: wsmwk, Assigned: leftmostcat)

References

()

Details

(Keywords: crash, regression, Whiteboard: [snnot3p])

Crash Data

Attachments

(1 file)

Crashes start with 115.0b5. Mac only afaict.

Regression from Bug 1498313 ?

Crash report: https://crash-stats.mozilla.org/report/index/974cbf76-c3c5-4b45-ad2b-6123e0230629

Reason: EXC_BAD_ACCESS / KERN_INVALID_ADDRESS

Top 10 frames of crashing thread:

0  libmozglue.dylib  MOZ_Crash  mfbt/Assertions.h:264
0  libmozglue.dylib  mozilla::detail::InvalidArrayIndex_CRASH  mfbt/Assertions.cpp:50
1  XUL  std::__1::__introsort<std::__1::_ClassicAlgPolicy, nsMsgDBView::Sort  /builds/worker/fetches/MacOSX13.3.sdk/usr/include/c++/v1/__algorithm/sort.h
2  XUL  std::__1::__introsort<std::__1::_ClassicAlgPolicy, nsMsgDBView::Sort  /builds/worker/fetches/MacOSX13.3.sdk/usr/include/c++/v1/__algorithm/sort.h:593
3  XUL  std::__1::__introsort<std::__1::_ClassicAlgPolicy, nsMsgDBView::Sort  /builds/worker/fetches/MacOSX13.3.sdk/usr/include/c++/v1/__algorithm/sort.h:593
4  XUL  std::__1::__introsort<std::__1::_ClassicAlgPolicy, nsMsgDBView::Sort  /builds/worker/fetches/MacOSX13.3.sdk/usr/include/c++/v1/__algorithm/sort.h:590
5  XUL  std::__1::__introsort<std::__1::_ClassicAlgPolicy, nsMsgDBView::Sort  /builds/worker/fetches/MacOSX13.3.sdk/usr/include/c++/v1/__algorithm/sort.h:593
6  XUL  std::__1::__introsort<std::__1::_ClassicAlgPolicy, nsMsgDBView::Sort  /builds/worker/fetches/MacOSX13.3.sdk/usr/include/c++/v1/__algorithm/sort.h:593
7  XUL  std::__1::__sort<nsMsgDBView::Sort  /builds/worker/fetches/MacOSX13.3.sdk/usr/include/c++/v1/__algorithm/sort.h:627
7  XUL  std::__1::__sort_impl[abi:v15006]<std::__1::_ClassicAlgPolicy, mozilla::ArrayIterator<IdUint32*&, nsTArray_Impl<IdUint32, nsTArrayInfallibleAllocator> >, nsMsgDBView::Sort  /builds/worker/fetches/MacOSX13.3.sdk/usr/include/c++/v1/__algorithm/sort.h:687
Flags: needinfo?(mkmelin+mozilla)
Flags: needinfo?(leftmostcat)

This seems to be a result of the sorting changes from bug 1498313, yes. We seem to be experiencing fewer crashes overall than when using NS_QuickSort(), at least. I may have an idea of what's going wrong here, but it's very hard to tell as I'm unable to reproduce and we don't have any reporters reproducing. I will put up a patch and we can keep an eye on crash stats in daily.

Flags: needinfo?(mkmelin+mozilla)
Flags: needinfo?(leftmostcat)
Assignee: nobody → leftmostcat
Status: NEW → ASSIGNED
Attachment #9343342 - Attachment description: WIP: Bug 1841154 - Don't return zero for unequal values in message sort. → Bug 1841154 - Don't return zero for unequal values in message sort. r=benc
Attachment #9343342 - Attachment description: Bug 1841154 - Don't return zero for unequal values in message sort. r=benc → Bug 1841154 - Don't return zero for unequal values in message sort. r=babolivier
Target Milestone: --- → 117 Branch

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/5ce9735466f3
Don't return zero for unequal values in message sort. r=babolivier

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED

Approx 25% of crashes are 15 seconds or less uptime, 60% less than 60 seconds.

Summary: Crash in [@ mozilla::detail::InvalidArrayIndex_CRASH | nsMsgDBView::Sort] → Startup Crash in [@ mozilla::detail::InvalidArrayIndex_CRASH | nsMsgDBView::Sort]

Comment on attachment 9343342 [details]
Bug 1841154 - Don't return zero for unequal values in message sort. r=babolivier

[Triage Comment]
Approved for esr115

This isn't happening to a ton of users but, for those who encounter it, a significant percentage are stuck crashing at startup crash. If you don't mind respining 115.1.1 this would be a good patch to take.

Flags: needinfo?(rob)
Attachment #9343342 - Flags: approval-comm-esr115+
Flags: needinfo?(rob)

Verified crash is gone in 115.1.1

Thanks for the patch and review!

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: