Bug 235055

Summary: Downloading Kubuntu torrents, high speeds seem to cause crashes
Product: [Applications] ktorrent Reporter: Nathaniel Eliot <bugs.kde.org>
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Nathaniel Eliot 2010-04-22 12:46:20 UTC
Application that crashed: ktorrent
Version of the application: 3.2.4
KDE Version: 4.3.2 (KDE 4.3.2)
Qt Version: 4.5.2
Operating System: Linux 2.6.31-20-generic x86_64
Distribution: Ubuntu 9.10

What I was doing when the application crashed:
When downloading Kubuntu ISOs, KTorrent segfaults multiple times. This appears to be caused by the high speed of download/number of peers.

 -- Backtrace:
Application: KTorrent (ktorrent), signal: Segmentation fault
The current source language is "auto; currently c".
[Current thread is 1 (Thread 0x7f5943eed750 (LWP 9746))]

Thread 3 (Thread 0x7f59378eb910 (LWP 9756)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:220
#1  0x00007f5941c5aed5 in thread_sleep (ti=0x7f59378eb000) at thread/qthread_unix.cpp:297
#2  0x00007f5941c5b040 in QThread::msleep (msecs=<value optimized out>) at thread/qthread_unix.cpp:323
#3  0x00007f5943a214f3 in net::DownloadThread::update (this=0x1796530) at ../../libbtcore/net/downloadthread.cpp:110
#4  0x00007f5943a21c89 in net::NetworkThread::run (this=0x1796530) at ../../libbtcore/net/networkthread.cpp:48
#5  0x00007f5941c5b445 in QThreadPrivate::start (arg=0x1796530) at thread/qthread_unix.cpp:188
#6  0x00007f593d28ea04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#7  0x00007f594060e80d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f593663c910 (LWP 9757)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f5941c5c4fb in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x1796eb0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x1796eb0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f5943a20b88 in net::UploadThread::update (this=0x1796e40) at ../../libbtcore/net/uploadthread.cpp:73
#4  0x00007f5943a21c89 in net::NetworkThread::run (this=0x1796e40) at ../../libbtcore/net/networkthread.cpp:48
#5  0x00007f5941c5b445 in QThreadPrivate::start (arg=0x1796e40) at thread/qthread_unix.cpp:188
#6  0x00007f593d28ea04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#7  0x00007f594060e80d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()
The current source language is "auto; currently asm".

Thread 1 (Thread 0x7f5943eed750 (LWP 9746)):
[KCrash Handler]
#5  memcpy () at ../sysdeps/x86_64/memcpy.S:267
#6  0x00007f594002e276 in QCA::MemoryRegion::MemoryRegion(QByteArray const&) () from /usr/lib/libqca.so.2
#7  0x00007f59400459d4 in QCA::Hash::update(char const*, int) () from /usr/lib/libqca.so.2
#8  0x00007f5943a3e2d2 in bt::ChunkDownload::updateHash (this=0x7f593017d3a0) at ../../libbtcore/download/chunkdownload.cpp:562
#9  0x00007f5943a3f055 in bt::ChunkDownload::piece (this=0x7f593017d3a0, p=..., ok=<value optimized out>) at ../../libbtcore/download/chunkdownload.cpp:133
#10 0x00007f5943a458be in bt::Downloader::pieceReceived (this=0x1ed5fb0, p=...) at ../../libbtcore/download/downloader.cpp:133
#11 0x00007f5943a2e091 in bt::Peer::packetReady (this=0x1f93570, packet=0x7f593001e240 "\a", len=<value optimized out>) at ../../libbtcore/peer/peer.cpp:269
#12 0x00007f5943a36f95 in bt::PacketReader::update (this=0x1f2b3e0) at ../../libbtcore/peer/packetreader.cpp:131
#13 0x00007f5943a2ddd5 in bt::Peer::update (this=0x1f93570) at ../../libbtcore/peer/peer.cpp:474
#14 0x00007f5943a317c0 in bt::PeerManager::update (this=0x1f0df20) at ../../libbtcore/peer/peermanager.cpp:117
#15 0x00007f5943a624cc in bt::TorrentControl::update (this=0x20188d0) at ../../libbtcore/torrent/torrentcontrol.cpp:178
#16 0x000000000042c1c2 in kt::Core::update (this=0x1879640) at ../../ktorrent/core.cpp:877
#17 0x0000000000431d2c in kt::Core::qt_metacall (this=0x1879640, _c=QMetaObject::InvokeMetaMethod, _id=805823176, _a=0x7fff3d2ba090) at ./core.moc:148
#18 0x00007f5941d56ddc in QMetaObject::activate (sender=0x1879668, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0x400) at kernel/qobject.cpp:3113
#19 0x00007f5941d50d83 in QObject::event (this=0x1879668, e=0x7f5943f0c000) at kernel/qobject.cpp:1075
#20 0x00007f59411e9efc in QApplicationPrivate::notify_helper (this=0x17d1c80, receiver=0x1879668, e=0x7fff3d2ba690) at kernel/qapplication.cpp:4056
#21 0x00007f59411f11ce in QApplication::notify (this=0x7fff3d2ba9c0, receiver=0x1879668, e=0x7fff3d2ba690) at kernel/qapplication.cpp:4021
#22 0x00007f5942c13ab6 in KApplication::notify (this=0x7fff3d2ba9c0, receiver=0x1879668, event=0x7fff3d2ba690) at ../../kdeui/kernel/kapplication.cpp:302
#23 0x00007f5941d41c2c in QCoreApplication::notifyInternal (this=0x7fff3d2ba9c0, receiver=0x1879668, event=0x7fff3d2ba690) at kernel/qcoreapplication.cpp:610
#24 0x00007f5941d6c862 in QCoreApplication::sendEvent (this=0x17c46a0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#25 QTimerInfoList::activateTimers (this=0x17c46a0) at kernel/qeventdispatcher_unix.cpp:572
#26 0x00007f5941d6a25d in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:165
#27 0x00007f593c5b9bce in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#28 0x00007f593c5bd598 in ?? () from /lib/libglib-2.0.so.0
#29 0x00007f593c5bd6c0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#30 0x00007f5941d6a1a6 in QEventDispatcherGlib::processEvents (this=0x1793530, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#31 0x00007f594127e4be in QGuiEventDispatcherGlib::processEvents (this=0x7f59300802c8, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#32 0x00007f5941d40532 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#33 0x00007f5941d40904 in QEventLoop::exec (this=0x7fff3d2ba930, flags=) at kernel/qeventloop.cpp:201
#34 0x00007f5941d42ab9 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#35 0x0000000000424ef2 in main (argc=<value optimized out>, argv=<value optimized out>) at ../../ktorrent/main.cpp:171
The current source language is "auto; currently c".

Reported using DrKonqi
Comment 1 Joris Guisson 2010-04-22 17:49:25 UTC

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