Bug 267184

Summary: Ktorrent Crashes. Frequently crashes while in normal use, and always crashes on existing.
Product: [Applications] ktorrent Reporter: grahamt <grahamtooley>
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED DUPLICATE    
Severity: crash CC: grahamtooley
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description grahamt 2011-02-26 01:38:54 UTC
Application: ktorrent (4.0.3)
KDE Platform Version: 4.6.00 (4.6.0)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-25-generic i686
Distribution: Ubuntu 10.10

-- Information about the crash:
Downloading three torrents. PC was left unattended and screen saver activated. Ktorrent had crashed on coming back to the PC.

The crash can be reproduced some of the time.

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

Thread 7 (Thread 0xb4effb70 (LWP 2308)):
#0  0x00a38416 in __kernel_vsyscall ()
#1  0x0050b4dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0x04341ef2 in QMutexPrivate::wait (this=0x8711a38, timeout=-1) at thread/qmutex_unix.cpp:84
#3  0x0433d5ca in QMutex::lock (this=0x871199c) at thread/qmutex.cpp:167
#4  0x00206e1b in QMutexLocker (this=0x8711940) at /usr/include/qt4/QtCore/qmutex.h:102
#5  utp::UTPServer::wakeUpPollPipes (this=0x8711940) at ../../src/utp/utpserver.cpp:510
#6  0x00206f60 in utp::UTPServer::timerEvent (this=0xfffffe00, event=0x644f) at ../../src/utp/utpserver.cpp:502
#7  0x04457504 in QObject::event (this=0x8711940, e=0x644f) at kernel/qobject.cpp:1183
#8  0x04ec1fdc in QApplicationPrivate::notify_helper (this=0x85fa4a8, receiver=0x8711940, e=0xb4eff010) at kernel/qapplication.cpp:4396
#9  0x04ec804e in QApplication::notify (this=0xbfb29d00, receiver=0x8711940, e=0xb4eff010) at kernel/qapplication.cpp:3798
#10 0x080783dc in kt::App::notify (this=0x80, receiver=0x644f, event=0xfffffe00) at ../../ktorrent/app.cpp:97
#11 0x04444b3b in QCoreApplication::notifyInternal (this=0xbfb29d00, receiver=0x8711940, event=0xb4eff010) at kernel/qcoreapplication.cpp:732
#12 0x04476ad6 in sendEvent (this=0xb4f0307c) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#13 QTimerInfoList::activateTimers (this=0xb4f0307c) at kernel/qeventdispatcher_unix.cpp:602
#14 0x044738a7 in timerSourceDispatch (source=0xb4f02c28) at kernel/qeventdispatcher_glib.cpp:184
#15 idleTimerSourceDispatch (source=0xb4f02c28) at kernel/qeventdispatcher_glib.cpp:231
#16 0x077ea855 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#17 0x077ee668 in ?? () from /lib/libglib-2.0.so.0
#18 0x077ee848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#19 0x04473565 in QEventDispatcherGlib::processEvents (this=0x8694d50, flags=...) at kernel/qeventdispatcher_glib.cpp:415
#20 0x04443609 in QEventLoop::processEvents (this=0xb4eff290, flags=) at kernel/qeventloop.cpp:149
#21 0x04443a8a in QEventLoop::exec (this=0xb4eff290, flags=...) at kernel/qeventloop.cpp:201
#22 0x0433fb7e in QThread::exec (this=0x8694aa8) at thread/qthread.cpp:490
#23 0x0020c39e in utp::UTPServerThread::run (this=0x8694aa8) at ../../src/utp/utpserverthread.cpp:44
#24 0x04342df9 in QThreadPrivate::start (arg=0x8694aa8) at thread/qthread_unix.cpp:266
#25 0x00506cc9 in start_thread () from /lib/libpthread.so.0
#26 0x0233469e in clone () from /lib/libc.so.6

Thread 6 (Thread 0xb46feb70 (LWP 2309)):
#0  0x00a38416 in __kernel_vsyscall ()
#1  0x0232d371 in select () from /lib/libc.so.6
#2  0x001ce8db in dht::RPCServerThread::run (this=0x8715700) at ../../src/dht/rpcserver.cpp:107
#3  0x04342df9 in QThreadPrivate::start (arg=0x8715700) at thread/qthread_unix.cpp:266
#4  0x00506cc9 in start_thread () from /lib/libpthread.so.0
#5  0x0233469e in clone () from /lib/libc.so.6

Thread 5 (Thread 0xaad05b70 (LWP 2389)):
#0  0x077eda02 in g_main_context_check () from /lib/libglib-2.0.so.0
#1  0x077ee45e in ?? () from /lib/libglib-2.0.so.0
#2  0x077ee848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x0447359f in QEventDispatcherGlib::processEvents (this=0x8c47fb8, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#4  0x04443609 in QEventLoop::processEvents (this=0xaad05290, flags=) at kernel/qeventloop.cpp:149
#5  0x04443a8a in QEventLoop::exec (this=0xaad05290, flags=...) at kernel/qeventloop.cpp:201
#6  0x0433fb7e in QThread::exec (this=0x8c43bc0) at thread/qthread.cpp:490
#7  0x0442235b in QInotifyFileSystemWatcherEngine::run (this=0x8c43bc0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x04342df9 in QThreadPrivate::start (arg=0x8c43bc0) at thread/qthread_unix.cpp:266
#9  0x00506cc9 in start_thread () from /lib/libpthread.so.0
#10 0x0233469e in clone () from /lib/libc.so.6

Thread 4 (Thread 0xa6effb70 (LWP 3260)):
#0  net::DownloadThread::waitForSocketReady (this=0x85c2470) at ../../src/net/downloadthread.cpp:121
#1  0x001615af in net::DownloadThread::update (this=0x85c2470) at ../../src/net/downloadthread.cpp:48
#2  0x00162178 in net::NetworkThread::run (this=0x85c2470) at ../../src/net/networkthread.cpp:48
#3  0x04342df9 in QThreadPrivate::start (arg=0x85c2470) at thread/qthread_unix.cpp:266
#4  0x00506cc9 in start_thread () from /lib/libpthread.so.0
#5  0x0233469e in clone () from /lib/libc.so.6

Thread 3 (Thread 0xa66feb70 (LWP 3261)):
#0  0x00a38416 in __kernel_vsyscall ()
#1  0x0050b4dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0x04341ef2 in QMutexPrivate::wait (this=0x85c2368, timeout=-1) at thread/qmutex_unix.cpp:84
#3  0x0433d5ca in QMutex::lock (this=0x8116894) at thread/qmutex.cpp:167
#4  0x0015f890 in net::SocketMonitor::lock (this=0x8116890) at ../../src/net/socketmonitor.cpp:82
#5  0x00160882 in net::UploadThread::waitForSocketsReady (this=0x85c27d0) at ../../src/net/uploadthread.cpp:112
#6  0x00160aff in net::UploadThread::update (this=0x85c27d0) at ../../src/net/uploadthread.cpp:45
#7  0x00162178 in net::NetworkThread::run (this=0x85c27d0) at ../../src/net/networkthread.cpp:48
#8  0x04342df9 in QThreadPrivate::start (arg=0x85c27d0) at thread/qthread_unix.cpp:266
#9  0x00506cc9 in start_thread () from /lib/libpthread.so.0
#10 0x0233469e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xa5efdb70 (LWP 3262)):
#0  0x00a38416 in __kernel_vsyscall ()
#1  0x0050b4dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0x043439c7 in wait (this=0xaa255acc, mutex=0xaa255ac8, time=4294967295) at thread/qwaitcondition_unix.cpp:88
#3  QWaitCondition::wait (this=0xaa255acc, mutex=0xaa255ac8, time=4294967295) at thread/qwaitcondition_unix.cpp:160
#4  0x001658f2 in net::ReverseResolverThread::run (this=0xaa255ac0) at ../../src/net/reverseresolver.cpp:123
#5  0x04342df9 in QThreadPrivate::start (arg=0xaa255ac0) at thread/qthread_unix.cpp:266
#6  0x00506cc9 in start_thread () from /lib/libpthread.so.0
#7  0x0233469e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb78a9710 (LWP 2303)):
[KCrash Handler]
#7  0x0443687e in QAbstractEventDispatcherPrivate::releaseTimerId (timerId=166267232) at kernel/qabstracteventdispatcher.cpp:161
#8  0x0447662d in QTimerInfoList::unregisterTimers (this=0xb4f0307c, object=0xacae6608) at kernel/qeventdispatcher_unix.cpp:523
#9  0x0447342d in QEventDispatcherGlib::unregisterTimers (this=0x8694d50, object=0xacae6608) at kernel/qeventdispatcher_glib.cpp:548
#10 0x0445eefb in QObject::~QObject (this=0xacae6608, __in_chrg=<value optimized out>) at kernel/qobject.cpp:935
#11 0x0020dcad in utp::Connection::~Connection (this=0xacae6608, __in_chrg=<value optimized out>) at ../../src/utp/connection.cpp:91
#12 0x00207d1e in utp::UTPServer::connectTo (this=0x8711940, addr=...) at ../../src/utp/utpserver.cpp:357
#13 0x0021126c in utp::UTPSocket::connectTo (this=0xac7509b8, addr=...) at ../../src/utp/utpsocket.cpp:85
#14 0x00167eac in mse::StreamSocket::connectTo (this=0xac751e40, addr=...) at ../../src/mse/streamsocket.cpp:210
#15 0x0016cf4a in bt::Authenticate::Authenticate (this=0xaead0b38, ip=..., port=<value optimized out>, proto=bt::UTP, info_hash=..., peer_id=..., pcon=0xac6d8390) at ../../src/peer/authenticate.cpp:66
#16 0x00169aba in mse::EncryptedAuthenticate::EncryptedAuthenticate (this=0xaead0b38, ip=..., port=<value optimized out>, proto=bt::UTP, info_hash=..., peer_id=..., pcon=0xac6d8390) at ../../src/mse/encryptedauthenticate.cpp:46
#17 0x00182961 in bt::PeerConnector::start (this=0xac6d8390, method=bt::PeerConnector::UTP_WITH_ENCRYPTION) at ../../src/peer/peerconnector.cpp:128
#18 0x00182a4d in bt::PeerConnector::start (this=0x100012a) at ../../src/peer/peerconnector.cpp:55
#19 0x00178b07 in bt::PeerManager::connectToPeers (this=0xb4f93f58) at ../../src/peer/peermanager.cpp:436
#20 0x001aed53 in bt::TorrentControl::update (this=0xb4f78180) at ../../src/torrent/torrentcontrol.cpp:170
#21 0x080690f3 in kt::Core::update (this=0xb4f02850) at ../../ktorrent/core.cpp:1030
#22 0x080716cd in kt::Core::qt_metacall (this=0xb4f02850, _c=QMetaObject::InvokeMetaMethod, _id=16777514, _a=0xbfb294ac) at ./core.moc:167
#23 0x0444a8ca in QMetaObject::metacall (object=0xb4f02850, cl=51502176, idx=22, argv=0xbfb294ac) at kernel/qmetaobject.cpp:237
#24 0x0445d6ad in QMetaObject::activate (sender=0xb4f02864, m=0x45775a4, local_signal_index=0, argv=0x100012a) at kernel/qobject.cpp:3280
#25 0x044af1e7 in QTimer::timeout (this=0xb4f02864) at .moc/release-shared/moc_qtimer.cpp:134
#26 0x044631ce in QTimer::timerEvent (this=0xb4f02864, e=0xbfb299b0) at kernel/qtimer.cpp:271
#27 0x04457504 in QObject::event (this=0xb4f02864, e=0x12a) at kernel/qobject.cpp:1183
#28 0x04ec1fdc in QApplicationPrivate::notify_helper (this=0x85fa4a8, receiver=0xb4f02864, e=0xbfb299b0) at kernel/qapplication.cpp:4396
#29 0x04ec804e in QApplication::notify (this=0xbfb29d00, receiver=0xb4f02864, e=0xbfb299b0) at kernel/qapplication.cpp:3798
#30 0x080783dc in kt::App::notify (this=0x311dc60, receiver=0x12a, event=0x100012a) at ../../ktorrent/app.cpp:97
#31 0x04444b3b in QCoreApplication::notifyInternal (this=0xbfb29d00, receiver=0xb4f02864, event=0xbfb299b0) at kernel/qcoreapplication.cpp:732
#32 0x04476ad6 in sendEvent (this=0x85f9e6c) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#33 QTimerInfoList::activateTimers (this=0x85f9e6c) at kernel/qeventdispatcher_unix.cpp:602
#34 0x04473874 in timerSourceDispatch (source=0x85f9e38) at kernel/qeventdispatcher_glib.cpp:184
#35 0x077ea855 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#36 0x077ee668 in ?? () from /lib/libglib-2.0.so.0
#37 0x077ee848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#38 0x0447359f in QEventDispatcherGlib::processEvents (this=0x85c0780, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#39 0x04f83be5 in QGuiEventDispatcherGlib::processEvents (this=0x85c0780, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#40 0x04443609 in QEventLoop::processEvents (this=0xbfb29c74, flags=) at kernel/qeventloop.cpp:149
#41 0x04443a8a in QEventLoop::exec (this=0xbfb29c74, flags=...) at kernel/qeventloop.cpp:201
#42 0x0444800f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#43 0x04ec0e07 in QApplication::exec () at kernel/qapplication.cpp:3672
#44 0x08066e91 in main (argc=3, argv=0xbfb2a104) at ../../ktorrent/main.cpp:176

Possible duplicates by query: bug 241234.

Reported using DrKonqi
Comment 1 grahamt 2011-02-27 08:45:30 UTC
Created attachment 57546 [details]
New crash information added by DrKonqi

ktorrent (4.0.3) on KDE Platform 4.6.00 (4.6.0) using Qt 4.7.0

- What I was doing when the application crashed:

Selected Exit from the Ktorrent System Tray icon.

-- Backtrace (Reduced):
#7  0x008bca9e in utp::UTPServer::connectTo (this=0x0, addr=...) at ../../src/utp/utpserver.cpp:338
#8  0x008c626c in utp::UTPSocket::connectTo (this=0xb2723460, addr=...) at ../../src/utp/utpsocket.cpp:85
#9  0x0081ceac in mse::StreamSocket::connectTo (this=0xb29a0220, addr=...) at ../../src/mse/streamsocket.cpp:210
#10 0x00821f4a in bt::Authenticate::Authenticate (this=0xb3b8a9c8, ip=..., port=<value optimized out>, proto=bt::UTP, info_hash=..., peer_id=..., pcon=0xb1cf5c90) at ../../src/peer/authenticate.cpp:66
#11 0x0081eaba in mse::EncryptedAuthenticate::EncryptedAuthenticate (this=0xb3b8a9c8, ip=..., port=<value optimized out>, proto=bt::UTP, info_hash=..., peer_id=..., pcon=0xb1cf5c90) at ../../src/mse/encryptedauthenticate.cpp:46
Comment 2 Joris Guisson 2011-02-27 10:24:14 UTC

*** This bug has been marked as a duplicate of bug 251117 ***
Comment 3 Joris Guisson 2011-02-27 10:42:20 UTC

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