Bug 209140

Summary: KGet crashes when deleting a download while advanced details are open
Product: [Applications] kget Reporter: Michael Zanetti <mzanetti>
Component: generalAssignee: KGet authors <kget>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Michael Zanetti 2009-10-01 21:44:51 UTC
Application that crashed: kget
Version of the application: 2.3.1
KDE Version: 4.3.1 (KDE 4.3.1)
Qt Version: 4.5.2
Operating System: Linux 2.6.30-ARCH x86_64

What I was doing when the application crashed:
1. Start a bittorrent download with kget.
2. Open advanced details of the download
3. delete the download + torrent
4. change tab in advanced details window
-> kget crashes.

 -- Backtrace:
Application: KGet (kget), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fdbd51507a0 (LWP 18528))]

Thread 3 (Thread 0x7fdbbafad910 (LWP 383)):
#0  0x00007fdbd1603993 in poll () from /lib/libc.so.6
#1  0x00007fdbc40a4859 in net::DownloadThread::waitForSocketReady(int) () from /usr/lib/kde4/kget_bittorrentfactory.so
#2  0x00007fdbc40a491c in net::DownloadThread::update() () from /usr/lib/kde4/kget_bittorrentfactory.so
#3  0x00007fdbc40a52e9 in net::NetworkThread::run() () from /usr/lib/kde4/kget_bittorrentfactory.so
#4  0x00007fdbd1e82285 in ?? () from /usr/lib/libQtCore.so.4
#5  0x00007fdbd10d557a in start_thread () from /lib/libpthread.so.0
#6  0x00007fdbd160c14d in clone () from /lib/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fdbba5a0910 (LWP 384)):
#0  0x00007fdbd10d9dd9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fdbd1e8334b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fdbc40a41e8 in net::UploadThread::update() () from /usr/lib/kde4/kget_bittorrentfactory.so
#3  0x00007fdbc40a52e9 in net::NetworkThread::run() () from /usr/lib/kde4/kget_bittorrentfactory.so
#4  0x00007fdbd1e82285 in ?? () from /usr/lib/libQtCore.so.4
#5  0x00007fdbd10d557a in start_thread () from /lib/libpthread.so.0
#6  0x00007fdbd160c14d in clone () from /lib/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fdbd51507a0 (LWP 18528)):
[KCrash Handler]
#5  0x0000000000000181 in ?? ()
#6  0x00007fdbc40894ee in kt::TrackerModel::data(QModelIndex const&, int) const () from /usr/lib/kde4/kget_bittorrentfactory.so
#7  0x00007fdbd306d442 in QStyledItemDelegate::initStyleOption(QStyleOptionViewItem*, QModelIndex const&) const () from /usr/lib/libQtGui.so.4
#8  0x00007fdbd306e928 in QStyledItemDelegate::sizeHint(QStyleOptionViewItem const&, QModelIndex const&) const () from /usr/lib/libQtGui.so.4
#9  0x00007fdbd2fe7f33 in ?? () from /usr/lib/libQtGui.so.4
#10 0x00007fdbd2fe8683 in ?? () from /usr/lib/libQtGui.so.4
#11 0x00007fdbd2fe8892 in ?? () from /usr/lib/libQtGui.so.4
#12 0x00007fdbd2fe8d28 in QListView::rectForIndex(QModelIndex const&) const () from /usr/lib/libQtGui.so.4
#13 0x00007fdbd2fe8e2c in QListView::visualRect(QModelIndex const&) const () from /usr/lib/libQtGui.so.4
#14 0x00007fdbd2fc0c18 in QAbstractItemView::inputMethodQuery(Qt::InputMethodQuery) const () from /usr/lib/libQtGui.so.4
#15 0x00007fdbd30703fc in ?? () from /usr/lib/libQtGui.so.4
#16 0x00007fdbd3070f99 in ?? () from /usr/lib/libQtGui.so.4
#17 0x00007fdbd2afe942 in QApplicationPrivate::setFocusWidget(QWidget*, Qt::FocusReason) () from /usr/lib/libQtGui.so.4
#18 0x00007fdbd2b3d6f1 in QWidget::setFocus(Qt::FocusReason) () from /usr/lib/libQtGui.so.4
#19 0x00007fdbd2b2d4b0 in QStackedLayout::setCurrentIndex(int) () from /usr/lib/libQtGui.so.4
#20 0x00007fdbd2f100a3 in ?? () from /usr/lib/libQtGui.so.4
#21 0x00007fdbd2f10360 in QTabWidget::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libQtGui.so.4
#22 0x00007fdbd4d7fd85 in KTabWidget::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkdeui.so.5
#23 0x00007fdbd1f7cdec in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQtCore.so.4
#24 0x00007fdbd2f0340e in QTabBar::currentChanged(int) () from /usr/lib/libQtGui.so.4
#25 0x00007fdbd2f098e2 in QTabBar::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4
#26 0x00007fdbd4d7d9a2 in KTabBar::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libkdeui.so.5
#27 0x00007fdbd2b43050 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#28 0x00007fdbd2f09caa in QTabBar::event(QEvent*) () from /usr/lib/libQtGui.so.4
#29 0x00007fdbd2af466c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#30 0x00007fdbd2afb781 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#31 0x00007fdbd4c8e8f6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#32 0x00007fdbd1f67cec in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#33 0x00007fdbd2afb050 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&) () from /usr/lib/libQtGui.so.4
#34 0x00007fdbd2b60f84 in ?? () from /usr/lib/libQtGui.so.4
#35 0x00007fdbd2b5fc5a in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#36 0x00007fdbd2b87e3c in ?? () from /usr/lib/libQtGui.so.4
#37 0x00007fdbcd41edbe in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#38 0x00007fdbcd422568 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#39 0x00007fdbcd422690 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#40 0x00007fdbd1f901b6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#41 0x00007fdbd2b8761e in ?? () from /usr/lib/libQtGui.so.4
#42 0x00007fdbd1f665f2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#43 0x00007fdbd1f669c4 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#44 0x00007fdbd1f68b79 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#45 0x000000000045d47c in _start ()

Reported using DrKonqi
Comment 1 Dario Massarin 2009-10-07 11:28:52 UTC
SVN commit 1032204 by dario:

Always make sure to delete the advancedDetails window in the BTTransferHandler destructor
BUG: 209140



 M  +6 -0      bttransferhandler.cpp  
 M  +1 -0      bttransferhandler.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1032204