Bug 251471 - crashed when closed an empty tab
Summary: crashed when closed an empty tab
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 2.0.90
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-16 17:58 UTC by Martin Airs
Modified: 2011-05-13 18:26 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (9.38 KB, text/plain)
2010-12-15 12:25 UTC, Alex Merry
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Airs 2010-09-16 17:58:33 UTC
Application: kmail (2.0 beta1)
KDE Platform Version: 4.5.1 (KDE 4.5.1)
Qt Version: 4.7.0
Operating System: Linux 2.6.34.6-54.fc13.x86_64 x86_64
Distribution: "Fedora release 13 (Goddard)"

-- Information about the crash:
- What I was doing when the application crashed:
I was in a mail folder and I searched for some text in the search box at the top
then I selected another mail folder while the text was still in the search box, the new mail folder showed up but the text in the search box at the top had frozen
then I opened a new tab and then there was my mail folder and an empty tab
I can close either tab and kmail will crash

The crash can be reproduced some of the time.

-- Backtrace:
Application: KMail (kmail), signal: Segmentation fault
82	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7fbf8b1f1820 (LWP 29432))]

Thread 2 (Thread 0x7fbf7f238710 (LWP 29437)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x0000003e4a40cb4e in ?? () from /usr/lib64/libQtWebKit.so.4
#2  0x0000003e4a40cc69 in ?? () from /usr/lib64/libQtWebKit.so.4
#3  0x00000034b4a07761 in start_thread (arg=0x7fbf7f238710) at pthread_create.c:301
#4  0x00000034b42e14ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7fbf8b1f1820 (LWP 29432)):
[KCrash Handler]
#6  0x0000003e41100b45 in QItemSelectionModel::selection() const () from /usr/lib64/libQtGui.so.4
#7  0x0000003e411029ad in QItemSelectionModel::selectedRows(int) const () from /usr/lib64/libQtGui.so.4
#8  0x0000003e48143276 in Akonadi::StandardActionManager::Private::updateActions() () from /usr/lib64/libakonadi-kde.so.4
#9  0x0000003e4813e1a6 in collectionSelectionChanged (this=<value optimized out>, _c=<value optimized out>, _id=3, _a=<value optimized out>)
    at /usr/src/debug/kdepimlibs-4.5.1/akonadi/standardactionmanager.cpp:294
#10 Akonadi::StandardActionManager::qt_metacall (this=<value optimized out>, _c=<value optimized out>, _id=3, _a=<value optimized out>)
    at /usr/src/debug/kdepimlibs-4.5.1/x86_64-redhat-linux-gnu/akonadi/standardactionmanager.moc:121
#11 0x0000003e3ef6e067 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#12 0x0000003e410fde27 in QItemSelectionModel::selectionChanged(QItemSelection const&, QItemSelection const&) () from /usr/lib64/libQtGui.so.4
#13 0x0000003e411004e5 in QItemSelectionModel::emitSelectionChanged(QItemSelection const&, QItemSelection const&) () from /usr/lib64/libQtGui.so.4
#14 0x0000003e41101ccb in QItemSelectionModel::select(QItemSelection const&, QFlags<QItemSelectionModel::SelectionFlag>) () from /usr/lib64/libQtGui.so.4
#15 0x0000003e4fc8983a in MessageList::Pane::Private::onCurrentTabChanged (this=0x1f86750) at /usr/src/debug/kdepim-4.4.93/messagelist/pane.cpp:364
#16 0x0000003e4fc8a95d in MessageList::Pane::qt_metacall (this=0x1fa78e0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff80efaee0)
    at /usr/src/debug/kdepim-4.4.93/x86_64-redhat-linux-gnu/messagelist/pane.moc:113
#17 0x0000003e3ef6e067 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#18 0x0000003e40ffe08e in QTabWidget::currentChanged(int) () from /usr/lib64/libQtGui.so.4
#19 0x0000003e40fff8ed in ?? () from /usr/lib64/libQtGui.so.4
#20 0x0000003e40fffba0 in QTabWidget::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libQtGui.so.4
#21 0x0000003e4fc8a780 in MessageList::Pane::qt_metacall (this=0x1fa78e0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff80efb090)
    at /usr/src/debug/kdepim-4.4.93/x86_64-redhat-linux-gnu/messagelist/pane.moc:96
#22 0x0000003e3ef6e067 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#23 0x0000003e40ff47fe in QTabBar::currentChanged(int) () from /usr/lib64/libQtGui.so.4
#24 0x0000003e40ffd4e6 in QTabBar::removeTab(int) () from /usr/lib64/libQtGui.so.4
#25 0x0000003e40fff440 in ?? () from /usr/lib64/libQtGui.so.4
#26 0x0000003e40fffb28 in QTabWidget::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libQtGui.so.4
#27 0x0000003e4fc8a780 in MessageList::Pane::qt_metacall (this=0x1fa78e0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff80efb270)
    at /usr/src/debug/kdepim-4.4.93/x86_64-redhat-linux-gnu/messagelist/pane.moc:96
#28 0x0000003e3ef6e067 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#29 0x0000003e41219551 in QStackedWidget::widgetRemoved(int) () from /usr/lib64/libQtGui.so.4
#30 0x0000003e412196ce in QStackedWidget::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libQtGui.so.4
#31 0x0000003e3ef6e067 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#32 0x0000003e41210bbe in QStackedLayout::widgetRemoved(int) () from /usr/lib64/libQtGui.so.4
#33 0x0000003e40bea25c in QStackedLayout::takeAt(int) () from /usr/lib64/libQtGui.so.4
#34 0x0000003e40bdd0d7 in ?? () from /usr/lib64/libQtGui.so.4
#35 0x0000003e40bb364e in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#36 0x0000003e40bb8cdd in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#37 0x0000003e42a1be66 in KApplication::notify (this=0x7fff80efd340, receiver=0x1f725a0, event=0x7fff80efb950) at /usr/src/debug/kdelibs-4.5.1/kdeui/kernel/kapplication.cpp:310
#38 0x0000003e3ef5790c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#39 0x0000003e3ef6a009 in QObjectPrivate::setParent_helper(QObject*) () from /usr/lib64/libQtCore.so.4
#40 0x0000003e3ef6ec8f in QObject::~QObject() () from /usr/lib64/libQtCore.so.4
#41 0x0000003e40c0275d in QWidget::~QWidget() () from /usr/lib64/libQtGui.so.4
#42 0x0000003e4fc90649 in MessageList::Widget::~Widget (this=0x1fa4880, __in_chrg=<value optimized out>) at /usr/src/debug/kdepim-4.4.93/messagelist/widget.cpp:87
#43 0x0000003e4fc883b8 in MessageList::Pane::Private::onCloseTabClicked (this=0x1f86750) at /usr/src/debug/kdepim-4.4.93/messagelist/pane.cpp:351
#44 0x0000003e4fc8a93d in MessageList::Pane::qt_metacall (this=0x1fa78e0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff80efbc30)
    at /usr/src/debug/kdepim-4.4.93/x86_64-redhat-linux-gnu/messagelist/pane.moc:112
#45 0x0000003e3ef6e067 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#46 0x0000003e412147f2 in QAbstractButton::clicked(bool) () from /usr/lib64/libQtGui.so.4
#47 0x0000003e40f5493b in ?? () from /usr/lib64/libQtGui.so.4
#48 0x0000003e40f55ccb in ?? () from /usr/lib64/libQtGui.so.4
#49 0x0000003e40f55f3c in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib64/libQtGui.so.4
#50 0x0000003e410141ba in QToolButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib64/libQtGui.so.4
#51 0x0000003e40bfe176 in QWidget::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#52 0x0000003e40bb368c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#53 0x0000003e40bb950e in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#54 0x0000003e42a1be66 in KApplication::notify (this=0x7fff80efd340, receiver=0x1f65af0, event=0x7fff80efc590) at /usr/src/debug/kdelibs-4.5.1/kdeui/kernel/kapplication.cpp:310
#55 0x0000003e3ef5790c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#56 0x0000003e40bb814e in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib64/libQtGui.so.4
#57 0x0000003e40c2cd45 in ?? () from /usr/lib64/libQtGui.so.4
#58 0x0000003e40c2b738 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib64/libQtGui.so.4
#59 0x0000003e40c546e2 in ?? () from /usr/lib64/libQtGui.so.4
#60 0x00000034b6a3bd02 in g_main_dispatch (context=0x1b31d20) at gmain.c:1960
#61 IA__g_main_context_dispatch (context=0x1b31d20) at gmain.c:2513
#62 0x00000034b6a3fae8 in g_main_context_iterate (context=0x1b31d20, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2591
#63 0x00000034b6a3fc9c in IA__g_main_context_iteration (context=0x1b31d20, may_block=1) at gmain.c:2654
#64 0x0000003e3ef7f953 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#65 0x0000003e40c5425e in ?? () from /usr/lib64/libQtGui.so.4
#66 0x0000003e3ef56752 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#67 0x0000003e3ef56a2c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#68 0x0000003e3ef5b1a9 in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#69 0x0000000000402f5c in main (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/debug/kdepim-4.4.93/kmail/main.cpp:145

Possible duplicates by query: bug 250135.

Reported using DrKonqi
Comment 1 Laurent Montel 2010-09-16 22:50:19 UTC
Was already fixed.
Please update your version.
Comment 2 Martin Airs 2010-09-17 01:29:50 UTC
I'm sorry, I thought I was running the latest version, kdepim-4.4.93
were can i get the latest version from?
Comment 3 Martin Airs 2010-09-17 01:55:00 UTC
I have just confirmed I am using kdepim 4.4.93, and actually in help->about kmail it reports version 2.0 beta1, so kmail actually reported the wrong version to DrKonqi
Comment 4 Alex Merry 2010-12-15 12:25:19 UTC
Created attachment 54584 [details]
New crash information added by DrKonqi

kmail (2.0.89) on KDE Platform 4.5.86 (4.6 >= 20101210) using Qt 4.7.1

- What I was doing when the application crashed:

It doesn't really appear to be fixed: I got the crash in latest trunk (up-to-date as of a few days ago).

The way I triggered it was to (accidentally) middle-click on the parent folder of the folder I had open in KMail.  This opened a new tab called "Empty", displaying no emails.  When I closed this tab, KMail crashed.

-- Backtrace (Reduced):
#6  0x00007f1cc5c88f6f in QItemSelectionModel::selection() const () from /usr/lib/libQtGui.so.4
#7  0x00007f1cc5c8ce6f in QItemSelectionModel::selectedRows(int) const () from /usr/lib/libQtGui.so.4
#8  0x00007f1cc7097d6a in Akonadi::StandardActionManager::Private::updateActions (this=0xe1f460) at /home/kde-devel/src/KDE/kdepimlibs/akonadi/standardactionmanager.cpp:356
#9  0x00007f1cc7098392 in Akonadi::StandardActionManager::Private::collectionSelectionChanged (this=0xe1f460) at /home/kde-devel/src/KDE/kdepimlibs/akonadi/standardactionmanager.cpp:416
#10 0x00007f1cc70958d5 in Akonadi::StandardActionManager::qt_metacall (this=0x12dba20, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0x7fffca83c370) at /home/kde-devel/build/KDE/kdepimlibs/akonadi/standardactionmanager.moc:147
Comment 5 Alex Merry 2010-12-15 12:26:55 UTC
And I can reproduce it consistently.
Comment 6 Christophe Marin 2011-04-07 15:36:15 UTC
>The way I triggered it was to (accidentally) middle-click on the parent folder
of the folder I had open in KMail.  This opened a new tab called "Empty",
displaying no emails.

I can reproduce this part with kdepim master

> When I closed this tab, KMail crashed.

but not this one :)
Comment 7 Antonis Tsiapaliokas 2011-04-14 16:33:50 UTC
Hello

I cannot reproduce this bug on opensuse 11.4 and my kde environment is the following


Qt: 4.7.1
KDE Development Platform: 4.6.41 (4.7 >= 20110106)
KMail: 2.0.89
Comment 8 Christophe Marin 2011-04-24 22:26:17 UTC
Alex, can you revisit this crash with kdepim 4.6 beta 5 please
Comment 9 Christophe Marin 2011-05-13 18:26:40 UTC
No feedback. changing status
Comment 10 Christophe Marin 2011-05-13 18:26:40 UTC
No feedback. changing status