Bug 254200 - KMail crashes on opening an IMAP folder containing many messages
Summary: KMail crashes on opening an IMAP folder containing many messages
Status: RESOLVED WORKSFORME
Alias: None
Product: kontact
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-14 22:01 UTC by kde-bugs
Modified: 2017-06-24 00:15 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (9.47 KB, text/plain)
2011-06-17 23:10 UTC, Vivek Umasuthan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kde-bugs 2010-10-14 22:01:26 UTC
Application: kontact (4.4.6)
KDE Platform Version: 4.5.1 (KDE 4.5.1)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-22-generic x86_64
Distribution: Ubuntu 10.10

-- Information about the crash:
- What I was doing when the application crashed:
Opening a specific IMAP folder which contains about 90,000 messages.
On the same IMAP account there are numerous other folders which cause no problems. None of them does contain as many messages as the one causing the crash.

The crash can be reproduced every time.

-- Backtrace:
Application: Kontact (kontact), signal: Aborted
[Current thread is 1 (Thread 0x7fd066957780 (LWP 16167))]

Thread 2 (Thread 0x7fd03aeba710 (LWP 16189)):
#0  __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:97
#1  0x00007fd0639301dc in _L_lock_12347 () from /lib/libc.so.6
#2  0x00007fd06392ec78 in __libc_free (mem=0x7fd063c2fe40) at malloc.c:3736
#3  0x00007fd0640cf601 in socketNotifierSourceCheck (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:92
#4  0x00007fd05c6fd66a in g_main_context_check () from /lib/libglib-2.0.so.0
#5  0x00007fd05c6fe023 in ?? () from /lib/libglib-2.0.so.0
#6  0x00007fd05c6fe45c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#7  0x00007fd0640cf193 in QEventDispatcherGlib::processEvents (this=0x4a488f0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#8  0x00007fd0640a1a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#9  0x00007fd0640a1dec in QEventLoop::exec (this=0x7fd03aeb9d90, flags=) at kernel/qeventloop.cpp:201
#10 0x00007fd063fac2fd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#11 0x00007fd0640815f8 in QInotifyFileSystemWatcherEngine::run (this=0x4c88d90) at io/qfilesystemwatcher_inotify.cpp:248
#12 0x00007fd063faf27e in QThreadPrivate::start (arg=0x4c88d90) at thread/qthread_unix.cpp:266
#13 0x00007fd05ea8d971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#14 0x00007fd06399792d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#15 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fd066957780 (LWP 16167)):
[KCrash Handler]
#6  0x00007fd0638e4ba5 in raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007fd0638e86b0 in abort () at abort.c:92
#8  0x00007fd06391e43b in __libc_message (do_abort=<value optimized out>, fmt=<value optimized out>) at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
#9  0x00007fd0639284b6 in malloc_printerr (action=3, str=0x7fd0639fbfe8 "free(): invalid next size (fast)", ptr=<value optimized out>) at malloc.c:6283
#10 0x00007fd06392ec83 in __libc_free (mem=<value optimized out>) at malloc.c:3738
#11 0x00007fd0640a723c in node_destruct (this=0x235e3a8, afirst=) at ../../include/QtCore/../../src/corelib/tools/qlist.h:375
#12 QList<QPostEvent>::erase (this=0x235e3a8, afirst=) at ../../include/QtCore/../../src/corelib/tools/qlist.h:789
#13 0x00007fd0640a5b07 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x235e380) at kernel/qcoreapplication.cpp:1405
#14 0x00007fd0640cf653 in sendPostedEvents (s=0x238d0a0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#15 postEventSourceDispatch (s=0x238d0a0) at kernel/qeventdispatcher_glib.cpp:277
#16 0x00007fd05c6fa342 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#17 0x00007fd05c6fe2a8 in ?? () from /lib/libglib-2.0.so.0
#18 0x00007fd05c6fe45c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#19 0x00007fd0640cf193 in QEventDispatcherGlib::processEvents (this=0x235de90, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#20 0x00007fd064b0ba4e in QGuiEventDispatcherGlib::processEvents (this=0x3f27, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#21 0x00007fd0640a1a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#22 0x00007fd0640a1dec in QEventLoop::exec (this=0x7fffdd7081d0, flags=) at kernel/qeventloop.cpp:201
#23 0x00007fd0640a5ebb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#24 0x0000000000403b4e in main (argc=<value optimized out>, argv=<value optimized out>) at ../../../kontact/src/main.cpp:224

Possible duplicates by query: bug 253841, bug 250441, bug 248838, bug 248395, bug 248108.

Reported using DrKonqi
Comment 1 Vivek Umasuthan 2011-06-17 23:10:52 UTC
Created attachment 61099 [details]
New crash information added by DrKonqi

kontact (4.4.9) on KDE Platform 4.5.5 (KDE 4.5.5) using Qt 4.7.0

- What I was doing when the application crashed:

I clicked on an IMAP folder and Kontact crashed. I have many IMAP folders. It does not happen always. I use Kwallet to store passwords just in case that is important.

-- Backtrace (Reduced):
#8  0x00007ff4bb71943b in __libc_message (do_abort=<value optimized out>, fmt=<value optimized out>) at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
#9  0x00007ff4bb7234b6 in malloc_printerr (action=3, str=0x7ff4bb7f7098 "double free or corruption (!prev)", ptr=<value optimized out>) at malloc.c:6283
#10 0x00007ff4bb729c83 in __libc_free (mem=<value optimized out>) at malloc.c:3738
#11 0x00007ff4a18e42b7 in KMail::FolderViewItem::updateCounts (this=0x3214260) at ../../kmail/folderview.cpp:2850
#12 0x00007ff4a18e459d in KMail::FolderView::activateItemInternal (this=0x2cebfc0, fvi=0x3214260, keepSelection=false, notifyManager=false, middleButton=<value optimized out>) at ../../kmail/folderview.cpp:1023
Comment 2 Christophe Marin 2011-07-05 21:27:59 UTC
> Opening a specific IMAP folder which contains about 90,000 messages

Please revisit this issue with Kontact from kdepim 4.6.0
Comment 3 kde-bugs 2011-07-17 09:04:16 UTC
(In reply to comment #2)
> Please revisit this issue with Kontact from kdepim 4.6.0

On Ubuntu 10.10 - KMail 1.13.6, KDE 4.6.2 - the situation has improved a bit. Kontact/KMail doesn't crash anymore on opening the problematic folder it doesn't show it's contents either, though, but rather a dialog that says:
"Error while listing the contents of the folder Ubuntu-Users.
The process for the imap://imap.example.com protocol died unexpectedly."
The content of the dialog's "details" section isn't too helpful either, I guess:
"Unexpected Program Termination
The program on your computer which provides access to the imap://imap.example.com protocol has unexpectedly terminated.
Details of the request:
URL: (unknown)
Date and time: Sunday 17 Jul 2011 10:51
Additional information: imap://imap.example.com
Possible causes:
[...]

What can I do to get useful info about the problem?
Comment 4 kde-bugs 2011-07-17 10:02:43 UTC
> On Ubuntu 10.10  [...]
Nonsense, it's Ubuntu 11.04. Sorry.
Comment 5 Christophe Marin 2011-07-17 10:10:34 UTC
Doesn't change much, the current kontact / kdepim version is 4.6.1
Comment 6 kde-bugs 2011-07-17 11:53:53 UTC
I confused KDE SC with kdepim version-wise.
It seems, ATM, the only easy way to get kdepim 4.6 is to install it on openSUSE. I'll create an openSUSE VM next week and report the results.
Comment 7 kde-bugs 2011-07-22 15:32:52 UTC
In kdepim 4.6, the problem seems to be solved.

I couldn't reproduce the crash with kdepim 4.6.1 / KMail 2.1.1 / KDE 4.6.5 installed from the following repositories:
http://download.opensuse.org/repositories/KDE:/Release:/46/openSUSE_11.4/
and
http://download.opensuse.org/repositories/KDE:/Release:/46:/kdepim46/KDE_Release_46_openSUSE_11.4/