Bug 93943 - Kmail crashes when reading in malformed mbox files
Summary: Kmail crashes when reading in malformed mbox files
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-26 05:38 UTC by jeff pitman
Modified: 2007-09-14 12:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot of backtrace (153.32 KB, image/png)
2004-11-26 05:40 UTC, jeff pitman
Details

Note You need to log in before you can comment on or make changes to this bug.
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.