Crash in [@ nsMsgComposeSecure::MimeFinishMultipartSigned]
Categories
(Thunderbird :: General, defect)
Tracking
(thunderbird_esr102+ verified, thunderbird109 fixed)
People
(Reporter: wsmwk, Assigned: mkmelin)
Details
(Keywords: crash)
Crash Data
Attachments
(1 file)
|
48 bytes,
text/x-phabricator-request
|
wsmwk
:
approval-comm-beta+
wsmwk
:
approval-comm-esr102+
|
Details | Review |
Crash exists in version 91.
Crash report: https://crash-stats.mozilla.org/report/index/807e04ef-7bf6-4dab-93a4-69a220221216
Reason: EXC_BAD_ACCESS / KERN_INVALID_ADDRESS
Top 10 frames of crashing thread:
0 XUL nsMsgComposeSecure::MimeFinishMultipartSigned mailnews/extensions/smime/nsMsgComposeSecure.cpp:616
1 XUL nsMsgComposeSecure::MimeFinishEncryption mailnews/extensions/smime/nsMsgComposeSecure.cpp:735
2 XUL _NS_InvokeByIndex
3 XUL XPCWrappedNative::CallMethod js/xpconnect/src/XPCWrappedNative.cpp:1125
4 XUL XPC_WN_CallMethod js/xpconnect/src/XPCWrappedNativeJSOps.cpp:963
5 XUL js::InternalCallOrConstruct js/src/vm/Interpreter.cpp:507
6 XUL Interpret js/src/vm/Interpreter.cpp:3314
7 XUL js::RunScript js/src/vm/Interpreter.cpp:389
8 XUL js::InternalCallOrConstruct js/src/vm/Interpreter.cpp:539
9 XUL js::Call js/src/vm/Interpreter.cpp:605
| Reporter | ||
Comment 1•2 years ago
|
||
Some crashes have add-ons, but some don't have addons
| Assignee | ||
Comment 2•2 years ago
|
||
https://hg.mozilla.org/releases/comm-esr102/file/tip/mailnews/extensions/smime/nsMsgComposeSecure.cpp#l616
mDataHash is nulled out on the next line. So maybe there's some re-entry of nsMsgComposeSecure::MimeFinishMultipartSigned?
| Assignee | ||
Comment 3•2 years ago
|
||
Updated•2 years ago
|
Comment 4•2 years ago
|
||
The bad state could occur if the init code fails, but the parent code continues to use the object with the failed state.
Wayne, do all crashes show a "crash address" of zero, like in the one crash you linked above?
If yes, we don't have memory corruption, but rather have a failed allocation (or a double MIME part destroy call).
I agree with the patch. I agree we should abort the operation if we run into this inconsistency.
If anyone had time available to investigate further, we could check if we ever run through MimeFinishMultipartSigned twice for a single object. And in addition, we could add a state boolean, that remembers whether we had a failed init (any of the init functions), and immediately return from the "update" and "finish" functions if the "failed init" flag is set.
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/e45e4b7e299d
Fix Crash in [@ nsMsgComposeSecure::MimeFinishMultipartSigned]. r=kaie
| Assignee | ||
Updated•2 years ago
|
| Reporter | ||
Comment 6•2 years ago
|
||
(In reply to Kai Engert (:KaiE:) from comment #4)
The bad state could occur if the init code fails, but the parent code continues to use the object with the failed state.
Wayne, do all crashes show a "crash address" of zero, like in the one crash you linked above?
If yes, we don't have memory corruption, but rather have a failed allocation (or a double MIME part destroy call).
Yes, all zero.
| Assignee | ||
Comment 7•2 years ago
|
||
Comment on attachment 9310607 [details]
Bug 1806247 - Fix Crash in [@ nsMsgComposeSecure::MimeFinishMultipartSigned]. r=kaie
[Approval Request Comment]
Safe crash fix
| Reporter | ||
Updated•2 years ago
|
| Reporter | ||
Comment 8•2 years ago
|
||
Comment on attachment 9310607 [details]
Bug 1806247 - Fix Crash in [@ nsMsgComposeSecure::MimeFinishMultipartSigned]. r=kaie
[Triage Comment]
Approved for beta
Comment 9•2 years ago
|
||
| bugherder uplift | ||
Thunderbird 109.0b4:
https://hg.mozilla.org/releases/comm-beta/rev/b4191d614857
| Reporter | ||
Comment 10•2 years ago
|
||
crash rate is too low to verify effectiveness of patch in beta or nightly builds.
| Reporter | ||
Comment 11•2 years ago
|
||
Comment on attachment 9310607 [details]
Bug 1806247 - Fix Crash in [@ nsMsgComposeSecure::MimeFinishMultipartSigned]. r=kaie
[Triage Comment]
Approved for esr102
Comment 12•2 years ago
|
||
| bugherder uplift | ||
Thunderbird 102.7.2:
https://hg.mozilla.org/releases/comm-esr102/rev/f4a01622fb9b
Description
•