[Bug 175144] crash instantly at startup
Dominique
dominique at leducq.net
Wed Mar 11 07:02:14 GMT 2009
https://bugs.kde.org/show_bug.cgi?id=175144
--- Comment #28 from Dominique <dominique leducq net> 2009-03-11 08:00:59 ---
Following is the backtrace I obtain with a 4.2.1 package with degug info from
Mandriva 2009.1 beta, and some comments.
What I think is happening is this: while restoring the previous session, a
Kontact::MainWindow is constructed, and the KMail window, which was opened, is
built. Then KMail asks for KWallet to be opened. The latter, to interact with
user, asking a password, spawns an event loop, which somehow results in DBus
messages being processed, and a call to KontactApp::newInstance(), which in
turn tries to create another Kontact::MainWindow (as we still are in the
constructor of MainWindow, mSessionRestored is false and mMainWindow is still
0...).
And there, we create a new ServiceStarter instance. ServiceStarter inherits
from KDBusServiceStarter, which is a singleton class. Its constructor is
protected, but ServiceStarter's is public !! And it calls KDBusServiceStarter
constructor, which has already been called once, thus the assertion raised at
line 54.
Hope this helps.
Application : Kontact (kontact), signal SIGABRT
0x00007f4f1de3cc00 in nanosleep () from /lib64/libc.so.6
[Current thread is 1 (Thread 0x7f4f20822700 (LWP 22444))]
Thread 1 (Thread 0x7f4f20822700 (LWP 22444)):
[KCrash Handler]
#5 0x00007f4f1ddcda15 in raise () from /lib64/libc.so.6
#6 0x00007f4f1ddcf243 in abort () from /lib64/libc.so.6
#7 0x00007f4f1f06edb5 in qt_message_output (msgType=QtFatalMsg, buf=<value
optimized out>) at global/qglobal.cpp:2006
#8 0x00007f4f1f06eefb in qFatal (msg=<value optimized out>) at
global/qglobal.cpp:2201
#9 0x00007f4f1c94924c in KDBusServiceStarter (this=0x19927e0) at
/usr/src/debug/kdelibs-4.2.1/kio/kio/kdbusservicestarter.cpp:54
#10 0x00007f4f2042e029 in ServiceStarter (this=0x57ac, pluginList=0x57ac) at
/usr/src/debug/kdepim-4.2.1/kontact/src/mainwindow.cpp:107
#11 0x00007f4f20428ea0 in MainWindow (this=0x1816db0) at
/usr/src/debug/kdepim-4.2.1/kontact/src/mainwindow.cpp:152
#12 0x0000000000403af0 in KontactApp::newInstance (this=0x7fff28859750) at
/usr/src/debug/kdepim-4.2.1/kontact/src/main.cpp:134
mMainWindow = new Kontact::MainWindow(); <------------ new
call to MainWindow constructor (from inside MainWindow constructor, see below.
So mSessionRestored is false and mMainWindow is still 0)
#13 0x00007f4f1fa997d2 in KUniqueApplicationAdaptor::newInstance
(this=0x1711490, asn_id=<value optimized out>, args=@0x1ca3810) at
/usr/src/debug/kdelibs-4.2.1/kdeui/kernel/kuniqueapplication_p.h:77
#14 0x00007f4f1fa97ed6 in KUniqueApplicationAdaptor::qt_metacall
(this=0x1711490, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff288571b0)
at /usr/src/debug/kdelibs-4.2.1/build/kdeui/kuniqueapplication_p.moc:75
#15 0x00007f4f1c602493 in QDBusConnectionPrivate::deliverCall (this=0x1704380,
object=0x1711490, msg=@0x1cfd2d0, metaTypes=@0x7fff288572b8, slotIdx=4) at
qdbusintegrator.cpp:891
#16 0x00007f4f1c6036af in QDBusConnectionPrivate::activateCall (this=0x1704380,
object=0x1711490, flags=337, msg=@0x1cfd2d0) at qdbusintegrator.cpp:796
#17 0x00007f4f1c603de1 in QDBusConnectionPrivate::activateObject
(this=0x1704380, node=@0x1cfd2a8, msg=@0x1cfd2d0, pathStartPos=<value optimized
out>) at qdbusintegrator.cpp:1352
#18 0x00007f4f1c6040f8 in QDBusActivateObjectEvent::placeMetaCall
(this=0x1cfd260) at qdbusintegrator.cpp:1469
#19 0x00007f4f1f16ff08 in QObject::event (this=0x7fff28859750, e=0x1cfd260) at
kernel/qobject.cpp:1109
#20 0x00007f4f1e5cc29a in QApplication::event (this=0x7fff28859750,
e=0x1cfd260) at kernel/qapplication.cpp:2334
#21 0x00007f4f1e5c8e8d in QApplicationPrivate::notify_helper (this=0x1718f90,
receiver=0x7fff28859750, e=0x1cfd260) at kernel/qapplication.cpp:4084
#22 0x00007f4f1e5d106a in QApplication::notify (this=0x7fff28859750,
receiver=0x7fff28859750, e=0x1cfd260) at kernel/qapplication.cpp:4049
#23 0x00007f4f1fa943ce in KApplication::notify (this=0x7fff28859750,
receiver=0x7fff28859750, event=0x1cfd260) at
/usr/src/debug/kdelibs-4.2.1/kdeui/kernel/kapplication.cpp:307
#24 0x00007f4f1f15fe3c in QCoreApplication::notifyInternal
(this=0x7fff28859750, receiver=0x7fff28859750, event=0x1cfd260) at
kernel/qcoreapplication.cpp:602
#25 0x00007f4f1f160aaa in QCoreApplicationPrivate::sendPostedEvents
(receiver=0x0, event_type=0, data=0x16e6850) at kernel/qcoreapplication.h:213
#26 0x00007f4f1f189843 in postEventSourceDispatch (s=<value optimized out>) at
kernel/qcoreapplication.h:218
#27 0x00007f4f1802ce31 in g_main_context_dispatch () from
/usr/lib64/libglib-2.0.so.0
#28 0x00007f4f180304e0 in ?? () from /usr/lib64/libglib-2.0.so.0
#29 0x00007f4f1803067c in g_main_context_iteration () from
/usr/lib64/libglib-2.0.so.0
#30 0x00007f4f1f1894cf in QEventDispatcherGlib::processEvents (this=0x16ef470,
flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:323
#31 0x00007f4f1e65ffdf in QGuiEventDispatcherGlib::processEvents (this=0x57ac,
flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#32 0x00007f4f1f15e6e2 in QEventLoop::processEvents (this=<value optimized
out>, flags={i = 679837248}) at kernel/qeventloop.cpp:149
#33 0x00007f4f1f15eaad in QEventLoop::exec (this=0x7fff28857f10, flags={i =
679837552}) at kernel/qeventloop.cpp:200
KWallet opening triggers EventLoop... before app.exec()
#34 0x00007f4f1fb082f8 in KWallet::Wallet::openWallet (name=@0x7fff28857ff0,
w=50331737, ot=KWallet::Wallet::Synchronous) at
/usr/src/debug/kdelibs-4.2.1/kdeui/util/kwallet.cpp:248
#35 0x00007f4f09d83841 in KMKernel::wallet (this=0x1c12230) at
/usr/src/debug/kdepim-4.2.1/kmail/kmkernel.cpp:2296
#36 0x00007f4f09d2d47b in KMail::NetworkAccount::readPassword (this=0x1ca6e10)
at /usr/src/debug/kdepim-4.2.1/kmail/networkaccount.cpp:338
#37 0x00007f4f09ce4e14 in KMail::AccountManager::readPasswords (this=<value
optimized out>) at /usr/src/debug/kdepim-4.2.1/kmail/accountmanager.cpp:410
#38 0x00007f4f09d2db93 in KMail::NetworkAccount::passwd (this=0x1ca6e10) at
/usr/src/debug/kdepim-4.2.1/kmail/networkaccount.cpp:95
#39 0x00007f4f09d358aa in KMail::ImapAccountBase::makeConnection
(this=0x1ca6e10) at /usr/src/debug/kdepim-4.2.1/kmail/imapaccountbase.cpp:300
#40 0x00007f4f09d55659 in KMFolderImap::listDirectory (this=0x1ca2420) at
/usr/src/debug/kdepim-4.2.1/kmail/kmfolderimap.cpp:743
#41 0x00007f4f09c6f3b6 in KMail::FolderView::slotFolderExpanded (this=<value
optimized out>, item=<value optimized out>) at
/usr/src/debug/kdepim-4.2.1/kmail/folderview.cpp:2463
#42 0x00007f4f09c77101 in KMail::FolderView::qt_metacall (this=0x1ec7d70,
_c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff28858590)
at /usr/src/debug/kdepim-4.2.1/build/kmail/folderview.moc:219
#43 0x00007f4f09c7c306 in KMail::MainFolderView::qt_metacall (this=0x57ac,
_c=22444, _id=6, _a=0xffffffffffffffff) at
/usr/src/debug/kdepim-4.2.1/build/kmail/mainfolderview.moc:64
#44 0x00007f4f1f1758b2 in QMetaObject::activate (sender=0x1ec7d70,
from_signal_index=<value optimized out>, to_signal_index=101,
argv=0xffffffffffffffff) at kernel/qobject.cpp:3060
#45 0x00007f4f1eb36522 in QTreeWidget::itemExpanded (this=0x57ac,
_t1=0x20e48a0) at .moc/release-shared/moc_qtreewidget.cpp:236
#46 0x00007f4f1eb4341b in QTreeWidget::qt_metacall (this=0x1ec7d70,
_c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff28858770)
at .moc/release-shared/moc_qtreewidget.cpp:149
#47 0x00007f4f1ff1d495 in KPIM::TreeWidget::qt_metacall (this=0x57ac, _c=22444,
_id=6, _a=0xffffffffffffffff) at
/usr/src/debug/kdepim-4.2.1/build/libkdepim/moc_treewidget.cpp:68
#48 0x00007f4f1ff1d5c5 in KPIM::FolderTreeWidget::qt_metacall (this=0x57ac,
_c=22444, _id=6, _a=0xffffffffffffffff) at
/usr/src/debug/kdepim-4.2.1/build/libkdepim/moc_foldertreewidget.cpp:64
#49 0x00007f4f09c76ea5 in KMail::FolderView::qt_metacall (this=0x57ac,
_c=22444, _id=6, _a=0xffffffffffffffff) at
/usr/src/debug/kdepim-4.2.1/build/kmail/folderview.moc:186
#50 0x00007f4f09c7c306 in KMail::MainFolderView::qt_metacall (this=0x57ac,
_c=22444, _id=6, _a=0xffffffffffffffff) at
/usr/src/debug/kdepim-4.2.1/build/kmail/mainfolderview.moc:64
#51 0x00007f4f1f1758b2 in QMetaObject::activate (sender=0x1ec7d70,
from_signal_index=<value optimized out>, to_signal_index=69,
argv=0xffffffffffffffff) at kernel/qobject.cpp:3060
#52 0x00007f4f1eaf8d32 in QTreeView::expanded (this=0x57ac, _t1=<value
optimized out>) at .moc/release-shared/moc_qtreeview.cpp:213
#53 0x00007f4f1eb0a180 in QTreeView::expand (this=0x1ec7d70,
index=@0x7fff28858800) at itemviews/qtreeview.cpp:752
#54 0x00007f4f1eb3e505 in QTreeWidget::setItemExpanded (this=0x1ec7d70,
item=0x20e48a0, expand=<value optimized out>) at itemviews/qtreewidget.cpp:3114
#55 0x00007f4f09c76323 in KMail::FolderView::restoreItemStates (this=<value
optimized out>) at /usr/src/debug/kdepim-4.2.1/kmail/folderview.cpp:377
#56 0x00007f4f09c76a88 in KMail::FolderView::reload (this=0x1ec7d70,
openFoldersForUpdate=false) at
/usr/src/debug/kdepim-4.2.1/kmail/folderview.cpp:667
#57 0x00007f4f09e2c9cf in KMMainWidget::readConfig (this=0x1ce8820) at
/usr/src/debug/kdepim-4.2.1/kmail/kmmainwidget.cpp:595
#58 0x00007f4f09e2db07 in KMMainWidget (this=0x1ce8820, parent=0x1cabb70,
aGUIClient=0x1b850b8, actionCollection=0x1aa90c0, config=0x170c2f0) at
/usr/src/debug/kdepim-4.2.1/kmail/kmmainwidget.cpp:233
#59 0x00007f4f0a39209e in KMailPart (this=0x1b85070, parentWidget=<value
optimized out>, parent=<value optimized out>) at
/usr/src/debug/kdepim-4.2.1/kmail/kmail_part.cpp:111
#60 0x00007f4f0a39338f in KPluginFactory::createPartInstance<KMailPart>
(parentWidget=0x18a8d70, parent=0x18a8d70, args=@0x7fff28858f70) at
/usr/include/kpluginfactory.h:467
#61 0x00007f4f1f5f7ca9 in KPluginFactory::create (this=0x1b7d2f0,
iface=0x7f4f1db89b80 "KParts::ReadOnlyPart", parentWidget=0x18a8d70,
parent=0x18a8d70, args=@0x7fff28858f70,
keyword=<value optimized out>) at
/usr/src/debug/kdelibs-4.2.1/kdecore/util/kpluginfactory.cpp:191
#62 0x00007f4f20201f61 in KPluginFactory::create<KParts::ReadOnlyPart>
(this=0x1b7d2f0, parent=0x18a8d70, args=@0x7fff28858f70) at
/usr/include/kpluginfactory.h:491
#63 0x00007f4f20200e12 in Kontact::Core::createPart (this=0x18a8d70,
libname=0x1aa7c38 "kmailpart") at
/usr/src/debug/kdepim-4.2.1/kontactinterfaces/core.cpp:87
#64 0x00007f4f0b09118a in KMailPlugin::createPart (this=0x57ac) at
/usr/src/debug/kdepim-4.2.1/kontact/plugins/kmail/kmail_plugin.cpp:170
#65 0x00007f4f202025cc in Kontact::Plugin::part (this=0x57ac) at
/usr/src/debug/kdepim-4.2.1/kontactinterfaces/plugin.cpp:187
#66 0x00007f4f204248fe in Kontact::MainWindow::selectPlugin (this=0x18a8d70,
plugin=0x1a41d00) at /usr/src/debug/kdepim-4.2.1/kontact/src/mainwindow.cpp:752
#67 0x00007f4f20424528 in Kontact::MainWindow::loadSettings (this=0x18a8d70) at
/usr/src/debug/kdepim-4.2.1/kontact/src/mainwindow.cpp:924
#68 0x00007f4f204287e6 in Kontact::MainWindow::initObject (this=0x18a8d70) at
/usr/src/debug/kdepim-4.2.1/kontact/src/mainwindow.cpp:226
#69 0x00007f4f20428f11 in MainWindow (this=0x18a8d70) at
/usr/src/debug/kdepim-4.2.1/kontact/src/mainwindow.cpp:162
#70 0x0000000000403937 in main (argc=3, argv=0x7fff28859c68) at
/usr/src/debug/kdepim-4.2.1/kontact/src/main.cpp:210
Kontact::MainWindow *mainWindow = new Kontact::MainWindow();
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Kdepim-bugs
mailing list