Bug 229098 - segfault after QCA::Hash before memcpy
Summary: segfault after QCA::Hash before memcpy
Status: RESOLVED DUPLICATE of bug 186621
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-02 08:31 UTC by jakew007
Modified: 2010-03-02 10:56 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 jakew007 2010-03-02 08:31:03 UTC
Application that crashed: ktorrent
Version of the application: 3.2.4
KDE Version: 4.3.5 (KDE 4.3.5)
Qt Version: 4.5.2
Operating System: Linux 2.6.31-19-generic i686
Distribution: Ubuntu 9.10

What I was doing when the application crashed:
loaded ktorrent with about five torrents downloading and perhaps 30 uploading.  it took longer than normal to start (an entry appeard in the kde tray but the main window did not show up for ~1 minute), ran for perhaps 5 minutes, and crashed.  this repeated every time i restarted (i tried three or four times).  ktorrent rules, btw.  cheers.

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

Thread 3 (Thread 0xb6232b70 (LWP 3465)):
#0  net::DownloadThread::update (this=0x8b0e040) at ../../libbtcore/net/downloadthread.cpp:70
#1  0x00431d38 in net::NetworkThread::run (this=0x8b0e040) at ../../libbtcore/net/networkthread.cpp:48
#2  0x00ce0e32 in QThreadPrivate::start (arg=0x8b0e040) at thread/qthread_unix.cpp:188
#3  0x00ee580e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#4  0x03c638de in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread 0xb4ecfb70 (LWP 3466)):
#0  0x00a92422 in __kernel_vsyscall ()
#1  0x00ee9e15 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x03c7087d in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3  0x00ce1e67 in QWaitConditionPrivate::wait (this=0x8b0e328, mutex=0x8b0e32c, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#4  QWaitCondition::wait (this=0x8b0e328, mutex=0x8b0e32c, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#5  0x00430a6d in net::UploadThread::update (this=0x8b0e2f0) at ../../libbtcore/net/uploadthread.cpp:73
#6  0x00431d38 in net::NetworkThread::run (this=0x8b0e2f0) at ../../libbtcore/net/networkthread.cpp:48
#7  0x00ce0e32 in QThreadPrivate::start (arg=0x8b0e2f0) at thread/qthread_unix.cpp:188
#8  0x00ee580e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#9  0x03c638de in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb777d700 (LWP 3459)):
[KCrash Handler]
#6  0x03c0c056 in memcpy () from /lib/tls/i686/cmov/libc.so.6
#7  0xbfd3644c in ?? ()
#8  0x02e777bb in QCA::Hash::update(char const*, int) () from /usr/lib/libqca.so.2
#9  0x0041c594 in bt::SHA1HashGen::update (this=0xa22a784, data=0xb5a314ec "", len=16384) at ../../libbtcore/util/sha1hashgen.cpp:238
#10 0x00451eb8 in bt::ChunkDownload::updateHash (this=<value optimized out>) at ../../libbtcore/download/chunkdownload.cpp:562
#11 0x00452d30 in bt::ChunkDownload::piece (this=0xa22a700, p=..., ok=@0xbfd365ef) at ../../libbtcore/download/chunkdownload.cpp:133
#12 0x004598ff in bt::Downloader::pieceReceived (this=0x98a47b0, p=...) at ../../libbtcore/download/downloader.cpp:133
#13 0x00441b0f in bt::PeerManager::pieceReceived (this=0x989a590, p=...) at ../../libbtcore/peer/peermanager.cpp:669
#14 0x0044049f in bt::Peer::packetReady (this=0xaf75a40, packet=0xa621590 "\a", len=9) at ../../libbtcore/peer/peer.cpp:269
#15 0x00449f16 in bt::PacketReader::update (this=0xaf9e9e8) at ../../libbtcore/peer/packetreader.cpp:131
#16 0x004401d9 in bt::Peer::update (this=0xaf75a40) at ../../libbtcore/peer/peer.cpp:474
#17 0x00443f0e in bt::PeerManager::update (this=0x989a590) at ../../libbtcore/peer/peermanager.cpp:117
#18 0x004793be in bt::TorrentControl::update (this=0x9899558) at ../../libbtcore/torrent/torrentcontrol.cpp:178
#19 0x0806d1e7 in kt::Core::update (this=0x8c3aa58) at ../../ktorrent/core.cpp:877
#20 0x08072c1d in kt::Core::qt_metacall (this=0x8c3aa58, _c=QMetaObject::InvokeMetaMethod, _id=12, _a=0xbfd3696c) at ./core.moc:148
#21 0x00de7263 in QMetaObject::activate (sender=0x8c3aa6c, from_signal_index=4, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3113
#22 0x00de7ec2 in QMetaObject::activate (sender=0x8c3aa6c, m=0xec2904, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3187
#23 0x00e21667 in QTimer::timeout (this=0x8c3aa6c) at .moc/release-shared/moc_qtimer.cpp:128
#24 0x00dec9ae in QTimer::timerEvent (this=0x8c3aa6c, e=0xbfd36e00) at kernel/qtimer.cpp:261
#25 0x00de13bf in QObject::event (this=0x8c3aa6c, e=0xbfd36e00) at kernel/qobject.cpp:1075
#26 0x0588cf54 in QApplicationPrivate::notify_helper (this=0x8b42620, receiver=0x8c3aa6c, e=0xbfd36e00) at kernel/qapplication.cpp:4056
#27 0x0589467c in QApplication::notify (this=0xbfd37154, receiver=0x8c3aa6c, e=0xbfd36e00) at kernel/qapplication.cpp:3603
#28 0x010f525a in KApplication::notify (this=0xbfd37154, receiver=0x8c3aa6c, event=0xbfd36e00) at ../../kdeui/kernel/kapplication.cpp:302
#29 0x00dd16cb in QCoreApplication::notifyInternal (this=0xbfd37154, receiver=0x8c3aa6c, event=0xbfd36e00) at kernel/qcoreapplication.cpp:610
#30 0x00dfe7ce in QCoreApplication::sendEvent (this=0x8b3e534) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#31 QTimerInfoList::activateTimers (this=0x8b3e534) at kernel/qeventdispatcher_unix.cpp:572
#32 0x00dfc0e0 in timerSourceDispatch (source=0x8b3e500) at kernel/qeventdispatcher_glib.cpp:165
#33 0x04205e88 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#34 0x04209730 in ?? () from /lib/libglib-2.0.so.0
#35 0x04209863 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#36 0x00dfc02c in QEventDispatcherGlib::processEvents (this=0x8b0bee8, flags=...) at kernel/qeventdispatcher_glib.cpp:327
#37 0x0592dbe5 in QGuiEventDispatcherGlib::processEvents (this=0x8b0bee8, flags=...) at kernel/qguieventdispatcher_glib.cpp:202
#38 0x00dcfc79 in QEventLoop::processEvents (this=0xbfd370c4, flags=) at kernel/qeventloop.cpp:149
#39 0x00dd00ca in QEventLoop::exec (this=0xbfd370c4, flags=...) at kernel/qeventloop.cpp:201
#40 0x00dd253f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#41 0x0588cdd7 in QApplication::exec () at kernel/qapplication.cpp:3525
#42 0x08065b98 in main (argc=1, argv=0xbfd37514) at ../../ktorrent/main.cpp:171

This bug may be a duplicate of or related to bug 186621

Reported using DrKonqi
Comment 1 Joris Guisson 2010-03-02 10:56:20 UTC

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