Bug 262037 - Downloading causes segmentation fault
Summary: Downloading causes segmentation fault
Status: RESOLVED DUPLICATE of bug 247984
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-04 07:58 UTC by WiZZarD
Modified: 2011-01-04 18:45 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description WiZZarD 2011-01-04 07:58:17 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-27-generic x86_64
Distribution: Ubuntu 10.04.1 LTS

-- Information about the crash:
Every once in a while the client crashes. Even after updates, this still occurs. Doing nothing special, only downloading 25-ish torrents simoultaniously.

The crash can be reproduced every time.

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

Thread 5 (Thread 0x7f32a74f2700 (LWP 7268)):
#0  0x00007f32b37b6ff3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f32b771d68e in dht::RPCServerThread::run (this=0x19ffc60) at ../../libbtcore/dht/rpcserver.cpp:107
#2  0x00007f32b5136775 in QThreadPrivate::start (arg=0x19ffc60) at thread/qthread_unix.cpp:248
#3  0x00007f32b4ea69ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#4  0x00007f32b37be70d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f32a5d35700 (LWP 7417)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007f32a5d34d80 in ?? ()
#2  0x00007fff18793714 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 3 (Thread 0x7f329f7fe700 (LWP 7418)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f32b513772b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x1812f20, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x1812f20, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f32b76c360c in net::UploadThread::update (this=0x1812eb0) at ../../libbtcore/net/uploadthread.cpp:73
#4  0x00007f32b76c46e9 in net::NetworkThread::run (this=0x1812eb0) at ../../libbtcore/net/networkthread.cpp:48
#5  0x00007f32b5136775 in QThreadPrivate::start (arg=0x1812eb0) at thread/qthread_unix.cpp:248
#6  0x00007f32b4ea69ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#7  0x00007f32b37be70d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f3291403700 (LWP 7419)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f32b513772b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x384cce0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x384cce0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f32b76c7342 in net::ReverseResolverThread::run (this=0x384ccd0) at ../../libbtcore/net/reverseresolver.cpp:123
#4  0x00007f32b5136775 in QThreadPrivate::start (arg=0x384ccd0) at thread/qthread_unix.cpp:248
#5  0x00007f32b4ea69ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#6  0x00007f32b37be70d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f32b7b89760 (LWP 7266)):
[KCrash Handler]
#5  memcpy () at ../sysdeps/x86_64/memcpy.S:267
#6  0x00007f32b31d90b6 in QCA::MemoryRegion::MemoryRegion(QByteArray const&) () from /usr/lib/libqca.so.2
#7  0x00007f32b31ef4c5 in QCA::Hash::update(QByteArray const&) () from /usr/lib/libqca.so.2
#8  0x00007f32b76af7bb in bt::SHA1HashGen::update (this=0x35f28e0, data=0x7f32a6c29000 "L\253\352\205\372h\234\022\364\353\v\034\236", len=16384) at ../../libbtcore/util/sha1hashgen.cpp:240
#9  0x00007f32b76e2072 in bt::ChunkDownload::updateHash (this=0x35f2820) at ../../libbtcore/download/chunkdownload.cpp:579
#10 0x00007f32b76e38f8 in bt::ChunkDownload::piece (this=0x35f2820, p=..., ok=<value optimized out>) at ../../libbtcore/download/chunkdownload.cpp:145
#11 0x00007f32b76e9d3e in bt::Downloader::pieceReceived (this=0x1cf56a0, p=...) at ../../libbtcore/download/downloader.cpp:126
#12 0x00007f32b76d1681 in bt::Peer::packetReady (this=0x48f6840, packet=0x7f3298156d60 "\a", len=<value optimized out>) at ../../libbtcore/peer/peer.cpp:268
#13 0x00007f32b76dac78 in bt::PacketReader::update (this=0x32a1c00) at ../../libbtcore/peer/packetreader.cpp:141
#14 0x00007f32b76d1045 in bt::Peer::update (this=0x48f6840) at ../../libbtcore/peer/peer.cpp:462
#15 0x00007f32b76d50d0 in bt::PeerManager::update (this=0x1cede30) at ../../libbtcore/peer/peermanager.cpp:119
#16 0x00007f32b770325a in bt::TorrentControl::update (this=0x2378cd0) at ../../libbtcore/torrent/torrentcontrol.cpp:150
#17 0x0000000000430d9b in kt::Core::update (this=0x19e90c0) at ../../ktorrent/core.cpp:849
#18 0x0000000000436926 in kt::Core::qt_metacall (this=0x19e90c0, _c=QMetaObject::InvokeMetaMethod, _id=76554584, _a=0x7fff18616b80) at ./core.moc:155
#19 0x00007f32b523de3f in QMetaObject::activate (sender=0x19e90e8, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x600) at kernel/qobject.cpp:3293
#20 0x00007f32b523aa63 in QObject::event (this=0x19e90e8, e=0x7fff186172d0) at kernel/qobject.cpp:1212
#21 0x00007f32b43c722c in QApplicationPrivate::notify_helper (this=0x184dba0, receiver=0x19e90e8, e=0x7fff186172d0) at kernel/qapplication.cpp:4300
#22 0x00007f32b43cd6fb in QApplication::notify (this=0x7fff18617600, receiver=0x19e90e8, e=0x7fff186172d0) at kernel/qapplication.cpp:4183
#23 0x00007f32b6871526 in KApplication::notify (this=0x7fff18617600, receiver=0x19e90e8, event=0x7fff186172d0) at ../../kdeui/kernel/kapplication.cpp:302
#24 0x00007f32b522b06c in QCoreApplication::notifyInternal (this=0x7fff18617600, receiver=0x19e90e8, event=0x7fff186172d0) at kernel/qcoreapplication.cpp:704
#25 0x00007f32b5257d42 in QCoreApplication::sendEvent (this=0x1852c90) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#26 QTimerInfoList::activateTimers (this=0x1852c90) at kernel/qeventdispatcher_unix.cpp:603
#27 0x00007f32b5254848 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 0x00007f32afe408c2 in g_main_dispatch (context=0x18515b0) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:1960
#30 IA__g_main_context_dispatch (context=0x18515b0) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2513
#31 0x00007f32afe44748 in g_main_context_iterate (context=0x18515b0, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>)
    at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2591
#32 0x00007f32afe448fc in IA__g_main_context_iteration (context=0x18515b0, may_block=1) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2654
#33 0x00007f32b5254513 in QEventDispatcherGlib::processEvents (this=0x1810980, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#34 0x00007f32b447746e in QGuiEventDispatcherGlib::processEvents (this=0x4903158, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#35 0x00007f32b5229992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#36 0x00007f32b5229d6c in QEventLoop::exec (this=0x7fff18617570, flags=) at kernel/qeventloop.cpp:201
#37 0x00007f32b522daab in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#38 0x0000000000427294 in main (argc=<value optimized out>, argv=<value optimized out>) at ../../ktorrent/main.cpp:172

Possible duplicates by query: bug 261102, bug 261009, bug 260359, bug 258765, bug 258248.

Reported using DrKonqi
Comment 1 Joris Guisson 2011-01-04 18:45:05 UTC

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