Bug 130175 - kmail search can exhaust file descriptors
Summary: kmail search can exhaust file descriptors
Status: RESOLVED DUPLICATE of bug 160968
Alias: None
Product: kmail
Classification: Applications
Component: search (show other bugs)
Version: unspecified
Platform: NetBSD pkgsrc NetBSD
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-03 06:31 UTC by Mark Davies
Modified: 2009-08-31 22:14 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
lsof output after several searches (3.01 KB, text/plain)
2006-07-03 06:47 UTC, Mark Davies
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Davies 2006-07-03 06:31:57 UTC
Version:            (using KDE KDE 3.5.3)
Installed from:    NetBSD pkgsrc
Compiler:          gcc 3.3.3 
OS:                NetBSD

When searching imap subfolders (may happen with local folders as well) it appears that the local index file and cache file for each folder is opened but never closed so if searching a sufficiently large folder hierarchy its possible to exhaust the max number of file descriptors the process is allowed and then kmail gets confused and crashes.
Comment 1 Mark Davies 2006-07-03 06:47:02 UTC
Created attachment 16871 [details]
lsof output after several searches

This lsof output show the open file descriptors of a kmail process after having
performed a search (for subject contains foo) in the "Old" folder hierarchy
followed by a search in the "isocnz" folder hierarchy.	I believe that the
files that remain open match folders where search results are found.
Comment 2 Martin Koller 2009-08-31 22:14:29 UTC

*** This bug has been marked as a duplicate of bug 160968 ***