Bug 205873

Summary: ktorrent segfault over night
Product: [Applications] ktorrent Reporter: Moritz Moeller-Herrmann <moritz-kdebugs>
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED DUPLICATE    
Severity: crash CC: andresbajotierra
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Moritz Moeller-Herrmann 2009-09-01 10:18:22 UTC
Application that crashed: ktorrent
Version of the application: 3.2.3
KDE Version: 4.3.00 (KDE 4.3.0)
Qt Version: 4.5.2
Operating System: Linux 2.6.30-5.slh.1-sidux-amd64 x86_64
Distribution: Debian GNU/Linux unstable (sid)

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

Thread 3 (Thread 0x7fe967d66950 (LWP 5007)):
#0  0x00007fe974147d36 in *__GI___poll (fds=0x7fe960025060, nfds=105, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fe9775b8431 in net::DownloadThread::waitForSocketReady (this=0x20a11a0, timeout=<value optimized out>) at ../../libbtcore/net/downloadthread.cpp:188
#2  0x00007fe9775b84dc in net::DownloadThread::update (this=0x7fe960025060) at ../../libbtcore/net/downloadthread.cpp:53
#3  0x00007fe9775b8f29 in net::NetworkThread::run (this=0x20a11a0) at ../../libbtcore/net/networkthread.cpp:48
#4  0x00007fe9757f9475 in QThreadPrivate::start (arg=0x20a11a0) at thread/qthread_unix.cpp:188
#5  0x00007fe970dbaf9a in start_thread (arg=<value optimized out>) at pthread_create.c:300
#6  0x00007fe97415056d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fe95f9e0950 (LWP 5008)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007fe9757fa469 in QWaitConditionPrivate::wait (this=0x20a16f8, mutex=0x20a1700, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=0x20a16f8, mutex=0x20a1700, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007fe9775b7df4 in net::UploadThread::update (this=0x20a1690) at ../../libbtcore/net/uploadthread.cpp:73
#4  0x00007fe9775b8f29 in net::NetworkThread::run (this=0x20a1690) at ../../libbtcore/net/networkthread.cpp:48
#5  0x00007fe9757f9475 in QThreadPrivate::start (arg=0x20a1690) at thread/qthread_unix.cpp:188
#6  0x00007fe970dbaf9a in start_thread (arg=<value optimized out>) at pthread_create.c:300
#7  0x00007fe97415056d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fe977972750 (LWP 4385)):
[KCrash Handler]
#5  memcpy () at ../sysdeps/x86_64/memcpy.S:267
#6  0x00007fe973b81ab4 in QCA::MemoryRegion::MemoryRegion(QByteArray const&) () from /usr/lib/libqca.so.2
#7  0x00007fe973b994e3 in QCA::Hash::update(char const*, int) () from /usr/lib/libqca.so.2
#8  0x00007fe9775d577e in bt::ChunkDownload::updateHash (this=0x2f4d430) at ../../libbtcore/download/chunkdownload.cpp:562
#9  0x00007fe9775d643d in bt::ChunkDownload::piece (this=0x2f4d430, p=..., ok=<value optimized out>) at ../../libbtcore/download/chunkdownload.cpp:133
#10 0x00007fe9775dd6cd in bt::Downloader::pieceReceived (this=0x2d23f30, p=...) at ../../libbtcore/download/downloader.cpp:133
#11 0x00007fe9775c52cd in bt::Peer::packetReady (this=0x304f6e0, packet=0x7fe9600038f0 "\a", len=<value optimized out>) at ../../libbtcore/peer/peer.cpp:269
#12 0x00007fe9775ce3dd in bt::PacketReader::update (this=0x3128950) at ../../libbtcore/peer/packetreader.cpp:131
#13 0x00007fe9775c4cc5 in bt::Peer::update (this=0x304f6e0) at ../../libbtcore/peer/peer.cpp:474
#14 0x00007fe9775c8805 in bt::PeerManager::update (this=0x2148510) at ../../libbtcore/peer/peermanager.cpp:117
#15 0x00007fe9775f97ae in bt::TorrentControl::update (this=0x2c67090) at ../../libbtcore/torrent/torrentcontrol.cpp:178
#16 0x000000000042bd52 in kt::Core::update (this=0x21fbdb0) at ../../ktorrent/core.cpp:877
#17 0x0000000000431a9c in kt::Core::qt_metacall (this=0x21fbdb0, _c=QMetaObject::InvokeMetaMethod, _id=125, _a=0x7ffff8d0f8e0) at ./core.moc:148
#18 0x00007fe9758f4682 in QMetaObject::activate (sender=0x21fbdd8, from_signal_index=<value optimized out>, to_signal_index=4, argv=0x394) at kernel/qobject.cpp:3112
#19 0x00007fe9758eebf3 in QObject::event (this=0x21fbdd8, e=0x7fe96d647000) at kernel/qobject.cpp:1074
#20 0x00007fe974d5780d in QApplicationPrivate::notify_helper (this=0x20d4f20, receiver=0x21fbdd8, e=0x7ffff8d0ff90) at kernel/qapplication.cpp:4056
#21 0x00007fe974d5f86a in QApplication::notify (this=0x7ffff8d102e0, receiver=0x21fbdd8, e=0x7ffff8d0ff90) at kernel/qapplication.cpp:4021
#22 0x00007fe9767aeb2b in KApplication::notify (this=0x7ffff8d102e0, receiver=0x21fbdd8, event=0x7ffff8d0ff90) at ../../kdeui/kernel/kapplication.cpp:302
#23 0x00007fe9758df51c in QCoreApplication::notifyInternal (this=0x7ffff8d102e0, receiver=0x21fbdd8, event=0x7ffff8d0ff90) at kernel/qcoreapplication.cpp:610
#24 0x00007fe97590b826 in QCoreApplication::sendEvent (this=0x20cf2c0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#25 QTimerInfoList::activateTimers (this=0x20cf2c0) at kernel/qeventdispatcher_unix.cpp:572
#26 0x00007fe975907c9d in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:165
#27 0x00007fe97050e7aa in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#28 0x00007fe970511df8 in ?? () from /usr/lib/libglib-2.0.so.0
#29 0x00007fe970511fac in ?? () from /usr/lib/libglib-2.0.so.0
#30 0x0000000002207bc0 in ?? ()
#31 0x00007ffff8d10240 in ?? ()
#32 0x00007fe9758ddde2 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#33 0x00007fe9758de1b4 in QEventLoop::exec (this=0x7fe974dee64f, flags=...) at kernel/qeventloop.cpp:201
#34 0x00007fe9758e0424 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#35 0x0000000000424e42 in main (argc=3, argv=0x7ffff8d10f78) at ../../ktorrent/main.cpp:171

Reported using DrKonqi
Comment 1 Dario Andres 2009-09-02 02:44:03 UTC
This is bug 199646 / bug 186621.
Thanks

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