Bug 231155 - kmail crashs when trying to configure filters
Summary: kmail crashs when trying to configure filters
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.13.1
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-17 21:58 UTC by Danny Auble
Modified: 2012-08-19 10:57 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Danny Auble 2010-03-17 21:58:37 UTC
Version:           1.13.1 (using 4.4.1 (KDE 4.4.1), Kubuntu packages)
Compiler:          cc
OS:                Linux (x86_64) release 2.6.31-20-generic

I was moving folders around and then went to edit the filters and kmail crashes every time I go to the 'Configure Filters' tab.  Here is a very small section of the backtrace...

#0  0x00007f202b3080c4 in QTextEngine::itemize (this=0x16a8160) at text/qtextengine.cpp:1394
#1  0x00007f202b309496 in QTextEngine::attributes (this=<value optimized out>) at text/qtextengine.cpp:1320
#2  0x00007f202b3109a6 in QTextLine::layout_helper (this=0x7fff7cd0a100, maxGlyphs=2147483647)
    at text/qtextlayout.cpp:1739
#3  0x00007f202b3af104 in QCommonStylePrivate::viewItemSize (this=<value optimized out>, 
    option=<value optimized out>, role=<value optimized out>) at styles/qcommonstyle.cpp:881
#4  0x00007f202b3af250 in QCommonStylePrivate::viewItemLayout (this=0x8bc430, opt=0x7fff7cd0a500, 
    checkRect=0x7fff7cd0a2f0, pixmapRect=0x7fff7cd0a310, textRect=0x7fff7cd0a300, sizehint=true)
    at styles/qcommonstyle.cpp:1006
#5  0x00007f202b3afc6e in QCommonStyle::sizeFromContents (this=<value optimized out>, ct=<value optimized out>, 
    opt=0x7fff7cd0a500, csz=<value optimized out>, widget=<value optimized out>) at styles/qcommonstyle.cpp:4857
#6  0x00007f202b44ecd4 in QWindowsStyle::sizeFromContents (this=0x8bbba0, ct=2147483647, opt=0x7fff7cd0a500, 
    csz=..., widget=0x14e9c70) at styles/qwindowsstyle.cpp:3240
#7  0x00007f201c71d83b in ?? () from /usr/lib/kde4/plugins/styles/qtcurve.so
#8  0x00007f202b684abe in QStyledItemDelegate::sizeHint (this=0x15350e0, option=..., index=<value optimized out>)
    at itemviews/qstyleditemdelegate.cpp:448
#9  0x00007f202b5f5993 in QListViewPrivate::itemSize (this=0x14e9640, option=..., index=...)
    at itemviews/qlistview.cpp:1780
#10 0x00007f202b5fbd83 in QListView::updateGeometries (this=0x14e9c70) at itemviews/qlistview.cpp:1482
#11 0x00007f202b107114 in QWidget::event (this=0x14e9c70, event=0x7fff7cd0b390) at kernel/qwidget.cpp:8152
#12 0x00007f202b4ad956 in QFrame::event (this=0x14e9c70, e=0x7fff7cd0b390) at widgets/qframe.cpp:557
#13 0x00007f202b5dce9b in QAbstractItemView::viewportEvent (this=0x14e9c70, event=0x7fff7cd0b390)
    at itemviews/qabstractitemview.cpp:1610
#14 0x00007f202bcf6227 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, 
---Type <return> to continue, or q <return> to quit---
    receiver=0x1609a40, event=0x7fff7cd0b390) at kernel/qcoreapplication.cpp:819
#15 0x00007f202b0b10fc in QApplicationPrivate::notify_helper (this=0x80a670, receiver=0x1609a40, e=0x7fff7cd0b390)
    at kernel/qapplication.cpp:4296
#16 0x00007f202b0b771b in QApplication::notify (this=0x7fff7d702a30, receiver=0x1609a40, e=0x7fff7cd0b390)
    at kernel/qapplication.cpp:4183
#17 0x00007f202c6e6d76 in KApplication::notify (this=0x7fff7d702a30, receiver=0x1609a40, event=0x7fff7cd0b390)
    at ../../kdeui/kernel/kapplication.cpp:302
#18 0x00007f202bcf6e0c in QCoreApplication::notifyInternal (this=0x7fff7d702a30, receiver=0x1609a40, 
    event=0x7fff7cd0b390) at kernel/qcoreapplication.cpp:704
#19 0x00007f202b1548c4 in QCoreApplication::sendEvent (this=0x14e01f0, x=<value optimized out>, y=2, 
    w=<value optimized out>, h=0, isMove=<value optimized out>)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#20 QWidgetPrivate::setGeometry_sys (this=0x14e01f0, x=<value optimized out>, y=2, w=<value optimized out>, h=0, 
    isMove=<value optimized out>) at kernel/qwidget_x11.cpp:2597
#21 0x00007f202b1063fd in QWidget::setGeometry (this=0x1609a40, r=...) at kernel/qwidget.cpp:6635
#22 0x00007f202b538928 in QAbstractScrollAreaPrivate::layoutChildren (this=0x14e9640)
    at widgets/qabstractscrollarea.cpp:478
#23 0x00007f202b539075 in QAbstractScrollArea::event (this=0x14e9c70, e=0x7fffffff)
    at widgets/qabstractscrollarea.cpp:920
#24 0x00007f202b5d5b3b in QAbstractItemView::event (this=0x14e9c70, event=0x7fff7cd0bdc0)
    at itemviews/qabstractitemview.cpp:1546
#25 0x00007f202b0b112c in QApplicationPrivate::notify_helper (this=0x80a670, receiver=0x14e9c70, e=0x7fff7cd0bdc0)
    at kernel/qapplication.cpp:4300
#26 0x00007f202b0b771b in QApplication::notify (this=0x7fff7d702a30, receiver=0x14e9c70, e=0x7fff7cd0bdc0)
---Type <return> to continue, or q <return> to quit--- 
    at kernel/qapplication.cpp:4183
#27 0x00007f202c6e6d76 in KApplication::notify (this=0x7fff7d702a30, receiver=0x14e9c70, event=0x7fff7cd0bdc0)
    at ../../kdeui/kernel/kapplication.cpp:302
#28 0x00007f202bcf6e0c in QCoreApplication::notifyInternal (this=0x7fff7d702a30, receiver=0x14e9c70, 
    event=0x7fff7cd0bdc0) at kernel/qcoreapplication.cpp:704
#29 0x00007f202b10b47a in QCoreApplication::sendEvent (this=0x14e9c70, left=<value optimized out>, 
    top=<value optimized out>, right=<value optimized out>, bottom=<value optimized out>)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#30 QWidget::setContentsMargins (this=0x14e9c70, left=<value optimized out>, top=<value optimized out>, 
    right=<value optimized out>, bottom=<value optimized out>) at kernel/qwidget.cpp:6843
#31 0x00007f202b538c02 in QAbstractScrollAreaPrivate::layoutChildren (this=0x14e9640)
    at widgets/qabstractscrollarea.cpp:401
#32 0x00007f202b5fbe54 in QListView::updateGeometries (this=0x14e9c70) at itemviews/qlistview.cpp:1491
#33 0x00007f202b107114 in QWidget::event (this=0x14e9c70, event=0x7fff7cd0ccc0) at kernel/qwidget.cpp:8152
#34 0x00007f202b4ad956 in QFrame::event (this=0x14e9c70, e=0x7fff7cd0ccc0) at widgets/qframe.cpp:557
#35 0x00007f202b5dce9b in QAbstractItemView::viewportEvent (this=0x14e9c70, event=0x7fff7cd0ccc0)
    at itemviews/qabstractitemview.cpp:1610
#36 0x00007f202bcf6227 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, 
    receiver=0x1609a40, event=0x7fff7cd0ccc0) at kernel/qcoreapplication.cpp:819
#37 0x00007f202b0b10fc in QApplicationPrivate::notify_helper (this=0x80a670, receiver=0x1609a40, e=0x7fff7cd0ccc0)
    at kernel/qapplication.cpp:4296
#38 0x00007f202b0b771b in QApplication::notify (this=0x7fff7d702a30, receiver=0x1609a40, e=0x7fff7cd0ccc0)
    at kernel/qapplication.cpp:4183
#39 0x00007f202c6e6d76 in KApplication::notify (this=0x7fff7d702a30, receiver=0x1609a40, event=0x7fff7cd0ccc0)
---Type <return> to continue, or q <return> to quit---
    at ../../kdeui/kernel/kapplication.cpp:302
#40 0x00007f202bcf6e0c in QCoreApplication::notifyInternal (this=0x7fff7d702a30, receiver=0x1609a40, 
    event=0x7fff7cd0ccc0) at kernel/qcoreapplication.cpp:704
#41 0x00007f202b1548c4 in QCoreApplication::sendEvent (this=0x14e01f0, x=<value optimized out>, y=2, 
    w=<value optimized out>, h=0, isMove=<value optimized out>)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#42 QWidgetPrivate::setGeometry_sys (this=0x14e01f0, x=<value optimized out>, y=2, w=<value optimized out>, h=0, 
    isMove=<value optimized out>) at kernel/qwidget_x11.cpp:2597
#43 0x00007f202b1063fd in QWidget::setGeometry (this=0x1609a40, r=...) at kernel/qwidget.cpp:6635
#44 0x00007f202b538928 in QAbstractScrollAreaPrivate::layoutChildren (this=0x14e9640)
    at widgets/qabstractscrollarea.cpp:478
#45 0x00007f202b539075 in QAbstractScrollArea::event (this=0x14e9c70, e=0x7fffffff)
    at widgets/qabstractscrollarea.cpp:920
#46 0x00007f202b5d5b3b in QAbstractItemView::event (this=0x14e9c70, event=0x7fff7cd0d6f0)
    at itemviews/qabstractitemview.cpp:1546
#47 0x00007f202b0b112c in QApplicationPrivate::notify_helper (this=0x80a670, receiver=0x14e9c70, e=0x7fff7cd0d6f0)
    at kernel/qapplication.cpp:4300
#48 0x00007f202b0b771b in QApplication::notify (this=0x7fff7d702a30, receiver=0x14e9c70, e=0x7fff7cd0d6f0)
    at kernel/qapplication.cpp:4183
#49 0x00007f202c6e6d76 in KApplication::notify (this=0x7fff7d702a30, receiver=0x14e9c70, event=0x7fff7cd0d6f0)
    at ../../kdeui/kernel/kapplication.cpp:302
#50 0x00007f202bcf6e0c in QCoreApplication::notifyInternal (this=0x7fff7d702a30, receiver=0x14e9c70, 
    event=0x7fff7cd0d6f0) at kernel/qcoreapplication.cpp:704
#51 0x00007f202b10b47a in QCoreApplication::sendEvent (this=0x14e9c70, left=<value optimized out>, 
---Type <return> to continue, or q <return> to quit---
    top=<value optimized out>, right=<value optimized out>, bottom=<value optimized out>)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#52 QWidget::setContentsMargins (this=0x14e9c70, left=<value optimized out>, top=<value optimized out>, 
    right=<value optimized out>, bottom=<value optimized out>) at kernel/qwidget.cpp:6843
#53 0x00007f202b538c02 in QAbstractScrollAreaPrivate::layoutChildren (this=0x14e9640)
    at widgets/qabstractscrollarea.cpp:401
#54 0x00007f202b5fbe54 in QListView::updateGeometries (this=0x14e9c70) at itemviews/qlistview.cpp:1491
#55 0x00007f202b107114 in QWidget::event (this=0x14e9c70, event=0x7fff7cd0e5f0) at kernel/qwidget.cpp:8152
#56 0x00007f202b4ad956 in QFrame::event (this=0x14e9c70, e=0x7fff7cd0e5f0) at widgets/qframe.cpp:557
#57 0x00007f202b5dce9b in QAbstractItemView::viewportEvent (this=0x14e9c70, event=0x7fff7cd0e5f0)
    at itemviews/qabstractitemview.cpp:1610
#58 0x00007f202bcf6227 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, 
    receiver=0x1609a40, event=0x7fff7cd0e5f0) at kernel/qcoreapplication.cpp:819
#59 0x00007f202b0b10fc in QApplicationPrivate::notify_helper (this=0x80a670, receiver=0x1609a40, e=0x7fff7cd0e5f0)
    at kernel/qapplication.cpp:4296
#60 0x00007f202b0b771b in QApplication::notify (this=0x7fff7d702a30, receiver=0x1609a40, e=0x7fff7cd0e5f0)
    at kernel/qapplication.cpp:4183
Comment 1 Danny Auble 2010-05-06 21:48:31 UTC
when running kmail by it self I get this backtrace...

#0  0x00007f737bc7c5b6 in QVector<QScriptItem>::malloc (this=0x218ddb0, asize=0, aalloc=1)
    at ../../include/QtCore/../../src/corelib/tools/qvector.h:391
#1  QVector<QScriptItem>::realloc (this=0x218ddb0, asize=0, aalloc=1)
    at ../../include/QtCore/../../src/corelib/tools/qvector.h:468
#2  0x00007f737bd75f93 in QVector<QScriptItem>::append(QScriptItem const&) () from /usr/lib/libQtGui.so.4
#3  0x00007f737bd6ec27 in generateScriptItems (this=0x7ffff89904b0, start=5, length=4197, caps=QFont::MixedCase)
    at text/qtextengine.cpp:124
#4  generate (this=0x7ffff89904b0, start=5, length=4197, caps=QFont::MixedCase) at text/qtextengine.cpp:92
#5  0x00007f737bd708a8 in QTextEngine::itemize (this=<value optimized out>) at text/qtextengine.cpp:1514
#6  0x00007f737bd7686c in QTextLayout::beginLayout (this=0x7ffff8994600) at text/qtextlayout.cpp:608
#7  0x00007f737be16d0d in QCommonStylePrivate::viewItemSize (this=<value optimized out>, 
    option=<value optimized out>, role=<value optimized out>) at styles/qcommonstyle.cpp:876
#8  0x00007f737be16e80 in QCommonStylePrivate::viewItemLayout (this=0x1736580, opt=0x7ffff89949c0, 
    checkRect=0x7ffff89947b0, pixmapRect=0x7ffff89947d0, textRect=0x7ffff89947c0, sizehint=true)
    at styles/qcommonstyle.cpp:1006
#9  0x00007f737be178ae in QCommonStyle::sizeFromContents (this=<value optimized out>, ct=<value optimized out>, 
    opt=0x7ffff89949c0, csz=<value optimized out>, widget=<value optimized out>) at styles/qcommonstyle.cpp:4857
#10 0x00007f737beb6874 in QWindowsStyle::sizeFromContents (this=0x174e3b0, ct=QStyle::CT_MenuItem, 
    opt=0x7ffff89949c0, csz=..., widget=0x214c170) at styles/qwindowsstyle.cpp:3240
#11 0x00007f7368cc9c6b in ?? () from /usr/lib/kde4/plugins/styles/qtcurve.so
#12 0x00007f737c0ec6be in QStyledItemDelegate::sizeHint (this=0x235d250, option=..., index=<value optimized out>)
    at itemviews/qstyleditemdelegate.cpp:448
#13 0x00007f737c061803 in QListViewPrivate::itemSize (this=0x220a190, option=..., index=...)
    at itemviews/qlistview.cpp:1780
---Type <return> to continue, or q <return> to quit---
#14 0x00007f737c063713 in QListView::updateGeometries (this=0x214c170) at itemviews/qlistview.cpp:1482
#15 0x00007f737bb6e194 in QWidget::event (this=0x214c170, event=0x7ffff8995850) at kernel/qwidget.cpp:8152
#16 0x00007f737bf154e6 in QFrame::event (this=0x214c170, e=0x7ffff8995850) at widgets/qframe.cpp:557
#17 0x00007f737c04426b in QAbstractItemView::viewportEvent (this=0x214c170, event=0x7ffff8995850)
    at itemviews/qabstractitemview.cpp:1610
#18 0x00007f737b644487 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, 
    receiver=0x229c920, event=0x7ffff8995850) at kernel/qcoreapplication.cpp:819
#19 0x00007f737bb181fc in QApplicationPrivate::notify_helper (this=0x16cfa90, receiver=0x229c920, 
    e=0x7ffff8995850) at kernel/qapplication.cpp:4296
#20 0x00007f737bb1e6fb in QApplication::notify (this=0x7ffff938d000, receiver=0x229c920, e=0x7ffff8995850)
    at kernel/qapplication.cpp:4183
#21 0x00007f737dc1b536 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#22 0x00007f737b64506c in QCoreApplication::notifyInternal (this=0x7ffff938d000, receiver=0x229c920, 
    event=0x7ffff8995850) at kernel/qcoreapplication.cpp:704
Comment 2 Danny Auble 2010-07-07 21:11:08 UTC
It turns out it appears having 19 filters is to blame here.  If I have 20 everything seems to work, but then if I remove the last filter kmail cores in the fashion above.  If anyone is looking at this it would be nice to have it fixed :).
Comment 3 Myriam Schweingruber 2012-08-19 10:57:47 UTC
Thank you for your report. Kmail1 is currently unmaintained and the code has changed sufficiently in Kmail2 so the backtraces are not really useful anymore. Should you experience the same crash in Kmail 4.8.5 or later, please open a new report for Kmail2. Thank you for your understanding