Closed Bug 2073238 Opened 2 months ago Closed 1 month ago

Thunderbird Crash in [@ nsTArray_Impl<T>::~nsTArray_Impl | mozilla::dom::MozQueryInterface::~MozQueryInterface] saving file that was successfully saved.

Categories

(MailNews Core :: MIME, defect)

Thunderbird 156
Unspecified
Windows 11
defect

Tracking

(thunderbird_esr153 unaffected, thunderbird158 fixed, thunderbird159 fixed, thunderbird160 fixed)

RESOLVED WORKSFORME
Tracking Status
thunderbird_esr153 --- unaffected
thunderbird158 --- fixed
thunderbird159 --- fixed
thunderbird160 --- fixed

People

(Reporter: wsmwk, Unassigned)

References

(Regression)

Details

(Keywords: crash, regression)

Crash Data

"appears" to be new crash signature with 156.0.

Crash report: https://crash-stats.mozilla.org/report/index/b87f1327-3b91-4489-adb0-b19910260916
User comment "Unable to save name of a TXT copy. However, an EML copy was fine."
Related to Bug 1547541 ? Thunderbird Crash in [@ shutdownhang | NtUserPeekMessage | _PeekMessage] via mozilla::widget::WinUtils::PeekMessage (password?)

Reason:

EXCEPTION_ACCESS_VIOLATION_READ

Top 10 frames:

0  xul.dll  nsTArray_base<nsTArray_RelocateUsingMemutils>::IsEmpty() const  xpcom/ds/nsTArray.h:368
0  xul.dll  nsTArray_Impl<nsID, nsTArrayInfallibleAllocator>::~nsTArray_Impl()  xpcom/ds/nsTArray.h:894
0  xul.dll  mozilla::dom::MozQueryInterface::~MozQueryInterface()  dom/base/MozQueryInterface.h:29
0  xul.dll  std::default_delete<mozilla::dom::MozQueryInterface>::operator()(mozilla::dom...  /builds/worker/fetches/vs/VC/Tools/MSVC/14.51.36231/include/memory:3338
0  xul.dll  std::unique_ptr<mozilla::dom::MozQueryInterface, std::default_delete<mozilla:...  /builds/worker/fetches/vs/VC/Tools/MSVC/14.51.36231/include/memory:3456
0  xul.dll  mozilla::SegmentedVector<std::unique_ptr<mozilla::dom::MozQueryInterface, std...  mfbt/SegmentedVector.h:75
0  xul.dll  mozilla::SegmentedVector<std::unique_ptr<mozilla::dom::MozQueryInterface, std...  mfbt/SegmentedVector.h:248
1  xul.dll  mozilla::dom::DeferredFinalizerImpl<mozilla::dom::MozQueryInterface>::Deferre...  dom/bindings/BindingUtils.h:2968
2  xul.dll  mozilla::IncrementalFinalizeRunnable::ReleaseNow(bool)  xpcom/base/CycleCollectedJSRuntime.cpp:1955
3  xul.dll  mozilla::CycleCollectedJSContext::AfterProcessTask(unsigned int)  xpcom/base/CycleCollectedJSContext.cpp:542
Flags: needinfo?(mkmelin+mozilla)

Unfortunately, no good leads.

Component: General → MIME
Flags: needinfo?(mkmelin+mozilla)
Product: Thunderbird → MailNews Core

(In reply to Magnus Melin [:mkmelin] from comment #1)

Unfortunately, no good leads.

Well, the regression window is b1 -> b2 contains only bug 2067655 in comm/, but that does not really fit with the user comment. Could also be Gecko.

(In reply to Max Emig [:maxe] from comment #2)

(In reply to Magnus Melin [:mkmelin] from comment #1)

Unfortunately, no good leads.

Well, the regression window is b1 -> b2 contains only bug 2067655 in comm/, but that does not really fit with the user comment. Could also be Gecko.

156.0b1 was only out for a day before 156.0b2 got released, so we can't count on that regression range. Plus the crash rate is so low that it's possible the bug existed somewhere in 155.

But:

That signature strlen | nsCharTraits<T>::length does originate in 156.0b1 bp-05898481-76af-4fff-ab1a-99aee0260903 with (luckily) a user comment "Attempted to save an e-mail to a Dropbox folder as an HTML file." And has a much higher crash rate.

There are so far no crashes for 157 beta.

Could the regressor be Bug 2066300 - More MIME code should use safer methods for parsing and creating URL parameters ?

Severity: -- → S2
Crash Signature: [@ nsTArray_Impl<T>::~nsTArray_Impl | mozilla::dom::MozQueryInterface::~MozQueryInterface] → [@ nsTArray_Impl<T>::~nsTArray_Impl | mozilla::dom::MozQueryInterface::~MozQueryInterface] [@ strlen | nsCharTraits<T>::length]
Summary: Crash in [@ nsTArray_Impl<T>::~nsTArray_Impl | mozilla::dom::MozQueryInterface::~MozQueryInterface] → Thunderbird Crash in [@ nsTArray_Impl<T>::~nsTArray_Impl | mozilla::dom::MozQueryInterface::~MozQueryInterface] saving file that was successfully saved.
Version: unspecified → Thunderbird 156

TBD if fixed in 156.0.1 by Bug 2068022 - PROCESS-CRASH - application crashed [@ strlen] | comm/mail/components/compose/test/browser/browser_sendMessage_progress.js

This is the top crash for 156.0.1

But nothing in 157 beta, which releases Tues as 157.0

(In reply to Corey Bryant from comment #6)

But nothing in 157 beta, which releases Tues as 157.0

True.

I've been wondering if this is related to nsMailboxProtocol::Initialize crashes. Will need to see when release happens. bp-985a7293-f800-48fa-9b12-412150260922 is 157.0b2

Bug 2066300 made Save As -> File (html or txt) of local messages on Windows fail in the old broken MimeExternalObject attachment-box code, which then double-freed. I removed that code entirely in bug 2068939, fully unaware of the regression that had just happened.

No more crashes in the new release, ESR unaffected, good enough for me.

Status: NEW → RESOLVED
Closed: 1 month ago
Depends on: 2068939
Regressed by: 2066300
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.