Bug 174816 - kmail crash during disconnected imap sync
Summary: kmail crash during disconnected imap sync
Status: RESOLVED DUPLICATE of bug 176571
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2008-11-10 21:24 UTC by Ritesh Raj Sarraf
Modified: 2009-03-19 00:34 UTC (History)
1 user (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 Ritesh Raj Sarraf 2008-11-10 21:24:50 UTC
Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

Kmail Version: KDE 4.1.3

Kmail crashes when doing a sync of my Disconnected IMAP account.
Comment 1 Ritesh Raj Sarraf 2008-11-10 21:25:01 UTC
Application: Kontact (kontact), signal SIGABRT
[Thread debugging using libthread_db enabled]
[New Thread 0xb4dcb6c0 (LWP 6782)]
[New Thread 0xaf9ffb90 (LWP 17516)]
[KCrash handler]
#6  0xb803d424 in __kernel_vsyscall ()
#7  0xb6bfb640 in raise () from /lib/i686/cmov/libc.so.6
#8  0xb6bfd018 in abort () from /lib/i686/cmov/libc.so.6
#9  0xb6e686cd in qt_message_output (msgType=QtFatalMsg, 
    buf=0xbfa54960 "ASSERT: \"!transferInProgress( serNum )\" in file /tmp/buildd/kdepim-4.1.3/kmail/messageproperty.cpp, line 180")
    at global/qglobal.cpp:2102
#10 0xb6e68796 in qFatal (msg=0xb6fb0438 "ASSERT: \"%s\" in file %s, line %d")
    at global/qglobal.cpp:2303
#11 0xb6e68825 in qt_assert (
    assertion=0xb1c29453 "!transferInProgress( serNum )", 
    file=0xb1c29420 "/tmp/buildd/kdepim-4.1.3/kmail/messageproperty.cpp", 
    line=180) at global/qglobal.cpp:1872
#12 0xb17f3430 in KMail::MessageProperty::forget (msgBase=0x28b44968)
    at /tmp/buildd/kdepim-4.1.3/kmail/messageproperty.cpp:180
#13 0xb185543a in ~KMMsgBase (this=0x28b44968)
    at /tmp/buildd/kdepim-4.1.3/kmail/kmmsgbase.cpp:124
#14 0xb1690054 in ~KMMessage (this=0x28b44968)
    at /tmp/buildd/kdepim-4.1.3/kmail/kmmessage.cpp:225
#15 0xb185da99 in KMMsgList::clear (this=0x9dc08e8, doDelete=true, 
    syncDict=false) at /tmp/buildd/kdepim-4.1.3/kmail/kmmsglist.cpp:37
#16 0xb18cf110 in KMFolderMaildir::close (this=0x9dc0898, aForced=false)
    at /tmp/buildd/kdepim-4.1.3/kmail/kmfoldermaildir.cpp:216
#17 0xb18b3d9d in KMFolderCachedImap::resetSyncState (this=0x9dc0898)
    at /tmp/buildd/kdepim-4.1.3/kmail/kmfoldercachedimap.cpp:2416
#18 0xb1885334 in KMAcctCachedImap::killAllJobs (this=0x9d87328, 
    disconnectSlave=<value optimized out>)
    at /tmp/buildd/kdepim-4.1.3/kmail/kmacctcachedimap.cpp:111
#19 0xb1879dcf in KMail::ImapAccountBase::handleError (this=0x9d87328, 
    errorCode=124, errorMsg=@0xbfa56d38, job=0x10ae9c58, context=@0xbfa56e38, 
    abortSync=false)
    at /tmp/buildd/kdepim-4.1.3/kmail/imapaccountbase.cpp:1015
#20 0xb186f74b in KMail::ImapAccountBase::handleJobError (this=0x9d87328, 
    job=0x10ae9c58, context=@0xbfa56e38, abortSync=false)
    at /tmp/buildd/kdepim-4.1.3/kmail/imapaccountbase.cpp:367
#21 0xb186feb7 in KMail::ImapAccountBase::handlePutError (this=0x9d87328, 
    job=0x10ae9c58, jd=@0x2889ce1c, folder=0x9dbfb98)
    at /tmp/buildd/kdepim-4.1.3/kmail/imapaccountbase.cpp:959
#22 0xb1a00f5f in KMail::CachedImapJob::slotPutMessageResult (
    this=0x2bb20cb0, job=0x10ae9c58)
    at /tmp/buildd/kdepim-4.1.3/kmail/cachedimapjob.cpp:482
#23 0xb19ff667 in KMail::CachedImapJob::qt_metacall (this=0x2bb20cb0, 
    _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0xbfa56fec)
    at /tmp/buildd/kdepim-4.1.3/obj-i486-linux-gnu/kmail/cachedimapjob.moc:107
#24 0xb6f74bd0 in QMetaObject::activate (sender=0x10ae9c58, 
    from_signal_index=7, to_signal_index=7, argv=0xbfa56fec)
    at kernel/qobject.cpp:3031
#25 0xb6f75952 in QMetaObject::activate (sender=0x10ae9c58, m=0xb7b56948, 
    local_signal_index=3, argv=0xbfa56fec) at kernel/qobject.cpp:3101
#26 0xb7a1e013 in KJob::result (this=0x10ae9c58, _t1=0x10ae9c58)
    at /tmp/buildd/kde4libs-4.1.3/obj-i486-linux-gnu/kdecore/kjob.moc:186
#27 0xb7a1e522 in KJob::emitResult (this=0x10ae9c58)
    at /tmp/buildd/kde4libs-4.1.3/kdecore/jobs/kjob.cpp:290
#28 0xb6a13975 in KIO::SimpleJob::slotFinished (this=0x10ae9c58)
    at /tmp/buildd/kde4libs-4.1.3/kio/kio/job.cpp:498
#29 0xb6a1a403 in KIO::TransferJob::slotFinished (this=0x10ae9c58)
    at /tmp/buildd/kde4libs-4.1.3/kio/kio/job.cpp:967
#30 0xb6a11903 in KIO::SimpleJob::slotError (this=0x10ae9c58, err=124, 
    errorText=@0xbfa57420) at /tmp/buildd/kde4libs-4.1.3/kio/kio/job.cpp:510
#31 0xb6a11afb in KIO::SimpleJob::qt_metacall (this=0x10ae9c58, 
    _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfa572d8)
    at /tmp/buildd/kde4libs-4.1.3/obj-i486-linux-gnu/kio/jobclasses.moc:155
#32 0xb6a1b09a in KIO::TransferJob::qt_metacall (this=0x10ae9c58, 
    _c=QMetaObject::InvokeMetaMethod, _id=31, _a=0xbfa572d8)
    at /tmp/buildd/kde4libs-4.1.3/obj-i486-linux-gnu/kio/jobclasses.moc:324
#33 0xb6f74bd0 in QMetaObject::activate (sender=0x188d68e0, 
    from_signal_index=6, to_signal_index=6, argv=0xbfa572d8)
    at kernel/qobject.cpp:3031
#34 0xb6f75952 in QMetaObject::activate (sender=0x188d68e0, m=0xb6bc6e24, 
    local_signal_index=2, argv=0xbfa572d8) at kernel/qobject.cpp:3101
#35 0xb6adb279 in KIO::SlaveInterface::error (this=0x188d68e0, _t1=124, 
    _t2=@0xbfa57420)
    at /tmp/buildd/kde4libs-4.1.3/obj-i486-linux-gnu/kio/slaveinterface.moc:149
#36 0xb6adef47 in KIO::SlaveInterface::dispatch (this=0x188d68e0, _cmd=102, 
    rawdata=@0xbfa57464)
    at /tmp/buildd/kde4libs-4.1.3/kio/kio/slaveinterface.cpp:212
#37 0xb6adb967 in KIO::SlaveInterface::dispatch (this=0x188d68e0)
    at /tmp/buildd/kde4libs-4.1.3/kio/kio/slaveinterface.cpp:90
#38 0xb6acb99d in KIO::Slave::gotInput (this=0x188d68e0)
    at /tmp/buildd/kde4libs-4.1.3/kio/kio/slave.cpp:322
#39 0xb6ace3e3 in KIO::Slave::qt_metacall (this=0x188d68e0, 
    _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbfa57578)
    at /tmp/buildd/kde4libs-4.1.3/obj-i486-linux-gnu/kio/slave.moc:75
#40 0xb6f74bd0 in QMetaObject::activate (sender=0x197d0bc8, 
    from_signal_index=4, to_signal_index=4, argv=0x0)
    at kernel/qobject.cpp:3031
#41 0xb6f75952 in QMetaObject::activate (sender=0x197d0bc8, m=0xb6bc3a80, 
    local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3101
#42 0xb69da9d7 in KIO::Connection::readyRead (this=0x197d0bc8)
    at /tmp/buildd/kde4libs-4.1.3/obj-i486-linux-gnu/kio/connection.moc:84
#43 0xb69dca99 in KIO::ConnectionPrivate::dequeue (this=0x2e75c618)
    at /tmp/buildd/kde4libs-4.1.3/kio/kio/connection.cpp:82
#44 0xb69dcc26 in KIO::Connection::qt_metacall (this=0x197d0bc8, 
    _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x2b7f6890)
    at /tmp/buildd/kde4libs-4.1.3/obj-i486-linux-gnu/kio/connection.moc:72
#45 0xb6f6dd6b in QMetaCallEvent::placeMetaCall (this=0x1cbdfad8, 
    object=0x197d0bc8) at kernel/qobject.cpp:529
#46 0xb6f6f8e1 in QObject::event (this=0x197d0bc8, e=0x1cbdfad8)
    at kernel/qobject.cpp:1155
#47 0xb718079c in QApplicationPrivate::notify_helper (this=0x97fe9c8, 
    receiver=0x197d0bc8, e=0x1cbdfad8) at kernel/qapplication.cpp:3803
#48 0xb718861e in QApplication::notify (this=0xbfa57f0c, receiver=0x197d0bc8, 
    e=0x1cbdfad8) at kernel/qapplication.cpp:3393
#49 0xb7d2b07d in KApplication::notify (this=0xbfa57f0c, receiver=0x197d0bc8, 
    event=0x1cbdfad8)
    at /tmp/buildd/kde4libs-4.1.3/kdeui/kernel/kapplication.cpp:311
#50 0xb6f600d1 in QCoreApplication::notifyInternal (this=0xbfa57f0c, 
    receiver=0x197d0bc8, event=0x1cbdfad8) at kernel/qcoreapplication.cpp:587
#51 0xb6f60d55 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, 
    event_type=0, data=0x97ef418)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:209
#52 0xb6f60f4d in QCoreApplication::sendPostedEvents (receiver=0x0, 
    event_type=0) at kernel/qcoreapplication.cpp:1091
#53 0xb721ae3f in QEventDispatcherX11::processEvents (this=0x97fea80, flags=
      {i = -1079673592})
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:214
#54 0xb6f5e79a in QEventLoop::processEvents (this=0xbfa57d80, flags=
      {i = -1079673528}) at kernel/qeventloop.cpp:143
#55 0xb6f5e95a in QEventLoop::exec (this=0xbfa57d80, flags={i = -1079673464})
    at kernel/qeventloop.cpp:194
#56 0xb6f61015 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845
#57 0xb7180617 in QApplication::exec () at kernel/qapplication.cpp:3331
#58 0x0804bdd2 in main (argc=1, argv=0xbfa58104)
    at /tmp/buildd/kdepim-4.1.3/kontact/src/main.cpp:218
#0  0xb803d424 in __kernel_vsyscall ()
Comment 2 Jaime Torres 2008-11-11 12:08:40 UTC
This bug could be due to Qt didn't handle the case where it gets interrupted by an unix signal. Qt just handled that as any other Socket error (thoug it isn't really an error) and closed the socket instead of just redo the select. 

This was already fixed for Qt 4.4.4. See Qt task 226687.

Let's wait for Qt 4.4.4 to be released and check it again?
Comment 3 Ritesh Raj Sarraf 2008-11-11 13:38:23 UTC
This bug wasn't present in KDE 4.1.2.
Did something change on KDE side?
Or probably, the Debian guys might have an answer.
Comment 4 Jaime Torres 2008-11-11 16:34:11 UTC

*** This bug has been marked as a duplicate of bug 156991 ***
Comment 5 Thomas McGuire 2008-12-05 16:54:53 UTC

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