Bug 251826

Summary: KTorrent crashes while downloading
Product: [Applications] ktorrent Reporter: rele
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description rele 2010-09-20 15:58:29 UTC
Application: ktorrent (4.0.3)
KDE Platform Version: 4.4.5 (KDE 4.4.5) (Compiled from sources)
Qt Version: 4.6.3
Operating System: Linux 2.6.35-gentoo-r7 x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
KTorrent crashes while downloading and running in the background

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

Thread 4 (Thread 0x7ffd9148c710 (LWP 10237)):
#0  0x00007ffd9a4f2ec3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007ffd9dd5da62 in dht::RPCServerThread::run (this=0x1c943b0) at /mnt/bigdata/ebuild/working/portage/net-libs/libktorrent-1.0.3/work/libktorrent-1.0.3/src/dht/rpcserver.cpp:107
#2  0x00007ffd9be690d5 in QThreadPrivate::start (arg=0x1c943b0) at thread/qthread_unix.cpp:248
#3  0x00007ffd9bbd9a1c in start_thread () from /lib/libpthread.so.0
#4  0x00007ffd9a4fa31d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 3 (Thread 0x7ffd78af9710 (LWP 10267)):
#0  net::DownloadThread::update (this=0x1bcf190) at /mnt/bigdata/ebuild/working/portage/net-libs/libktorrent-1.0.3/work/libktorrent-1.0.3/src/net/downloadthread.cpp:59
#1  0x00007ffd9dcfde69 in net::NetworkThread::run (this=0x1bcf190) at /mnt/bigdata/ebuild/working/portage/net-libs/libktorrent-1.0.3/work/libktorrent-1.0.3/src/net/networkthread.cpp:48
#2  0x00007ffd9be690d5 in QThreadPrivate::start (arg=0x1bcf190) at thread/qthread_unix.cpp:248
#3  0x00007ffd9bbd9a1c in start_thread () from /lib/libpthread.so.0
#4  0x00007ffd9a4fa31d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7ffd782f8710 (LWP 10268)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:212
#1  0x00007ffd9be68a5a in thread_sleep (ti=0x7ffd782f7dd0) at thread/qthread_unix.cpp:398
#2  0x00007ffd9be68bb0 in QThread::msleep (msecs=<value optimized out>) at thread/qthread_unix.cpp:424
#3  0x00007ffd9dcfcbbd in net::UploadThread::update (this=0x1bcf7e0) at /mnt/bigdata/ebuild/working/portage/net-libs/libktorrent-1.0.3/work/libktorrent-1.0.3/src/net/uploadthread.cpp:89
#4  0x00007ffd9dcfde69 in net::NetworkThread::run (this=0x1bcf7e0) at /mnt/bigdata/ebuild/working/portage/net-libs/libktorrent-1.0.3/work/libktorrent-1.0.3/src/net/networkthread.cpp:48
#5  0x00007ffd9be690d5 in QThreadPrivate::start (arg=0x1bcf7e0) at thread/qthread_unix.cpp:248
#6  0x00007ffd9bbd9a1c in start_thread () from /lib/libpthread.so.0
#7  0x00007ffd9a4fa31d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115
The current source language is "auto; currently c++".

Thread 1 (Thread 0x7ffd9e1de760 (LWP 10235)):
[KCrash Handler]
#5  memcpy () at ../sysdeps/x86_64/memcpy.S:267
#6  0x00007ffd99f1c087 in QCA::MemoryRegion::MemoryRegion(QByteArray const&) () from /usr/lib64/qca2/libqca.so.2
#7  0x00007ffd99f3249a in QCA::Hash::update(QByteArray const&) () from /usr/lib64/qca2/libqca.so.2
#8  0x00007ffd9dce6917 in bt::SHA1HashGen::update (this=0x7ffd70148b10, data=0x7ffd9e1b3000 "\035\347B\367\061\245\250\233\230#e\326R\006\316\255v\203\340", len=16384)
    at /mnt/bigdata/ebuild/working/portage/net-libs/libktorrent-1.0.3/work/libktorrent-1.0.3/src/util/sha1hashgen.cpp:240
#9  0x00007ffd9dd20603 in bt::ChunkDownload::updateHash (this=0x7ffd70148a50)
    at /mnt/bigdata/ebuild/working/portage/net-libs/libktorrent-1.0.3/work/libktorrent-1.0.3/src/download/chunkdownload.cpp:555
#10 0x00007ffd9dd21fde in bt::ChunkDownload::piece (this=0x7ffd70148a50, p=..., ok=<value optimized out>)
    at /mnt/bigdata/ebuild/working/portage/net-libs/libktorrent-1.0.3/work/libktorrent-1.0.3/src/download/chunkdownload.cpp:127
#11 0x00007ffd9dd2892e in bt::Downloader::pieceReceived (this=0x4568bd0, p=...)
    at /mnt/bigdata/ebuild/working/portage/net-libs/libktorrent-1.0.3/work/libktorrent-1.0.3/src/download/downloader.cpp:134
#12 0x00007ffd9dd0cb55 in bt::Peer::packetReady (this=0x79e94e0, packet=0x7ffd6899d230 "\a", len=<value optimized out>)
    at /mnt/bigdata/ebuild/working/portage/net-libs/libktorrent-1.0.3/work/libktorrent-1.0.3/src/peer/peer.cpp:283
#13 0x00007ffd9dd17348 in bt::PacketReader::update (this=0x48dfb50) at /mnt/bigdata/ebuild/working/portage/net-libs/libktorrent-1.0.3/work/libktorrent-1.0.3/src/peer/packetreader.cpp:141
#14 0x00007ffd9dd0bc1d in bt::Peer::update (this=0x79e94e0) at /mnt/bigdata/ebuild/working/portage/net-libs/libktorrent-1.0.3/work/libktorrent-1.0.3/src/peer/peer.cpp:538
#15 0x00007ffd9dd111ce in bt::PeerManager::update (this=0x3c19080) at /mnt/bigdata/ebuild/working/portage/net-libs/libktorrent-1.0.3/work/libktorrent-1.0.3/src/peer/peermanager.cpp:144
#16 0x00007ffd9dd41f5d in bt::TorrentControl::update (this=0x73f9870) at /mnt/bigdata/ebuild/working/portage/net-libs/libktorrent-1.0.3/work/libktorrent-1.0.3/src/torrent/torrentcontrol.cpp:163
#17 0x000000000042b7ab in kt::Core::update (this=0x1c74180) at /mnt/bigdata/ebuild/working/portage/net-p2p/ktorrent-4.0.3/work/ktorrent-4.0.3/ktorrent/core.cpp:1030
#18 0x0000000000432fd1 in kt::Core::qt_metacall (this=0x1c74180, _c=QMetaObject::InvokeMetaMethod, _id=126273928, _a=0x7fffd36cae90)
    at /mnt/bigdata/ebuild/working/portage/net-p2p/ktorrent-4.0.3/work/ktorrent-4.0.3_build/ktorrent/core.moc:167
#19 0x00007ffd9bf69fc6 in QMetaObject::activate (sender=0x1c741a8, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x600) at kernel/qobject.cpp:3287
#20 0x00007ffd9bf66876 in QObject::event (this=0x1c741a8, e=0x7ffd9e1b4000) at kernel/qobject.cpp:1204
#21 0x00007ffd9b0ffc0c in QApplicationPrivate::notify_helper (this=0x1bfe9c0, receiver=0x1c741a8, e=0x7fffd36cb5d0) at kernel/qapplication.cpp:4302
#22 0x00007ffd9b10620b in QApplication::notify (this=0x7fffd36cb920, receiver=0x1c741a8, e=0x7fffd36cb5d0) at kernel/qapplication.cpp:4185
#23 0x0000000000439ff2 in kt::App::notify (this=0x786d988, receiver=0x7ffd9e1b4000, event=0x4000) at /mnt/bigdata/ebuild/working/portage/net-p2p/ktorrent-4.0.3/work/ktorrent-4.0.3/ktorrent/app.cpp:97
#24 0x00007ffd9bf56d2b in QCoreApplication::notifyInternal (this=0x7fffd36cb920, receiver=0x1c741a8, event=0x7fffd36cb5d0) at kernel/qcoreapplication.cpp:726
#25 0x00007ffd9bf8387a in QCoreApplication::sendEvent (this=0x1bfbd00) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#26 QTimerInfoList::activateTimers (this=0x1bfbd00) at kernel/qeventdispatcher_unix.cpp:603
#27 0x00007ffd9bf80618 in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:184
#28 idleTimerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:231
#29 0x00007ffd9600913b in g_main_dispatch (context=0x1bfad20) at gmain.c:1960
#30 IA__g_main_context_dispatch (context=0x1bfad20) at gmain.c:2513
#31 0x00007ffd9600cec8 in g_main_context_iterate (context=0x1bfad20, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2591
#32 0x00007ffd9600d082 in IA__g_main_context_iteration (context=0x1bfad20, may_block=1) at gmain.c:2654
#33 0x00007ffd9bf802be in QEventDispatcherGlib::processEvents (this=0x1bf57f0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#34 0x00007ffd9b1ae7c6 in QGuiEventDispatcherGlib::processEvents (this=0x786d988, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#35 0x00007ffd9bf55652 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#36 0x00007ffd9bf55a1d in QEventLoop::exec (this=0x7fffd36cb880, flags=) at kernel/qeventloop.cpp:201
#37 0x00007ffd9bf5a65b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#38 0x00000000004290a2 in main (argc=<value optimized out>, argv=<value optimized out>) at /mnt/bigdata/ebuild/working/portage/net-p2p/ktorrent-4.0.3/work/ktorrent-4.0.3/ktorrent/main.cpp:176
The current source language is "auto; currently asm".

This bug may be a duplicate of or related to bug 247984.

Possible duplicates by query: bug 251738, bug 251303, bug 250492, bug 247984, bug 247114.

Reported using DrKonqi
Comment 1 Joris Guisson 2010-09-20 19:29:32 UTC

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