Bug 219361

Summary: ktorrent 2nd random crash within an hour or two of use
Product: [Applications] ktorrent Reporter: yinghu37
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 yinghu37 2009-12-19 23:18:01 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:
Two of same torrents as in my last crash report, with a third now downloading - two down and the BSD isos now seeding - random crash while I was away from computer.

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

Thread 3 (Thread 0x7fc2351b7910 (LWP 2299)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007fc244f76c93 in QMutexPrivate::wait (this=0x3535970, timeout=-1) at thread/qmutex_unix.cpp:80
#2  0x00007fc244f72865 in QMutex::lock (this=0x2c11f80) at thread/qmutex.cpp:207
#3  0x00007fc246d533ac in bt::PacketReader::onDataReady (this=0x2c11f60, 
    buf=0x7fc246ffdaa0 "\363\063^P\004\264'\335\307\035\252\v\202\212\062\026\060\"x\275\223|S\205\254y|D\303\357\fF\257\365\225\361[\274nS4\221\267\274XZn\367s5", size=1380)
    at ../../libbtcore/peer/packetreader.cpp:223
#4  0x00007fc246d39455 in net::BufferedSocket::readBuffered (this=0x32ca400, max_bytes_to_read=0, now=1261260014701) at ../../libbtcore/net/bufferedsocket.cpp:110
#5  0x00007fc246d3ebaa in net::SocketGroup::processUnlimited (this=<value optimized out>, up=false, now=1261260014701) at ../../libbtcore/net/socketgroup.cpp:53
#6  0x00007fc246d3eda8 in net::SocketGroup::process (this=0x35359bc, up=128, now=1, global_allowance=@0x7fc2351b6fec) at ../../libbtcore/net/socketgroup.cpp:192
#7  0x00007fc246d3dbbc in net::NetworkThread::doGroups (this=0x215b530, num_ready=<value optimized out>, now=1261260014701, limit=<value optimized out>) at ../../libbtcore/net/networkthread.cpp:155
#8  0x00007fc246d3d4d2 in net::DownloadThread::update (this=0x215b530) at ../../libbtcore/net/downloadthread.cpp:102
#9  0x00007fc246d3dc89 in net::NetworkThread::run (this=0x215b530) at ../../libbtcore/net/networkthread.cpp:48
#10 0x00007fc244f77445 in QThreadPrivate::start (arg=0x215b530) at thread/qthread_unix.cpp:188
#11 0x00007fc2405aaa04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#12 0x00007fc24392a7bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fc22a4ca910 (LWP 2300)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007fc244f76c93 in QMutexPrivate::wait (this=0x215b4b0, timeout=-1) at thread/qmutex_unix.cpp:80
#2  0x00007fc244f72845 in QMutex::lock (this=0x7fc247001ac8) at thread/qmutex.cpp:169
#3  0x00007fc246d3ca5a in net::UploadThread::update (this=0x215be40) at ../../libbtcore/net/uploadthread.cpp:44
#4  0x00007fc246d3dc89 in net::NetworkThread::run (this=0x215be40) at ../../libbtcore/net/networkthread.cpp:48
#5  0x00007fc244f77445 in QThreadPrivate::start (arg=0x215be40) at thread/qthread_unix.cpp:188
#6  0x00007fc2405aaa04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#7  0x00007fc24392a7bd 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 0x7fc247201750 (LWP 2296)):
[KCrash Handler]
#5  memcpy () at ../sysdeps/x86_64/memcpy.S:267
#6  0x00007fc24334a276 in QCA::MemoryRegion::MemoryRegion(QByteArray const&) () from /usr/lib/libqca.so.2
#7  0x00007fc2433619d4 in QCA::Hash::update(char const*, int) () from /usr/lib/libqca.so.2
#8  0x00007fc246d5a2d2 in bt::ChunkDownload::updateHash (this=0x3678e30) at ../../libbtcore/download/chunkdownload.cpp:562
#9  0x00007fc246d5b055 in bt::ChunkDownload::piece (this=0x3678e30, p=..., ok=<value optimized out>) at ../../libbtcore/download/chunkdownload.cpp:133
#10 0x00007fc246d618be in bt::Downloader::pieceReceived (this=0x2fbc550, p=...) at ../../libbtcore/download/downloader.cpp:133
#11 0x00007fc246d4a091 in bt::Peer::packetReady (this=0x3581bc0, packet=0x7fc2300f33e0 "\a", len=<value optimized out>) at ../../libbtcore/peer/peer.cpp:269
#12 0x00007fc246d52f95 in bt::PacketReader::update (this=0x2c11f60) at ../../libbtcore/peer/packetreader.cpp:131
#13 0x00007fc246d49dd5 in bt::Peer::update (this=0x3581bc0) at ../../libbtcore/peer/peer.cpp:474
#14 0x00007fc246d4d7c0 in bt::PeerManager::update (this=0x301b6b0) at ../../libbtcore/peer/peermanager.cpp:117
#15 0x00007fc246d7e4cc in bt::TorrentControl::update (this=0x310ecd0) at ../../libbtcore/torrent/torrentcontrol.cpp:178
#16 0x000000000042c1c2 in kt::Core::update (this=0x2365840) at ../../ktorrent/core.cpp:877
#17 0x0000000000431d2c in kt::Core::qt_metacall (this=0x2365840, _c=QMetaObject::InvokeMetaMethod, _id=58857272, _a=0x7fff93f5c690) at ./core.moc:148
#18 0x00007fc245072ddc in QMetaObject::activate (sender=0x2365868, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0x600) at kernel/qobject.cpp:3113
#19 0x00007fc24506cd83 in QObject::event (this=0x2365868, e=0x7fc247043000) at kernel/qobject.cpp:1075
#20 0x00007fc244505efc in QApplicationPrivate::notify_helper (this=0x2190af0, receiver=0x2365868, e=0x7fff93f5cc90) at kernel/qapplication.cpp:4056
#21 0x00007fc24450d1ce in QApplication::notify (this=0x7fff93f5cfc0, receiver=0x2365868, e=0x7fff93f5cc90) at kernel/qapplication.cpp:4021
#22 0x00007fc245f2fab6 in KApplication::notify (this=0x7fff93f5cfc0, receiver=0x2365868, event=0x7fff93f5cc90) at ../../kdeui/kernel/kapplication.cpp:302
#23 0x00007fc24505dc2c in QCoreApplication::notifyInternal (this=0x7fff93f5cfc0, receiver=0x2365868, event=0x7fff93f5cc90) at kernel/qcoreapplication.cpp:610
#24 0x00007fc245088862 in QCoreApplication::sendEvent (this=0x2189cc0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#25 QTimerInfoList::activateTimers (this=0x2189cc0) at kernel/qeventdispatcher_unix.cpp:572
#26 0x00007fc24508625d in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:165
#27 0x00007fc23f8d5bbe in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#28 0x00007fc23f8d9588 in ?? () from /lib/libglib-2.0.so.0
#29 0x00007fc23f8d96b0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#30 0x00007fc2450861a6 in QEventDispatcherGlib::processEvents (this=0x2158530, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#31 0x00007fc24459a4be in QGuiEventDispatcherGlib::processEvents (this=0x3822738, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#32 0x00007fc24505c532 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#33 0x00007fc24505c904 in QEventLoop::exec (this=0x7fff93f5cf30, flags=) at kernel/qeventloop.cpp:201
#34 0x00007fc24505eab9 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 2009-12-20 11:20:20 UTC

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