Closed Bug 2073241 Opened 2 months ago Closed 2 months ago

Crash in [@ arena_run_reg_dalloc | arena_t::DallocSmall | arena_dalloc | MimeDisplayOptions::~MimeDisplayOptions]

Categories

(Thunderbird :: General, defect)

Unspecified
Windows 11
defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: wsmwk, Unassigned)

References

(Regression)

Details

(Keywords: crash, regression, topcrash-thunderbird)

Crash Data

New crash in v156. #6 ranking.

Crash report: https://crash-stats.mozilla.org/report/index/744c3630-82bd-4d4a-aa4a-a91360260917

MOZ_CRASH Reason:

MOZ_RELEASE_ASSERT((run->mRegionsMask[elm] & (1U << bit)) == 0) (Double-free?)

Top 10 frames:

0  mozglue.dll  arena_run_reg_dalloc(arena_run_t*, arena_bin_t*, void*, unsigned long long)  memory/build/mozjemalloc.cpp:800
0  mozglue.dll  arena_t::DallocSmall(arena_chunk_t*, void*, arena_chunk_map_t*)  memory/build/mozjemalloc.cpp:2654
1  mozglue.dll  arena_dalloc(void*, unsigned long long, arena_t*)  memory/build/mozjemalloc.cpp:2730
2  xul.dll  MimeDisplayOptions::~MimeDisplayOptions()  mailnews/mime/src/mimemoz2.cpp:1277
3  xul.dll  MimeDisplayOptions::~MimeDisplayOptions()  mailnews/mime/src/modlmime.h:128
4  xul.dll  mime_display_stream_complete(_nsMIMESession*)  mailnews/mime/src/mimemoz2.cpp:914
5  xul.dll  nsStreamConverter::OnStopRequest(nsIRequest*, nsresult)  mailnews/mime/src/nsStreamConverter.cpp:771
6  xul.dll  nsMsgProtocol::OnStopRequest(nsIRequest*, nsresult)  mailnews/base/src/nsMsgProtocol.cpp:284
7  xul.dll  nsMailboxProtocol::OnStopRequest(nsIRequest*, nsresult)  mailnews/local/src/nsMailboxProtocol.cpp:328
8  xul.dll  nsInputStreamPump::OnStateStop()  netwerk/base/nsInputStreamPump.cpp:737
Flags: needinfo?(mkmelin+mozilla)

Seems this was caused, well, exposed by bug 2066300.
The cause has been fixed on trunk, by bug 2068939 (for v157).

So I think we're fine to close.

Blocks: 2068939
Status: NEW → RESOLVED
Closed: 2 months ago
Flags: needinfo?(mkmelin+mozilla)
Keywords: regression
Regressed by: 2066300
Resolution: --- → WORKSFORME

Interesting, how did you validate that? Now in the correct order.

No longer blocks: 2068939
Depends on: 2068939

It was a double free of MimeDisplayOptions::default_charset.
The only owner not to use a fresh allocation for that was MimeExternalObject_parse_begin (which was deleted by bug 2068939)

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