Bug 218869 - kontact/kmail crash when accessing imaps folder with ~64000 messages
Summary: kontact/kmail crash when accessing imaps folder with ~64000 messages
Status: RESOLVED DUPLICATE of bug 175452
Alias: None
Product: kontact
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian unstable Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-16 02:50 UTC by jensmh
Modified: 2009-12-17 01:00 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jensmh 2009-12-16 02:50:58 UTC
Application that crashed: kontact
Version of the application: 4.3.4
KDE Version: 4.3.4 (KDE 4.3.4)
Qt Version: 4.5.3
Operating System: Linux 2.6.32-trunk-amd64 x86_64
Distribution: Debian GNU/Linux unstable (sid)

What I was doing when the application crashed:
On the server, Debian Lenny is running and I use this imap(s) server:
ii  courier-imap                    4.4.0-2                         Courier mail server - IMAP server
ii  courier-imap-ssl                4.4.0-2                         Courier mail server - IMAP over SSL


 -- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
The current source language is "auto; currently c".
[KCrash Handler]
#5  KPIM::ProgressItem::setComplete (this=0x605a60) at ../../libkdepim/progressmanager.cpp:52
#6  0x00007fe59df68815 in KMail::ImapAccountBase::removeJob (this=0x231eb00, it=...) at ../../kmail/imapaccountbase.cpp:1370
#7  0x00007fe59df8c9ba in KMFolderImap::slotListFolderResult (this=0x2cea3b0, job=0x48533c0) at ../../kmail/kmfolderimap.cpp:1314
#8  0x00007fe59df987b5 in KMFolderImap::qt_metacall (this=0x2cea3b0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7ffff4041190) at ./kmfolderimap.moc:182
#9  0x00007fe5bae7adf2 in QMetaObject::activate (sender=0x48533c0, from_signal_index=<value optimized out>, to_signal_index=7, argv=0x20c70) at kernel/qobject.cpp:3112
#10 0x00007fe5bb2531b2 in KJob::result (this=0x605a60, _t1=0x48533c0) at ./kjob.moc:188
#11 0x00007fe5bb25352f in KJob::emitResult (this=0x48533c0) at ../../kdecore/jobs/kjob.cpp:304
#12 0x00007fe5b86ddc33 in KIO::SimpleJob::slotFinished (this=0x48533c0) at ../../kio/kio/job.cpp:477
#13 0x00007fe5b86ddd70 in KIO::ListJob::slotFinished (this=0x48533c0) at ../../kio/kio/job.cpp:2408
#14 0x00007fe5b86dc596 in KIO::SimpleJob::slotError (this=0x48533c0, err=<value optimized out>, errorText=...) at ../../kio/kio/job.cpp:489
#15 0x00007fe5b86dc6d8 in KIO::SimpleJob::qt_metacall (this=0x48533c0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7ffff4041580) at ./jobclasses.moc:158
#16 0x00007fe5b86e53f0 in KIO::ListJob::qt_metacall (this=0x605a60, _c=4093906880, _id=75546369, _a=0x20c70) at ./jobclasses.moc:756
#17 0x00007fe5bae7adf2 in QMetaObject::activate (sender=0x328eb40, from_signal_index=<value optimized out>, to_signal_index=6, argv=0x20c70) at kernel/qobject.cpp:3112
#18 0x00007fe5b879bed6 in KIO::SlaveInterface::error (this=0x605a60, _t1=143, _t2=<value optimized out>) at ./slaveinterface.moc:153
#19 0x00007fe5b878f27d in KIO::Slave::gotInput (this=0x328eb40) at ../../kio/kio/slave.cpp:331
#20 0x00007fe5b879122c in KIO::Slave::qt_metacall (this=0x328eb40, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7ffff40416e0) at ./slave.moc:76
#21 0x00007fe5bae7adf2 in QMetaObject::activate (sender=0x3685520, from_signal_index=<value optimized out>, to_signal_index=4, argv=0x20c70) at kernel/qobject.cpp:3112
#22 0x00007fe5b86ab0f8 in KIO::Connection::qt_metacall (this=0x3685520, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x37648a0) at ./connection.moc:72
#23 0x00007fe5bae756c8 in QObject::event (this=0x3685520, e=0x3755360) at kernel/qobject.cpp:1110
#24 0x00007fe5ba2df01d in QApplicationPrivate::notify_helper (this=0x171c9e0, receiver=0x3685520, e=0x3755360) at kernel/qapplication.cpp:4065
#25 0x00007fe5ba2e707a in QApplication::notify (this=0x7ffff4042100, receiver=0x3685520, e=0x3755360) at kernel/qapplication.cpp:4030
#26 0x00007fe5bb80be06 in KApplication::notify (this=0x7ffff4042100, receiver=0x3685520, event=0x3755360) at ../../kdeui/kernel/kapplication.cpp:302
#27 0x00007fe5bae65c9c in QCoreApplication::notifyInternal (this=0x7ffff4042100, receiver=0x3685520, event=0x3755360) at kernel/qcoreapplication.cpp:610
#28 0x00007fe5bae668e4 in QCoreApplication::sendEvent (receiver=0x0, event_type=0, data=0x16ef220) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#29 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x16ef220) at kernel/qcoreapplication.cpp:1247
#30 0x00007fe5bae8e7d3 in QCoreApplication::sendPostedEvents (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#31 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:276
#32 0x00007fe5b3b7013a in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#33 0x00007fe5b3b73998 in ?? () from /lib/libglib-2.0.so.0
#34 0x00007fe5b3b73b4c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#35 0x00007fe5bae8e39c in QEventDispatcherGlib::processEvents (this=0x17108e0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:407
#36 0x00007fe5ba375f1f in QGuiEventDispatcherGlib::processEvents (this=0x605a60, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#37 0x00007fe5bae64562 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#38 0x00007fe5bae64934 in QEventLoop::exec (this=0x7ffff4042040, flags=...) at kernel/qeventloop.cpp:201
#39 0x00007fe5bae66ba4 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#40 0x0000000000403f17 in main (argc=<value optimized out>, argv=<value optimized out>) at ../../../kontact/src/main.cpp:218

This bug may be a duplicate of or related to bug 217977

Reported using DrKonqi
Comment 1 jensmh 2009-12-16 04:05:38 UTC
It just happened again when I tried to access a folder with ~65000 messages:

The error message is:
Error while listing the contents of the folder linux-kernel.
The process for the imaps://192.168.0.1 protocol died unexpectedly.

Unexpected Program Termination 
Unexpected Program Termination
The program on your computer which provides access to the imaps://192.168.0.1 protocol has unexpectedly terminated.
Details of the request:
URL: (unknown)
Date and time: Wednesday, 16. December 2009 04:01
Additional information: imaps://192.168.0.1
Possible causes:
This is most likely to be caused by a bug in the program. Please consider submitting a full bug report as detailed below.
Possible solutions:
Update your software to the latest version. Your distribution should provide tools to update your software.
When all else fails, please consider helping the KDE team or the third party maintainer of this software by submitting a high quality bug report. If the software is provided by a third party, please contact them directly. Otherwise, first look to see if the same bug has been submitted by someone else by searching at the KDE bug reporting website. If not, take note of the details given above, and include them in your bug report, along with as many other details as you think might help.


The imaps server is on my local network (100M ethernet).
Comment 2 jensmh 2009-12-16 21:08:20 UTC
From /var/log/mail.log of the machine running the imapd:

Dec 16 18:32:03 histor2 imapd: Connection, ip=[::ffff:192.168.0.10]
Dec 16 18:32:10 histor2 imapd: LOGIN, user=jmho, ip=[::ffff:192.168.0.10], port=[57451], protocol=IMAP
Dec 16 18:33:01 histor2 sa-exim[5819]: Removed 0 of 0 greylist tuplets in 0 seconds
Dec 16 18:33:01 histor2 sa-exim[5819]: Removed 0 of 0 greylist directories in 0 seconds
Dec 16 19:33:01 histor2 sa-exim[6098]: Removed 0 of 0 greylist tuplets in 0 seconds
Dec 16 19:33:01 histor2 sa-exim[6098]: Removed 0 of 0 greylist directories in 0 seconds
Dec 16 20:33:01 histor2 sa-exim[7070]: Removed 0 of 0 greylist tuplets in 0 seconds
Dec 16 20:33:01 histor2 sa-exim[7070]: Removed 0 of 0 greylist directories in 0 seconds
Dec 16 21:04:25 histor2 imapd: Unexpected SSL connection shutdown.
Dec 16 21:04:25 histor2 imapd: DISCONNECTED, user=jmho, ip=[::ffff:192.168.0.10], headers=39342529, body=110248, rcvd=573563, sent=58279899, time=91
Comment 3 jensmh 2009-12-16 21:15:49 UTC
I can reproduce this crash 100% when accessing folders with 64000+ messages. With smaller folders (25000 or less messages) no crash.
Comment 4 jensmh 2009-12-16 22:00:29 UTC
I could reproduce the bug with current trunk (svn rev 1063028):

Application: KMail (kmail), signal: Segmentation fault
The current source language is "auto; currently c".
[KCrash Handler]
#5  KPIM::ProgressItem::setComplete (this=0x6c64657463657078) at /home/jmho/kde-devel/kdesvn/kdepim/libkdepim/progressmanager.cpp:52
#6  0x00007f2ba9879f65 in KMail::ImapAccountBase::removeJob (this=0x1e2f9f0, it=...) at /home/jmho/kde-devel/kdesvn/kdepim/kmail/imapaccountbase.cpp:1375
#7  0x00007f2ba98a4036 in KMFolderImap::slotListFolderResult (this=0x28970a0, job=<value optimized out>) at /home/jmho/kde-devel/kdesvn/kdepim/kmail/kmfolderimap.cpp:1305
#8  0x00007f2ba98aae25 in KMFolderImap::qt_metacall (this=0x28970a0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffe44dbfd0)
    at /home/jmho/kde-devel/kdesvn/build/kdepim/kmail/kmfolderimap.moc:188
#9  0x00007f2ba687a363 in QMetaObject::activate (sender=0x3a80a50, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x20ea0)
    at /home/jmho/kde-devel/kdesvn/qt-copy/src/corelib/kernel/qobject.cpp:3291
#10 0x00007f2baa29ad52 in KJob::result (this=0x6c64657463657078, _t1=0x3a80a50) at /home/jmho/kde-devel/kdesvn/build/kdelibs/kdecore/kjob.moc:194
#11 0x00007f2baa29aff0 in KJob::emitResult (this=0x3a80a50) at /home/jmho/kde-devel/kdesvn/kdelibs/kdecore/jobs/kjob.cpp:312
#12 0x00007f2ba71083f3 in KIO::SimpleJob::slotFinished (this=0x3a80a50) at /home/jmho/kde-devel/kdesvn/kdelibs/kio/kio/job.cpp:475
#13 0x00007f2ba7108530 in KIO::ListJob::slotFinished (this=0x3a80a50) at /home/jmho/kde-devel/kdesvn/kdelibs/kio/kio/job.cpp:2451
#14 0x00007f2ba7106626 in KIO::SimpleJob::slotError (this=0x3a80a50, err=<value optimized out>, errorText=...) at /home/jmho/kde-devel/kdesvn/kdelibs/kio/kio/job.cpp:487
#15 0x00007f2ba7106768 in KIO::SimpleJob::qt_metacall (this=0x3a80a50, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffe44dc3c0)
    at /home/jmho/kde-devel/kdesvn/build/kdelibs/kio/jobclasses.moc:170
#16 0x00007f2ba7110620 in KIO::ListJob::qt_metacall (this=0x6c64657463657078, _c=3830300160, _id=89501185, _a=0x20ea0) at /home/jmho/kde-devel/kdesvn/build/kdelibs/kio/jobclasses.moc:810
#17 0x00007f2ba687a363 in QMetaObject::activate (sender=0x3463750, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x20ea0)
    at /home/jmho/kde-devel/kdesvn/qt-copy/src/corelib/kernel/qobject.cpp:3291
#18 0x00007f2ba71c4166 in KIO::SlaveInterface::error (this=0x6c64657463657078, _t1=143, _t2=<value optimized out>) at /home/jmho/kde-devel/kdesvn/build/kdelibs/kio/slaveinterface.moc:159
#19 0x00007f2ba71b8948 in KIO::Slave::gotInput (this=0x3463750) at /home/jmho/kde-devel/kdesvn/kdelibs/kio/kio/slave.cpp:331
#20 0x00007f2ba71b8acc in KIO::Slave::qt_metacall (this=0x3463750, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffe44dc520)
    at /home/jmho/kde-devel/kdesvn/build/kdelibs/kio/slave.moc:82
#21 0x00007f2ba687a363 in QMetaObject::activate (sender=0x34c7c60, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x20ea0)
    at /home/jmho/kde-devel/kdesvn/qt-copy/src/corelib/kernel/qobject.cpp:3291
#22 0x00007f2ba70d7ea8 in KIO::Connection::qt_metacall (this=0x34c7c60, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x553b850)
    at /home/jmho/kde-devel/kdesvn/build/kdelibs/kio/connection.moc:78
#23 0x00007f2ba6875729 in QObject::event (this=0x34c7c60, e=0x3545920) at /home/jmho/kde-devel/kdesvn/qt-copy/src/corelib/kernel/qobject.cpp:1257
#24 0x00007f2ba55bad6c in QApplicationPrivate::notify_helper (this=0x1bb0920, receiver=0x34c7c60, e=0x3545920) at /home/jmho/kde-devel/kdesvn/qt-copy/src/gui/kernel/qapplication.cpp:4242
#25 0x00007f2ba55c35ea in QApplication::notify (this=0x7fffe44dd130, receiver=<value optimized out>, e=0x3545920) at /home/jmho/kde-devel/kdesvn/qt-copy/src/gui/kernel/qapplication.cpp:4125
#26 0x00007f2baa867e06 in KApplication::notify (this=0x7fffe44dd130, receiver=0x34c7c60, event=0x3545920) at /home/jmho/kde-devel/kdesvn/kdelibs/kdeui/kernel/kapplication.cpp:302
#27 0x00007f2ba6866ecc in QCoreApplication::notifyInternal (this=0x7fffe44dd130, receiver=0x34c7c60, event=0x3545920)
    at /home/jmho/kde-devel/kdesvn/qt-copy/src/corelib/kernel/qcoreapplication.cpp:704
#28 0x00007f2ba68676f9 in QCoreApplication::sendEvent (receiver=0x0, event_type=0, data=0x1a3f2b0) at ../../include/QtCore/../../../../qt-copy/src/corelib/kernel/qcoreapplication.h:215
#29 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1a3f2b0) at /home/jmho/kde-devel/kdesvn/qt-copy/src/corelib/kernel/qcoreapplication.cpp:1342
#30 0x00007f2ba688c643 in QCoreApplication::sendPostedEvents (s=<value optimized out>) at ../../include/QtCore/../../../../qt-copy/src/corelib/kernel/qcoreapplication.h:220
#31 postEventSourceDispatch (s=<value optimized out>) at /home/jmho/kde-devel/kdesvn/qt-copy/src/corelib/kernel/qeventdispatcher_glib.cpp:276
#32 0x00007f2b9de0313a in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#33 0x00007f2b9de06998 in ?? () from /lib/libglib-2.0.so.0
#34 0x00007f2b9de06b4c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#35 0x00007f2ba688c193 in QEventDispatcherGlib::processEvents (this=0x1a3ed10, flags=<value optimized out>) at /home/jmho/kde-devel/kdesvn/qt-copy/src/corelib/kernel/qeventdispatcher_glib.cpp:407
#36 0x00007f2ba5657afe in QGuiEventDispatcherGlib::processEvents (this=0x6c64657463657078, flags=<value optimized out>)
    at /home/jmho/kde-devel/kdesvn/qt-copy/src/gui/kernel/qguieventdispatcher_glib.cpp:202
#37 0x00007f2ba6865a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at /home/jmho/kde-devel/kdesvn/qt-copy/src/corelib/kernel/qeventloop.cpp:149
#38 0x00007f2ba6865ba5 in QEventLoop::exec (this=0x7fffe44dcf60, flags=) at /home/jmho/kde-devel/kdesvn/qt-copy/src/corelib/kernel/qeventloop.cpp:197
#39 0x00007f2ba686796b in QCoreApplication::exec () at /home/jmho/kde-devel/kdesvn/qt-copy/src/corelib/kernel/qcoreapplication.cpp:981
#40 0x00000000004034c2 in main (argc=<value optimized out>, argv=<value optimized out>) at /home/jmho/kde-devel/kdesvn/kdepim/kmail/main.cpp:156
Comment 5 Dario Andres 2009-12-17 01:00:28 UTC
This crash is being tracked at bug 175452. Merging. Thanks

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