Closed Bug 242886 Opened 21 years ago Closed 21 years ago

Mozilla Mail freezes and starts using 100% CPU when I try to display Trash folder

Categories

(MailNews Core :: Database, defect)

x86
Windows XP
defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jlp.bugs, Assigned: Bienvenu)

Details

Attachments

(2 files)

I'm using Mozilla nightly 20040506 on Windows XP Pro with SP1. When I try to open my Trash folder Mozilla just freezes and it starts using 100% of CPU (I have AMD Athlon 64 3000+). When I try to close the Mail window Windows then displays a message that Mozilla crashes. In details it says it crashed in: szAppName : mozilla.exe szAppVer : 1.8.20040.50609 szModName : msgbase.dll szModVer : 0.0.0.0 offset : 0002a3b6 or: szAppName : mozilla.exe szAppVer : 1.8.20040.50609 szModName : msgdb.dll szModVer : 1.8.20040.50609 offset : 000035c2 I tried this several times and it always freezes and crashes on exit.
Attached file My Trash folder
This is the ZIP archive of my Trash and Trash.msf.
It looks like this happens when Mozilla automatically deletes a spam e-mail message as I only have spam in my Trash. I have set Mozilla to delete junk mail after 14 days.
Connected to bug 242928? Did you have problems with older builds?
thx very much for the trash folder and .msf file - I've recreated the problem and have a fix for the hang...This is a long-standing problem, I believe - I doubt it's a recent regression, and it's not related to bug 242928 What's happening is that a msg hdr is getting into the db that is its own parent - that's a bozo no-no. I'll attach a patch that fixes the view code to handle this more gracefully, but I also need to figure out how the db got corrupted in the first place.
Status: NEW → ASSIGNED
Attachment #147902 - Flags: superreview?(mscott)
cc'ing Neil, who might be changing related code as we speak. I'll go find out what's going on in the db now.
Attachment #147902 - Flags: superreview?(mscott) → superreview+
ok, the fix for the hang is checked in. Now I need to see how the thread/db gets corrupted in the first place. But, Jure, you should be able to use tomorrow's trunk build.
Thanks for the very quick bug fixing. I'll check it out tomorrow. I would like to help with finding the cause of corruption but I really don't know how. I only know that something maybe went wrong somwhere in the proces of marking a message as spam, then moving it automatically to Junk folder (I also can't open that as Mozilla also hangs so I guess there are also some corrupted messages in here) and finaly moving them automatically to Trash folder as they were more then 14 days old.
marking fixed, but I'll still look at the corruption and try to figure out how it happened.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
I just installed nightly 2004050808 and it opens both folders just fine without freezing. I hope you will manage to find out what corrupted them in the first place. Thanks again.
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: