Bug 219360 - ktorrent 'random' crash while downloading
Summary: ktorrent 'random' crash while downloading
Status: RESOLVED DUPLICATE of bug 186621
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-19 23:12 UTC by yinghu37
Modified: 2009-12-20 11:19 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yinghu37 2009-12-19 23:12:29 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-16-generic x86_64
Distribution: Ubuntu 9.10

What I was doing when the application crashed:
Downloading two torrents, one getting the FreeBSD iso set.  Crashed randomly for no reason apparent to user.

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

Thread 3 (Thread 0x7ff72a114910 (LWP 31820)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007ff745d13c93 in QMutexPrivate::wait (this=0x7ff72cd1e2c0, timeout=-1) at thread/qmutex_unix.cpp:80
#2  0x00007ff745d0f865 in QMutex::lock (this=0x7ff72ccaa700) at thread/qmutex.cpp:207
#3  0x00007ff747af03ac in bt::PacketReader::onDataReady (this=0x7ff72ccaa6e0, 
    buf=0x7ff747d9aaa0 "\354\363n\335\306\337h\217Nc\337\337\341\235\033\266\062s,\203\061\304\211i\352\261\243\271>?&\272\066\351\270\356r\247\360r`\214IB\204uxKo\236\313+4\343\226\212\065\207\t\270\023)6QX(0\363\364\306\023\237l\236\066\005;\373E%\244z\200\022\207V\373Le\206\004\t )\320\241UT\241\221\211\026\030\224\344\323\004\304P\177\024z\266\354?v\343\242\340o\262\n\270\316\071\230\324\333\363\v\320v\362\365\354\360\273\373\273\376o\305\340\353\343\071\323#\b`>\025\034\342\232\t\a\003~\001\220\016k\353\034D\006\017\313\341\267\352\376\023\366\370*u\331\371\202\224\t\335u\fvmTl\371\273\327o\351\030\"\340\276\330"..., size=1396) at ../../libbtcore/peer/packetreader.cpp:223
#4  0x00007ff747ad6455 in net::BufferedSocket::readBuffered (this=0x7ff72cbed9c0, max_bytes_to_read=0, now=1261255097769) at ../../libbtcore/net/bufferedsocket.cpp:110
#5  0x00007ff747adbbaa in net::SocketGroup::processUnlimited (this=<value optimized out>, up=false, now=1261255097769) at ../../libbtcore/net/socketgroup.cpp:53
#6  0x00007ff747adbda8 in net::SocketGroup::process (this=0x7ff72cd1e30c, up=128, now=1, global_allowance=@0x7ff72a113fec) at ../../libbtcore/net/socketgroup.cpp:192
#7  0x00007ff747adabbc in net::NetworkThread::doGroups (this=0x1bdd530, num_ready=<value optimized out>, now=1261255097769, limit=<value optimized out>) at ../../libbtcore/net/networkthread.cpp:155
#8  0x00007ff747ada4d2 in net::DownloadThread::update (this=0x1bdd530) at ../../libbtcore/net/downloadthread.cpp:102
#9  0x00007ff747adac89 in net::NetworkThread::run (this=0x1bdd530) at ../../libbtcore/net/networkthread.cpp:48
#10 0x00007ff745d14445 in QThreadPrivate::start (arg=0x1bdd530) at thread/qthread_unix.cpp:188
#11 0x00007ff741347a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#12 0x00007ff7446c77bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7ff729913910 (LWP 31821)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007ff745d13c93 in QMutexPrivate::wait (this=0x1bdd4b0, timeout=-1) at thread/qmutex_unix.cpp:80
#2  0x00007ff745d0f845 in QMutex::lock (this=0x7ff747d9eac8) at thread/qmutex.cpp:169
#3  0x00007ff747ad9a5a in net::UploadThread::update (this=0x1bdde40) at ../../libbtcore/net/uploadthread.cpp:44
#4  0x00007ff747adac89 in net::NetworkThread::run (this=0x1bdde40) at ../../libbtcore/net/networkthread.cpp:48
#5  0x00007ff745d14445 in QThreadPrivate::start (arg=0x1bdde40) at thread/qthread_unix.cpp:188
#6  0x00007ff741347a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#7  0x00007ff7446c77bd 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 0x7ff747f9e750 (LWP 31809)):
[KCrash Handler]
#5  memcpy () at ../sysdeps/x86_64/memcpy.S:267
#6  0x00007ff7440e7276 in QCA::MemoryRegion::MemoryRegion(QByteArray const&) () from /usr/lib/libqca.so.2
#7  0x00007ff7440fe9d4 in QCA::Hash::update(char const*, int) () from /usr/lib/libqca.so.2
#8  0x00007ff747af72d2 in bt::ChunkDownload::updateHash (this=0x7ff72cf11f00) at ../../libbtcore/download/chunkdownload.cpp:562
#9  0x00007ff747af8055 in bt::ChunkDownload::piece (this=0x7ff72cf11f00, p=..., ok=<value optimized out>) at ../../libbtcore/download/chunkdownload.cpp:133
#10 0x00007ff747afe8be in bt::Downloader::pieceReceived (this=0x244f000, p=...) at ../../libbtcore/download/downloader.cpp:133
#11 0x00007ff747ae7091 in bt::Peer::packetReady (this=0x7ff72cfe5a50, packet=0x2561ca0 "\a", len=<value optimized out>) at ../../libbtcore/peer/peer.cpp:269
#12 0x00007ff747aeff95 in bt::PacketReader::update (this=0x7ff72ccaa6e0) at ../../libbtcore/peer/packetreader.cpp:131
#13 0x00007ff747ae6dd5 in bt::Peer::update (this=0x7ff72cfe5a50) at ../../libbtcore/peer/peer.cpp:474
#14 0x00007ff747aea7c0 in bt::PeerManager::update (this=0x234c740) at ../../libbtcore/peer/peermanager.cpp:117
#15 0x00007ff747b1b4cc in bt::TorrentControl::update (this=0x234c320) at ../../libbtcore/torrent/torrentcontrol.cpp:178
#16 0x000000000042c1c2 in kt::Core::update (this=0x1e33cf0) at ../../ktorrent/core.cpp:877
#17 0x0000000000431d2c in kt::Core::qt_metacall (this=0x1e33cf0, _c=QMetaObject::InvokeMetaMethod, _id=756396648, _a=0x7fff5182b910) at ./core.moc:148
#18 0x00007ff745e0fddc in QMetaObject::activate (sender=0x1e33d18, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0x700) at kernel/qobject.cpp:3113
#19 0x00007ff745e09d83 in QObject::event (this=0x1e33d18, e=0x7ff737767000) at kernel/qobject.cpp:1075
#20 0x00007ff7452a2efc in QApplicationPrivate::notify_helper (this=0x1c12dd0, receiver=0x1e33d18, e=0x7fff5182bf10) at kernel/qapplication.cpp:4056
#21 0x00007ff7452aa1ce in QApplication::notify (this=0x7fff5182c240, receiver=0x1e33d18, e=0x7fff5182bf10) at kernel/qapplication.cpp:4021
#22 0x00007ff746cccab6 in KApplication::notify (this=0x7fff5182c240, receiver=0x1e33d18, event=0x7fff5182bf10) at ../../kdeui/kernel/kapplication.cpp:302
#23 0x00007ff745dfac2c in QCoreApplication::notifyInternal (this=0x7fff5182c240, receiver=0x1e33d18, event=0x7fff5182bf10) at kernel/qcoreapplication.cpp:610
#24 0x00007ff745e25862 in QCoreApplication::sendEvent (this=0x1c0c060) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#25 QTimerInfoList::activateTimers (this=0x1c0c060) at kernel/qeventdispatcher_unix.cpp:572
#26 0x00007ff745e2325d in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:165
#27 0x00007ff740672bbe in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#28 0x00007ff740676588 in ?? () from /lib/libglib-2.0.so.0
#29 0x00007ff7406766b0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#30 0x00007ff745e231a6 in QEventDispatcherGlib::processEvents (this=0x1bda530, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#31 0x00007ff7453374be in QGuiEventDispatcherGlib::processEvents (this=0x7ff72d15ba68, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#32 0x00007ff745df9532 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#33 0x00007ff745df9904 in QEventLoop::exec (this=0x7fff5182c1b0, flags=) at kernel/qeventloop.cpp:201
#34 0x00007ff745dfbab9 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 Krzysztof Dzida 2009-12-20 00:51:40 UTC
I installed today 4.0 and working.
svn co svn://anonsvn.kde.org/home/kde/trunk/extragear/network/ktorrent
cd directory_where_ktorrent_source_code_is
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
make
sudo make install
Comment 2 Joris Guisson 2009-12-20 11:19:49 UTC

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