Bug 249520

Summary: Kget crash after finishing torrent
Product: [Applications] kget Reporter: jacob <hrsvan>
Component: generalAssignee: KGet authors <kget>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description jacob 2010-08-30 17:27:00 UTC
Application: kget (2.4.5)
KDE Platform Version: 4.4.5 (KDE 4.4.5)
Qt Version: 4.6.3
Operating System: Linux 2.6.33.8-149.fc13.i686 i686
Distribution: "Fedora release 13 (Goddard)"

-- Information about the crash:
After finishing downloading a torrent (getting to 100%), kget crashes.

 -- Backtrace:
Application: KGet (kget), signal: Segmentation fault
[Current thread is 1 (Thread 0xb7710780 (LWP 2245))]

Thread 4 (Thread 0xb46ffb70 (LWP 2267)):
#0  operator[] (this=0x99e9e70) at /usr/include/c++/4.4.4/bits/stl_vector.h:611
#1  net::DownloadThread::waitForSocketReady (this=0x99e9e70) at /usr/src/debug/kdenetwork-4.4.5/kget/transfer-plugins/bittorrent/libbtcore/net/downloadthread.cpp:171
#2  0x05dad870 in net::DownloadThread::update (this=0x99e9e70) at /usr/src/debug/kdenetwork-4.4.5/kget/transfer-plugins/bittorrent/libbtcore/net/downloadthread.cpp:53
#3  0x05dae2c8 in net::NetworkThread::run (this=0x99e9e70) at /usr/src/debug/kdenetwork-4.4.5/kget/transfer-plugins/bittorrent/libbtcore/net/networkthread.cpp:48
#4  0x0294174f in QThreadPrivate::start (arg=0x99e9e70) at thread/qthread_unix.cpp:248
#5  0x00bcf919 in start_thread (arg=0xb46ffb70) at pthread_create.c:301
#6  0x00ae5cbe in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 3 (Thread 0xb3cfeb70 (LWP 2268)):
#0  0x00f47416 in __kernel_vsyscall ()
#1  0x00bd322c in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:169
#2  0x029426af in wait (this=0x99ea200, mutex=0x99ea204, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#3  QWaitCondition::wait (this=0x99ea200, mutex=0x99ea204, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#4  0x05dad259 in net::UploadThread::update (this=0x99ea1c8) at /usr/src/debug/kdenetwork-4.4.5/kget/transfer-plugins/bittorrent/libbtcore/net/uploadthread.cpp:73
#5  0x05dae2c8 in net::NetworkThread::run (this=0x99ea1c8) at /usr/src/debug/kdenetwork-4.4.5/kget/transfer-plugins/bittorrent/libbtcore/net/networkthread.cpp:48
#6  0x0294174f in QThreadPrivate::start (arg=0x99ea1c8) at thread/qthread_unix.cpp:248
#7  0x00bcf919 in start_thread (arg=0xb3cfeb70) at pthread_create.c:301
#8  0x00ae5cbe in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 2 (Thread 0xb32fdb70 (LWP 2269)):
#0  0x00f47416 in __kernel_vsyscall ()
#1  0x00bd322c in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:169
#2  0x029426af in wait (this=0x98d4314, mutex=0x98d4310, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#3  QWaitCondition::wait (this=0x98d4314, mutex=0x98d4310, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#4  0x05db0f22 in net::ReverseResolverThread::run (this=0x98d4308) at /usr/src/debug/kdenetwork-4.4.5/kget/transfer-plugins/bittorrent/libbtcore/net/reverseresolver.cpp:123
#5  0x0294174f in QThreadPrivate::start (arg=0x98d4308) at thread/qthread_unix.cpp:248
#6  0x00bcf919 in start_thread (arg=0xb32fdb70) at pthread_create.c:301
#7  0x00ae5cbe in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 1 (Thread 0xb7710780 (LWP 2245)):
[KCrash Handler]
#6  __memcpy_ssse3 () at ../sysdeps/i386/i686/multiarch/memcpy-ssse3.S:266
#7  0x052f20a6 in Private (this=0xbfe3ef88, from=...) at /usr/include/bits/string3.h:52
#8  QCA::MemoryRegion::MemoryRegion (this=0xbfe3ef88, from=...) at qca_tools.cpp:445
#9  0x0530a347 in QCA::Hash::update (this=0xa2892f8, a=...) at qca_basic.cpp:215
#10 0x05d9ac31 in bt::SHA1HashGen::update (this=0xa299308, data=0xb548b000 "\002\021`\377\334", len=16384)
    at /usr/src/debug/kdenetwork-4.4.5/kget/transfer-plugins/bittorrent/libbtcore/util/sha1hashgen.cpp:240
#11 0x05dcb16e in bt::ChunkDownload::updateHash (this=0xa299298) at /usr/src/debug/kdenetwork-4.4.5/kget/transfer-plugins/bittorrent/libbtcore/download/chunkdownload.cpp:579
#12 0x05dcc36c in bt::ChunkDownload::piece (this=0xa299298, p=..., ok=@0xbfe3f12f) at /usr/src/debug/kdenetwork-4.4.5/kget/transfer-plugins/bittorrent/libbtcore/download/chunkdownload.cpp:145
#13 0x05dd2271 in bt::Downloader::pieceReceived (this=0x9bdf618, p=...) at /usr/src/debug/kdenetwork-4.4.5/kget/transfer-plugins/bittorrent/libbtcore/download/downloader.cpp:126
#14 0x05dbc420 in bt::PeerManager::pieceReceived (this=0x9b58518, p=...) at /usr/src/debug/kdenetwork-4.4.5/kget/transfer-plugins/bittorrent/libbtcore/peer/peermanager.cpp:677
#15 0x05dbb4f7 in bt::Peer::packetReady (this=0x9de20e0, packet=0xb278ef50 "\a", len=22) at /usr/src/debug/kdenetwork-4.4.5/kget/transfer-plugins/bittorrent/libbtcore/peer/peer.cpp:268
#16 0x05dc3e39 in bt::PacketReader::update (this=0x9e50500) at /usr/src/debug/kdenetwork-4.4.5/kget/transfer-plugins/bittorrent/libbtcore/peer/packetreader.cpp:141
#17 0x05dbae09 in bt::Peer::update (this=0x9de20e0) at /usr/src/debug/kdenetwork-4.4.5/kget/transfer-plugins/bittorrent/libbtcore/peer/peer.cpp:462
#18 0x05dbe920 in bt::PeerManager::update (this=0x9b58518) at /usr/src/debug/kdenetwork-4.4.5/kget/transfer-plugins/bittorrent/libbtcore/peer/peermanager.cpp:119
#19 0x05dea29e in bt::TorrentControl::update (this=0x9bbdcb8) at /usr/src/debug/kdenetwork-4.4.5/kget/transfer-plugins/bittorrent/libbtcore/torrent/torrentcontrol.cpp:150
#20 0x05d6d91b in BTTransfer::updateTorrent (this=0x9cdf700) at /usr/src/debug/kdenetwork-4.4.5/kget/transfer-plugins/bittorrent/bttransfer.cpp:338
#21 0x05d6dfa4 in BTTransfer::update (this=0x9cdf700) at /usr/src/debug/kdenetwork-4.4.5/kget/transfer-plugins/bittorrent/bttransfer.cpp:228
#22 0x05d72c6b in BTTransfer::qt_metacall (this=0x9cdf700, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0xbfe3f4dc)
    at /usr/src/debug/kdenetwork-4.4.5/i686-redhat-linux-gnu/kget/transfer-plugins/bittorrent/bttransfer.moc:90
#23 0x02a37bcb in QMetaObject::metacall (object=0x9cdf700, cl=QMetaObject::InvokeMetaMethod, idx=7, argv=0xbfe3f4dc) at kernel/qmetaobject.cpp:237
#24 0x02a46a75 in QMetaObject::activate (sender=0x9cdf7ac, m=0x2b48a44, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3295
#25 0x02a8f918 in QTimer::timeout (this=0x9cdf7ac) at .moc/release-shared/moc_qtimer.cpp:134
#26 0x02a4c96e in QTimer::timerEvent (this=0x9cdf7ac, e=0xbfe3fa10) at kernel/qtimer.cpp:271
#27 0x02a42ee4 in QObject::event (this=0x9cdf7ac, e=0xbfe3fa10) at kernel/qobject.cpp:1212
#28 0x4321577c in QApplicationPrivate::notify_helper (this=0x98d57b0, receiver=0x9cdf7ac, e=0xbfe3fa10) at kernel/qapplication.cpp:4306
#29 0x4321c1d6 in QApplication::notify (this=0xbfe3fd68, receiver=0x9cdf7ac, e=0xbfe3fa10) at kernel/qapplication.cpp:3710
#30 0x07dad00b in KApplication::notify (this=0xbfe3fd68, receiver=0x9cdf7ac, event=0xbfe3fa10) at /usr/src/debug/kdelibs-4.4.5/kdeui/kernel/kapplication.cpp:302
#31 0x02a33133 in QCoreApplication::notifyInternal (this=0xbfe3fd68, receiver=0x9cdf7ac, event=0xbfe3fa10) at kernel/qcoreapplication.cpp:726
#32 0x02a5e1fe in sendEvent (this=0x98d84c4) at kernel/qcoreapplication.h:215
#33 QTimerInfoList::activateTimers (this=0x98d84c4) at kernel/qeventdispatcher_unix.cpp:603
#34 0x02a5b788 in timerSourceDispatch (source=0x98d8900) at kernel/qeventdispatcher_glib.cpp:184
#35 idleTimerSourceDispatch (source=0x98d8900) at kernel/qeventdispatcher_glib.cpp:231
#36 0x00c5f525 in g_main_dispatch (context=0x98d7310) at gmain.c:1960
#37 IA__g_main_context_dispatch (context=0x98d7310) at gmain.c:2513
#38 0x00c63268 in g_main_context_iterate (context=0xbd2490, block=1, dispatch=1, self=0x98d4cf8) at gmain.c:2591
#39 0x00c63449 in IA__g_main_context_iteration (context=0x98d7310, may_block=1) at gmain.c:2654
#40 0x02a5b47f in QEventDispatcherGlib::processEvents (this=0x98ae6a0, flags=...) at kernel/qeventdispatcher_glib.cpp:414
#41 0x432c4336 in QGuiEventDispatcherGlib::processEvents (this=0x98ae6a0, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#42 0x02a3180a in QEventLoop::processEvents (this=0xbfe3fcd4, flags=...) at kernel/qeventloop.cpp:149
#43 0x02a31b4a in QEventLoop::exec (this=0xbfe3fcd4, flags=...) at kernel/qeventloop.cpp:201
#44 0x02a35807 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#45 0x43215828 in QApplication::exec () at kernel/qapplication.cpp:3585
#46 0x080db50e in main (argc=) at /usr/src/debug/kdenetwork-4.4.5/kget/main.cpp:185

Reported using DrKonqi
Comment 1 Christoph Feck 2010-09-13 16:23:42 UTC
This is probably bug 247984.
Comment 2 Lukas Appelhans 2011-02-06 12:25:36 UTC

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