Bug 272601

Summary: Ktorrent on Kubuntu Natty Crashes While Downloading
Product: [Applications] ktorrent Reporter: grahamt <grahamtooley>
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED DUPLICATE    
Severity: crash CC: n.schnelle
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-05-06 10:30:24 UTC
Application: ktorrent (4.0.5)
KDE Platform Version: 4.6.2 (4.6.2)
Qt Version: 4.7.2
Operating System: Linux 2.6.38-8-generic i686
Distribution: Ubuntu 11.04

-- Information about the crash:
- What I was doing when the application crashed:

Downloading some torrents.

Crash happens randomly but repeatedly. Effective downloading in near impossible with the frequency of crashes.

The crash can be reproduced some of the time.

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

Thread 7 (Thread 0xb4fa1b70 (LWP 21075)):
#0  0x00ac0416 in __kernel_vsyscall ()
#1  0x00dbef76 in __poll (fds=0xa645d18, nfds=1, timeout=3) at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0x02f9184b in g_poll () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0x02f811af in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0x02f81524 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0x03ff8577 in QEventDispatcherGlib::processEvents (this=0x9d40f68, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#6  0x03fca289 in QEventLoop::processEvents (this=0xb4fa1290, flags=...) at kernel/qeventloop.cpp:149
#7  0x03fca522 in QEventLoop::exec (this=0xb4fa1290, flags=...) at kernel/qeventloop.cpp:201
#8  0x03ed42a0 in QThread::exec (this=0x9dbc5a0) at thread/qthread.cpp:492
#9  0x001f5e8e in utp::UTPServerThread::run (this=0x9dbc5a0) at ../../src/utp/utpserverthread.cpp:44
#10 0x03ed6da2 in QThreadPrivate::start (arg=0x9dbc5a0) at thread/qthread_unix.cpp:320
#11 0x01363e99 in start_thread (arg=0xb4fa1b70) at pthread_create.c:304
#12 0x00dcd73e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 6 (Thread 0xb45ffb70 (LWP 21076)):
#0  0x00ac0416 in __kernel_vsyscall ()
#1  0x00dc6681 in select () at ../sysdeps/unix/syscall-template.S:82
#2  0x001c2291 in dht::RPCServerThread::run (this=0xb460c1f0) at ../../src/dht/rpcserver.cpp:107
#3  0x03ed6da2 in QThreadPrivate::start (arg=0xb460c1f0) at thread/qthread_unix.cpp:320
#4  0x01363e99 in start_thread (arg=0xb45ffb70) at pthread_create.c:304
#5  0x00dcd73e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 5 (Thread 0xb57a2b70 (LWP 21077)):
#0  0x06557d41 in clock_gettime (clock_id=1, tp=0xb57a2000) at ../sysdeps/unix/clock_gettime.c:116
#1  0x03f2cdd8 in do_gettime () at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0x03ff94f2 in updateCurrentTime (this=0xb460c134, tm=...) at kernel/qeventdispatcher_unix.cpp:339
#4  QTimerInfoList::timerWait (this=0xb460c134, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#5  0x03ff7d32 in timerSourcePrepareHelper (src=<value optimized out>, timeout=0xb57a20dc) at kernel/qeventdispatcher_glib.cpp:136
#6  0x03ff7dcd in timerSourcePrepare (source=0xb460c100, timeout=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#7  0x02f7ffd4 in g_main_context_prepare () from /lib/i386-linux-gnu/libglib-2.0.so.0
#8  0x02f80e63 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#9  0x02f81524 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#10 0x03ff8577 in QEventDispatcherGlib::processEvents (this=0x9f5e3f0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#11 0x03fca289 in QEventLoop::processEvents (this=0xb57a2290, flags=...) at kernel/qeventloop.cpp:149
#12 0x03fca522 in QEventLoop::exec (this=0xb57a2290, flags=...) at kernel/qeventloop.cpp:201
#13 0x03ed42a0 in QThread::exec (this=0x9f5e658) at thread/qthread.cpp:492
#14 0x03fabfdb in QInotifyFileSystemWatcherEngine::run (this=0x9f5e658) at io/qfilesystemwatcher_inotify.cpp:248
#15 0x03ed6da2 in QThreadPrivate::start (arg=0x9f5e658) at thread/qthread_unix.cpp:320
#16 0x01363e99 in start_thread (arg=0xb57a2b70) at pthread_create.c:304
#17 0x00dcd73e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 4 (Thread 0xb04adb70 (LWP 21090)):
#0  0x00160fa4 in net::DownloadThread::update (this=0x9ca4660) at ../../src/net/downloadthread.cpp:59
#1  0x001611e8 in net::NetworkThread::run (this=0x9ca4660) at ../../src/net/networkthread.cpp:48
#2  0x03ed6da2 in QThreadPrivate::start (arg=0x9ca4660) at thread/qthread_unix.cpp:320
#3  0x01363e99 in start_thread (arg=0xb04adb70) at pthread_create.c:304
#4  0x00dcd73e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 3 (Thread 0xaf4abb70 (LWP 21091)):
#0  0x00ac0416 in __kernel_vsyscall ()
#1  0x0136848c in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:169
#2  0x00ddb3fd in __pthread_cond_wait (cond=0x9ca4588, mutex=0x9ca4570) at forward.c:139
#3  0x03ed5daa in QMutexPrivate::wait (this=0x9ca4558, timeout=-1) at thread/qmutex_unix.cpp:84
#4  0x03ed2492 in QMutex::lock (this=0x81118b4) at thread/qmutex.cpp:167
#5  0x0015f560 in net::SocketMonitor::lock (this=0x81118b0) at ../../src/net/socketmonitor.cpp:82
#6  0x00160422 in net::UploadThread::waitForSocketsReady (this=0x9ca49c0) at ../../src/net/uploadthread.cpp:112
#7  0x001606bf in net::UploadThread::update (this=0x9ca49c0) at ../../src/net/uploadthread.cpp:45
#8  0x001611e8 in net::NetworkThread::run (this=0x9ca49c0) at ../../src/net/networkthread.cpp:48
#9  0x03ed6da2 in QThreadPrivate::start (arg=0x9ca49c0) at thread/qthread_unix.cpp:320
#10 0x01363e99 in start_thread (arg=0xaf4abb70) at pthread_create.c:304
#11 0x00dcd73e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 2 (Thread 0xafcacb70 (LWP 21092)):
#0  0x00ac0416 in __kernel_vsyscall ()
#1  0x00dbef76 in __poll (fds=0xafcaafb4, nfds=1, timeout=5000) at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0x016b776c in send_dg (statp=0xafcacdf4, buf=0xafcab010 "U\277\001", buflen=45, buf2=0x0, buflen2=0, ans=0xafcab190 "\001", anssiz=1024, ansp=0xafcab9c8, ansp2=0x0, nansp2=0x0, resplen2=0x0) at res_send.c:1066
#3  __libc_res_nsend (statp=0xafcacdf4, buf=0xafcab010 "U\277\001", buflen=45, buf2=0x0, buflen2=0, ans=0xafcab190 "\001", anssiz=1024, ansp=0xafcab9c8, ansp2=0x0, nansp2=0x0, resplen2=0x0) at res_send.c:556
#4  0x016b57b3 in __libc_res_nquery (statp=0xafcacdf4, name=0xafcab5c6 "166.34.252.173.in-addr.arpa", class=1, type=12, answer=0xafcab190 "\001", anslen=1024, answerp=0xafcab9c8, answerp2=0x0, nanswerp2=0x0, resplen2=0x0) at res_query.c:225
#5  0x065dad5b in _nss_dns_gethostbyaddr2_r (addr=0xaa19a08c, len=<value optimized out>, af=<value optimized out>, result=0xafcac044, buffer=0xafcaba80 "\377\002", buflen=1024, errnop=0xafcacb28, h_errnop=0xafcac078, ttlp=0x0) at nss_dns/dns-host.c:471
#6  0x065daeda in _nss_dns_gethostbyaddr_r (addr=0xaa19a08c, len=4, af=2, result=0xafcac044, buffer=0xafcaba80 "\377\002", buflen=1024, errnop=0xafcacb28, h_errnop=0xafcac078) at nss_dns/dns-host.c:530
#7  0x00de4e02 in __gethostbyaddr_r (addr=<value optimized out>, len=4, type=2, resbuf=0xafcac044, buffer=0xafcaba80 "\377\002", buflen=1024, result=0xafcac074, h_errnop=0xafcac078) at ../nss/getXXbyYY_r.c:256
#8  0x00dea4e2 in getnameinfo (sa=0xaa19a088, addrlen=16, host=0xafcac194 "", hostlen=199, serv=0xafcac0cc "", servlen=199, flags=8) at getnameinfo.c:223
#9  0x00163e4b in net::ReverseResolver::resolve (this=0xaa5b60c8, addr=...) at ../../src/net/reverseresolver.cpp:64
#10 0x00163ee3 in net::ReverseResolver::run (this=0xaa5b60c8) at ../../src/net/reverseresolver.cpp:73
#11 0x001642fe in net::ReverseResolverThread::run (this=0xa7af988) at ../../src/net/reverseresolver.cpp:118
#12 0x03ed6da2 in QThreadPrivate::start (arg=0xa7af988) at thread/qthread_unix.cpp:320
#13 0x01363e99 in start_thread (arg=0xafcacb70) at pthread_create.c:304
#14 0x00dcd73e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb77ae930 (LWP 21073)):
[KCrash Handler]
#7  __memcpy_ia32 () at ../sysdeps/i386/i686/multiarch/../memcpy.S:75
#8  0xbf89e15c in ?? ()
#9  0x030d7167 in QCA::Hash::update(QByteArray const&) () from /usr/lib/libqca.so.2
#10 0x0014a4d9 in bt::SHA1HashGen::update (this=0xb849ce8, data=0xabdefc30 "\210\261n\254\017", len=16384) at ../../src/util/sha1hashgen.cpp:240
#11 0x00186ec8 in bt::ChunkDownload::updateHash (this=0xb849c78) at ../../src/download/chunkdownload.cpp:555
#12 0x00188c21 in bt::ChunkDownload::piece (this=0xb849c78, p=..., ok=@0xbf89e29f) at ../../src/download/chunkdownload.cpp:127
#13 0x0018d8ea in bt::Downloader::pieceReceived (this=0xa0728b8, p=...) at ../../src/download/downloader.cpp:134
#14 0x00176e7f in bt::PeerManager::pieceReceived (this=0xa0631d0, p=...) at ../../src/peer/peermanager.cpp:671
#15 0x00175a92 in bt::Peer::packetReady (this=0xaa5b9440, packet=0xaa5c63b8 "\a", len=9) at ../../src/peer/peer.cpp:283
#16 0x0017e959 in bt::PacketReader::update (this=0xac67da48) at ../../src/peer/packetreader.cpp:141
#17 0x001736f9 in bt::Peer::update (this=0xaa5b9440) at ../../src/peer/peer.cpp:538
#18 0x001787ea in bt::PeerManager::update (this=0xa0631d0) at ../../src/peer/peermanager.cpp:144
#19 0x001aad2d in bt::TorrentControl::update (this=0xa062a68) at ../../src/torrent/torrentcontrol.cpp:163
#20 0x0806a063 in kt::Core::update (this=0x9d64f10) at ../../ktorrent/core.cpp:1025
#21 0x08070895 in kt::Core::qt_metacall (this=0x9d64f10, _c=QMetaObject::InvokeMetaMethod, _id=12, _a=0xbf89e61c) at ./core.moc:169
#22 0x03fd16ba in QMetaObject::metacall (object=0x9d64f10, cl=QMetaObject::InvokeMetaMethod, idx=22, argv=0xbf89e61c) at kernel/qmetaobject.cpp:237
#23 0x03fe14ff in QMetaObject::activate (sender=0x9d64f24, m=0x41065a4, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3287
#24 0x0402e2f7 in QTimer::timeout (this=0x9d64f24) at .moc/release-shared/moc_qtimer.cpp:134
#25 0x03fe73ee in QTimer::timerEvent (this=0x9d64f24, e=0xbf89eb1c) at kernel/qtimer.cpp:271
#26 0x03fe0214 in QObject::event (this=0x9d64f24, e=0xbf89eb1c) at kernel/qobject.cpp:1190
#27 0x08ba5d24 in QApplicationPrivate::notify_helper (this=0x9cf53e8, receiver=0x9d64f24, e=0xbf89eb1c) at kernel/qapplication.cpp:4462
#28 0x08baa8ce in QApplication::notify (this=0xbf89ee40, receiver=0x9d64f24, e=0xbf89eb1c) at kernel/qapplication.cpp:3862
#29 0x08077a57 in kt::App::notify (this=0xbf89ee40, receiver=0x9d64f24, event=0xbf89eb1c) at ../../ktorrent/app.cpp:97
#30 0x03fcb0bb in QCoreApplication::notifyInternal (this=0xbf89ee40, receiver=0x9d64f24, event=0xbf89eb1c) at kernel/qcoreapplication.cpp:731
#31 0x03ffb1e4 in sendEvent (this=0x9cf7944) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#32 QTimerInfoList::activateTimers (this=0x9cf7944) at kernel/qeventdispatcher_unix.cpp:604
#33 0x03ff7e27 in timerSourceDispatch (source=0x9cf7978) at kernel/qeventdispatcher_glib.cpp:184
#34 idleTimerSourceDispatch (source=0x9cf7978) at kernel/qeventdispatcher_glib.cpp:231
#35 0x02f80aa8 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#36 0x02f81270 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#37 0x02f81524 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#38 0x03ff853c in QEventDispatcherGlib::processEvents (this=0x9c9ea90, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#39 0x08c59775 in QGuiEventDispatcherGlib::processEvents (this=0x9c9ea90, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#40 0x03fca289 in QEventLoop::processEvents (this=0xbf89edb4, flags=...) at kernel/qeventloop.cpp:149
#41 0x03fca522 in QEventLoop::exec (this=0xbf89edb4, flags=...) at kernel/qeventloop.cpp:201
#42 0x03fceecc in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#43 0x08ba38e7 in QApplication::exec () at kernel/qapplication.cpp:3736
#44 0x08067221 in main (argc=) at ../../ktorrent/main.cpp:176

Possible duplicates by query: bug 254562, bug 254383, bug 253878, bug 246320.

Reported using DrKonqi
Comment 1 Joris Guisson 2011-05-07 11:07:41 UTC

*** This bug has been marked as a duplicate of bug 247984 ***
Comment 2 Nikola Schnelle 2011-05-16 09:39:40 UTC
Created attachment 60047 [details]
New crash information added by DrKonqi

ktorrent (4.0.5) on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.2

- What I was doing when the application crashed:
I was downloading some files with ktorrent.

-- Backtrace (Reduced):
#9  0x04bf3167 in QCA::Hash::update(QByteArray const&) () from /usr/lib/libqca.so.2
#10 0x0014a4d9 in bt::SHA1HashGen::update (this=0x8926dc8, data=0xb53feb30 "psP\265I", len=16384) at ../../src/util/sha1hashgen.cpp:240
#11 0x00186ec8 in bt::ChunkDownload::updateHash (this=0x8926d58) at ../../src/download/chunkdownload.cpp:555
#12 0x00188c21 in bt::ChunkDownload::piece (this=0x8926d58, p=..., ok=@0xbfe5717f) at ../../src/download/chunkdownload.cpp:127
#13 0x0018d8ea in bt::Downloader::pieceReceived (this=0x8ab9910, p=...) at ../../src/download/downloader.cpp:134