Bug 240662 - Kontact crashes when disabling checking of one of imap folders
Summary: Kontact crashes when disabling checking of one of imap folders
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: folder list (show other bugs)
Version: 1.13.2
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 242631 253609 296074 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-06-03 23:31 UTC by Piotr
Modified: 2013-01-17 12:45 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Full backtrace with kdepim (12.80 KB, application/octet-stream)
2010-06-06 23:35 UTC, Piotr
Details
Full backtrace with kdepim (12.80 KB, text/plain)
2010-06-06 23:36 UTC, Piotr
Details
New crash information added by DrKonqi (12.28 KB, text/plain)
2010-07-20 15:30 UTC, Robert Wloch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr 2010-06-03 23:31:23 UTC
Application: kontact (4.4.2)
KDE Platform Version: 4.4.2 (KDE 4.4.2)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-22-generic i686
Distribution: Ubuntu 10.04 LTS

-- Information about the crash:
Always when trying to disable checking of one of the folders from checking or reporting of new elements kontact crashes.

The crash can be reproduced every time.

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

Thread 2 (Thread 0xb12d2b70 (LWP 19765)):
#0  0x00110422 in __kernel_vsyscall ()
#1  0x00a98b86 in poll () from /lib/tls/i686/cmov/libc.so.6
#2  0x048b24eb in g_poll () from /lib/libglib-2.0.so.0
#3  0x048a50ac in ?? () from /lib/libglib-2.0.so.0
#4  0x048a54b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0x00f5e60f in QEventDispatcherGlib::processEvents (this=0x8bffc48, flags=...) at kernel/qeventdispatcher_glib.cpp:414
#6  0x00f31059 in QEventLoop::processEvents (this=0xb12d2270, flags=) at kernel/qeventloop.cpp:149
#7  0x00f314aa in QEventLoop::exec (this=0xb12d2270, flags=...) at kernel/qeventloop.cpp:201
#8  0x00e2d5a8 in QThread::exec (this=0x8b92c30) at thread/qthread.cpp:487
#9  0x00f10c1b in QInotifyFileSystemWatcherEngine::run (this=0x8b92c30) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x00e3032e in QThreadPrivate::start (arg=0x8b92c30) at thread/qthread_unix.cpp:248
#11 0x07f2596e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#12 0x00aa6a4e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb77f4990 (LWP 19751)):
[KCrash Handler]
#6  QLineEdit::text (this=0x12) at widgets/qlineedit.cpp:377
#7  0xb438b2fb in ?? () from /usr/lib/libkmailprivate.so.4
#8  0xb4390004 in ?? () from /usr/lib/libkmailprivate.so.4
#9  0xb437fd5c in ?? () from /usr/lib/libkmailprivate.so.4
#10 0xb437fc40 in ?? () from /usr/lib/libkmailprivate.so.4
#11 0x00f37c9a in QMetaObject::metacall (object=0x8c4f688, cl=3030192116, idx=76, argv=0xbf84e63c) at kernel/qmetaobject.cpp:237
#12 0x00f463d5 in QMetaObject::activate (sender=0x8c4f688, m=0x70bb04, local_signal_index=9, argv=0x0) at kernel/qobject.cpp:3293
#13 0x004a7e27 in KDialog::okClicked (this=0x8c4f688) at ./kdialog.moc:258
#14 0x004aa438 in KDialog::slotButtonClicked (this=0x8c4f688, button=4) at ../../kdeui/dialogs/kdialog.cpp:862
#15 0x004ac559 in KDialog::qt_metacall (this=0x8c4f688, _c=QMetaObject::InvokeMetaMethod, _id=33, _a=0xbf84e868) at ./kdialog.moc:190
#16 0x0058986a in KPageDialog::qt_metacall (this=0x8c4f688, _c=QMetaObject::InvokeMetaMethod, _id=69, _a=0xbf84e868) at ./kpagedialog.moc:70
#17 0xb437fc1a in ?? () from /usr/lib/libkmailprivate.so.4
#18 0x00f37c9a in QMetaObject::metacall (object=0x8c4f688, cl=3030192116, idx=69, argv=0xbf84e868) at kernel/qmetaobject.cpp:237
#19 0x00f463d5 in QMetaObject::activate (sender=0x8bf1198, m=0x10450f8, local_signal_index=0, argv=0xbf84e868) at kernel/qobject.cpp:3293
#20 0x00f4bb13 in QSignalMapper::mapped (this=0x8bf1198, _t1=4) at .moc/release-shared/moc_qsignalmapper.cpp:101
#21 0x00f4cd8d in QSignalMapper::map (this=0x8bf1198, sender=0x8b92b18) at kernel/qsignalmapper.cpp:266
#22 0x00f4cf6e in QSignalMapper::map (this=0x8bf1198) at kernel/qsignalmapper.cpp:257
#23 0x00f4d03b in QSignalMapper::qt_metacall (this=0x8bf1198, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0xbf84ea08) at .moc/release-shared/moc_qsignalmapper.cpp:87
#24 0x00f37c9a in QMetaObject::metacall (object=0x8bf1198, cl=3030192116, idx=8, argv=0xbf84ea08) at kernel/qmetaobject.cpp:237
#25 0x00f463d5 in QMetaObject::activate (sender=0x8b92b18, m=0x6b3d8c4, local_signal_index=2, argv=0xbf84ea08) at kernel/qobject.cpp:3293
#26 0x0692d479 in QAbstractButton::clicked (this=0x8b92b18, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:206
#27 0x0660cea9 in QAbstractButtonPrivate::emitClicked (this=0x8c4f8a0) at widgets/qabstractbutton.cpp:546
#28 0x0660dcf4 in QAbstractButtonPrivate::click (this=0x8c4f8a0) at widgets/qabstractbutton.cpp:539
#29 0x0660dfae in QAbstractButton::mouseReleaseEvent (this=0x8b92b18, e=0xbf84f140) at widgets/qabstractbutton.cpp:1121
#30 0x062607f8 in QWidget::event (this=0x8b92b18, event=0xbf84f140) at kernel/qwidget.cpp:7998
#31 0x0660cd4e in QAbstractButton::event (this=0x8b92b18, e=0xbf84e4d8) at widgets/qabstractbutton.cpp:1080
#32 0x066b71f2 in QPushButton::event (this=0x8b92b18, e=0xbf84f140) at widgets/qpushbutton.cpp:679
#33 0x062024dc in QApplicationPrivate::notify_helper (this=0x8248f10, receiver=0x8b92b18, e=0xbf84f140) at kernel/qapplication.cpp:4300
#34 0x062099f7 in QApplication::notify (this=0xbf851df4, receiver=0x8b92b18, e=0xbf84f140) at kernel/qapplication.cpp:3865
#35 0x00548f2a in KApplication::notify (this=0xbf851df4, receiver=0x8b92b18, event=0xbf84f140) at ../../kdeui/kernel/kapplication.cpp:302
#36 0x00f32a3b in QCoreApplication::notifyInternal (this=0xbf851df4, receiver=0x8b92b18, event=0xbf84f140) at kernel/qcoreapplication.cpp:704
#37 0x06208952 in QCoreApplication::sendEvent (receiver=0x8b92b18, event=0xbf84f140, alienWidget=0x8b92b18, nativeWidget=0x8c4f688, buttonDown=0x6b46058, lastMouseReceiver=..., spontaneous=true)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#38 QApplicationPrivate::sendMouseEvent (receiver=0x8b92b18, event=0xbf84f140, alienWidget=0x8b92b18, nativeWidget=0x8c4f688, buttonDown=0x6b46058, lastMouseReceiver=..., spontaneous=true)
    at kernel/qapplication.cpp:2965
#39 0x06294088 in QETWidget::translateMouseEvent (this=0x8c4f688, event=0xbf84f65c) at kernel/qapplication_x11.cpp:4368
#40 0x06293511 in QApplication::x11ProcessEvent (this=0xbf851df4, event=0xbf84f65c) at kernel/qapplication_x11.cpp:3379
#41 0x062c260a in x11EventSourceDispatch (s=0x824efe8, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#42 0x048a15e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#43 0x048a52d8 in ?? () from /lib/libglib-2.0.so.0
#44 0x048a54b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#45 0x00f5e5d5 in QEventDispatcherGlib::processEvents (this=0x8227070, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#46 0x062c2135 in QGuiEventDispatcherGlib::processEvents (this=0x8227070, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#47 0x00f31059 in QEventLoop::processEvents (this=0xbf84f950, flags=) at kernel/qeventloop.cpp:149
#48 0x00f314aa in QEventLoop::exec (this=0xbf84f950, flags=...) at kernel/qeventloop.cpp:201
#49 0x067414f3 in QDialog::exec (this=0x8c4f688) at dialogs/qdialog.cpp:546
#50 0xb461a9a4 in KMMainWidget::slotModifyFolder(KMMainWidget::PropsPage) () from /usr/lib/libkmailprivate.so.4
#51 0xb461db79 in KMMainWidget::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkmailprivate.so.4
#52 0x00f37c9a in QMetaObject::metacall (object=0x885db18, cl=3030192116, idx=64, argv=0xbf84fb38) at kernel/qmetaobject.cpp:237
#53 0x00f463d5 in QMetaObject::activate (sender=0x89367f0, m=0x6b2ad58, local_signal_index=1, argv=0xbf84fb38) at kernel/qobject.cpp:3293
#54 0x061fbbd9 in QAction::triggered (this=0x89367f0, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#55 0x061fddcc in QAction::activate (this=0x89367f0, event=QAction::Trigger) at kernel/qaction.cpp:1255
#56 0x066a160c in QMenuPrivate::activateCausedStack (this=0x8c3f360, causedStack=..., action=0x89367f0, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1011
#57 0x066a7abb in QMenuPrivate::activateAction (this=0x8c3f360, action=0x89367f0, action_e=QAction::Trigger, self=<value optimized out>) at widgets/qmenu.cpp:1103
#58 0x066a8ac7 in QMenu::mouseReleaseEvent (this=0x8954b30, e=0xbf8503d0) at widgets/qmenu.cpp:2312
#59 0x0063ef65 in KMenu::mouseReleaseEvent (this=0x8954b30, e=0xbf8503d0) at ../../kdeui/widgets/kmenu.cpp:471
#60 0x062607f8 in QWidget::event (this=0x8954b30, event=0xbf8503d0) at kernel/qwidget.cpp:7998
#61 0x066aa0cc in QMenu::event (this=0x8954b30, e=0xbf8503d0) at widgets/qmenu.cpp:2414
#62 0x062024dc in QApplicationPrivate::notify_helper (this=0x8248f10, receiver=0x8954b30, e=0xbf8503d0) at kernel/qapplication.cpp:4300
#63 0x062099f7 in QApplication::notify (this=0xbf851df4, receiver=0x8954b30, e=0xbf8503d0) at kernel/qapplication.cpp:3865
#64 0x00548f2a in KApplication::notify (this=0xbf851df4, receiver=0x8954b30, event=0xbf8503d0) at ../../kdeui/kernel/kapplication.cpp:302
#65 0x00f32a3b in QCoreApplication::notifyInternal (this=0xbf851df4, receiver=0x8954b30, event=0xbf8503d0) at kernel/qcoreapplication.cpp:704
#66 0x06208952 in QCoreApplication::sendEvent (receiver=0x8954b30, event=0xbf8503d0, alienWidget=0x0, nativeWidget=0x8954b30, buttonDown=0x6b46058, lastMouseReceiver=..., spontaneous=true)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#67 QApplicationPrivate::sendMouseEvent (receiver=0x8954b30, event=0xbf8503d0, alienWidget=0x0, nativeWidget=0x8954b30, buttonDown=0x6b46058, lastMouseReceiver=..., spontaneous=true)
    at kernel/qapplication.cpp:2965
#68 0x062945cf in QETWidget::translateMouseEvent (this=0x8954b30, event=0xbf8508ec) at kernel/qapplication_x11.cpp:4302
#69 0x06293511 in QApplication::x11ProcessEvent (this=0xbf851df4, event=0xbf8508ec) at kernel/qapplication_x11.cpp:3379
#70 0x062c260a in x11EventSourceDispatch (s=0x824efe8, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#71 0x048a15e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#72 0x048a52d8 in ?? () from /lib/libglib-2.0.so.0
#73 0x048a54b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#74 0x00f5e5d5 in QEventDispatcherGlib::processEvents (this=0x8227070, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#75 0x062c2135 in QGuiEventDispatcherGlib::processEvents (this=0x8227070, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#76 0x00f31059 in QEventLoop::processEvents (this=0xbf850be0, flags=) at kernel/qeventloop.cpp:149
#77 0x00f314aa in QEventLoop::exec (this=0xbf850be0, flags=...) at kernel/qeventloop.cpp:201
#78 0x066a4dde in QMenu::exec (this=0x8954b30, p=..., action=0x0) at widgets/qmenu.cpp:2063
#79 0xb439c09e in KMail::FolderView::contextMenuEvent(QContextMenuEvent*) () from /usr/lib/libkmailprivate.so.4
#80 0x06260f38 in QWidget::event (this=0x88b8d70, event=0xbf851568) at kernel/qwidget.cpp:8165
#81 0x0665cfd3 in QFrame::event (this=0x88b8d70, e=0xbf851568) at widgets/qframe.cpp:557
#82 0x066f7382 in QAbstractScrollArea::viewportEvent (this=0xb49d0ff4, e=0xbf84e4d8) at widgets/qabstractscrollarea.cpp:1036
#83 0x067abbd7 in QAbstractItemView::viewportEvent (this=0x88b8d70, event=0xbf851568) at itemviews/qabstractitemview.cpp:1610
#84 0x067ecf7c in QTreeView::viewportEvent (this=0x88b8d70, event=0xbf851568) at itemviews/qtreeview.cpp:1248
#85 0x066f9c65 in QAbstractScrollAreaPrivate::viewportEvent (this=0x88ba248, o=0x88b9390, e=0xbf851568) at widgets/qabstractscrollarea_p.h:100
#86 QAbstractScrollAreaFilter::eventFilter (this=0x88ba248, o=0x88b9390, e=0xbf851568) at widgets/qabstractscrollarea_p.h:116
#87 0x00f31cda in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x8248f10, receiver=0x88b9390, event=0xbf851568) at kernel/qcoreapplication.cpp:819
#88 0x062024b9 in QApplicationPrivate::notify_helper (this=0x8248f10, receiver=0x88b9390, e=0xbf851568) at kernel/qapplication.cpp:4296
#89 0x06209470 in QApplication::notify (this=0xbf851df4, receiver=0x88b9390, e=0xbf851568) at kernel/qapplication.cpp:3944
#90 0x00548f2a in KApplication::notify (this=0xbf851df4, receiver=0x88b9390, event=0xbf851568) at ../../kdeui/kernel/kapplication.cpp:302
#91 0x00f32a3b in QCoreApplication::notifyInternal (this=0xbf851df4, receiver=0x88b9390, event=0xbf851568) at kernel/qcoreapplication.cpp:704
#92 0x06299dfe in QCoreApplication::sendSpontaneousEvent (receiver=0x88b9390, event=0xbf84e4d8) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#93 0x062940f4 in QETWidget::translateMouseEvent (this=0x824cae8, event=0xbf851a5c) at kernel/qapplication_x11.cpp:4373
#94 0x06293511 in QApplication::x11ProcessEvent (this=0xbf851df4, event=0xbf851a5c) at kernel/qapplication_x11.cpp:3379
#95 0x062c260a in x11EventSourceDispatch (s=0x824efe8, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#96 0x048a15e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#97 0x048a52d8 in ?? () from /lib/libglib-2.0.so.0
#98 0x048a54b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#99 0x00f5e5d5 in QEventDispatcherGlib::processEvents (this=0x8227070, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#100 0x062c2135 in QGuiEventDispatcherGlib::processEvents (this=0x8227070, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#101 0x00f31059 in QEventLoop::processEvents (this=0xbf851d54, flags=) at kernel/qeventloop.cpp:149
#102 0x00f314aa in QEventLoop::exec (this=0xbf851d54, flags=...) at kernel/qeventloop.cpp:201
#103 0x00f3569f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#104 0x06202577 in QApplication::exec () at kernel/qapplication.cpp:3579
#105 0x0804b472 in _start ()

Possible duplicates by query: bug 235428, bug 218425.

Reported using DrKonqi
Comment 1 Christophe Marin 2010-06-06 15:42:38 UTC
The most interesting parts of the backtrace are missing:

#7  0xb438b2fb in ?? () from /usr/lib/libkmailprivate.so.4
#8  0xb4390004 in ?? () from /usr/lib/libkmailprivate.so.4
#9  0xb437fd5c in ?? () from /usr/lib/libkmailprivate.so.4
#10 0xb437fc40 in ?? () from /usr/lib/libkmailprivate.so.4


can you install the debug package for KMail (or kdepim, depending on your distribution) and try to reproduce the crash ? Thanks.
Comment 2 Piotr 2010-06-06 23:34:32 UTC
Ok, I've installed kdepim-dbg pakage, here are missing lines from stack trace:

#7  0xb435d2fb in KMail::FolderDialogGeneralTab::save (this=0xa75c8d0) at ../../kmail/kmfolderdialog.cpp:680
#8  0xb4362004 in KMail::FolderDialogTab::accept (this=0xa75c8d0) at ../../kmail/kmfolderdialog.h:104
#9  0xb4351d5c in KMFolderDialog::slotOk (this=0xa70ca30) at ../../kmail/kmfolderdialog.cpp:244
#10 0xb4351c40 in KMFolderDialog::qt_metacall (this=0xa70ca30, _c=QMetaObject::InvokeMetaMethod, _id=76, _a=0xbf9ef21c) at ./kmfolderdialog.moc:429
Comment 3 Piotr 2010-06-06 23:35:36 UTC
Created attachment 47759 [details]
Full backtrace with kdepim
Comment 4 Piotr 2010-06-06 23:36:13 UTC
Created attachment 47760 [details]
Full backtrace with kdepim
Comment 5 Christophe Marin 2010-06-24 10:49:52 UTC
*** Bug 242631 has been marked as a duplicate of this bug. ***
Comment 6 Robert Wloch 2010-07-20 15:30:59 UTC
Created attachment 49338 [details]
New crash information added by DrKonqi

The very same (and annoying) crash happens to me, too.
I want to exclude the IMAP folder "emailed contacts" from being scanned for changes as it spams the tray icon with a four digit number without any value. But everytime I try to exclude it and click "OK" KMail crashes.
Comment 7 David Faure 2010-10-06 13:41:26 UTC
SVN commit 1183150 by dfaure:

Fix crash when changing properties of a readonly folder (mNameEdit was null)
BUG: 240662
Not sure which kdepim release this fix will be in, but it's post-kdepim-4.4.5


 M  +1 -1      kmfolderdialog.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1183150
Comment 8 Christophe Marin 2010-10-13 14:46:45 UTC
*** Bug 253609 has been marked as a duplicate of this bug. ***
Comment 9 Christophe Marin 2012-03-31 23:26:39 UTC
*** Bug 296074 has been marked as a duplicate of this bug. ***
Comment 10 David Faure 2013-01-17 12:45:58 UTC
Git commit 9970eee91977724dd24dab0e5511b5737875809c by David Faure.
Committed on 17/01/2013 at 13:43.
Pushed by dfaure into branch 'KDE/4.4'.

Finish fixing bug 240662, crash in props dialog for readonly folder.

Turns out my Oct-2010 fix wasn't complete, since the pointer isn't initialized
to NULL.

Yes this is an old version of kdepim, I know. My wife still uses it :-)
The bug doesn't happen in the akonadi-based kdepim versions.

M  +2    -1    kmail/kmfolderdialog.cpp

http://commits.kde.org/kdepim/9970eee91977724dd24dab0e5511b5737875809c