Uncaught exceptions during Thunderbird shutdown
Categories
(Thunderbird :: Mail Window Front End, defect)
Tracking
(Not tracked)
People
(Reporter: Irving, Unassigned)
References
Details
(Whiteboard: Regression?)
Attachments
(3 files)
Reporter | ||
Comment 2•13 years ago
|
||
Reporter | ||
Updated•13 years ago
|
Updated•13 years ago
|
Comment 4•13 years ago
|
||
Comment 7•13 years ago
|
||
Comment 8•13 years ago
|
||
Comment 9•13 years ago
|
||
![]() |
||
Comment 10•13 years ago
|
||
Reporter | ||
Updated•11 years ago
|
Comment 12•4 years ago
|
||
I don't see the particular errors mentioned by the original poster.
However, I do still see some issues.
The attached log is from heavily PATCHED debug version of TB.
Some messages make me really uncomfortable.
Actually, depending on the timing (race), the debug version hits an assert and fails. (thus we may not obtain the memory report, etc. cleanly in ASAN build, etc.
The case in point.
In the attached log, you see
[Parent 736666, Main Thread] WARNING: some msg dbs left open: '!m_dbCache.Length() || m_dbCache.Length() <= unremoved_db_from_cache_due_to_unavailable_XPCOM', file /NEW-SSD/NREF-COMM-CENTRAL/mozilla/comm/mailnews/db/msgdb/src/nsMsgDatabase.cpp:84
m_dbCache.Length() = 1, unremoved_db_from_cache_due_to_unavailable_XPCOM=0
My local version is patched to avoid the assert (in debug version of TB) mentioned in
bug 1342858.
The cause of the bug is found in Bug 1677202.
XPCOM shutdown is not quire well ordered and thus file removal from the so called cache is not
honored when the filename, etc. cannot be resolved due to the earlier shutdown of XPCOM subsystem
responsible for that. And we hit assert in TB version.
The patch in bug 1677202 has not been entered in the tree.
See bug 1677202 comment 11 and a few comments before and after it.
This assert is hit randomly on try-comm-central, too. It is just that not many people test debug version and so do not realize the issue.
So there are some strange issues at shutdown time.
Updated•3 years ago
|
Comment 13•2 years ago
|
||
WFM per comment 12.
But do we need bugs for anything mentioned in comment 12? (that don't have a bug already)
Comment 14•2 years ago
|
||
(In reply to Wayne Mery (:wsmwk) from comment #13)
WFM per comment 12.
But do we need bugs for anything mentioned in comment 12? (that don't have a bug already)
The bug I mention in comment 12 is
addressed, not fixed completely in bug 1342858, and the cause of the bug is found in Bug 1677202.
Fixing it completely would require some type of proper ordering of XPCOM subsystem shutdown at FF and TB shutdown.
To shutdown an XPCOM subsystem and destruct all the object handled by it properly may depend on
the functioning of other subsystems.
Such depended-upon subsystems cannot be destructed in advance.
Thus there is some kind of forced ordering.
However, the current code does not follow it. That is the problem.
And I suspect there is even a circular dependency which needs to be split. A long tedious work.
Comment 15•2 years ago
|
||
I think we should close this one.
Bug 1677202 is nice and specific and we can get our teeth stuck into fixing it.
And if any concrete crash-upon-shutdown bugs pop up, they should each have their own report anyway.
One thing I'd really like to do in the new year is start having a concerted effort to fix the deluge of useless warnings and noise in the output, especially in debug builds. I feel crash-on-shutdown bugs (especially if they only happen in debug builds) kind of get diminished and ignored because of all the crap that gets dumped out every time you run.
Description
•