Summary: | Kontact crash when I select Options -> Configure Kontact | ||
---|---|---|---|
Product: | [Unmaintained] knode | Reporter: | Mirko C. <mirko75cav> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | 4ernov, antoniojnd, bedi.com, finex, nive, vkrause, winter |
Priority: | NOR | Keywords: | triaged |
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Ensure internally to libkpgp that the Kgpg::Module singleton is not null |
Description
Mirko C.
2008-11-09 13:57:56 UTC
> Version: 1.3 (using Devel)
> OS: Linux
> Installed from: Ubuntu repository
I've reproduced the crash using r882292 Application: Kontact (kontact), signal SIGSEGV [?1034h[Thread debugging using libthread_db enabled] 0x00007fb720388261 in nanosleep () from /lib64/libc.so.6 [Current thread is 0 (LWP 8649)] Thread 2 (Thread 0x420b0950 (LWP 8652)): #0 0x00007fb7203b2662 in select () from /lib64/libc.so.6 #1 0x00007fb72b2438d6 in ?? () from /usr/lib64/libQtCore.so.4 #2 0x00007fb72b18d764 in ?? () from /usr/lib64/libQtCore.so.4 #3 0x00007fb72af1e040 in start_thread () from /lib64/libpthread.so.0 #4 0x00007fb7203b90cd in clone () from /lib64/libc.so.6 Thread 1 (Thread 0x7fb72b6fb700 (LWP 8649)): [KCrash Handler] #5 Kpgp::Module::storePassPhrase (this=0x0) at /home/test/KDE4/src/kdepim/libkpgp/kpgp.cpp:186 #6 0x00007fb71511cdfd in Kpgp::Config::setValues (this=0xe3d890) at /home/test/KDE4/src/kdepim/libkpgp/kpgpui.cpp:227 #7 0x00007fb7151250dd in Config (this=0xe3d890, parent=<value optimized out>, encrypt=false) at /home/test/KDE4/src/kdepim/libkpgp/kpgpui.cpp:215 #8 0x00007fb7155fd0ba in PrivacyWidget (this=0xe39d60, inst=<value optimized out>, parent=<value optimized out>) at /home/test/KDE4/src/kdepim/knode/knconfigwidgets.cpp:1688 #9 0x00007fb7158f9541 in create_knode_config_privacy (parent=0xe357a0) at /home/test/KDE4/src/kdepim/knode/knconfigpages.cpp:178 #10 0x00007fb72199eef7 in KCModuleLoader::loadModule (mod=@0xe1c650, report=KCModuleLoader::Inline, parent=0xe357a0, args=@0xe1c620) at /home/test/KDE4/src/kdelibs/kutils/kcmoduleloader.cpp:112 #11 0x00007fb7219a437a in KCModuleProxyPrivate::loadModule (this=0xe1c620) at /home/test/KDE4/src/kdelibs/kutils/kcmoduleproxy.cpp:107 #12 0x00007fb7219a5365 in KCModuleProxy::realModule (this=<value optimized out>) at /home/test/KDE4/src/kdelibs/kutils/kcmoduleproxy.cpp:83 #13 0x00007fb7219a5379 in KCModuleProxy::minimumSizeHint (this=0x0) at /home/test/KDE4/src/kdelibs/kutils/kcmoduleproxy.cpp:346 #14 0x00007fb72a6cb8f3 in KPageViewPrivate::_k_modelChanged (this=0xb3d7b0) at /home/test/KDE4/src/kdelibs/kdeui/paged/kpageview.cpp:204 #15 0x00007fb72a6cbac9 in KPageView::qt_metacall (this=0x9284d0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff3373f480) at /home/test/KDE4/src/build/kdelibs/kdeui/kpageview.moc:92 #16 0x00007fb72a6ced26 in KPageWidget::qt_metacall (this=0x0, _c=863233632, _id=35, _a=0xe3e1c0) at /home/test/KDE4/src/build/kdelibs/kdeui/kpagewidget.moc:69 #17 0x00007fb72b2704e0 in QMetaObject::activate () from /usr/lib64/libQtCore.so.4 #18 0x00007fb7219a0757 in KCMultiDialog::addModule (this=0xb437f0, moduleInfo=@0xca23e0, parentItem=0xb3afb0, args=<value optimized out>) at /home/test/KDE4/src/kdelibs/kutils/kcmultidialog.cpp:305 #19 0x00007fb7219b91a6 in KSettings::DialogPrivate::createDialogFromServices (this=0x832950) at /home/test/KDE4/src/kdelibs/kutils/ksettings/dialog.cpp:323 #20 0x00007fb7219bb277 in KSettings::Dialog::showEvent (this=0xb437f0) at /home/test/KDE4/src/kdelibs/kutils/ksettings/dialog.cpp:120 #21 0x00007fb7225d52bc in QWidget::event () from /usr/lib64/libQtGui.so.4 #22 0x00007fb72258892d in QApplicationPrivate::notify_helper () from /usr/lib64/libQtGui.so.4 #23 0x00007fb72258ecfa in QApplication::notify () from /usr/lib64/libQtGui.so.4 #24 0x00007fb72a69dd8b in KApplication::notify (this=0x7fff33741eb0, receiver=0xb437f0, event=0x7fff33740370) at /home/test/KDE4/src/kdelibs/kdeui/kernel/kapplication.cpp:307 #25 0x00007fb72b25ee9c in QCoreApplication::notifyInternal () from /usr/lib64/libQtCore.so.4 #26 0x00007fb7225d5bc1 in QWidgetPrivate::show_helper () from /usr/lib64/libQtGui.so.4 #27 0x00007fb7225d60ea in QWidget::setVisible () from /usr/lib64/libQtGui.so.4 Hm, seen this before, there are likely duplicates of this out there. IIRC the important thing to reproduce this is to have KMail running standalone while launching Kontact. I've not had a standalone kmail running when I've reproduced the crash :-( The problem is that in libkpgp, the singleton Kpgp::Module::kpgpObject is not initialize/retrieved safely, hence this null pointer access. I'm working on it. Created attachment 28497 [details]
Ensure internally to libkpgp that the Kgpg::Module singleton is not null
Is the removal of attributes in KNMainWidget and KNGlobals ok ?
Could the Module() constructor be made private ?
SVN commit 884374 by otrichet: Ensure the singleton Kpgp::Module::kpgpObject is correctly instanciated - Remove an unecessary call to Module() in kmail (used to initialize the singleton) - Adapt knode CCBUG: 174707 M +0 -2 kmail/kmkernel.cpp M +0 -1 kmail/messagecomposer.cpp M +0 -1 kmail/messagecomposer.h M +1 -1 knode/articlewidget.cpp M +0 -1 knode/kncomposer.cpp M +0 -1 knode/knconfigwidgets.cpp M +0 -4 knode/knglobals.h M +0 -7 knode/knmainwidget.cpp M +0 -1 knode/knmainwidget.h M +1 -5 libkpgp/kpgp.cpp M +6 -2 libkpgp/kpgp.h WebSVN link: http://websvn.kde.org/?view=rev&revision=884374 *** Bug 167386 has been marked as a duplicate of this bug. *** SVN commit 890871 by tmcguire: Backport r884374 by otrichet from trunk to the 4.1 branch: Ensure the singleton Kpgp::Module::kpgpObject is correctly instanciated - Remove an unecessary call to Module() in kmail (used to initialize the singleton) - Adapt knode CCBUG: 174707 M +0 -2 kmail/kmkernel.cpp M +0 -1 kmail/messagecomposer.cpp M +0 -1 kmail/messagecomposer.h M +1 -1 knode/articlewidget.cpp M +0 -1 knode/kncomposer.cpp M +0 -1 knode/knconfigwidgets.cpp M +0 -4 knode/knglobals.h M +0 -7 knode/knmainwidget.cpp M +0 -1 knode/knmainwidget.h M +1 -5 libkpgp/kpgp.cpp M +6 -2 libkpgp/kpgp.h WebSVN link: http://websvn.kde.org/?view=rev&revision=890871 *** Bug 171640 has been marked as a duplicate of this bug. *** *** Bug 178676 has been marked as a duplicate of this bug. *** |