Bug 203766

Summary: kget crash during deletion of torrent downloads
Product: [Applications] kget Reporter: Mirek Mieszczak <mieszcz>
Component: generalAssignee: KGet authors <kget>
Status: RESOLVED FIXED    
Severity: crash CC: andresbajotierra, yann
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Mirek Mieszczak 2009-08-13 22:58:37 UTC
Application that crashed: kget
Version of the application: 2.3.0
KDE Version: 4.3.00 (KDE 4.3.0)
Qt Version: 4.5.2
Operating System: Linux 2.6.30-hh2 x86_64

What I was doing when the application crashed:
Kget crashes when try to delete active torrent transfers.

 -- Backtrace:
Application: KGet (kget), signal: Segmentation fault
[Current thread is 0 (LWP 3623)]

Thread 3 (Thread 0x7fd2e9d1d950 (LWP 13289)):
#0  0x00007fffd21ff76d in gettimeofday ()
#1  0x00007fd2fcd7f9fa in gettimeofday () at ../sysdeps/unix/sysv/linux/x86_64/gettimeofday.S:37
#2  0x00007fd2ef16ef7e in bt::Now () at /var/tmp/portage/kde-base/kget-4.3.0-r1/work/kget-4.3.0/kget/transfer-plugins/bittorrent/libbtcore/util/functions.cpp:171
#3  0x00007fd2ef180c20 in net::DownloadThread::update (this=0x13f7ca0) at /var/tmp/portage/kde-base/kget-4.3.0-r1/work/kget-4.3.0/kget/transfer-plugins/bittorrent/libbtcore/net/downloadthread.cpp:65
#4  0x00007fd2ef181649 in net::NetworkThread::run (this=0x13f7ca0) at /var/tmp/portage/kde-base/kget-4.3.0-r1/work/kget-4.3.0/kget/transfer-plugins/bittorrent/libbtcore/net/networkthread.cpp:48
#5  0x00007fd2fd6309b4 in QThreadPrivate::start (arg=0x13f7ca0) at thread/qthread_unix.cpp:188
#6  0x00007fd2fc88e017 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#7  0x00007fd2fcdbf48d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fd2e951c950 (LWP 13290)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007fd2fd631749 in QWaitCondition::wait (this=0x138dfc8, mutex=0x138dfd0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007fd2ef180504 in net::UploadThread::update (this=0x138df60) at /var/tmp/portage/kde-base/kget-4.3.0-r1/work/kget-4.3.0/kget/transfer-plugins/bittorrent/libbtcore/net/uploadthread.cpp:73
#3  0x00007fd2ef181649 in net::NetworkThread::run (this=0x138df60) at /var/tmp/portage/kde-base/kget-4.3.0-r1/work/kget-4.3.0/kget/transfer-plugins/bittorrent/libbtcore/net/networkthread.cpp:48
#4  0x00007fd2fd6309b4 in QThreadPrivate::start (arg=0x138df60) at thread/qthread_unix.cpp:188
#5  0x00007fd2fc88e017 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#6  0x00007fd2fcdbf48d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fd3007b4790 (LWP 3623)):
[KCrash Handler]
#5  KFileItem (this=0x7fffd21d48b0, other=@0x0) at /usr/include/qt4/QtCore/qshareddata.h:90
#6  0x00007fd2ffd4bdbf in KFileItemActions::addServiceActionsTo (this=0x19bfb60, mainMenu=0x1939c30) at /var/tmp/portage/kde-base/kdelibs-4.3.0/work/kdelibs-4.3.0/kio/kio/kfileitemactions.cpp:195
#7  0x00000000004443fa in ContextMenu::createTransferContextMenu (handler=<value optimized out>, parent=<value optimized out>)
    at /var/tmp/portage/kde-base/kget-4.3.0-r1/work/kget-4.3.0/kget/ui/contextmenu.cpp:107
#8  0x0000000000434daf in TransfersViewDelegate::editorEvent (this=0x1357570, event=<value optimized out>, model=0x13bd640, option=<value optimized out>, index=@0x7fffd21d4c20)
    at /var/tmp/portage/kde-base/kget-4.3.0-r1/work/kget-4.3.0/kget/ui/transfersviewdelegate.cpp:443
#9  0x00007fd2fe6cbe37 in QAbstractItemViewPrivate::sendDelegateEvent (this=0x1533f90, index=@0x7fffd21d4c40, event=0x7fffd21d5ca0) at itemviews/qabstractitemview.cpp:3845
#10 0x00007fd2fe6cc056 in QAbstractItemView::edit (this=0x133c250, index=@0x1752b10, trigger=QAbstractItemView::NoEditTriggers, event=0x7fffd21d5ca0) at itemviews/qabstractitemview.cpp:2327
#11 0x00007fd2fe6c6429 in QAbstractItemView::mousePressEvent (this=0x133c250, event=0x7fffd21d5ca0) at itemviews/qabstractitemview.cpp:1506
#12 0x00007fd2fe2afa6c in QWidget::event (this=0x133c250, event=0x7fffd21d5ca0) at kernel/qwidget.cpp:7545
#13 0x00007fd2fe5b53eb in QFrame::event (this=0x133c250, e=0x7fffd21d5ca0) at widgets/qframe.cpp:559
#14 0x00007fd2fe6cd1ed in QAbstractItemView::viewportEvent (this=0x133c250, event=0x7fffd21d5ca0) at itemviews/qabstractitemview.cpp:1476
#15 0x00007fd2fe7030b3 in QTreeView::viewportEvent (this=0x133c250, event=0x7fffd21d5ca0) at itemviews/qtreeview.cpp:1266
#16 0x00007fd2fd704bf8 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0x133c0a0, event=0x7fffd21d5ca0) at kernel/qcoreapplication.cpp:726
#17 0x00007fd2fe261eec in QApplicationPrivate::notify_helper (this=0x1240a70, receiver=0x133c0a0, e=0x7fffd21d5ca0) at kernel/qapplication.cpp:4052
#18 0x00007fd2fe26b0d9 in QApplication::notify (this=<value optimized out>, receiver=0x133c0a0, e=0x7fffd21d5ca0) at kernel/qapplication.cpp:3758
#19 0x00007fd3002f161b in KApplication::notify (this=0x7fffd21d7a50, receiver=0x133c0a0, event=0x7fffd21d5ca0)
    at /var/tmp/portage/kde-base/kdelibs-4.3.0/work/kdelibs-4.3.0/kdeui/kernel/kapplication.cpp:302
#20 0x00007fd2fd7058cc in QCoreApplication::notifyInternal (this=0x7fffd21d7a50, receiver=0x133c0a0, event=0x7fffd21d5ca0) at kernel/qcoreapplication.cpp:606
#21 0x00007fd2fe26a388 in QApplicationPrivate::sendMouseEvent (receiver=0x133c0a0, event=0x7fffd21d5ca0, alienWidget=0x133c0a0, nativeWidget=0x12db780, buttonDown=<value optimized out>, 
    lastMouseReceiver=@0x7fd2feb7eef0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#22 0x00007fd2fe2c542c in QETWidget::translateMouseEvent (this=0x12db780, event=<value optimized out>) at kernel/qapplication_x11.cpp:4404
#23 0x00007fd2fe2c3f65 in QApplication::x11ProcessEvent (this=0x7fffd21d7a50, event=0x7fffd21d7690) at kernel/qapplication_x11.cpp:3545
#24 0x00007fd2fe2e9044 in x11EventSourceDispatch (s=0x1242cc0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#25 0x00007fd2f941a8d1 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#26 0x00007fd2f941dfa0 in ?? () from /usr/lib/libglib-2.0.so.0
#27 0x00007fd2f941e13c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#28 0x00007fd2fd72ac4f in QEventDispatcherGlib::processEvents (this=0x1219910, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#29 0x00007fd2fe2e88ff in QGuiEventDispatcherGlib::processEvents (this=0x7fffd21d48b0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#30 0x00007fd2fd704272 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -769820288}) at kernel/qeventloop.cpp:149
#31 0x00007fd2fd70440c in QEventLoop::exec (this=0x7fffd21d79c0, flags={i = -769820208}) at kernel/qeventloop.cpp:197
#32 0x00007fd2fd7064cc in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#33 0x000000000045c9fd in main (argc=3, argv=0x7fffd21d8028) at /var/tmp/portage/kde-base/kget-4.3.0-r1/work/kget-4.3.0/kget/main.cpp:173

Reported using DrKonqi
Comment 1 Dario Andres 2009-08-16 18:00:19 UTC
*** Bug 203963 has been marked as a duplicate of this bug. ***
Comment 2 Dario Andres 2009-08-16 18:01:20 UTC
This is probably related to bug 202778. Thanks
Comment 3 Lukas Appelhans 2009-12-01 20:53:39 UTC
Indeed this should be fixed in latest trunk...

Lukas