Bug 290359 - KMail crashes at startup
Summary: KMail crashes at startup
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 4.8
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-02 00:07 UTC by Thiago Macieira
Modified: 2017-01-07 22:45 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 Thiago Macieira 2012-01-02 00:07:44 UTC
Application: kontact (4.8 beta2)
KDE Platform Version: 4.7.4 (4.7.4) (Compiled from sources)
Qt Version: 4.8.0
Operating System: Linux 3.1.6-1.fc16.x86_64 x86_64
Distribution (Platform): Fedora RPMs

-- Information about the crash:
Only one step:
1) start KMail or Kontact

This has happened before. It's somehow connected to the "spinning wheel" problem of a folder not showing. Hopefully the backtrace will contain useful information.

I had stopped akonadi before, but the behaviour is the same when it was running.

It might also be connected to not authenticating to KWallet soon enough. If the reply takes too long, the IMAP agent doesn't reply to some KMail command and causes the crash.

The crash can be reproduced some of the time.

-- Backtrace:
Application: Kontact (kontact), signal: Aborted
82	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7f3b38cb37a0 (LWP 712))]

Thread 3 (Thread 0x7f3b2d47d700 (LWP 713)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:165
#1  0x00007f3b3f438b03 in WTF::TCMalloc_PageHeap::scavengerThread() () from /home/thiago/obj/qt/qt-4.8/lib/libQtWebKit.so.4
#2  0x00007f3b3f4380d8 in WTF::TCMalloc_PageHeap::runScavengerThread(void*) () from /home/thiago/obj/qt/qt-4.8/lib/libQtWebKit.so.4
#3  0x0000003c50e07b31 in start_thread (arg=0x7f3b2d47d700) at pthread_create.c:305
#4  0x0000003c506dfd2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7f3b2cb64700 (LWP 714)):
#0  0x0000003c506d7423 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x0000003c50242d24 in ?? () from /lib64/libglib-2.0.so.0
#2  0x0000003c5024325c in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00007f3b4076f6b2 in QEventDispatcherGlib::processEvents (this=0x1d65ab0, flags=...) at /home/thiago/src/qt/qt-4.8/src/corelib/kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f3b407314b0 in QEventLoop::processEvents (this=0x7f3b2cb63d70, flags=...) at /home/thiago/src/qt/qt-4.8/src/corelib/kernel/qeventloop.cpp:149
#5  0x00007f3b4073163a in QEventLoop::exec (this=0x7f3b2cb63d70, flags=...) at /home/thiago/src/qt/qt-4.8/src/corelib/kernel/qeventloop.cpp:204
#6  0x00007f3b40601023 in QThread::exec (this=0x1d65480) at /home/thiago/src/qt/qt-4.8/src/corelib/thread/qthread.cpp:501
#7  0x00007f3b406011c2 in QThread::run (this=0x1d65480) at /home/thiago/src/qt/qt-4.8/src/corelib/thread/qthread.cpp:568
#8  0x00007f3b406039a0 in QThreadPrivate::start (arg=0x1d65480) at /home/thiago/src/qt/qt-4.8/src/corelib/thread/qthread_unix.cpp:298
#9  0x0000003c50e07b31 in start_thread (arg=0x7f3b2cb64700) at pthread_create.c:305
#10 0x0000003c506dfd2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7f3b38cb37a0 (LWP 712)):
[KCrash Handler]
#6  0x0000003c506352d5 in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x0000003c50636beb in __GI_abort () at abort.c:93
#8  0x00007f3b405f6885 in qt_message_output (msgType=QtFatalMsg, buf=0x2c23798 "ASSERT failure in QDBusPendingReply::argumentAt: \"Index out of bounds\", file /home/thiago/src/qt/qt-4.8/src/dbus/qdbuspendingreply.cpp, line 268") at /home/thiago/src/qt/qt-4.8/src/corelib/global/qglobal.cpp:2252
#9  0x00007f3b405f69f8 in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7f3b407b6600 "ASSERT failure in %s: \"%s\", file %s, line %d", ap=0x7fff890233a8) at /home/thiago/src/qt/qt-4.8/src/corelib/global/qglobal.cpp:2298
#10 0x00007f3b405f7171 in qFatal (msg=0x7f3b407b6600 "ASSERT failure in %s: \"%s\", file %s, line %d") at /home/thiago/src/qt/qt-4.8/src/corelib/global/qglobal.cpp:2481
#11 0x00007f3b405f64ab in qt_assert_x (where=0x7f3b3d0d0256 "QDBusPendingReply::argumentAt", what=0x7f3b3d0d0242 "Index out of bounds", file=0x7f3b3d0d0208 "/home/thiago/src/qt/qt-4.8/src/dbus/qdbuspendingreply.cpp", line=268) at /home/thiago/src/qt/qt-4.8/src/corelib/global/qglobal.cpp:2007
#12 0x00007f3b3d0c4bfa in QDBusPendingReplyData::argumentAt (this=0x7fff890235f0, index=0) at /home/thiago/src/qt/qt-4.8/src/dbus/qdbuspendingreply.cpp:266
#13 0x00007f3ae871c38c in argumentAt<0> (this=0x7fff890235f0) at /home/thiago/obj/qt/qt-4.8-release/include/QtDBus/../../../../../src/qt/qt-4.8/src/dbus/qdbuspendingreply.h:176
#14 operator QDBusPendingReplyTypes::Select<0, QString, void, void, void, void, void, void, void>::Type (this=0x7fff890235f0) at /home/thiago/obj/qt/qt-4.8-release/include/QtDBus/../../../../../src/qt/qt-4.8/src/dbus/qdbuspendingreply.h:186
#15 KMKernel::instanceStatusChanged (this=0x2479840, instance=...) at /home/thiago/src/kde4/kdepim/kmail/kmkernel.cpp:1673
#16 0x00007f3ae8727056 in KMKernel::qt_static_metacall (_o=0x2479840, _c=<optimized out>, _id=<optimized out>, _a=0x7fff890238d0) at /home/thiago/obj/kde4/kdepim/kmail/kmkernel.moc:183
#17 0x00007f3b40751b2e in QMetaObject::activate (sender=0x24d10e0, m=0x7f3b3d04b340, local_signal_index=4, argv=0x7fff890238d0) at /home/thiago/src/qt/qt-4.8/src/corelib/kernel/qobject.cpp:3547
#18 0x00007f3b3cc61ae5 in Akonadi::AgentManager::instanceStatusChanged (this=<optimized out>, _t1=<optimized out>) at /home/thiago/obj/kde4/kdepimlibs/akonadi/agentmanager.moc:191
#19 0x00007f3b3cc67023 in Akonadi::AgentManagerPrivate::agentInstanceStatusChanged (this=0x24d11e0, identifier=<optimized out>, status=1, msg=...) at /home/thiago/src/kde4/kdepimlibs/akonadi/agentmanager.cpp:129
#20 0x00007f3b3cc6a16f in Akonadi::AgentManager::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at /home/thiago/obj/kde4/kdepimlibs/akonadi/agentmanager.moc:108
#21 0x00007f3b40751b2e in QMetaObject::activate (sender=0x24d08b0, m=0x7f3b3d056d60, local_signal_index=7, argv=0x7fff89023b00) at /home/thiago/src/qt/qt-4.8/src/corelib/kernel/qobject.cpp:3547
#22 0x00007f3b3cdca0e4 in agentInstanceStatusChanged (_t3=<optimized out>, _t2=1, _t1=<optimized out>, this=0x24d08b0) at /home/thiago/obj/kde4/kdepimlibs/akonadi/agentmanagerinterface.moc:299
#23 OrgFreedesktopAkonadiAgentManagerInterface::qt_static_metacall (_o=0x24d08b0, _c=<optimized out>, _id=<optimized out>, _a=0x7fff890240e0) at /home/thiago/obj/kde4/kdepimlibs/akonadi/agentmanagerinterface.moc:144
#24 0x00007f3b3cdccf0b in OrgFreedesktopAkonadiAgentManagerInterface::qt_metacall (this=0x24d08b0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fff890240e0) at /home/thiago/obj/kde4/kdepimlibs/akonadi/agentmanagerinterface.moc:240
#25 0x00007f3b3d07c1e1 in QDBusConnectionPrivate::deliverCall (this=0x1b989b0, object=0x24d08b0, msg=..., metaTypes=..., slotIdx=12) at /home/thiago/src/qt/qt-4.8/src/dbus/qdbusintegrator.cpp:947
#26 0x00007f3b3d088206 in QDBusCallDeliveryEvent::placeMetaCall (this=0x2a12370, object=0x24d08b0) at /home/thiago/src/qt/qt-4.8/src/dbus/qdbusintegrator_p.h:103
#27 0x00007f3b4074c78f in QObject::event (this=0x24d08b0, e=0x2a12370) at /home/thiago/src/qt/qt-4.8/src/corelib/kernel/qobject.cpp:1195
#28 0x00007f3b411f613c in QApplicationPrivate::notify_helper (this=0x1bb1380, receiver=0x24d08b0, e=0x2a12370) at /home/thiago/src/qt/qt-4.8/src/gui/kernel/qapplication.cpp:4550
#29 0x00007f3b411f3768 in QApplication::notify (this=0x7fff89025040, receiver=0x24d08b0, e=0x2a12370) at /home/thiago/src/qt/qt-4.8/src/gui/kernel/qapplication.cpp:3932
#30 0x00007f3b421d30e6 in KApplication::notify (this=0x7fff89025040, receiver=0x24d08b0, event=0x2a12370) at /home/thiago/src/kde4/kdelibs/kdeui/kernel/kapplication.cpp:311
#31 0x00007f3b40733bb6 in QCoreApplication::notifyInternal (this=0x7fff89025040, receiver=0x24d08b0, event=0x2a12370) at /home/thiago/src/qt/qt-4.8/src/corelib/kernel/qcoreapplication.cpp:876
#32 0x00007f3b407375ed in QCoreApplication::sendEvent (receiver=0x24d08b0, event=0x2a12370) at ../../include/QtCore/../../../../../src/qt/qt-4.8/src/corelib/kernel/qcoreapplication.h:231
#33 0x00007f3b40734bca in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1b773c0) at /home/thiago/src/qt/qt-4.8/src/corelib/kernel/qcoreapplication.cpp:1500
#34 0x00007f3b407347eb in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at /home/thiago/src/qt/qt-4.8/src/corelib/kernel/qcoreapplication.cpp:1393
#35 0x00007f3b4076fddf in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../../../../src/qt/qt-4.8/src/corelib/kernel/qcoreapplication.h:236
#36 0x00007f3b4076edb8 in postEventSourceDispatch (s=0x1bbd1d0) at /home/thiago/src/qt/qt-4.8/src/corelib/kernel/qeventdispatcher_glib.cpp:279
#37 0x0000003c502427ed in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#38 0x0000003c50242fc8 in ?? () from /lib64/libglib-2.0.so.0
#39 0x0000003c5024325c in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#40 0x00007f3b4076f68f in QEventDispatcherGlib::processEvents (this=0x1b78d90, flags=...) at /home/thiago/src/qt/qt-4.8/src/corelib/kernel/qeventdispatcher_glib.cpp:424
#41 0x00007f3b412cc664 in QGuiEventDispatcherGlib::processEvents (this=0x1b78d90, flags=...) at /home/thiago/src/qt/qt-4.8/src/gui/kernel/qguieventdispatcher_glib.cpp:204
#42 0x00007f3b407314b0 in QEventLoop::processEvents (this=0x7fff89024fc0, flags=...) at /home/thiago/src/qt/qt-4.8/src/corelib/kernel/qeventloop.cpp:149
#43 0x00007f3b4073163a in QEventLoop::exec (this=0x7fff89024fc0, flags=...) at /home/thiago/src/qt/qt-4.8/src/corelib/kernel/qeventloop.cpp:204
#44 0x00007f3b40734236 in QCoreApplication::exec () at /home/thiago/src/qt/qt-4.8/src/corelib/kernel/qcoreapplication.cpp:1148
#45 0x00007f3b411f3352 in QApplication::exec () at /home/thiago/src/qt/qt-4.8/src/gui/kernel/qapplication.cpp:3811
#46 0x0000000000403649 in main (argc=1, argv=0x7fff89025668) at /home/thiago/src/kde4/kdepim/kontact/src/main.cpp:218

Possible duplicates by query: bug 287560.

Reported using DrKonqi
Comment 1 Laurent Montel 2012-01-13 11:35:15 UTC
      bool useCrypto = false;
      if ( instance.identifier().contains( IMAP_RESOURCE_IDENTIFIER ) ) {
        OrgKdeAkonadiImapSettingsInterface *iface = MailCommon::Util::createImapSettingsInterface( instance.identifier() );
        if ( iface->isValid() ) {
          const QString imapSafety = iface->safety();
          useCrypto = ( imapSafety == QLatin1String( "SSL" ) || imapSafety == QLatin1String( "STARTTLS" ) );
        }
        delete iface;
      }
 
If it's a timeout I don't know how to fix this crash and test it.
Comment 2 Denis Kurz 2016-09-24 18:01:04 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kmail2 (version 5.0 or later, as part of KDE Applications 15.12 or later), it gets closed in about three months.
Comment 3 Denis Kurz 2017-01-07 22:45:24 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.