Bug 163228 - Disabling message structure viewer when the structure viewer is visible, makes kmail crash
Summary: Disabling message structure viewer when the structure viewer is visible, make...
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: messageviewer (show other bugs)
Version: 1.9.51
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 167741 167896 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-06-04 21:03 UTC by Frederik Himpe
Modified: 2008-07-31 23:19 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
kmail execution log and backtrace (73.42 KB, text/plain)
2008-07-14 21:29 UTC, Frederik Himpe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frederik Himpe 2008-06-04 21:03:49 UTC
Version:           1.9.51 (using Devel)
Installed from:    Compiled sources

I start kontact and go to the Mail component. In an IMAP folder, I select an e-mail containing attachments. The message structure is shown (request to change this default behaviour in bug #47882 by the way). Now go to the menu Settings - Configure KMail, choose Appearance on the left, and the tab page Layout. Under message structure viewer, choose Show never. Click on the Apply button: kontact crashes.

Sorry, I don't have any debug packages installed for the moment so I cannot give a really useable backtrace, but this should be very easily reproducible for anyone I guess.
Comment 1 Thomas McGuire 2008-06-10 17:13:35 UTC
Hmm, I can't reproduce this, can you re-test with a newer version?
Comment 2 Frederik Himpe 2008-06-14 13:16:31 UTC
With KDE 4.0.82 it crashes when enabling again the message structure viewer when a message with an attachment is selected.

Stack trace without debugging symbols:
#5  0x00002aefc1866945 in raise () from /lib64/libc.so.6
#6  0x00002aefc1868173 in abort () from /lib64/libc.so.6
#7  0x00002aefc06cc405 in qt_message_output () from /usr/lib64/libQtCore.so.4
#8  0x00002aefc06cc52d in qFatal () from /usr/lib64/libQtCore.so.4
#9  0x00002aefc10b288d in QObject::disconnectNotify ()
   from /usr/lib64/libQtGui.so.4
#10 0x00002aefc10b30ef in QTreeView::rowsAboutToBeRemoved ()
   from /usr/lib64/libQtGui.so.4
#11 0x00002aefc107baef in QAbstractItemView::qt_metacall ()
   from /usr/lib64/libQtGui.so.4
#12 0x00002aefc10ba075 in QTreeView::qt_metacall ()
   from /usr/lib64/libQtGui.so.4
#13 0x00002aefc10ee845 in QTreeWidget::qt_metacall ()
   from /usr/lib64/libQtGui.so.4
#14 0x00002aefbf75b5c6 in KPIM::TreeWidget::qt_metacall ()
   from /usr/lib64/libkdepim.so.4
#15 0x00002aefd59be955 in QObject::disconnectNotify ()
   from /usr/lib64/libkmailprivate.so.4
#16 0x00002aefc07c8cb0 in QMetaObject::activate ()
   from /usr/lib64/libQtCore.so.4
#17 0x00002aefc07faa54 in QAbstractItemModel::rowsAboutToBeRemoved ()
   from /usr/lib64/libQtCore.so.4
#18 0x00002aefc07af0cc in QAbstractItemModel::beginRemoveRows ()
   from /usr/lib64/libQtCore.so.4
#19 0x00002aefc10e6732 in QObject::disconnectNotify ()
   from /usr/lib64/libQtGui.so.4
#20 0x00002aefc10e81bc in QTreeWidgetItem::takeChild ()
   from /usr/lib64/libQtGui.so.4
#21 0x00002aefd59bd207 in QObject::disconnectNotify ()
   from /usr/lib64/libkmailprivate.so.4
#22 0x00002aefd59fa09a in QObject::disconnectNotify ()
   from /usr/lib64/libkmailprivate.so.4
#23 0x00002aefd59fa13a in QObject::disconnectNotify ()
   from /usr/lib64/libkmailprivate.so.4
#24 0x00002aefd585fa02 in QObject::disconnectNotify ()
   from /usr/lib64/libkmailprivate.so.4
#25 0x00002aefd585984f in QObject::disconnectNotify ()
   from /usr/lib64/libkmailprivate.so.4
#26 0x00002aefd5859a25 in QObject::disconnectNotify ()
   from /usr/lib64/libkmailprivate.so.4
#27 0x00002aefd585a425 in QObject::disconnectNotify ()
   from /usr/lib64/libkmailprivate.so.4
#28 0x00002aefd584ed60 in QObject::disconnectNotify ()
   from /usr/lib64/libkmailprivate.so.4
#29 0x00002aefd5a396ec in KMMainWidget::readConfig ()
   from /usr/lib64/libkmailprivate.so.4
#30 0x00002aefd5a4d8fd in KMMainWidget::qt_metacall ()
   from /usr/lib64/libkmailprivate.so.4
#31 0x00002aefc07c8cb0 in QMetaObject::activate ()
   from /usr/lib64/libQtCore.so.4
#32 0x00002aefd5970eb5 in KMKernel::qt_metacall ()
   from /usr/lib64/libkmailprivate.so.4
#33 0x00002aefc07c8cb0 in QMetaObject::activate ()
   from /usr/lib64/libQtCore.so.4
#34 0x00002aefc24cda26 in QObject::disconnectNotify ()
   from /usr/lib64/libkutils.so.4
#35 0x00002aefc24d0168 in KCMultiDialog::qt_metacall ()
   from /usr/lib64/libkutils.so.4
#36 0x00002aefd576a785 in QObject::disconnectNotify ()
   from /usr/lib64/libkmailprivate.so.4
#37 0x00002aefc07c8cb0 in QMetaObject::activate ()
   from /usr/lib64/libQtCore.so.4
#38 0x00002aefbfdc69e5 in KDialog::slotButtonClicked ()
   from /usr/lib64/libkdeui.so.5
#39 0x00002aefbfdc6c8d in KDialog::qt_metacall ()
   from /usr/lib64/libkdeui.so.5
#40 0x00002aefbfe82496 in KPageDialog::qt_metacall ()
   from /usr/lib64/libkdeui.so.5
#41 0x00002aefc24d00a5 in KCMultiDialog::qt_metacall ()
   from /usr/lib64/libkutils.so.4
#42 0x00002aefd576a785 in QObject::disconnectNotify ()
   from /usr/lib64/libkmailprivate.so.4
#43 0x00002aefc07c8cb0 in QMetaObject::activate ()
   from /usr/lib64/libQtCore.so.4
#44 0x00002aefc07cc5be in QSignalMapper::mapped ()
   from /usr/lib64/libQtCore.so.4
#45 0x00002aefc07cc660 in QSignalMapper::map () from /usr/lib64/libQtCore.so.4
#46 0x00002aefc07cda60 in QSignalMapper::qt_metacall ()
   from /usr/lib64/libQtCore.so.4
#47 0x00002aefc07c8cb0 in QMetaObject::activate ()
   from /usr/lib64/libQtCore.so.4
#48 0x00002aefc11880c7 in QAbstractButton::clicked ()
   from /usr/lib64/libQtGui.so.4
#49 0x00002aefc0f2b30b in QObject::disconnectNotify ()
   from /usr/lib64/libQtGui.so.4
#50 0x00002aefc0f2cc22 in QObject::disconnectNotify ()
   from /usr/lib64/libQtGui.so.4
#51 0x00002aefc0f2ce55 in QAbstractButton::mouseReleaseEvent ()
   from /usr/lib64/libQtGui.so.4
#52 0x00002aefc0c89b04 in QWidget::event () from /usr/lib64/libQtGui.so.4
#53 0x00002aefc0c371cd in QApplicationPrivate::notify_helper ()
   from /usr/lib64/libQtGui.so.4
#54 0x00002aefc0c3ed56 in QApplication::notify ()
   from /usr/lib64/libQtGui.so.4
#55 0x00002aefbfe579db in KApplication::notify ()
   from /usr/lib64/libkdeui.so.5
#56 0x00002aefc07b3e0c in QCoreApplication::notifyInternal ()
   from /usr/lib64/libQtCore.so.4
#57 0x00002aefc0c3e0d2 in QApplicationPrivate::sendMouseEvent ()
   from /usr/lib64/libQtGui.so.4
#58 0x00002aefc0c9b98c in QObject::disconnectNotify ()
   from /usr/lib64/libQtGui.so.4
#59 0x00002aefc0c9a55b in QApplication::x11ProcessEvent ()
   from /usr/lib64/libQtGui.so.4
#60 0x00002aefc0cbf9d8 in QObject::disconnectNotify ()
   from /usr/lib64/libQtGui.so.4
#61 0x00002aefc07b2a32 in QEventLoop::processEvents ()
   from /usr/lib64/libQtCore.so.4
#62 0x00002aefc07b2bc5 in QEventLoop::exec () from /usr/lib64/libQtCore.so.4
#63 0x00002aefc07b7937 in QCoreApplication::exec ()
   from /usr/lib64/libQtCore.so.4
#64 0x0000000000404534 in _start ()
#0  0x00002aefc18d5660 in nanosleep () from /lib64/libc.so.6

When disabling:
#5  0x00002abb90ca2945 in raise () from /lib64/libc.so.6
#6  0x00002abb90ca4173 in abort () from /lib64/libc.so.6
#7  0x00002abb8fb08405 in qt_message_output () from /usr/lib64/libQtCore.so.4
#8  0x00002abb8fb0852d in qFatal () from /usr/lib64/libQtCore.so.4
#9  0x00002abb904ee88d in QObject::disconnectNotify ()
   from /usr/lib64/libQtGui.so.4
#10 0x00002abb904ef0ef in QTreeView::rowsAboutToBeRemoved ()
   from /usr/lib64/libQtGui.so.4
#11 0x00002abb904b7aef in QAbstractItemView::qt_metacall ()
   from /usr/lib64/libQtGui.so.4
#12 0x00002abb904f6075 in QTreeView::qt_metacall ()
   from /usr/lib64/libQtGui.so.4
#13 0x00002abb9052a845 in QTreeWidget::qt_metacall ()
   from /usr/lib64/libQtGui.so.4
#14 0x00002abb8eb975c6 in KPIM::TreeWidget::qt_metacall ()
   from /usr/lib64/libkdepim.so.4
#15 0x00002abba4dff955 in QObject::disconnectNotify ()
   from /usr/lib64/libkmailprivate.so.4
#16 0x00002abb8fc04cb0 in QMetaObject::activate ()
   from /usr/lib64/libQtCore.so.4
#17 0x00002abb8fc36a54 in QAbstractItemModel::rowsAboutToBeRemoved ()
   from /usr/lib64/libQtCore.so.4
#18 0x00002abb8fbeb0cc in QAbstractItemModel::beginRemoveRows ()
   from /usr/lib64/libQtCore.so.4
#19 0x00002abb90522732 in QObject::disconnectNotify ()
   from /usr/lib64/libQtGui.so.4
#20 0x00002abb905241bc in QTreeWidgetItem::takeChild ()
   from /usr/lib64/libQtGui.so.4
#21 0x00002abba4dfe207 in QObject::disconnectNotify ()
   from /usr/lib64/libkmailprivate.so.4
#22 0x00002abba4e3b09a in QObject::disconnectNotify ()
   from /usr/lib64/libkmailprivate.so.4
#23 0x00002abba4e3b13a in QObject::disconnectNotify ()
   from /usr/lib64/libkmailprivate.so.4
#24 0x00002abba4ca0a02 in QObject::disconnectNotify ()
   from /usr/lib64/libkmailprivate.so.4
#25 0x00002abba4c9a84f in QObject::disconnectNotify ()
   from /usr/lib64/libkmailprivate.so.4
#26 0x00002abba4c9aa25 in QObject::disconnectNotify ()
   from /usr/lib64/libkmailprivate.so.4
#27 0x00002abba4c9b425 in QObject::disconnectNotify ()
   from /usr/lib64/libkmailprivate.so.4
#28 0x00002abba4c8fd60 in QObject::disconnectNotify ()
   from /usr/lib64/libkmailprivate.so.4
#29 0x00002abba4e7a6ec in KMMainWidget::readConfig ()
   from /usr/lib64/libkmailprivate.so.4
#30 0x00002abba4e8e8fd in KMMainWidget::qt_metacall ()
   from /usr/lib64/libkmailprivate.so.4
#31 0x00002abb8fc04cb0 in QMetaObject::activate ()
   from /usr/lib64/libQtCore.so.4
#32 0x00002abba4db1eb5 in KMKernel::qt_metacall ()
   from /usr/lib64/libkmailprivate.so.4
#33 0x00002abb8fc04cb0 in QMetaObject::activate ()
   from /usr/lib64/libQtCore.so.4
#34 0x00002abb91909a26 in QObject::disconnectNotify ()
   from /usr/lib64/libkutils.so.4
#35 0x00002abb91909c07 in KCMultiDialog::slotOkClicked ()
   from /usr/lib64/libkutils.so.4
#36 0x00002abb9190c158 in KCMultiDialog::qt_metacall ()
   from /usr/lib64/libkutils.so.4
#37 0x00002abba4bab785 in QObject::disconnectNotify ()
   from /usr/lib64/libkmailprivate.so.4
#38 0x00002abb8fc04cb0 in QMetaObject::activate ()
   from /usr/lib64/libQtCore.so.4
#39 0x00002abb8f202b08 in KDialog::slotButtonClicked ()
   from /usr/lib64/libkdeui.so.5
#40 0x00002abb8f202c8d in KDialog::qt_metacall ()
   from /usr/lib64/libkdeui.so.5
#41 0x00002abb8f2be496 in KPageDialog::qt_metacall ()
   from /usr/lib64/libkdeui.so.5
#42 0x00002abb9190c0a5 in KCMultiDialog::qt_metacall ()
   from /usr/lib64/libkutils.so.4
#43 0x00002abba4bab785 in QObject::disconnectNotify ()
   from /usr/lib64/libkmailprivate.so.4
#44 0x00002abb8fc04cb0 in QMetaObject::activate ()
   from /usr/lib64/libQtCore.so.4
#45 0x00002abb8fc085be in QSignalMapper::mapped ()
   from /usr/lib64/libQtCore.so.4
#46 0x00002abb8fc08660 in QSignalMapper::map () from /usr/lib64/libQtCore.so.4
#47 0x00002abb8fc09a60 in QSignalMapper::qt_metacall ()
   from /usr/lib64/libQtCore.so.4
#48 0x00002abb8fc04cb0 in QMetaObject::activate ()
   from /usr/lib64/libQtCore.so.4
#49 0x00002abb905c40c7 in QAbstractButton::clicked ()
   from /usr/lib64/libQtGui.so.4
#50 0x00002abb9036730b in QObject::disconnectNotify ()
   from /usr/lib64/libQtGui.so.4
#51 0x00002abb90368c22 in QObject::disconnectNotify ()
   from /usr/lib64/libQtGui.so.4
#52 0x00002abb90368e55 in QAbstractButton::mouseReleaseEvent ()
   from /usr/lib64/libQtGui.so.4
#53 0x00002abb900c5b04 in QWidget::event () from /usr/lib64/libQtGui.so.4
#54 0x00002abb900731cd in QApplicationPrivate::notify_helper ()
   from /usr/lib64/libQtGui.so.4
#55 0x00002abb9007ad56 in QApplication::notify ()
   from /usr/lib64/libQtGui.so.4
#56 0x00002abb8f2939db in KApplication::notify ()
   from /usr/lib64/libkdeui.so.5
#57 0x00002abb8fbefe0c in QCoreApplication::notifyInternal ()
   from /usr/lib64/libQtCore.so.4
#58 0x00002abb9007a0d2 in QApplicationPrivate::sendMouseEvent ()
   from /usr/lib64/libQtGui.so.4
#59 0x00002abb900d798c in QObject::disconnectNotify ()
   from /usr/lib64/libQtGui.so.4
#60 0x00002abb900d655b in QApplication::x11ProcessEvent ()
   from /usr/lib64/libQtGui.so.4
#61 0x00002abb900fb9d8 in QObject::disconnectNotify ()
   from /usr/lib64/libQtGui.so.4
#62 0x00002abb8fbeea32 in QEventLoop::processEvents ()
   from /usr/lib64/libQtCore.so.4
#63 0x00002abb8fbeebc5 in QEventLoop::exec () from /usr/lib64/libQtCore.so.4
#64 0x00002abb8fbf3937 in QCoreApplication::exec ()
   from /usr/lib64/libQtCore.so.4
#65 0x0000000000404534 in _start ()
#0  0x00002abb90d11660 in nanosleep () from /lib64/libc.so.6
Comment 3 Frederik Himpe 2008-07-09 19:47:35 UTC
Still happens with 4.0.85. It does not always happen from the first time though: switching the setting between Always and Never a few times (without even closing the dialog, just clicking on the Apply button in between), should be enough to trigger this bug after two or three times.

It seems drkonqi is broken on Mandriva currently, so I cannot get a backtrace at all anymore (at  the console it says "Unable to start dr. konqi"). Is there a way to disable drkoni completely and just use plain gdb? Then I can provide you a full backtrace.
Comment 4 Frederik Himpe 2008-07-09 20:42:39 UTC
And I just discovered --nofork --nocrashhandler which does exactly what I need. I hope this helps:

(gdb) bt
#0  0x00007fc9b73af5be in QTreeViewPrivate::rowsRemoved (this=0x24d58b0, parent=@0x7fffc15f3b40, start=1, end=1,
    after=false) at ../../src/corelib/tools/qalgorithms.h:84
#1  0x00007fc9b73af86f in QTreeView::rowsAboutToBeRemoved (this=0x249f7f0, parent=@0x268e230, start=50675696,
    end=50675664) at itemviews/qtreeview.cpp:2425
#2  0x00007fc9b7379a0f in QAbstractItemView::qt_metacall (this=0x249f7f0, _c=QMetaObject::InvokeMetaMethod,
    _id=<value optimized out>, _a=0x7fffc15f3a90) at .moc/release-shared/moc_qabstractitemview.cpp:225
#3  0x00007fc9b73b94f5 in QTreeView::qt_metacall (this=0x268e200, _c=40428080, _id=50675696, _a=0x3053fd0)
    at .moc/release-shared/moc_qtreeview.cpp:121
#4  0x00007fc9b73efb35 in QTreeWidget::qt_metacall (this=0x268e200, _c=40428080, _id=50675696, _a=0x3053fd0)
    at .moc/release-shared/moc_qtreewidget.cpp:123
#5  0x00007fc9b876a9d6 in KPIM::TreeWidget::qt_metacall (this=0x268e200, _c=40428080, _id=50675696, _a=0x3053fd0)
    at /usr/src/debug/kdepim-4.0.85/build/libkdepim/moc_treewidget.cpp:63
#6  0x00007fc9b8db75f5 in KMMimePartTree::qt_metacall (this=0x268e200, _c=40428080, _id=50675696, _a=0x3053fd0)
    at /usr/src/debug/kdepim-4.0.85/build/kmail/kmmimeparttree.moc:78
#7  0x00007fc9b79eed74 in QMetaObject::activate (sender=0x24589c0, from_signal_index=<value optimized out>,
    to_signal_index=10, argv=0x3053fd0) at kernel/qobject.cpp:3010
#8  0x00007fc9b7a25014 in QAbstractItemModel::rowsAboutToBeRemoved (this=0x268e200, _t1=<value optimized out>,
    _t2=1, _t3=1) at .moc/release-shared/moc_qabstractitemmodel.cpp:164
#9  0x00007fc9b79d55c3 in QAbstractItemModel::beginRemoveRows (this=0x24589c0, parent=@0x7fffc15f3b40, first=1,
    last=1) at kernel/qabstractitemmodel.cpp:2121
#10 0x00007fc9b73e431c in QTreeModel::beginRemoveItems (this=0x24589c0, parent=0x2b5d780, row=1, count=1)
    at itemviews/qtreewidget.cpp:815
#11 0x00007fc9b73e867a in QTreeWidgetItem::takeChild (this=0x2b5d780, index=1) at itemviews/qtreewidget.cpp:1923
#12 0x00007fc9b8db5e8f in KMMimePartTreeItem (this=0x2bad530, parent=0x2b5d780, node=0x2bb0290,
    description=@0x7fffc15f3ee0, mimetype=@0x7fffc15f3ed0, encoding=@0x7fffc15f3ec0, size=334, revertOrder=false)
    at /usr/src/debug/kdepim-4.0.85/kmail/kmmimeparttree.cpp:393
#13 0x00007fc9b8df3a3a in partNode::fillMimePartTree (this=0x2bb0290, parentItem=0x2b5d780, mimePartTree=0x0,
    labelDescr=<value optimized out>, labelCntType=<value optimized out>, labelEncoding=@0x7fffc15f4050, size=0,
    revertOrder=<value optimized out>) at /usr/src/debug/kdepim-4.0.85/kmail/partNode.cpp:505
#14 0x00007fc9b8df3ada in partNode::fillMimePartTree (this=0x26a28d0, parentItem=0x0, mimePartTree=0x249f7f0,
    labelDescr=<value optimized out>, labelCntType=<value optimized out>, labelEncoding=@0x7fffc15f47a0,
    size=374, revertOrder=false) at /usr/src/debug/kdepim-4.0.85/kmail/partNode.cpp:517
#15 0x00007fc9b8c58912 in KMReaderWin::parseMsg (this=0x243ab50, aMsg=0x2b3c080)
    at /usr/src/debug/kdepim-4.0.85/kmail/kmreaderwin.cpp:1528
#16 0x00007fc9b8c527bf in KMReaderWin::displayMessage (this=0x243ab50)
    at /usr/src/debug/kdepim-4.0.85/kmail/kmreaderwin.cpp:1484
#17 0x00007fc9b8c52995 in KMReaderWin::updateReaderWin (this=0x243ab50)
    at /usr/src/debug/kdepim-4.0.85/kmail/kmreaderwin.cpp:1424
#18 0x00007fc9b8c53395 in KMReaderWin::setMsg (this=0x243ab50, aMsg=0x2b3c080, force=true)
    at /usr/src/debug/kdepim-4.0.85/kmail/kmreaderwin.cpp:1226
#19 0x00007fc9b8c47cd0 in KMReaderWin::readConfig (this=0x243ab50)
    at /usr/src/debug/kdepim-4.0.85/kmail/kmreaderwin.cpp:942
#20 0x00007fc9b8e32fbc in KMMainWidget::readConfig (this=0x1f32400)
    at /usr/src/debug/kdepim-4.0.85/kmail/kmmainwidget.cpp:607
#21 0x00007fc9b8e473dd in KMMainWidget::qt_metacall (this=0x1f32400, _c=QMetaObject::InvokeMetaMethod,
    _id=<value optimized out>, _a=0x7fffc15f4f20) at /usr/src/debug/kdepim-4.0.85/build/kmail/kmmainwidget.moc:464
#22 0x00007fc9b79eed74 in QMetaObject::activate (sender=0x7fffc15f6c50, from_signal_index=<value optimized out>,
    to_signal_index=5, argv=0x3053fd0) at kernel/qobject.cpp:3010
#23 0x00007fc9b8d6a085 in KMKernel::qt_metacall (this=0x7fffc15f6c50, _c=QMetaObject::InvokeMetaMethod,
    _id=<value optimized out>, _a=0x7fffc15f50d0) at /usr/src/debug/kdepim-4.0.85/build/kmail/kmkernel.moc:226
#24 0x00007fc9b79eed74 in QMetaObject::activate (sender=0x2b902b0, from_signal_index=<value optimized out>,
    to_signal_index=73, argv=0x3053fd0) at kernel/qobject.cpp:3010
#25 0x00007fc9b44a7b07 in KCMultiDialogPrivate::apply (this=<value optimized out>)
    at /usr/src/debug/kdelibs-4.0.85/kutils/kcmultidialog.cpp:212
#26 0x00007fc9b44aa258 in KCMultiDialog::qt_metacall (this=0x2b902b0, _c=QMetaObject::InvokeMetaMethod,
    _id=<value optimized out>, _a=0x7fffc15f52e0)
    at /usr/src/debug/kdelibs-4.0.85/build/kutils/kcmultidialog.moc:86
#27 0x00007fc9b8b63475 in ConfigureDialog::qt_metacall (this=0x268e200, _c=40428080, _id=50675696, _a=0x3053fd0)
    at /usr/src/debug/kdepim-4.0.85/build/kmail/configuredialog.moc:67
#28 0x00007fc9b79eed74 in QMetaObject::activate (sender=0x2b902b0, from_signal_index=<value optimized out>,
    to_signal_index=42, argv=0x3053fd0) at kernel/qobject.cpp:3010
#29 0x00007fc9b8292b45 in KDialog::slotButtonClicked (this=0x2b902b0, button=8)
    at /usr/src/debug/kdelibs-4.0.85/kdeui/dialogs/kdialog.cpp:848
#30 0x00007fc9b8292ded in KDialog::qt_metacall (this=0x2b902b0, _c=QMetaObject::InvokeMetaMethod,
    _id=<value optimized out>, _a=0x7fffc15f5510) at /usr/src/debug/kdelibs-4.0.85/build/kdeui/kdialog.moc:181
#31 0x00007fc9b834ee76 in KPageDialog::qt_metacall (this=0x268e200, _c=40428080, _id=50675696, _a=0x3053fd0)
    at /usr/src/debug/kdelibs-4.0.85/build/kdeui/kpagedialog.moc:63
#32 0x00007fc9b44aa195 in KCMultiDialog::qt_metacall (this=0x268e200, _c=40428080, _id=50675696, _a=0x3053fd0)
    at /usr/src/debug/kdelibs-4.0.85/build/kutils/kcmultidialog.moc:77
#33 0x00007fc9b8b63475 in ConfigureDialog::qt_metacall (this=0x268e200, _c=40428080, _id=50675696, _a=0x3053fd0)
    at /usr/src/debug/kdepim-4.0.85/build/kmail/configuredialog.moc:67
#34 0x00007fc9b79eed74 in QMetaObject::activate (sender=0x28087a8, from_signal_index=<value optimized out>,
    to_signal_index=4, argv=0x3053fd0) at kernel/qobject.cpp:3010
#35 0x00007fc9b79f2ace in QSignalMapper::mapped (this=0x268e200, _t1=8)
    at .moc/release-shared/moc_qsignalmapper.cpp:93
#36 0x00007fc9b79f3370 in QSignalMapper::map (this=0x28087a8, sender=0x2d0dfa0) at kernel/qsignalmapper.cpp:277
#37 0x00007fc9b79f3f60 in QSignalMapper::qt_metacall (this=0x28087a8, _c=QMetaObject::InvokeMetaMethod,
    _id=<value optimized out>, _a=0x7fffc15f5690) at .moc/release-shared/moc_qsignalmapper.cpp:80
#38 0x00007fc9b79eed74 in QMetaObject::activate (sender=0x2d0dfa0, from_signal_index=<value optimized out>,
    to_signal_index=30, argv=0x3053fd0) at kernel/qobject.cpp:3010
#39 0x00007fc9b748d197 in QAbstractButton::clicked (this=0x268e200, _t1=false)
    at .moc/release-shared/moc_qabstractbutton.cpp:185
#40 0x00007fc9b7212aeb in QAbstractButtonPrivate::emitClicked (this=0x2d3d550) at widgets/qabstractbutton.cpp:543
#41 0x00007fc9b7214632 in QAbstractButtonPrivate::click (this=0x2d3d550) at widgets/qabstractbutton.cpp:536
#42 0x00007fc9b7214885 in QAbstractButton::mouseReleaseEvent (this=0x2d0dfa0, e=0x7fffc15f5e40)
    at widgets/qabstractbutton.cpp:1112
#43 0x00007fc9b6f6043f in QWidget::event (this=0x2d0dfa0, event=0x7fffc15f5e40) at kernel/qwidget.cpp:6927
#44 0x00007fc9b6f0debd in QApplicationPrivate::notify_helper (this=0x1c72270, receiver=0x2d0dfa0,
    e=0x7fffc15f5e40) at kernel/qapplication.cpp:3772
#45 0x00007fc9b6f163fc in QApplication::notify (this=<value optimized out>, receiver=0x2d0dfa0, e=0x7fffc15f5e40)
    at kernel/qapplication.cpp:3501
#46 0x00007fc9b8323eeb in KApplication::notify (this=0x7fffc15f6da0, receiver=0x2d0dfa0, event=0x7fffc15f5e40)
    at /usr/src/debug/kdelibs-4.0.85/kdeui/kernel/kapplication.cpp:311
#47 0x00007fc9b79da99f in QCoreApplication::notifyInternal (this=0x7fffc15f6da0, receiver=0x2d0dfa0,
    event=0x7fffc15f5e40) at kernel/qcoreapplication.cpp:587
#48 0x00007fc9b6f157a8 in QApplicationPrivate::sendMouseEvent (receiver=0x2d0dfa0, event=0x7fffc15f5e40,
    alienWidget=0x2d0dfa0, nativeWidget=0x2b902b0, buttonDown=<value optimized out>,
    lastMouseReceiver=@0x7fc9b7888fc0) at ../../src/corelib/kernel/qcoreapplication.h:218
#49 0x00007fc9b6f79839 in QETWidget::translateMouseEvent (this=0x2b902b0, event=<value optimized out>)
    at kernel/qapplication_x11.cpp:4133
#50 0x00007fc9b6f78277 in QApplication::x11ProcessEvent (this=0x1a6, event=0x7fffc15f68c0)
    at kernel/qapplication_x11.cpp:3255
#51 0x00007fc9b6f9ed9c in x11EventSourceDispatch (s=0x1c75640, callback=0, user_data=0x0)
    at kernel/qguieventdispatcher_glib.cpp:148
#52 0x00007fc9aeef57d2 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#53 0x00007fc9aeef8f6d in ?? () from /usr/lib64/libglib-2.0.so.0
#54 0x00007fc9aeef912b in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#55 0x00007fc9b7a02ddf in QEventDispatcherGlib::processEvents (this=0x1c63c60, flags=<value optimized out>)
    at kernel/qeventdispatcher_glib.cpp:325
#56 0x00007fc9b6f9e50f in QGuiEventDispatcherGlib::processEvents (this=0x268e200, flags=<value optimized out>)
    at kernel/qguieventdispatcher_glib.cpp:204
#57 0x00007fc9b79d92b2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -1050711120})
    at kernel/qeventloop.cpp:149
#58 0x00007fc9b79d943d in QEventLoop::exec (this=0x7fffc15f6bf0, flags={i = -1050711040})
    at kernel/qeventloop.cpp:200
#59 0x00007fc9b79db90d in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845
#60 0x0000000000402cb4 in main (argc=<value optimized out>, argv=<value optimized out>)
    at /usr/src/debug/kdepim-4.0.85/kmail/main.cpp:130
Comment 5 Thomas McGuire 2008-07-14 17:11:12 UTC
I can still not reproduce this with the RC1 version. I tried changing between "show never" and "show always" about ten times, and didn't see a crash.
Comment 6 Frederik Himpe 2008-07-14 21:29:32 UTC
Created attachment 26126 [details]
kmail execution log and backtrace

Still happens for me with KDE 4.1 RC 1, just switching from show never to show
always was enough. Complete log and backtrace inside gdb attached.
Comment 7 Allen Winter 2008-07-15 14:47:57 UTC
I was able to make kmail crash by changing the configuration layout to put the message structure viewer below the message pane and clicking ok.

restarting kmail, then putting the message structure viewer above the message pane didn't crash though.

Strangely, no drkonqi and no backtrace.
Comment 8 John Stamp 2008-07-19 20:07:44 UTC
I'm able to reproduce this crash in RC1--same backtrace and everything--but only if the currently selected message is multipart.

Here's my steps:

Set the message structure viewer to "Show never"
Restart KMail
Select a multipart message
Open settings and click OK
Watch KMail crash

I can avoid crashes if I make sure to have a simple text/plain message selected before I click OK in the settings dialog.
Comment 9 Thomas McGuire 2008-07-24 21:11:06 UTC
SVN commit 837476 by tmcguire:

setUpdatesEnabled+QTreeView=Bad

This probably fixes
BUG: 163228


 M  +0 -3      kmmainwidget.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=837476
Comment 10 Thomas McGuire 2008-07-26 01:48:04 UTC
SVN commit 837902 by tmcguire:

Backport r837476 by tmcguire to the 4.1 branch:

setUpdatesEnabled+QTreeView=Bad

This probably fixes
CCBUG: 163228



 M  +0 -3      kmmainwidget.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=837902
Comment 11 Thomas McGuire 2008-07-30 15:57:32 UTC
*** Bug 167741 has been marked as a duplicate of this bug. ***
Comment 12 Thomas McGuire 2008-07-31 23:19:56 UTC
*** Bug 167896 has been marked as a duplicate of this bug. ***