Version: 3.3.1 (using KDE KDE 3.3.1) Installed from: Gentoo Packages Compiler: gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6) OS: Linux I have an imap folder with ~13,000 spam emails. When I select them all and drag them to a local folder, kmail uses all available memory and eventually gets oom killed. As a work around, moving a few hundred at a time seems to be working but is laborious. Thunderbird on MS windows was able to move all messages at once from a local folder to the imap folder, so kmail should be able to do similar without oom-ing. I have another folder with ~50,000 spams I would like to move too! My system is a Duron 1300 with 256M of ram. Kmail goes Kaboom: Dec 19 08:49:49 super oom-killer: gfp_mask=0xd2 Dec 19 08:49:49 super DMA per-cpu: Dec 19 08:49:49 super cpu 0 hot: low 2, high 6, batch 1 Dec 19 08:49:49 super cpu 0 cold: low 0, high 2, batch 1 Dec 19 08:49:49 super Normal per-cpu: Dec 19 08:49:49 super cpu 0 hot: low 26, high 78, batch 13 Dec 19 08:49:49 super cpu 0 cold: low 0, high 26, batch 13 Dec 19 08:49:49 super HighMem per-cpu: empty Dec 19 08:49:49 super Dec 19 08:49:49 super Free pages: 640kB (0kB HighMem) Dec 19 08:49:49 super Active:54332 inactive:797 dirty:0 writeback:10 unstable:0 free:160 slab:2741 mapped:51803 pagetables:359 Dec 19 08:49:49 super DMA free:64kB min:32kB low:64kB high:96kB active:11600kB inactive:12kB present:16384kB Dec 19 08:49:49 super protections[]: 0 0 0 Dec 19 08:49:49 super Normal free:576kB min:456kB low:912kB high:1368kB active:205728kB inactive:3176kB present:229312kB Dec 19 08:49:49 super protections[]: 0 0 0 Dec 19 08:49:49 super HighMem free:0kB min:128kB low:256kB high:384kB active:0kB inactive:0kB present:0kB Dec 19 08:49:49 super protections[]: 0 0 0 Dec 19 08:49:49 super DMA: 6*4kB 1*8kB 0*16kB 1*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 64kB Dec 19 08:49:49 super Normal: 26*4kB 5*8kB 1*16kB 1*32kB 0*64kB 1*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 576kB Dec 19 08:49:49 super HighMem: empty Dec 19 08:49:49 super Swap cache: add 461077, delete 458736, find 137352/200807, race 0+5 Dec 19 08:49:49 super Out of Memory: Killed process 14977 (kmail).
This isn't a crash.
'This isn't a crash.' But there is a memory leak in KMail ... same problem, if you import many messages with KMailCVT. see Bug: #81634
Memory leak isn't a crash. We use a strict definition of "crash" in bugs.kde.org: receiving a signal and dumping core -- the KDE Crash Handler appears. This is only a semantic issue. It doesn't mean your bug is grave.
Yes I know the difference between a crash and a memory leak. I wanted only point to the reason of the bug.
*** Bug 98337 has been marked as a duplicate of this bug. ***
Is this maybe the same problem like in bug #81634 ? For the problem with memory at import there is a fix (http://webcvs.kde.org/kdepim/kmail/kmkernel.cpp?rev=1.329&view=log). Maybe adapt this patch ?
Is this still valid?
No.
Thank you for taking the time to file a bug report. KMail2 was released in 2011, and the entire code base went through significant changes. We are currently in the process of porting to Qt5 and KF5. It is unlikely that these bugs are still valid in KMail2. We welcome you to try out KMail 2 with the KDE 4.14 release and give your feedback.