Bug 258295

Summary: Ktorrent crash when deleting a torrent
Product: [Applications] ktorrent Reporter: Paul <bareil76>
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Paul 2010-11-29 19:16:02 UTC
Application: ktorrent (4.0.4)
KDE Platform Version: 4.4.2 (KDE 4.4.2)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-26-generic x86_64
Distribution: Ubuntu 10.04.1 LTS

-- Information about the crash:
EVERYTIME I delete a torrent in the list with its data, ktorrent crash.

Sometimes, when I delete a torrent in the list BUT keep the data, ktorrent crash.

The crash can be reproduced every time.

 -- Backtrace:
Application: KTorrent (ktorrent), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f5b0caf3760 (LWP 29493))]

Thread 11 (Thread 0x7f5af7c8d710 (LWP 29495)):
#0  0x00007f5b09dcc3ff in pthread_mutex_lock () from /lib/libpthread.so.0
#1  0x00007f5b04d66b37 in g_main_context_check () from /lib/libglib-2.0.so.0
#2  0x00007f5b04d674c3 in ?? () from /lib/libglib-2.0.so.0
#3  0x00007f5b04d678fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#4  0x00007f5b0a177566 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007f5b0a14c992 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007f5b0a14cd6c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7  0x00007f5b0a056d59 in QThread::exec() () from /usr/lib/libQtCore.so.4
#8  0x00007f5b0c6a1d5e in utp::UTPServerThread::run (this=0x9b3550) at /home/paul/Bureau/libktorrent-1.0.4/src/utp/utpserverthread.cpp:44
#9  0x00007f5b0a059775 in ?? () from /usr/lib/libQtCore.so.4
#10 0x00007f5b09dc99ca in start_thread () from /lib/libpthread.so.0
#11 0x00007f5b086e170d in clone () from /lib/libc.so.6
#12 0x0000000000000000 in ?? ()

Thread 10 (Thread 0x7f5af748c710 (LWP 29496)):
#0  0x00007f5b086d9ff3 in select () from /lib/libc.so.6
#1  0x00007f5b0c66a0e2 in dht::RPCServerThread::run (this=0x9b9460) at /home/paul/Bureau/libktorrent-1.0.4/src/dht/rpcserver.cpp:107
#2  0x00007f5b0a059775 in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007f5b09dc99ca in start_thread () from /lib/libpthread.so.0
#4  0x00007f5b086e170d in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7f5adfbfe710 (LWP 29519)):
#0  0x00007f5b09dcebc9 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f5b0a0590e5 in ?? () from /usr/lib/libQtCore.so.4
#2  0x00007f5b0a059250 in QThread::msleep(unsigned long) () from /usr/lib/libQtCore.so.4
#3  0x00007f5b0c60a31d in net::DownloadThread::update (this=0x776600) at /home/paul/Bureau/libktorrent-1.0.4/src/net/downloadthread.cpp:91
#4  0x00007f5b0c60ac09 in net::NetworkThread::run (this=0x776600) at /home/paul/Bureau/libktorrent-1.0.4/src/net/networkthread.cpp:48
#5  0x00007f5b0a059775 in ?? () from /usr/lib/libQtCore.so.4
#6  0x00007f5b09dc99ca in start_thread () from /lib/libpthread.so.0
#7  0x00007f5b086e170d in clone () from /lib/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f5adf3fd710 (LWP 29520)):
#0  0x00007f5b09dcebc9 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f5b0a0590e5 in ?? () from /usr/lib/libQtCore.so.4
#2  0x00007f5b0a059250 in QThread::msleep(unsigned long) () from /usr/lib/libQtCore.so.4
#3  0x00007f5b0c6099cd in net::UploadThread::update (this=0x776c50) at /home/paul/Bureau/libktorrent-1.0.4/src/net/uploadthread.cpp:89
#4  0x00007f5b0c60ac09 in net::NetworkThread::run (this=0x776c50) at /home/paul/Bureau/libktorrent-1.0.4/src/net/networkthread.cpp:48
#5  0x00007f5b0a059775 in ?? () from /usr/lib/libQtCore.so.4
#6  0x00007f5b09dc99ca in start_thread () from /lib/libpthread.so.0
#7  0x00007f5b086e170d in clone () from /lib/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f5adebfc710 (LWP 29521)):
#0  0x00007f5b09dce85c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f5b0a05a72b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f5b0c60dc42 in net::ReverseResolverThread::run (this=0x7f5af090fb00) at /home/paul/Bureau/libktorrent-1.0.4/src/net/reverseresolver.cpp:123
#3  0x00007f5b0a059775 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f5b09dc99ca in start_thread () from /lib/libpthread.so.0
#5  0x00007f5b086e170d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f5ae7201710 (LWP 29653)):
#0  0x00007f5b09dcebc9 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f5b0a05a692 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f5b0a04fa79 in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007f5b0a059775 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f5b09dc99ca in start_thread () from /lib/libpthread.so.0
#5  0x00007f5b086e170d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f5aeae87710 (LWP 29654)):
#0  0x00007f5b09dcebc9 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f5b0a05a692 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f5b0a04fa79 in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007f5b0a059775 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f5b09dc99ca in start_thread () from /lib/libpthread.so.0
#5  0x00007f5b086e170d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f5aea686710 (LWP 29655)):
#0  0x00007f5b09dcebc9 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f5b0a05a692 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f5b0a04fa79 in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007f5b0a059775 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f5b09dc99ca in start_thread () from /lib/libpthread.so.0
#5  0x00007f5b086e170d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f5ae9e85710 (LWP 29656)):
#0  0x00007f5b09dcebc9 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f5b0a05a692 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f5b0a04fa79 in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007f5b0a059775 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f5b09dc99ca in start_thread () from /lib/libpthread.so.0
#5  0x00007f5b086e170d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f5ae9684710 (LWP 29657)):
#0  0x00007f5b09dcebc9 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f5b0a05a692 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f5b0a04fa79 in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007f5b0a059775 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f5b09dc99ca in start_thread () from /lib/libpthread.so.0
#5  0x00007f5b086e170d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f5b0caf3760 (LWP 29493)):
[KCrash Handler]
#5  0x00007f5af0000568 in ?? ()
#6  0x00007f5b0c61eae5 in bt::PeerManager::stop (this=0xae99e0) at /home/paul/Bureau/libktorrent-1.0.4/src/peer/peermanager.cpp:550
#7  0x00007f5b0c64f19f in bt::TorrentControl::stop (this=0xada360, wjob=0x0) at /home/paul/Bureau/libktorrent-1.0.4/src/torrent/torrentcontrol.cpp:486
#8  0x00007f5b0c34409a in kt::QueueManager::stopSafely (this=<value optimized out>, tc=0xada360, wjob=0x7f5af0c3a410) at /home/paul/Bureau/ktorrent-4.0.4/libktcore/torrent/queuemanager.cpp:747
#9  0x000000000042d5d5 in kt::Core::remove (this=0x7f5af0003af0, tc=0xada360, data_to=false) at /home/paul/Bureau/ktorrent-4.0.4/ktorrent/core.cpp:747
#10 0x000000000048cede in kt::View::removeTorrents (this=0x7f5af0534340) at /home/paul/Bureau/ktorrent-4.0.4/ktorrent/view/view.cpp:232
#11 0x000000000049594d in kt::ViewManager::qt_metacall (this=0x7f5af0026e30, _c=QMetaObject::InvokeMetaMethod, _id=-255613936, _a=0x7fffc1d746b0)
    at /home/paul/Bureau/ktorrent-4.0.4/build/ktorrent/viewmanager.moc:136
#12 0x00007f5b0a160e3f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#13 0x00007f5b092e4032 in QAction::triggered(bool) () from /usr/lib/libQtGui.so.4
#14 0x00007f5b092e60ab in QAction::activate(QAction::ActionEvent) () from /usr/lib/libQtGui.so.4
#15 0x00007f5b096a06ca in ?? () from /usr/lib/libQtGui.so.4
#16 0x00007f5b096a097c in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4
#17 0x00007f5b0976c8ca in QToolButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4
#18 0x00007f5b09340582 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#19 0x00007f5b092ea22c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#20 0x00007f5b092f0ecb in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#21 0x0000000000439cca in kt::App::notify (this=0x7f5af0dce7a0, receiver=0x0, event=0x7f5af0c3a410) at /home/paul/Bureau/ktorrent-4.0.4/ktorrent/app.cpp:97
#22 0x00007f5b0a14e06c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#23 0x00007f5b092f00ae in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQtGui.so.4
#24 0x00007f5b0936ff65 in ?? () from /usr/lib/libQtGui.so.4
#25 0x00007f5b0936e8ac in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#26 0x00007f5b0939a882 in ?? () from /usr/lib/libQtGui.so.4
#27 0x00007f5b04d638c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#28 0x00007f5b04d67748 in ?? () from /lib/libglib-2.0.so.0
#29 0x00007f5b04d678fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#30 0x00007f5b0a177513 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#31 0x00007f5b0939a46e in ?? () from /usr/lib/libQtGui.so.4
#32 0x00007f5b0a14c992 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#33 0x00007f5b0a14cd6c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#34 0x00007f5b0a150aab in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#35 0x000000000042930b in main (argc=<value optimized out>, argv=<value optimized out>) at /home/paul/Bureau/ktorrent-4.0.4/ktorrent/main.cpp:176

This bug may be a duplicate of or related to bug 233775.

Possible duplicates by query: bug 257126, bug 250500, bug 249766, bug 247669, bug 247207.

Reported using DrKonqi
Comment 1 Joris Guisson 2010-11-30 20:27:27 UTC

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