Hitting the compose button or reply to an existing mail causes kmail to segfault. Reproducible: Always Steps to Reproduce: 1. Click compose button or hit r or right click and hit reply 2. Watch kmail segfault Actual Results: kmail segfaults Expected Results: Should be able to compose a mail The backtrace looks like this: Program received signal SIGSEGV, Segmentation fault. 0x0000000000456563 in ?? () (gdb) bt #0 0x0000000000456563 in ?? () #1 0x00007fff15842fc8 in PimCommon::ShortUrlWidgetNg::initializePlugins (this=this@entry=0x182b0d0) at /home/jeremy/devel/kde/src/kde/kdepim/pimcommon/src/customtools/shorturlplugin/shorturl/shorturlwidgetng.cpp:134 #2 0x00007fff158445b6 in PimCommon::ShortUrlWidgetNg::ShortUrlWidgetNg (this=0x182b0d0, parent=<optimized out>) at /home/jeremy/devel/kde/src/kde/kdepim/pimcommon/src/customtools/shorturlplugin/shorturl/shorturlwidgetng.cpp:120 #3 0x00007fff158423ec in PimCommon::ShorturlView::ShorturlView (this=0x1831dd0, ac=<optimized out>, parent=<optimized out>) at /home/jeremy/devel/kde/src/kde/kdepim/pimcommon/src/customtools/shorturlplugin/shorturlview.cpp:35 #4 0x00007fff15841a3d in PimCommon::ShorturlPlugin::createView (this=<optimized out>, ac=0xf8d280, parent=0x1826880) at /home/jeremy/devel/kde/src/kde/kdepim/pimcommon/src/customtools/shorturlplugin/shorturlplugin.cpp:41 #5 0x00007fff7848629c in PimCommon::CustomToolsWidgetNg::initializeView (this=this@entry=0x1826880, ac=ac@entry=0xf8d280) at /home/jeremy/devel/kde/src/kde/kdepim/pimcommon/src/customtools/customtoolswidgetng.cpp:64 #6 0x00007fff7848659d in PimCommon::CustomToolsWidgetNg::CustomToolsWidgetNg (this=0x1826880, ac=0xf8d280, parent=<optimized out>) at /home/jeremy/devel/kde/src/kde/kdepim/pimcommon/src/customtools/customtoolswidgetng.cpp:51 #7 0x00007fff5ce8db45 in KMComposeWin::KMComposeWin (this=this@entry=0x1736e60, aMsg=..., lastSignState=lastSignState@entry=false, lastEncryptState=lastEncryptState@entry=false, context=context@entry=KMail::Composer::New, id=id@entry=238450820, textSelection=..., customTemplate=..., __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /home/jeremy/devel/kde/src/kde/kdepim/kmail/editor/kmcomposewin.cpp:419 #8 0x00007fff5ce8ec51 in KMComposeWin::create (msg=..., lastSignState=lastSignState@entry=false, lastEncryptState=lastEncryptState@entry=false, context=context@entry=KMail::Composer::New, identity=identity@entry=238450820, textSelection=..., customTemplate=...) at /home/jeremy/devel/kde/src/kde/kdepim/kmail/editor/kmcomposewin.cpp:210 #9 0x00007fff5ce8ec8c in KMail::makeComposer (msg=..., lastSignState=lastSignState@entry=false, lastEncryptState=lastEncryptState@entry=false, context=context@entry=KMail::Composer::New, identity=identity@entry=238450820, textSelection=..., customTemplate=...) at /home/jeremy/devel/kde/src/kde/kdepim/kmail/editor/kmcomposewin.cpp:203 #10 0x00007fff5cd8a7d3 in KMKernel::newMessage (this=<optimized out>, to=..., cc=..., bcc=..., hidden=<optimized out>, useFolderId=true, _attachURL=...) at /home/jeremy/devel/kde/src/kde/kdepim/kmail/kmkernel.cpp:915 #11 0x00007fff5ce97b2b in KmailAdaptor::newMessage (attachURL=..., messageFile=..., useFolderId=<optimized out>, hidden=<optimized out>, bcc=..., cc=..., to=..., this=0xaa9cd0) at /home/jeremy/devel/kde/build/kde/kdepim/kmail/kmailadaptor.cpp:69 #12 KmailAdaptor::qt_static_metacall (_o=_o@entry=0xaa9cd0, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=_id@entry=5, _a=_a@entry=0x7fffffffc6d0) at /home/jeremy/devel/kde/build/kde/kdepim/kmail/kmailadaptor.moc:298 #13 0x00007fff5ce97d95 in KmailAdaptor::qt_metacall (this=0xaa9cd0, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0x7fffffffc6d0) at /home/jeremy/devel/kde/build/kde/kdepim/kmail/kmailadaptor.moc:358 #14 0x00007fffefce2333 in ?? () from /usr/lib/libQt5DBus.so.5 #15 0x00007fffefce5f8a in ?? () from /usr/lib/libQt5DBus.so.5 #16 0x00007fffefce6a53 in ?? () from /usr/lib/libQt5DBus.so.5 #17 0x00007fffefce71cb in ?? () from /usr/lib/libQt5DBus.so.5 #18 0x00007fffefce7520 in ?? () from /usr/lib/libQt5DBus.so.5 #19 0x00007fffefce76ca in ?? () from /usr/lib/libQt5DBus.so.5 #20 0x00007fffefce812e in ?? () from /usr/lib/libQt5DBus.so.5 #21 0x00007fffefcd64e8 in QDBusConnection::asyncCall(QDBusMessage const&, int) const () from /usr/lib/libQt5DBus.so.5 #22 0x00007fffefcf23d9 in QDBusAbstractInterface::asyncCallWithArgumentList(QString const&, QList<QVariant> const&) () from /usr/lib/libQt5DBus.so.5 #23 0x00007fff5e6eeee8 in OrgKdeKmailKmailInterface::newMessage (attachURL=..., messageFile=..., useFolderId=true, hidden=false, bcc=..., cc=..., to=..., this=0xa55c30) at /home/jeremy/devel/kde/build/kde/kdepim/kmail/kontactplugin/kmailinterface.h:75 #24 KMailPlugin::openComposer (this=<optimized out>, to=...) at /home/jeremy/devel/kde/src/kde/kdepim/kmail/kontactplugin/kmail_plugin.cpp:153 #25 0x00007fff5e6ef2ec in KMailPlugin::slotNewMail (this=<optimized out>) at /home/jeremy/devel/kde/src/kde/kdepim/kmail/kontactplugin/kmail_plugin.cpp:159 #26 0x00007fffef89bfb7 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5 #27 0x00007ffff101e402 in QAction::triggered(bool) () from /usr/lib/libQt5Widgets.so.5 #28 0x00007ffff1020888 in QAction::activate(QAction::ActionEvent) () from /usr/lib/libQt5Widgets.so.5 #29 0x00007ffff79aad61 in QAction::trigger (this=<optimized out>) at /usr/include/qt/QtWidgets/qaction.h:177 #30 Kontact::MainWindow::slotNewClicked (this=0x7231d0) at /home/jeremy/devel/kde/src/kde/kdepim/kontact/src/mainwindow.cpp:737 ---Type <return> to continue, or q <return> to quit--- #31 0x00007fffef89bfb7 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5 #32 0x00007ffff101e402 in QAction::triggered(bool) () from /usr/lib/libQt5Widgets.so.5 #33 0x00007ffff1020888 in QAction::activate(QAction::ActionEvent) () from /usr/lib/libQt5Widgets.so.5 #34 0x00007ffff1126770 in ?? () from /usr/lib/libQt5Widgets.so.5 #35 0x00007ffff11268a4 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQt5Widgets.so.5 #36 0x00007ffff11eb5ba in QToolButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQt5Widgets.so.5 #37 0x00007ffff106b038 in QWidget::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5 #38 0x00007ffff11eb699 in QToolButton::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5 #39 0x00007ffff102801c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5 #40 0x00007ffff102dbf9 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5 #41 0x00007fffef86d9ab in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5 #42 0x00007ffff102cb02 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQt5Widgets.so.5 #43 0x00007ffff108559b in ?? () from /usr/lib/libQt5Widgets.so.5 #44 0x00007ffff1087b5b in ?? () from /usr/lib/libQt5Widgets.so.5 #45 0x00007ffff102801c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5 #46 0x00007ffff102d4f6 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5 #47 0x00007fffef86d9ab in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5 #48 0x00007ffff004d111 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib/libQt5Gui.so.5 #49 0x00007ffff004ede5 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib/libQt5Gui.so.5 #50 0x00007ffff0034208 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Gui.so.5 #51 0x00007fffd9b523c0 in ?? () from /usr/lib/libQt5XcbQpa.so.5 #52 0x00007fffeb8aedc7 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #53 0x00007fffeb8af020 in ?? () from /usr/lib/libglib-2.0.so.0 #54 0x00007fffeb8af0cc in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #55 0x00007fffef8c434f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5 #56 0x00007fffef86b37a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5 #57 0x00007fffef87333c in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5 #58 0x0000000000404c0d in main (argc=1, argv=0x7fffffffe388) at /home/jeremy/devel/kde/src/kde/kdepim/kontact/src/main.cpp:221
Are you sure that you don't have old plugin ? (so could you remove all opt/kde5/lib64/plugins/pimcommon/*.so and reinstall them please ?) For me you have an old plugin as google plugin which was disabled.
That is definitely possible. I've just removed all plugins in the pimcommon folder and am rebuilding kdepim to test. Thanks. Do I also need to build other various bits of kdepim or is kdepim itself enough?
kdepim is enough (pimcommon is enough)
Yep, that fixed it. Thanks.
Laurent, I have teh same problem but nothig is in my /opt to delete. Using Kububtu 15.10 and kde2 V 5.0.2. Any idea what to do? Here is what happens: KMMsgEncryptionState: 78 log_messageviewer: KMMsgSignatureState: 78 log_kmail: Last resource finished syncing, mail check done log_templateparser: AKONADI PORT: Disabled code in virtual QString TemplateParser::TemplateParser::findTemplate() log_templateparser: Folder found: Collection ID: 22 remote ID: "/INBOX" name: "INBOX" url: QUrl( "akonadi:?collection=22" ) parent: 15 "imap://20906010@imap.gmx.net/" resource: "akonadi_imap_resource_0" rights: QFlags(0x1|0x2|0x4|0x8|0x10|0x20) contents mime type: ("inode/directory", "message/rfc822") isVirtual: false CachePolicy: inherit: true interval: 5 timeout: 60 sync on demand: true local parts: ("ENVELOPE", "HEAD") CollectionStatistics: count: 495 unread count: 11 size: 3837237 log_templateparser: AKONADI PORT: verify Akonadi::Item() here virtual QString TemplateParser::TemplateParser::findTemplate() log_templateparser: AKONADI PORT: verify Akonadi::Item() here virtual QString TemplateParser::TemplateParser::findTemplate() log_templateparser: Identity found: 1877429927 log_messageviewer: Node UNprocessed: 0xa5125d0 log_messageviewer: SET NODE: 0xa5125d0 true log_messageviewer: Node processed: "" "Content-Type: text/plain" log_templateparser: Command: REM= log_templateparser: Command: - log_templateparser: Command: BLANK log_templateparser: No appropriate charset found. log_messagecomposer: initalising autosave Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes. HSpellDict::HSpellDict: Init failed "contactsCompletionSession" connectToServer "/tmp/akonadi-glehnhoff.aSx12Z/akonadiserver.socket" log_kmail: log_kmail: " Gerhard Lehnhoff" *** KMail got signal 11 (Exiting) Speicherzugriffsfehler (Speicherabzug geschrieben) glehnhoff@AsusUB:~$ kmail --compose does work.
it's not the same bug for sure. use next version 5.0.3 I fixed it.