Bug 277340

Summary: Kontact segfaults on startup
Product: [Applications] kontact Reporter: Nuno Soares <nhsoares>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: 4.4.10   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Nuno Soares 2011-07-07 22:56:25 UTC
Application: kontact (4.4.10)
KDE Platform Version: 4.6.2 (4.6.2)
Qt Version: 4.7.2
Operating System: Linux 2.6.38-8-generic x86_64
Distribution: Ubuntu 11.04

-- Information about the crash:
- Unusual behavior I noticed:
This happened several times. It happens when by some reason kontact is consuming 100% of CPU, so I close it normaly but after that when I want to start it again, It says that another instance of the application is runing on another desktop. If I click start anyway it segfaults.

I followed one of the workarounds suggested (remove ~/.kde/share/apps/kmail/search/Last\ Search and that solved the problem.

The crash can be reproduced some of the time.

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f3136ec47a0 (LWP 14408))]

Thread 2 (Thread 0x7f3113426700 (LWP 14419)):
#0  0x00007f3134313f03 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f312dd41104 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f312dd419f2 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f3115846c44 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007f312dd683e4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f312e20cd8c in start_thread (arg=0x7f3113426700) at pthread_create.c:304
#6  0x00007f313432104d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f3136ec47a0 (LWP 14408)):
[KCrash Handler]
#6  0x00007f311880d6a9 in KMail::SearchJob::searchCompleteFolder (this=0x2337530) at ../../kmail/searchjob.cpp:87
#7  0x00007f311865ee2f in KMFolderImap::search (this=0x2326260, pattern=0x22f69b0) at ../../kmail/kmfolderimap.cpp:2408
#8  0x00007f311877f3b0 in KMSearch::slotProcessNextBatch (this=0x230d720) at ../../kmail/kmfoldersearch.cpp:272
#9  0x00007f311877f508 in KMSearch::qt_metacall (this=0x230d720, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0x7fff13909610) at ./kmfoldersearch.moc:85
#10 0x00007f3134a455f8 in QMetaObject::activate (sender=0x230b570, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x0) at kernel/qobject.cpp:3287
#11 0x00007f3134a441c9 in QObject::event (this=0x230b570, e=<value optimized out>) at kernel/qobject.cpp:1190
#12 0x00007f31353ef9e4 in QApplicationPrivate::notify_helper (this=0x1b15170, receiver=0x230b570, e=0x7fff13909d10) at kernel/qapplication.cpp:4462
#13 0x00007f31353f43aa in QApplication::notify (this=<value optimized out>, receiver=0x230b570, e=0x7fff13909d10) at kernel/qapplication.cpp:4341
#14 0x00007f313610e866 in KApplication::notify (this=0x7fff1390d680, receiver=0x230b570, event=0x7fff13909d10) at ../../kdeui/kernel/kapplication.cpp:311
#15 0x00007f3134a3049c in QCoreApplication::notifyInternal (this=0x7fff1390d680, receiver=0x230b570, event=0x7fff13909d10) at kernel/qcoreapplication.cpp:731
#16 0x00007f3134a5df12 in sendEvent (this=0x1b191f0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#17 QTimerInfoList::activateTimers (this=0x1b191f0) at kernel/qeventdispatcher_unix.cpp:604
#18 0x00007f3134a5acf4 in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:184
#19 0x00007f312dd40bcd in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007f312dd413a8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#21 0x00007f312dd41639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007f3134a5b3ef in QEventDispatcherGlib::processEvents (this=0x1ab6370, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#23 0x00007f3135496dfe in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#24 0x00007f3134a2f882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#25 0x00007f3134a2fabc in QEventLoop::exec (this=0x7fff1390a0c0, flags=...) at kernel/qeventloop.cpp:201
#26 0x00007f313618e7bd in KWallet::Wallet::openWallet (name=..., w=<value optimized out>, ot=KWallet::Wallet::Synchronous) at ../../kdeui/util/kwallet.cpp:304
#27 0x00007f31176914dd in MailTransport::TransportManager::wallet (this=0x22b6a30) at ../../mailtransport/transportmanager.cpp:602
#28 0x00007f31176892dd in MailTransport::Transport::readPassword (this=0x22b7b90) at ../../mailtransport/transport.cpp:305
#29 0x00007f3117689a30 in MailTransport::Transport::qt_metacall (this=0x22b7b90, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=<value optimized out>) at ./transport.moc:72
#30 0x00007f3134a4449a in QObject::event (this=0x22b7b90, e=<value optimized out>) at kernel/qobject.cpp:1226
#31 0x00007f31353ef9e4 in QApplicationPrivate::notify_helper (this=0x1b15170, receiver=0x22b7b90, e=0x22c6680) at kernel/qapplication.cpp:4462
#32 0x00007f31353f43aa in QApplication::notify (this=<value optimized out>, receiver=0x22b7b90, e=0x22c6680) at kernel/qapplication.cpp:4341
#33 0x00007f313610e866 in KApplication::notify (this=0x7fff1390d680, receiver=0x22b7b90, event=0x22c6680) at ../../kdeui/kernel/kapplication.cpp:311
#34 0x00007f3134a3049c in QCoreApplication::notifyInternal (this=0x7fff1390d680, receiver=0x22b7b90, event=0x22c6680) at kernel/qcoreapplication.cpp:731
#35 0x00007f3134a33c25 in sendEvent (receiver=0x0, event_type=0, data=0x1ab6b90) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#36 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1ab6b90) at kernel/qcoreapplication.cpp:1372
#37 0x00007f3134a5b253 in sendPostedEvents (s=0x1b181c0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#38 postEventSourceDispatch (s=0x1b181c0) at kernel/qeventdispatcher_glib.cpp:277
#39 0x00007f312dd40bcd in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#40 0x00007f312dd413a8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#41 0x00007f312dd41639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#42 0x00007f3134a5b3ef in QEventDispatcherGlib::processEvents (this=0x1ab6370, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#43 0x00007f3135496dfe in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#44 0x00007f3134a2f882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#45 0x00007f3134a2fabc in QEventLoop::exec (this=0x7fff1390af00, flags=...) at kernel/qeventloop.cpp:201
#46 0x00007f313618e7bd in KWallet::Wallet::openWallet (name=..., w=<value optimized out>, ot=KWallet::Wallet::Synchronous) at ../../kdeui/util/kwallet.cpp:304
#47 0x00007f31186a2a4f in KMKernel::wallet (this=0x2174060) at ../../kmail/kmkernel.cpp:2497
#48 0x00007f311862b48d in KMail::NetworkAccount::readPassword (this=0x1f76660) at ../../kmail/networkaccount.cpp:328
#49 0x00007f311862bc6b in KMail::NetworkAccount::readConfig (this=0x1f76660, config=...) at ../../kmail/networkaccount.cpp:170
#50 0x00007f3118689fc6 in KMail::PopAccount::readConfig (this=0x1f76660, config=...) at ../../kmail/popaccount.cpp:208
#51 0x00007f31185d9a97 in KMail::AccountManager::readConfig (this=0x22d2a90) at ../../kmail/accountmanager.cpp:131
#52 0x00007f31186aa2b1 in KMKernel::init (this=0x2174060) at ../../kmail/kmkernel.cpp:1542
#53 0x00007f3118c9d0b7 in KMailPart::KMailPart (this=0x1fefed0, parentWidget=0x1b153a0, parent=<value optimized out>, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at ../../kmail/kmail_part.cpp:73
#54 0x00007f3118c9e3ef in KPluginFactory::createPartInstance<KMailPart> (parentWidget=0x1b153a0, parent=0x1b153a0, args=...) at /usr/include/kpluginfactory.h:479
#55 0x00007f3134f825a9 in KPluginFactory::create (this=0x1ff9a90, iface=0x7f313402a1c0 "KParts::ReadOnlyPart", parentWidget=0x1b153a0, parent=0x1b153a0, args=..., keyword=<value optimized out>) at ../../kdecore/util/kpluginfactory.cpp:203
#56 0x00007f313653bc90 in create<KParts::ReadOnlyPart> (this=0x1b153a0, libname=0x1fc4c88 "kmailpart") at /usr/include/kpluginfactory.h:503
#57 KontactInterface::Core::createPart (this=0x1b153a0, libname=0x1fc4c88 "kmailpart") at ../../kontactinterface/core.cpp:87
#58 0x00007f311991854b in KMailPlugin::createPart (this=0x1f61790) at ../../../../kontact/plugins/kmail/kmail_plugin.cpp:179
#59 0x00007f313653e319 in KontactInterface::Plugin::part (this=0x1f61790) at ../../kontactinterface/plugin.cpp:191
#60 0x00007f3136aea4a0 in Kontact::MainWindow::selectPlugin (this=0x1b153a0, plugin=0x1f61790) at ../../../kontact/src/mainwindow.cpp:778
#61 0x00007f3136ae6d74 in Kontact::MainWindow::loadSettings (this=0x1b153a0) at ../../../kontact/src/mainwindow.cpp:944
#62 0x00007f3136ae909e in Kontact::MainWindow::initObject (this=0x1b153a0) at ../../../kontact/src/mainwindow.cpp:210
#63 0x00007f3136ae949d in Kontact::MainWindow::MainWindow (this=0x1b153a0, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at ../../../kontact/src/mainwindow.cpp:146
#64 0x0000000000403244 in KontactApp::newInstance (this=0x7fff1390d680) at ../../../kontact/src/main.cpp:136
#65 0x00007f31361149a2 in KUniqueApplicationAdaptor::newInstance (this=0x1b725e0, asn_id=<value optimized out>, args=...) at ../../kdeui/kernel/kuniqueapplication.cpp:436
#66 0x00007f3136114a42 in KUniqueApplicationAdaptor::qt_metacall (this=0x1b725e0, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff1390c930) at ./kuniqueapplication_p.moc:81
#67 0x00007f3132af79fa in QDBusConnectionPrivate::deliverCall (this=0x1b02850, object=0x1b725e0, msg=..., metaTypes=..., slotIdx=4) at qdbusintegrator.cpp:942
#68 0x00007f3132af8b1a in QDBusConnectionPrivate::activateCall (this=0x1b02850, object=0x1b725e0, flags=337, msg=...) at qdbusintegrator.cpp:845
#69 0x00007f3132af933a in QDBusConnectionPrivate::activateObject (this=0x1b02850, node=..., msg=..., pathStartPos=<value optimized out>) at qdbusintegrator.cpp:1410
#70 0x00007f3132af9578 in QDBusActivateObjectEvent::placeMetaCall (this=0x1c0d620) at qdbusintegrator.cpp:1524
#71 0x00007f3134a4449a in QObject::event (this=0x7fff1390d680, e=<value optimized out>) at kernel/qobject.cpp:1226
#72 0x00007f31353f1fa4 in QApplication::event (this=0x7fff1390d680, e=0x1c0d620) at kernel/qapplication.cpp:2503
#73 0x00007f31353ef9e4 in QApplicationPrivate::notify_helper (this=0x1b15170, receiver=0x7fff1390d680, e=0x1c0d620) at kernel/qapplication.cpp:4462
#74 0x00007f31353f43aa in QApplication::notify (this=<value optimized out>, receiver=0x7fff1390d680, e=0x1c0d620) at kernel/qapplication.cpp:4341
#75 0x00007f313610e866 in KApplication::notify (this=0x7fff1390d680, receiver=0x7fff1390d680, event=0x1c0d620) at ../../kdeui/kernel/kapplication.cpp:311
#76 0x00007f3134a3049c in QCoreApplication::notifyInternal (this=0x7fff1390d680, receiver=0x7fff1390d680, event=0x1c0d620) at kernel/qcoreapplication.cpp:731
#77 0x00007f3134a33c25 in sendEvent (receiver=0x0, event_type=0, data=0x1ab6b90) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#78 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1ab6b90) at kernel/qcoreapplication.cpp:1372
#79 0x00007f3134a5b253 in sendPostedEvents (s=0x1b181c0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#80 postEventSourceDispatch (s=0x1b181c0) at kernel/qeventdispatcher_glib.cpp:277
#81 0x00007f312dd40bcd in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#82 0x00007f312dd413a8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#83 0x00007f312dd41639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#84 0x00007f3134a5b3ef in QEventDispatcherGlib::processEvents (this=0x1ab6370, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#85 0x00007f3135496dfe in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#86 0x00007f3134a2f882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#87 0x00007f3134a2fabc in QEventLoop::exec (this=0x7fff1390d610, flags=...) at kernel/qeventloop.cpp:201
#88 0x00007f3134a33ecb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#89 0x0000000000403f70 in main (argc=1, argv=<value optimized out>) at ../../../kontact/src/main.cpp:226

This bug may be a duplicate of or related to bug 258623.

Possible duplicates by query: bug 277068, bug 276995, bug 275465, bug 275354, bug 273421.

Reported using DrKonqi
Comment 1 Christophe Marin 2011-07-08 08:23:24 UTC

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