Closed Bug 218725 Opened 21 years ago Closed 21 years ago

mailnews crashes when going online after being offline [@ morkArray::CloseArray]

Categories

(SeaMonkey :: MailNews: Backend, defect)

x86
Windows XP
defect
Not set
critical

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: stefan, Assigned: Bienvenu)

Details

(Keywords: crash, regression)

Crash Data

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.5b) Gecko/20030827
Build Identifier: Mozilla/5.0 (Windows; U; Win NT 5.1; en-US; rv:1.5b) Gecko/20030901


see steps to reproduce. There should be some talkback logs around to with

"switching from working offline to online" in the browser URL field (wrong place
I know, sorry)

Reproducible: Always

Steps to Reproduce:
1. start mailnews.
2. go offline (ALT f l w)
3. go online (ALT f l w again)
4. When asked if you wish to send Unsent messages (if you have some... this may
be relevant - I haven't tried without), select "Don't send"




Actual Results:  

kaboom! 

Expected Results:  

gone online.
Reporter, could you please post the Talkback ID for the incident? You'll find
the ID if you start talkback (run "talkback.exe").
URL:
Keywords: crash
ok. try

TB23435431M
TB23434977X

Stefan, I can't reach talkback to see the stacktraces. Can you send me your
prefs.js? There must be something about your configuration that's causing the
crash because this works fine for me. Thx.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Bienvenu: I emailed you my prefs.

also, this only seems to occur if you choose NOT to send your unsent messages
when going online. If you send the messages, or don't have any waiting to be
sent, it's ok.


Attached patch proposed fixSplinter Review
this will fix the problem. I have another patch to fix the underlying problem
in the msg db & dbfolderinfo code, but this fix is safer for 1.5
thx to seth for the stack trace:

0x0927802d
morkArray::CloseArray [c:/builds/seamonkey/mozilla/db/mork/src/morkArray.cpp,
line 135]
morkArray::CloseMorkNode [c:/builds/seamonkey/mozilla/db/mork/src/morkArray.cpp,
line 73]
morkTable::CloseTable [c:/builds/seamonkey/mozilla/db/mork/src/morkTable.cpp,
line 190]
morkTable::CloseMorkNode [c:/builds/seamonkey/mozilla/db/mork/src/morkTable.cpp,
line 100]
morkTable::~morkTable [c:/builds/seamonkey/mozilla/db/mork/src/morkTable.cpp,
line 108]
morkTable::`scalar deleting destructor'
morkObject::Release [c:/builds/seamonkey/mozilla/db/mork/src/morkObject.cpp,
line 68]
nsDBFolderInfo::ReleaseExternalReferences
[c:/builds/seamonkey/mozilla/mailnews/db/msgdb/src/nsDBFolderInfo.cpp, line 279]
nsDBFolderInfo::Release
[c:/builds/seamonkey/mozilla/mailnews/db/msgdb/src/nsDBFolderInfo.cpp, line 151]
nsImapOfflineSync::ProcessNextOperation
[c:/builds/seamonkey/mozilla/mailnews/imap/src/nsImapOfflineSync.cpp, line 663]

Status: NEW → ASSIGNED
Attachment #131183 - Flags: superreview?(scott)
there are a couple extra lines in that patch that are for a separate problem -
they don't do anything at the moment, so they're harmless.
Comment on attachment 131183 [details] [diff] [review]
proposed fix

I don't understand your fix David =). Isn't this just a no-op? 

if (!imapInbox)
{
}

there is no else clause so the statements that follow will still be executed.
Attachment #131183 - Flags: superreview?(scott) → superreview+
this fixes the underlying problem
Comment on attachment 131183 [details] [diff] [review]
proposed fix

r/a of that one line for 1.5:

+folderInfo = nsnull; // can't hold onto folderInfo longer than db

thanks david.
Attachment #131183 - Flags: review+
Attachment #131183 - Flags: approval1.5+
fixed
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
adding regression keyword
Keywords: regression
Summary: mailnews crashes when going online after being offline → mailnews crashes when going online after being offline [@ morkArray::CloseArray]
Stefan, thx. Please try tomorrow's mozilla build and let me know if this is
fixed for you.
verified with 

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5b) Gecko/20030910
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
Crash Signature: [@ morkArray::CloseArray]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: