Bug 239065

Summary: crash after few seconds from start
Product: [Applications] ktorrent Reporter: nnonno
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description nnonno 2010-05-27 23:25:07 UTC
Application: ktorrent (3.3.4)
KDE Platform Version: 4.4.2 (KDE 4.4.2)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-22-generic x86_64
Distribution: Ubuntu 10.04 LTS

-- Information about the crash:
it started when finnishing (99,5%) download of some big file and now every time I restart application, it happends again, I didnt remove this file from queue because I really want to have it downloaded.

The crash can be reproduced every time.

 -- Backtrace:
Application: KTorrent (ktorrent), signal: Segmentation fault
[Current thread is 1 (Thread 0x7ff7840f9760 (LWP 2737))]

Thread 6 (Thread 0x7ff776a9a710 (LWP 2739)):
#0  0x00007ff77fd1afb3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007ff783c8068e in dht::RPCServerThread::run (this=0x15efee0) at ../../libbtcore/dht/rpcserver.cpp:107
#2  0x00007ff781699775 in QThreadPrivate::start (arg=0x15efee0) at thread/qthread_unix.cpp:248
#3  0x00007ff7814099ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#4  0x00007ff77fd226cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7ff75fdb9710 (LWP 2750)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007ff7816990e5 in thread_sleep (ti=0x7ff75fdb8db0) at thread/qthread_unix.cpp:398
#2  0x00007ff781699250 in QThread::msleep (msecs=<value optimized out>) at thread/qthread_unix.cpp:424
#3  0x00007ff783c26da7 in net::DownloadThread::update (this=0x14f4950) at ../../libbtcore/net/downloadthread.cpp:110
#4  0x00007ff783c276e9 in net::NetworkThread::run (this=0x14f4950) at ../../libbtcore/net/networkthread.cpp:48
#5  0x00007ff781699775 in QThreadPrivate::start (arg=0x14f4950) at thread/qthread_unix.cpp:248
#6  0x00007ff7814099ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#7  0x00007ff77fd226cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7ff75f5b8710 (LWP 2751)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007ff78169a72b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x14f4f20, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x14f4f20, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007ff783c2660c in net::UploadThread::update (this=0x14f4eb0) at ../../libbtcore/net/uploadthread.cpp:73
#4  0x00007ff783c276e9 in net::NetworkThread::run (this=0x14f4eb0) at ../../libbtcore/net/networkthread.cpp:48
#5  0x00007ff781699775 in QThreadPrivate::start (arg=0x14f4eb0) at thread/qthread_unix.cpp:248
#6  0x00007ff7814099ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#7  0x00007ff77fd226cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7ff75edb7710 (LWP 2752)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007ff78169a72b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x1c10150, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x1c10150, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007ff783c2a342 in net::ReverseResolverThread::run (this=0x1c10140) at ../../libbtcore/net/reverseresolver.cpp:123
#4  0x00007ff781699775 in QThreadPrivate::start (arg=0x1c10140) at thread/qthread_unix.cpp:248
#5  0x00007ff7814099ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#6  0x00007ff77fd226cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7ff77729b710 (LWP 2754)):
#0  0x00007ff77fd15f53 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007ff77c3a84a9 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007ff77c3a88fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007ff7817b7566 in QEventDispatcherGlib::processEvents (this=0x229f680, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:414
#4  0x00007ff78178c992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007ff78178cd6c in QEventLoop::exec (this=0x7ff77729adb0, flags=) at kernel/qeventloop.cpp:201
#6  0x00007ff781696d59 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#7  0x00007ff78176d178 in QInotifyFileSystemWatcherEngine::run (this=0x22db8a0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007ff781699775 in QThreadPrivate::start (arg=0x22db8a0) at thread/qthread_unix.cpp:248
#9  0x00007ff7814099ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007ff77fd226cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7ff7840f9760 (LWP 2737)):
[KCrash Handler]
#5  memcpy () at ../sysdeps/x86_64/memcpy.S:267
#6  0x00007ff77f73d0b6 in QCA::MemoryRegion::MemoryRegion(QByteArray const&) () from /usr/lib/libqca.so.2
#7  0x00007ff77f7534c5 in QCA::Hash::update(QByteArray const&) () from /usr/lib/libqca.so.2
#8  0x00007ff783c127bb in bt::SHA1HashGen::update (this=0x1888560, data=0x7ff784110800 "", len=16384) at ../../libbtcore/util/sha1hashgen.cpp:240
#9  0x00007ff783c45072 in bt::ChunkDownload::updateHash (this=0x18884a0) at ../../libbtcore/download/chunkdownload.cpp:579
#10 0x00007ff783c468f8 in bt::ChunkDownload::piece (this=0x18884a0, p=..., ok=<value optimized out>) at ../../libbtcore/download/chunkdownload.cpp:145
#11 0x00007ff783c4cd3e in bt::Downloader::pieceReceived (this=0x183f9a0, p=...) at ../../libbtcore/download/downloader.cpp:126
#12 0x00007ff783c34681 in bt::Peer::packetReady (this=0x26c9520, packet=0x7ff77000d240 "\a", len=<value optimized out>) at ../../libbtcore/peer/peer.cpp:268
#13 0x00007ff783c3dc78 in bt::PacketReader::update (this=0x2030890) at ../../libbtcore/peer/packetreader.cpp:141
#14 0x00007ff783c34045 in bt::Peer::update (this=0x26c9520) at ../../libbtcore/peer/peer.cpp:462
#15 0x00007ff783c380d0 in bt::PeerManager::update (this=0x17f40e0) at ../../libbtcore/peer/peermanager.cpp:119
#16 0x00007ff783c6625a in bt::TorrentControl::update (this=0x17e8d50) at ../../libbtcore/torrent/torrentcontrol.cpp:150
#17 0x0000000000430d9b in kt::Core::update (this=0x15e3a40) at ../../ktorrent/core.cpp:849
#18 0x0000000000436926 in kt::Core::qt_metacall (this=0x15e3a40, _c=QMetaObject::InvokeMetaMethod, _id=41093448, _a=0x7fff3c835d40) at ./core.moc:155
#19 0x00007ff7817a0e3f in QMetaObject::activate (sender=0x15e3a68, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x700) at kernel/qobject.cpp:3293
#20 0x00007ff78179da63 in QObject::event (this=0x15e3a68, e=0x7fff3c836490) at kernel/qobject.cpp:1212
#21 0x00007ff78092a22c in QApplicationPrivate::notify_helper (this=0x1525ad0, receiver=0x15e3a68, e=0x7fff3c836490) at kernel/qapplication.cpp:4300
#22 0x00007ff7809306fb in QApplication::notify (this=0x7fff3c8367c0, receiver=0x15e3a68, e=0x7fff3c836490) at kernel/qapplication.cpp:4183
#23 0x00007ff782dd4526 in KApplication::notify (this=0x7fff3c8367c0, receiver=0x15e3a68, event=0x7fff3c836490) at ../../kdeui/kernel/kapplication.cpp:302
#24 0x00007ff78178e06c in QCoreApplication::notifyInternal (this=0x7fff3c8367c0, receiver=0x15e3a68, event=0x7fff3c836490) at kernel/qcoreapplication.cpp:704
#25 0x00007ff7817bad42 in QCoreApplication::sendEvent (this=0x152a420) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#26 QTimerInfoList::activateTimers (this=0x152a420) at kernel/qeventdispatcher_unix.cpp:603
#27 0x00007ff7817b7848 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 0x00007ff77c3a48c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#30 0x00007ff77c3a8748 in ?? () from /lib/libglib-2.0.so.0
#31 0x00007ff77c3a88fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#32 0x00007ff7817b7513 in QEventDispatcherGlib::processEvents (this=0x14f2980, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#33 0x00007ff7809da46e in QGuiEventDispatcherGlib::processEvents (this=0x2731148, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#34 0x00007ff78178c992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#35 0x00007ff78178cd6c in QEventLoop::exec (this=0x7fff3c836730, flags=) at kernel/qeventloop.cpp:201
#36 0x00007ff781790aab in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#37 0x0000000000427294 in main (argc=<value optimized out>, argv=<value optimized out>) at ../../ktorrent/main.cpp:172

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

Possible duplicates by query: bug 238377, bug 237235, bug 236130, bug 235055, bug 231758.

Reported using DrKonqi
Comment 1 Joris Guisson 2010-05-28 19:16:03 UTC
This is fixed in 4.0

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