Bug 130175

Summary: kmail search can exhaust file descriptors
Product: [Applications] kmail Reporter: Mark Davies <mark>
Component: searchAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: kollix
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: NetBSD pkgsrc   
OS: NetBSD   
Latest Commit: Version Fixed In:
Attachments: lsof output after several searches

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 ***