Bug 179258 - kmail crash connecting to imap folder
Summary: kmail crash connecting to imap folder
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail
Classification: Applications
Component: disconnected IMAP (show other bugs)
Version: 1.10.3
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2009-01-01 09:06 UTC by Michael Schwartzkopff
Modified: 2009-05-08 23:24 UTC (History)
6 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 Michael Schwartzkopff 2009-01-01 09:06:30 UTC
Version:            (using KDE 4.1.3)
OS:                Linux
Installed from:    Ubuntu Packages

Reproducable and VERY annoying crash of kmail on my system:
KDE: 4.1.3
kmail 1.10.3
Ubunutu 8.10, fully patched.

One diconnected IMAP folder. Nothing else.

1) Start kmail
2) Press "Get Mail"
3) kmail starts to sync to server
4) and crashes with "The application Kontact (kontact) crashed and caused the signal 11 (SIGSEGV)."

KDE crash manager shows:
nwendung: Kontact (kontact), Signal SIGSEGV
(no debugging symbols found)
(...) last line repeated
[Thread debugging using libthread_db enabled]
[New Thread 0x7fb1c7df26f0 (LWP 6220)]
(no debugging symbols found)
(...) last line very often
[KCrash handler]
#5  0x00007fb1b0e9a528 in ?? () from /usr/lib/libkmailprivate.so.4
#6  0x00007fb1b0e9a6f0 in ?? () from /usr/lib/libkmailprivate.so.4
#7  0x00007fb1b0ecaba6 in ?? () from /usr/lib/libkmailprivate.so.4
#8  0x00007fb1b0ecd22b in ?? () from /usr/lib/libkmailprivate.so.4
#9  0x00007fb1c793e134 in QMetaObject::activate ()
   from /usr/lib/libQtCore.so.4
#10 0x00007fb1c2325c34 in KIO::TransferJob::data () from /usr/lib/libkio.so.5
#11 0x00007fb1c23302b9 in KIO::TransferJob::qt_metacall ()
   from /usr/lib/libkio.so.5
#12 0x00007fb1c793e134 in QMetaObject::activate ()
   from /usr/lib/libQtCore.so.4
#13 0x00007fb1c23e3f62 in KIO::SlaveInterface::data ()
   from /usr/lib/libkio.so.5
#14 0x00007fb1c23e7728 in KIO::SlaveInterface::dispatch ()
   from /usr/lib/libkio.so.5
#15 0x00007fb1c23e4462 in KIO::SlaveInterface::dispatch ()
   from /usr/lib/libkio.so.5
#16 0x00007fb1c23d54b3 in KIO::Slave::gotInput () from /usr/lib/libkio.so.5
#17 0x00007fb1c23d7bd8 in KIO::Slave::qt_metacall () from /usr/lib/libkio.so.5
#18 0x00007fb1c793e134 in QMetaObject::activate ()
   from /usr/lib/libQtCore.so.4
#19 0x00007fb1c22f9a50 in ?? () from /usr/lib/libkio.so.5
#20 0x00007fb1c22f9b8a in KIO::Connection::qt_metacall ()
   from /usr/lib/libkio.so.5
#21 0x00007fb1c7938da5 in QObject::event () from /usr/lib/libQtCore.so.4
#22 0x00007fb1c5c5fc3d in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#23 0x00007fb1c5c679ba in QApplication::notify () from /usr/lib/libQtGui.so.4
#24 0x00007fb1c6fa5fcb in KApplication::notify () from /usr/lib/libkdeui.so.5
#25 0x00007fb1c7929d61 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#26 0x00007fb1c792a9fa in QCoreApplicationPrivate::sendPostedEvents ()
   from /usr/lib/libQtCore.so.4
#27 0x00007fb1c79524d3 in ?? () from /usr/lib/libQtCore.so.4
#28 0x00007fb1c4b64d3b in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
#29 0x00007fb1c4b6850d in ?? () from /usr/lib/libglib-2.0.so.0
#30 0x00007fb1c4b686cb in g_main_context_iteration ()
   from /usr/lib/libglib-2.0.so.0
#31 0x00007fb1c795215f in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#32 0x00007fb1c5cf1a6f in ?? () from /usr/lib/libQtGui.so.4
#33 0x00007fb1c7928682 in QEventLoop::processEvents ()
   from /usr/lib/libQtCore.so.4
#34 0x00007fb1c792880d in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#35 0x00007fb1c792acbd in QCoreApplication::exec ()
   from /usr/lib/libQtCore.so.4
#36 0x00000000004048e5 in _start ()
#0  0x00007fb1c54be5f0 in nanosleep () from /lib/libc.so.6
Comment 1 Dario Andres 2009-01-01 13:40:34 UTC
If you can reproduce the crash at will, can you read http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports and post a complete backtrace here? Thanks :)
Comment 2 Michael Schwartzkopff 2009-01-01 14:59:59 UTC
Hi,

after installing some -dbg packets the crash produced the output below. Oh, by the way: I have a AMD 64 bit system.

Anwendung: KMail (kmail), Signal SIGSEGV
[Thread debugging using libthread_db enabled]
[New Thread 0x7fc5144456f0 (LWP 12863)]
[KCrash handler]
#5  0x0000000002acc040 in ?? ()
#6  0x00007fc51331252b in KMFolderImap::seenFlagToStatus (msg=0x2ae1670, 
    flags=129, newMsg=false)
    at /build/buildd/kdepim-4.1.3/kmail/kmfolderimap.cpp:1496
#7  0x00007fc5133126f0 in KMFolderImap::flagsToStatus (msg=0x2ae1670, 
    flags=129, newMsg=false, supportedFlags=2015)
    at /build/buildd/kdepim-4.1.3/kmail/kmfolderimap.cpp:1489
#8  0x00007fc513342ba6 in KMFolderCachedImap::slotGetMessagesData (
    this=0x23a2210, job=0x2a88450, data=@0x7fff1c487c10)
    at /build/buildd/kdepim-4.1.3/kmail/kmfoldercachedimap.cpp:1725
#9  0x00007fc51334522b in KMFolderCachedImap::qt_metacall (this=0x23a2210, 
    _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, 
    _a=0x7fff1c487850)
    at /build/buildd/kdepim-4.1.3/obj-x86_64-linux-gnu/kmail/kmfoldercachedimap.moc:195
#10 0x00007fc513f97134 in QMetaObject::activate ()
   from /usr/lib/libQtCore.so.4
#11 0x00007fc50c6dfc34 in KIO::TransferJob::data (this=0x2ae1670, 
    _t1=0x2a88450, _t2=<value optimized out>)
    at /build/buildd/kde4libs-4.1.3/obj-x86_64-linux-gnu/kio/jobclasses.moc:356
#12 0x00007fc50c6ea2b9 in KIO::TransferJob::qt_metacall (this=0x2a88450, 
    _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, 
    _a=0x7fff1c487980)
    at /build/buildd/kde4libs-4.1.3/obj-x86_64-linux-gnu/kio/jobclasses.moc:337
#13 0x00007fc513f97134 in QMetaObject::activate ()
   from /usr/lib/libQtCore.so.4
#14 0x00007fc50c79df62 in KIO::SlaveInterface::data (this=0x2ae1670, 
    _t1=<value optimized out>)
    at /build/buildd/kde4libs-4.1.3/obj-x86_64-linux-gnu/kio/slaveinterface.moc:136
#15 0x00007fc50c7a1728 in KIO::SlaveInterface::dispatch (this=0x2a98090, 
    _cmd=100, rawdata=<value optimized out>)
    at /build/buildd/kde4libs-4.1.3/kio/kio/slaveinterface.cpp:162
#16 0x00007fc50c79e462 in KIO::SlaveInterface::dispatch (this=0x2a98090)
    at /build/buildd/kde4libs-4.1.3/kio/kio/slaveinterface.cpp:90
#17 0x00007fc50c78f4b3 in KIO::Slave::gotInput (this=0x2a98090)
    at /build/buildd/kde4libs-4.1.3/kio/kio/slave.cpp:322
#18 0x00007fc50c791bd8 in KIO::Slave::qt_metacall (this=0x2a98090, 
    _c=QMetaObject::InvokeMetaMethod, _id=44866496, _a=0x7fff1c487d70)
    at /build/buildd/kde4libs-4.1.3/obj-x86_64-linux-gnu/kio/slave.moc:75
#19 0x00007fc513f97134 in QMetaObject::activate ()
   from /usr/lib/libQtCore.so.4
#20 0x00007fc50c6b3a50 in KIO::ConnectionPrivate::dequeue (this=0x2aaebc0)
    at /build/buildd/kde4libs-4.1.3/kio/kio/connection.cpp:82
#21 0x00007fc50c6b3b8a in KIO::Connection::qt_metacall (this=0x2aaeee0, 
    _c=QMetaObject::InvokeMetaMethod, _id=44866496, _a=0x2acab50)
    at /build/buildd/kde4libs-4.1.3/obj-x86_64-linux-gnu/kio/connection.moc:72
#22 0x00007fc513f91da5 in QObject::event () from /usr/lib/libQtCore.so.4
#23 0x00007fc511d70c3d in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#24 0x00007fc511d789ba in QApplication::notify () from /usr/lib/libQtGui.so.4
#25 0x00007fc512916fcb in KApplication::notify (this=0x7fff1c4888e0, 
    receiver=0x2aaeee0, event=0x2acb8c0)
    at /build/buildd/kde4libs-4.1.3/kdeui/kernel/kapplication.cpp:311
#26 0x00007fc513f82d61 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#27 0x00007fc513f839fa in QCoreApplicationPrivate::sendPostedEvents ()
   from /usr/lib/libQtCore.so.4
#28 0x00007fc513fab4d3 in ?? () from /usr/lib/libQtCore.so.4
#29 0x00007fc510a5dd3b in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
#30 0x00007fc510a6150d in ?? () from /usr/lib/libglib-2.0.so.0
#31 0x00007fc510a616cb in g_main_context_iteration ()
   from /usr/lib/libglib-2.0.so.0
#32 0x00007fc513fab15f in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#33 0x00007fc511e02a6f in ?? () from /usr/lib/libQtGui.so.4
#34 0x00007fc513f81682 in QEventLoop::processEvents ()
   from /usr/lib/libQtCore.so.4
#35 0x00007fc513f8180d in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#36 0x00007fc513f83cbd in QCoreApplication::exec ()
   from /usr/lib/libQtCore.so.4
#37 0x0000000000402fcb in main (argc=<value optimized out>, 
    argv=<value optimized out>)
    at /build/buildd/kdepim-4.1.3/kmail/main.cpp:146
#0  0x00007fc5113b75f0 in __nanosleep_nocancel () from /lib/libc.so.6
Comment 3 phanisvara das 2009-01-03 20:10:01 UTC
(In reply to comment #0)

> One diconnected IMAP folder. Nothing else.
> 
> 1) Start kmail
> 2) Press "Get Mail"
> 3) kmail starts to sync to server
> 4) and crashes with "The application Kontact (kontact) crashed and caused the
> signal 11 (SIGSEGV)."


i'm getting a similar error when connecting to a large IMAP folder (gmail, 8.000+ messages), using:

KMail: 1.10.92
KDE 4.1.87 (unstable)
openSUSE 11.0. 

(this did not happen with KDE 4.1 stable.)

opening smaller IMAP folders Kmail doesn't crash. it's also noteworthy, perhaps, that my internet connection is pretty slow (256 kb/s) and often unreliable. 

i don't have any extra debugging packages installed, and the KDE crash handler claims it can't generate a useful report. still, the following lines make me think it's got something to do with things not happening fast enough for the KDE interface:

0xffffe430 in __kernel_vsyscall ()
[Current thread is 0 (process 3344)]

Thread 1 (Thread 0xb41036d0 (LWP 3344)):
#0 0xffffe430 in __kernel_vsyscall ()
#1 0xb5fcc0c6 in nanosleep () from /lib/libc.so.6
#2 0xb5fcbeae in sleep () from /lib/libc.so.6
#3 0xb7f82520 in ?? () from /usr/lib/libkdeui.so.5
#4 0xb7f82ee4 in KCrash::defaultCrashHandler () from /usr/lib/libkdeui.so.5
#5 <signal handler called>

if you think it'll help i can follow the instructions above, install some debugging packages, and reproduce the error--tomorrow.
Comment 4 FiNeX 2009-01-06 18:54:13 UTC
*** Bug 179825 has been marked as a duplicate of this bug. ***
Comment 5 Jack Black 2009-01-12 20:11:38 UTC
I have the same error with kmail from KDE 4.1.96 which is shown as version 1.11.0.

The strange thing about it is that it only crashs on one of my imap accounts. Its the one from my university (gmail is just fine). Additionally I have figured out that it only happens when I open the inbox. It works perfectly for every other folder in this account.

Comment 6 George Kiagiadakis 2009-01-18 16:41:21 UTC
This may be related to bug 179765, but it's a different backtrace.

@Michael: Can you still reproduce with a very recent version of kmail? I'd prefer testing with a version more recent than kde 4.2 rc1 if possible.

@Jack Black and phanisvara das: Is the backtrace that you get the same as in comment 2 or the same as in bug 179765? In any case, bug 179765 has been fixed after kde 4.2 rc1, so this may just work with a very recent version... Please retest if you can.

Thanks.
Comment 7 Jack Black 2009-01-18 20:17:46 UTC
I'm not completely sure if its the same or not. But it looks like those bugs that have been fixed. Sadly my distro does not provide any debug packages for kde 4.2 rc1 so I guess my backtrace is pretty useless. Ill try to test the recent version.

Thank you
Comment 8 phanisvara das 2009-01-23 11:56:38 UTC
> @Jack Black and phanisvara das: Is the backtrace that you get the same as in
> comment 2 or the same as in bug 179765? In any case, bug 179765 has been fixed
> after kde 4.2 rc1, so this may just work with a very recent version... Please
> retest if you can.

my backtrace claimed it was useless, but nevertheless looked very similar to the one in bug 179765.

------------
This backtrace appears to be of no use.
This is probably because your packages are built in a way which prevents creation of proper backtraces, or the stack frame was seriously corrupted in the crash.
------------

after ugrading to a more recent KDE version (Version 4.2.60 (KDE 4.2.60 (KDE 4.3 >= 20090116)) "release 1.5")) though, the crash doesn't happen anymore, everything works fine. must have been the bug fixed after rc1, therefore.

thanks, phani.
Comment 9 Dominik Tritscher 2009-03-15 17:34:49 UTC
So this bug has been quiet for nearly two months now. Is anybody still able to reproduce that crash with a recent version?
Comment 10 Michael Schwartzkopff 2009-03-15 18:27:51 UTC
Works for me now. I have KMail 1.10.4
Michael.
Comment 11 phanisvara das 2009-03-15 18:32:30 UTC
same here. i haven't had any trouble since upgrading to KDE 4.3; using KMail 1.11.90 now.

phani.
Comment 12 Dario Andres 2009-05-08 23:24:56 UTC
Marking as WORKSFORME as the reporter and many other people confirmed that this doesn't cause a crash anymore. Thanks