Bug 160559

Summary: If "Always show tabs" is enabled, Kopete crashes when closing a chat window
Product: [Unmaintained] kopete Reporter: Christophe Marin <christophe>
Component: Chat WindowAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Christophe Marin 2008-04-08 14:48:47 UTC
Version:           0.50.50 (using 4.00.68 (KDE 4.0.68 >= 20080402), compiled sources)
Compiler:          gcc
OS:                Linux (i686) release 2.6.24-15-generic

Kdenetwork rev. 794586

Testcase is simple :) :
1/ Fire up kopete,
2/ Open a chat window (tested with a MSN contact)
3/ Close the chat window
4/ Crash.

If Behavior/Chat/"Always show tabs" is unchecked, kopete won't crash.


Trace : 
Application: Kopete (kopete), signal SIGSEGV
[Thread debugging using libthread_db enabled]
[New Thread 0xb5b57720 (LWP 7388)]
[New Thread 0xb1afcb90 (LWP 7641)]
[New Thread 0xb33fab90 (LWP 7609)]
[New Thread 0xb2bf9b90 (LWP 7506)]
[KCrash handler]
#6  KopeteView::msgManager (this=0x8d88ab0)
    at /media/sda7/kde/src/KDE/kdenetwork/kopete/libkopete/ui/kopeteview.cpp:26
#7  0xb23efb2e in KopeteChatWindow::qt_metacall (this=0x8d88ab0, 
    _c=143201088, _id=3, _a=0x8d88adc)
    at /media/sda7/kde/build4/KDE/kdenetwork/kopete/kopete/chatwindow/kopetechatwindow.moc:137
#8  0xb7ef44c7 in QMetaObject::activate (sender=0x8a49210, 
    from_signal_index=28, to_signal_index=28, argv=0xbfc29b7c)
    at kernel/qobject.cpp:3007
#9  0xb7ef4949 in QMetaObject::activate (sender=0x8a49210, m=0xb75cb778, 
    local_signal_index=1, argv=0xbfc29b7c) at kernel/qobject.cpp:3080
#10 0xb731a5f0 in QTabWidget::currentChanged (this=0x8a49210, _t1=0x0)
    at .moc/debug-shared/moc_qtabwidget.cpp:172
#11 0xb731af66 in QTabWidgetPrivate::_q_showTab (this=0x8a4a5f0, index=-1)
    at widgets/qtabwidget.cpp:694
#12 0xb731c1cc in QTabWidget::qt_metacall (this=0x8a49210, 
    _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0xbfc29d0c)
    at .moc/debug-shared/moc_qtabwidget.cpp:115
#13 0xb7a6fa4a in KTabWidget::qt_metacall (this=0x8a49210, 
    _c=QMetaObject::InvokeMetaMethod, _id=35, _a=0xbfc29d0c)
    at /media/sda7/kde/build4/KDE/kdelibs/kdeui/ktabwidget.moc:118
#14 0xb7ef44c7 in QMetaObject::activate (sender=0x8a4ba18, 
    from_signal_index=27, to_signal_index=27, argv=0xbfc29d0c)
    at kernel/qobject.cpp:3007
#15 0xb7ef4949 in QMetaObject::activate (sender=0x8a4ba18, m=0xb75cb620, 
    local_signal_index=0, argv=0xbfc29d0c) at kernel/qobject.cpp:3080
#16 0xb7314818 in QTabBar::currentChanged (this=0x8a4ba18, _t1=-1)
    at .moc/debug-shared/moc_qtabbar.cpp:155
#17 0xb7317e6d in QTabBar::removeTab (this=0x8a4ba18, index=0)
    at widgets/qtabbar.cpp:690
#18 0xb731c026 in QTabWidgetPrivate::_q_removeTab (this=0x8a4a5f0, index=0)
    at widgets/qtabwidget.cpp:701
#19 0xb731c1ef in QTabWidget::qt_metacall (this=0x8a49210, 
    _c=QMetaObject::InvokeMetaMethod, _id=9, _a=0xbfc29ecc)
    at .moc/debug-shared/moc_qtabwidget.cpp:116
#20 0xb7a6fa4a in KTabWidget::qt_metacall (this=0x8a49210, 
    _c=QMetaObject::InvokeMetaMethod, _id=36, _a=0xbfc29ecc)
    at /media/sda7/kde/build4/KDE/kdelibs/kdeui/ktabwidget.moc:118
#21 0xb7ef44c7 in QMetaObject::activate (sender=0x8a4a780, 
    from_signal_index=28, to_signal_index=28, argv=0xbfc29ecc)
    at kernel/qobject.cpp:3007
#22 0xb7ef4949 in QMetaObject::activate (sender=0x8a4a780, m=0xb75d72b8, 
    local_signal_index=1, argv=0xbfc29ecc) at kernel/qobject.cpp:3080
#23 0xb74fa87c in QStackedWidget::widgetRemoved (this=0x8a4a780, _t1=0)
    at .moc/debug-shared/moc_qstackedwidget.cpp:126
#24 0xb74fa97f in QStackedWidget::qt_metacall (this=0x8a4a780, 
    _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xbfc29ffc)
    at .moc/debug-shared/moc_qstackedwidget.cpp:78
#25 0xb7ef44c7 in QMetaObject::activate (sender=0x8a4aa00, 
    from_signal_index=4, to_signal_index=4, argv=0xbfc29ffc)
    at kernel/qobject.cpp:3007
#26 0xb7ef4949 in QMetaObject::activate (sender=0x8a4aa00, m=0xb75d4418, 
    local_signal_index=0, argv=0xbfc29ffc) at kernel/qobject.cpp:3080
#27 0xb74eeb20 in QStackedLayout::widgetRemoved (this=0x8a4aa00, _t1=0)
    at .moc/debug-shared/moc_qstackedlayout.cpp:128
#28 0xb6f1a02e in QStackedLayout::takeAt (this=0x8a4aa00, index=0)
    at kernel/qstackedlayout.cpp:276
#29 0xb6f06ec4 in QLayout::removeWidget (this=0x8a4aa00, widget=0x8820608)
    at kernel/qlayout.cpp:1402
#30 0xb7311ad8 in QStackedWidget::removeWidget (this=0x8a4a780, 
    widget=0x8820608) at widgets/qstackedwidget.cpp:197
#31 0xb731ad59 in QTabWidget::removeTab (this=0x8a49210, index=0)
    at widgets/qtabwidget.cpp:575
#32 0xb7a6ff91 in KTabWidget::removePage (this=0x8a49210, widget=0x8820608)
    at /media/sda7/kde/src/KDE/kdelibs/kdeui/widgets/ktabwidget.cpp:481
#33 0xb23ec6e6 in KopeteChatWindow::detachChatView (this=0x8d88ab0, 
    view=0x8820608)
    at /media/sda7/kde/src/KDE/kdenetwork/kopete/kopete/chatwindow/kopetechatwindow.cpp:805
#34 0xb23e4423 in ChatView::closeView (this=0x8820608, force=false)
    at /media/sda7/kde/src/KDE/kdenetwork/kopete/kopete/chatwindow/chatview.cpp:363
#35 0xb23ea4d1 in KopeteChatWindow::queryClose (this=0x8d88ab0)
    at /media/sda7/kde/src/KDE/kdenetwork/kopete/kopete/chatwindow/kopetechatwindow.cpp:1190
#36 0xb23ea3ad in KopeteChatWindow::closeEvent (this=0x8d88ab0, e=0xbfc2a8ac)
    at /media/sda7/kde/src/KDE/kdenetwork/kopete/kopete/chatwindow/kopetechatwindow.cpp:1231
#37 0xb6f33814 in QWidget::event (this=0x8d88ab0, event=0xbfc2a8ac)
    at kernel/qwidget.cpp:7070
#38 0xb72bf87b in QMainWindow::event (this=0x8d88ab0, event=0xbfc2a8ac)
    at widgets/qmainwindow.cpp:1252
#39 0xb7a522f2 in KMainWindow::event (this=0x8d88ab0, ev=0xbfc2a8ac)
    at /media/sda7/kde/src/KDE/kdelibs/kdeui/widgets/kmainwindow.cpp:1028
#40 0xb7a8441c in KXmlGuiWindow::event (this=0x8d88ab0, ev=0xbfc2a8ac)
    at /media/sda7/kde/src/KDE/kdelibs/kdeui/xmlgui/kxmlguiwindow.cpp:123
#41 0xb6ed58fd in QApplicationPrivate::notify_helper (this=0x80c4518, 
    receiver=0x8d88ab0, e=0xbfc2a8ac) at kernel/qapplication.cpp:3766
#42 0xb6ed74e6 in QApplication::notify (this=0xbfc2afc8, receiver=0x8d88ab0, 
    e=0xbfc2a8ac) at kernel/qapplication.cpp:3733
#43 0xb799f543 in KApplication::notify (this=0xbfc2afc8, receiver=0x8d88ab0, 
    event=0xbfc2a8ac)
    at /media/sda7/kde/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:311
#44 0xb7edf63a in QCoreApplication::notifyInternal (this=0xbfc2afc8, 
    receiver=0x8d88ab0, event=0xbfc2a8ac) at kernel/qcoreapplication.cpp:583
#45 0xb6ee1749 in QCoreApplication::sendSpontaneousEvent (receiver=0x8d88ab0, 
    event=0xbfc2a8ac)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#46 0xb6f30e45 in QWidgetPrivate::close_helper (this=0x8b5e758, 
    mode=QWidgetPrivate::CloseWithSpontaneousEvent) at kernel/qwidget.cpp:6493
#47 0xb6f41381 in QETWidget::translateCloseEvent (this=0x8d88ab0)
    at kernel/qapplication_x11.cpp:4879
#48 0xb6f43b75 in QApplication::x11ClientMessage (this=0xbfc2afc8, 
    w=0x8d88ab0, event=0xbfc2ad1c, passive_only=false)
    at kernel/qapplication_x11.cpp:2808
#49 0xb6f527cb in QApplication::x11ProcessEvent (this=0xbfc2afc8, 
    event=0xbfc2ad1c) at kernel/qapplication_x11.cpp:3365
#50 0xb6f7ddc5 in x11EventSourceDispatch (s=0x80c72b0, callback=0, 
    user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148
#51 0xb5f07bd8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#52 0xb5f0ae3e in ?? () from /usr/lib/libglib-2.0.so.0
#53 0x080c6900 in ?? ()
#54 0x00000000 in ?? ()
#0  0xb7f95410 in __kernel_vsyscall ()
Comment 1 Dennis Nienhüser 2008-05-11 20:26:39 UTC
Duplicating in favour of the newer bug 161769, which contains links to the fix.

*** This bug has been marked as a duplicate of 161769 ***