Bug 93943

Summary: Kmail crashes when reading in malformed mbox files
Product: [Applications] kmail Reporter: jeff pitman <symbiont>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Screenshot of backtrace

Description jeff pitman 2004-11-26 05:38:33 UTC
Version:            (using KDE KDE 3.3.1)
Installed from:    Unlisted Binary Package

I'm having a lengthy battle trying to track down the exact cause of my 10MB inbox causing Kmail to hang when opening. In the interim, I have moved it to an "Archive" mbox, which still hangs when trying to read the second mail.  To split up the mbox further, in one of my frankenstein experiments, I ran "split -l 10000 Archive" and generated 152 files that are split at 10,000 lines in random locations.  Some will turn out okay, some will be malformed.

Well, this causes kmail to crash, big time, upon starting up. (A wholly different issue with the one I am trying to tackle right now.)

Reproduce:

1. Take 10MB mbox file.
2. Run "split -l 10000 file"
3. Run kmail.

Expected behavior:

1. Throw out malformed mbox files, or
2. Try recovery of corrupted mbox files

Related bug:
http://bugs.kde.org/show_bug.cgi?id=60059

And, if you guys have any tips on how I can track down my main bug, let me know. It's nasty and I'm having a difficult time to get it down.
Comment 1 jeff pitman 2004-11-26 05:40:18 UTC
Created attachment 8441 [details]
Screenshot of backtrace

It was an infinite loop in the backtrace, so I couldn't dump the full text. 
So, I took a snapshot in the middle.
Comment 2 Martin Koller 2006-10-28 21:06:34 UTC
I tried with a 137MB mbox file with KDE-3.5.5 but could not reproduce it. Closing.