Summary: | Crash happend during the night (long run) [memcpy, MemoryRegion, (SecureArray), Hash::update] | ||
---|---|---|---|
Product: | [Applications] ktorrent | Reporter: | Robert Sela <sela> |
Component: | general | Assignee: | Joris Guisson <joris.guisson> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | adslw8kh, afberendsen, alpha_one_x86, andrew.laughlin, aymeric.rateau, boldak.prasek, bradh, capone, chaddai.fouche, ddhutche, didekridek, dimitri, dr_anonymous, finex, gaizka.gonzalez, hamslices, jakew007, jarbinks, jcouch79, jcowin35, jon, joris.guisson, josemaria1, julienmeme-libre, kde-alex, killerisation, leonardo.la.malfa, m0ik0, mailinglist, marcin, markusnn, martin.marques, mckisick, moritz-kdebugs, nafradi, neowin, oferkv, onialanka, ophilar, otymonn, ovi.stanciu, psmouty, rash502, s.zelman, spluque, szacour, temp, uv-b, veranyon, walldog, webmaster.wcsfrance, willbroderick, yinghu37 |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Mandriva RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | New crash information added by DrKonqi |
Description
Robert Sela
2009-03-09 07:09:18 UTC
Does this happen offen ? Does this happen often ? It hapend again in 24 hrs. I checked debug output to see if thereis change and notice slight diference: Program: KTorrent (ktorrent), signal SIGSEGV [Thread debugging using libthread_db enabled] [New Thread 0xb58c56d0 (LWP 20219)] [New Thread 0xb27eeb90 (LWP 20228)] [New Thread 0xb4098b90 (LWP 20227)] [KCrash handler] #6 0xb66573f1 in memcpy () from /lib/i686/libc.so.6 #7 0xb614b2de in QCA::MemoryRegion::Private::Private () from /usr/lib/libqca.so.2 #8 0xb6149788 in QCA::MemoryRegion::MemoryRegion () from /usr/lib/libqca.so.2 #9 0xb61497f4 in QCA::SecureArray::SecureArray () from /usr/lib/libqca.so.2 #10 0xb6155298 in QCA::Hash::update () from /usr/lib/libqca.so.2 #11 0xb615533a in QCA::Hash::update () from /usr/lib/libqca.so.2 #12 0xb7dac141 in bt::SHA1HashGen::update (this=0xa187e1c, data=0xb1fbfbf6 "h\vP�\"F\200\020\200\001\223\211,", len=16384) at /usr/src/debug/ktorrent-3.2/libbtcore/util/sha1hashgen.cpp:238 #13 0xb7de347f in bt::ChunkDownload::updateHash (this=0xa187d98) at /usr/src/debug/ktorrent-3.2/libbtcore/download/chunkdownload.cpp:562 #14 0xb7de42f1 in bt::ChunkDownload::piece (this=0xa187d98, p=@0xbff53c58, ok=@0xbff53bfb) at /usr/src/debug/ktorrent-3.2/libbtcore/download/chunkdownload.cpp:133 #15 0xb7deb030 in bt::Downloader::pieceReceived (this=0x94cef08, p=@0xbff53c58) at /usr/src/debug/ktorrent-3.2/libbtcore/download/downloader.cpp:118 #16 0xb7dd2afe in bt::PeerManager::pieceReceived (this=0x934ba40, p=@0xbff53c58) at /usr/src/debug/ktorrent-3.2/libbtcore/peer/peermanager.cpp:669 #17 0xb7dd1370 in bt::Peer::packetReady (this=0x9acfca0, packet=0xa08fc90 "\a", len=16393) at /usr/src/debug/ktorrent-3.2/libbtcore/peer/peer.cpp:269 #18 0xb7ddb4be in bt::PacketReader::update (this=0x9a7dd48) at /usr/src/debug/ktorrent-3.2/libbtcore/peer/packetreader.cpp:131 #19 0xb7dd0c31 in bt::Peer::update (this=0x9acfca0) at /usr/src/debug/ktorrent-3.2/libbtcore/peer/peer.cpp:474 #20 0xb7dd4d93 in bt::PeerManager::update (this=0x934ba40) at /usr/src/debug/ktorrent-3.2/libbtcore/peer/peermanager.cpp:117 #21 0xb7e0b767 in bt::TorrentControl::update (this=0x933b7e8) at /usr/src/debug/ktorrent-3.2/libbtcore/torrent/torrentcontrol.cpp:174 #22 0x0806a48d in kt::Core::update (this=0x923ace8) at /usr/src/debug/ktorrent-3.2/ktorrent/core.cpp:856 #23 0x08070ce3 in kt::Core::qt_metacall (this=0x923ace8, _c=QMetaObject::InvokeMetaMethod, _id=16384, _a=0xbff53ee8) at /usr/src/debug/ktorrent-3.2/build/ktorrent/core.moc:147 #24 0xb7408c8d in QMetaObject::activate () from /usr/lib/libQtCore.so.4 #25 0xb7409a95 in QMetaObject::activate () from /usr/lib/libQtCore.so.4 #26 0xb7444ef5 in QTimer::timeout () from /usr/lib/libQtCore.so.4 #27 0xb740f946 in QTimer::timerEvent () from /usr/lib/libQtCore.so.4 #28 0xb740351b in QObject::event () from /usr/lib/libQtCore.so.4 #29 0xb698cfac in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4 #30 0xb6995205 in QApplication::notify () from /usr/lib/libQtGui.so.4 #31 0xb7933b91 in KApplication::notify () from /usr/lib/libkdeui.so.5 #32 0xb73f3853 in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4 #33 0xb7422a8d in ?? () from /usr/lib/libQtCore.so.4 #34 0xb741f3ee in ?? () from /usr/lib/libQtCore.so.4 #35 0xb5c827ca in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #36 0xb5c85ee8 in ?? () from /usr/lib/libglib-2.0.so.0 #37 0xb5c860a8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #38 0xb741f34a in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4 #39 0xb6a2995a in ?? () from /usr/lib/libQtGui.so.4 #40 0xb73f1ec3 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4 #41 0xb73f2081 in QEventLoop::exec () from /usr/lib/libQtCore.so.4 #42 0xb73f47f2 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4 #43 0xb698ce14 in QApplication::exec () from /usr/lib/libQtGui.so.4 #44 0x08062e77 in main (argc=5, argv=0xbff54964) at /usr/src/debug/ktorrent-3.2/ktorrent/main.cpp:170 *** Bug 187415 has been marked as a duplicate of this bug. *** Crashed while using Firefox (this instance). Has crashed before with a Signal 11 but was in screensaver mode. Approx 12 torrents running. Application: KTorrent (ktorrent), signal SIGSEGV [Current thread is 0 (LWP 7277)] Thread 4 (Thread 0xb471ab90 (LWP 7282)): #0 0xb802f430 in __kernel_vsyscall () #1 0xb67b9df1 in select () from /lib/tls/i686/cmov/libc.so.6 #2 0xb750b150 in ?? () from /usr/lib/libQtCore.so.4 #3 0xb743b6ae in ?? () from /usr/lib/libQtCore.so.4 #4 0xb61cc50f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #5 0xb67c1a0e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 3 (Thread 0x98f0cb90 (LWP 7457)): #0 0xb7c4481a in ?? () from /usr/lib/libbtcore.so.7 #1 0xb7c448c9 in ?? () from /usr/lib/libbtcore.so.7 #2 0xb7c45368 in ?? () from /usr/lib/libbtcore.so.7 #3 0xb743b6ae in ?? () from /usr/lib/libQtCore.so.4 #4 0xb61cc50f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #5 0xb67c1a0e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 2 (Thread 0xb34bcb90 (LWP 7458)): #0 0xb802f430 in __kernel_vsyscall () #1 0xb61d0075 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0 #2 0xb67cfbbd in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6 #3 0xb743c6f2 in QWaitCondition::wait () from /usr/lib/libQtCore.so.4 #4 0xb7c4422e in ?? () from /usr/lib/libbtcore.so.7 #5 0xb7c45368 in ?? () from /usr/lib/libbtcore.so.7 #6 0xb743b6ae in ?? () from /usr/lib/libQtCore.so.4 #7 0xb61cc50f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #8 0xb67c1a0e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 1 (Thread 0xb5e436c0 (LWP 7277)): [KCrash Handler] #6 0xb716f4aa in ?? () from /usr/lib/libQtGui.so.4 #7 0xb716f5a3 in QSortFilterProxyModel::mapFromSource () from /usr/lib/libQtGui.so.4 #8 0xb71691f2 in QSortFilterProxyModel::parent () from /usr/lib/libQtGui.so.4 #9 0xb7120568 in QTreeView::indexRowSizeHint () from /usr/lib/libQtGui.so.4 #10 0xb7120c62 in ?? () from /usr/lib/libQtGui.so.4 #11 0xb7125c6a in QTreeView::verticalOffset () from /usr/lib/libQtGui.so.4 #12 0xb70ee540 in ?? () from /usr/lib/libQtGui.so.4 #13 0xb6c73490 in QWidgetPrivate::drawWidget () from /usr/lib/libQtGui.so.4 #14 0xb6c738b2 in QWidgetPrivate::paintSiblingsRecursive () from /usr/lib/libQtGui.so.4 #15 0xb6c737be in QWidgetPrivate::paintSiblingsRecursive () from /usr/lib/libQtGui.so.4 #16 0xb6c737be in QWidgetPrivate::paintSiblingsRecursive () from /usr/lib/libQtGui.so.4 #17 0xb6c737be in QWidgetPrivate::paintSiblingsRecursive () from /usr/lib/libQtGui.so.4 #18 0xb6c72d88 in QWidgetPrivate::drawWidget () from /usr/lib/libQtGui.so.4 #19 0xb6c738b2 in QWidgetPrivate::paintSiblingsRecursive () from /usr/lib/libQtGui.so.4 #20 0xb6c72d88 in QWidgetPrivate::drawWidget () from /usr/lib/libQtGui.so.4 #21 0xb6c738b2 in QWidgetPrivate::paintSiblingsRecursive () from /usr/lib/libQtGui.so.4 #22 0xb6c737be in QWidgetPrivate::paintSiblingsRecursive () from /usr/lib/libQtGui.so.4 #23 0xb6c72d88 in QWidgetPrivate::drawWidget () from /usr/lib/libQtGui.so.4 #24 0xb6c738b2 in QWidgetPrivate::paintSiblingsRecursive () from /usr/lib/libQtGui.so.4 #25 0xb6c72d88 in QWidgetPrivate::drawWidget () from /usr/lib/libQtGui.so.4 #26 0xb6c738b2 in QWidgetPrivate::paintSiblingsRecursive () from /usr/lib/libQtGui.so.4 #27 0xb6c72d88 in QWidgetPrivate::drawWidget () from /usr/lib/libQtGui.so.4 #28 0xb6c738b2 in QWidgetPrivate::paintSiblingsRecursive () from /usr/lib/libQtGui.so.4 #29 0xb6c72d88 in QWidgetPrivate::drawWidget () from /usr/lib/libQtGui.so.4 #30 0xb6c738b2 in QWidgetPrivate::paintSiblingsRecursive () from /usr/lib/libQtGui.so.4 #31 0xb6c72d88 in QWidgetPrivate::drawWidget () from /usr/lib/libQtGui.so.4 #32 0xb6c738b2 in QWidgetPrivate::paintSiblingsRecursive () from /usr/lib/libQtGui.so.4 #33 0xb6c737be in QWidgetPrivate::paintSiblingsRecursive () from /usr/lib/libQtGui.so.4 #34 0xb6c72d88 in QWidgetPrivate::drawWidget () from /usr/lib/libQtGui.so.4 #35 0xb6de2fae in ?? () from /usr/lib/libQtGui.so.4 #36 0xb6de34a7 in ?? () from /usr/lib/libQtGui.so.4 #37 0xb6c74576 in QWidget::event () from /usr/lib/libQtGui.so.4 #38 0xb6fc8517 in QMainWindow::event () from /usr/lib/libQtGui.so.4 #39 0xb7b3cd38 in KMainWindow::event () from /usr/lib/libkdeui.so.5 #40 0xb7b8066c in KXmlGuiWindow::event () from /usr/lib/libkdeui.so.5 #41 0xb6c1c8ec in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4 #42 0xb6c247fa in QApplication::notify () from /usr/lib/libQtGui.so.4 #43 0xb7a6ad1d in KApplication::notify () from /usr/lib/libkdeui.so.5 #44 0xb752be61 in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4 #45 0xb752cae5 in QCoreApplicationPrivate::sendPostedEvents () from /usr/lib/libQtCore.so.4 #46 0xb752ccdd in QCoreApplication::sendPostedEvents () from /usr/lib/libQtCore.so.4 #47 0xb755682f in ?? () from /usr/lib/libQtCore.so.4 #48 0xb6219718 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #49 0xb621cdc3 in ?? () from /usr/lib/libglib-2.0.so.0 #50 0xb621cf81 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #51 0xb7556478 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4 #52 0xb6cb6ea5 in ?? () from /usr/lib/libQtGui.so.4 #53 0xb752a52a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4 #54 0xb752a6ea in QEventLoop::exec () from /usr/lib/libQtCore.so.4 #55 0xb752cda5 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4 #56 0xb6c1c767 in QApplication::exec () from /usr/lib/libQtGui.so.4 #57 0x0806441b in _start () @ jcowin35: that is a bug which is already fixed in 3.2, and has nothing to do with this one. This is a qca bug, reassigning to qca maintainer Does KTorrent use QCA::Initializer ? Yes, in libbtcore/util/sha1hashgen.cpp I checked the code and I don't see how this is possible. One suggestion I have is instead of this: hash->update(data, len) do: hash->update(MemoryRegion(QByteArray(data, len))) This will ensure the data isn't implicitly converted to secure memory, which you don't need here anyway. I'm wondering if maybe there's a bug in the Botan secure memory stuff (I didn't check the code that deep). I can do that, but will this prevent the crash ? I have no idea. What I'm suggesting is a way to help debug. I have personally not experienced a crash like this. *** Bug 191163 has been marked as a duplicate of this bug. *** *** Bug 195850 has been marked as a duplicate of this bug. *** *** Bug 197669 has been marked as a duplicate of this bug. *** *** Bug 198113 has been marked as a duplicate of this bug. *** *** Bug 199646 has been marked as a duplicate of this bug. *** *** Bug 205873 has been marked as a duplicate of this bug. *** *** Bug 206222 has been marked as a duplicate of this bug. *** *** Bug 207596 has been marked as a duplicate of this bug. *** *** Bug 208622 has been marked as a duplicate of this bug. *** *** Bug 208634 has been marked as a duplicate of this bug. *** *** Bug 209068 has been marked as a duplicate of this bug. *** *** Bug 209735 has been marked as a duplicate of this bug. *** *** Bug 210953 has been marked as a duplicate of this bug. *** *** Bug 211829 has been marked as a duplicate of this bug. *** *** Bug 211825 has been marked as a duplicate of this bug. *** *** Bug 212247 has been marked as a duplicate of this bug. *** *** Bug 212442 has been marked as a duplicate of this bug. *** I'm thinking this is a ktorrent crash after all, reassigning to me. SVN commit 1042967 by guisson: Fix crash caused by error in reference count error in piece handlng. BUG: 204227 BUG: 186621 M +1 -0 ChangeLog M +4 -0 libbtcore/download/chunkdownload.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1042967 *** Bug 212752 has been marked as a duplicate of this bug. *** *** Bug 212846 has been marked as a duplicate of this bug. *** *** Bug 213118 has been marked as a duplicate of this bug. *** I'm still having the same problem. All versions of 3.2.x crash. ktorrent 3.3rc1 just hangs, right after throwing a permission denied on the directory where the torrent is downloading. Permissions on the directory are OK, so I really don't know where the problem can be. The fix is not in the release candidate, it will be in 3.3. *** Bug 213307 has been marked as a duplicate of this bug. *** Where can I find the patch to test it? Checkout the latest stable code: svn co svn://anonsvn.kde.org/home/kde/branches/stable/extragear-kde4/network/ktorrent/ (In reply to comment #38) > Checkout the latest stable code: > > svn co > svn://anonsvn.kde.org/home/kde/branches/stable/extragear-kde4/network/ktorrent/ [martin@endor ktorrent]$ svn co svn://anonsvn.kde.org/home/kde/branches/stable/extragear-kde4/network/ktorrent/ svn: No such revision 1046316 ??? *** Bug 213866 has been marked as a duplicate of this bug. *** *** Bug 214211 has been marked as a duplicate of this bug. *** *** Bug 214685 has been marked as a duplicate of this bug. *** *** Bug 214889 has been marked as a duplicate of this bug. *** *** Bug 215303 has been marked as a duplicate of this bug. *** *** Bug 215491 has been marked as a duplicate of this bug. *** *** Bug 215526 has been marked as a duplicate of this bug. *** *** Bug 215572 has been marked as a duplicate of this bug. *** *** Bug 216171 has been marked as a duplicate of this bug. *** *** Bug 216252 has been marked as a duplicate of this bug. *** *** Bug 217655 has been marked as a duplicate of this bug. *** *** Bug 218528 has been marked as a duplicate of this bug. *** *** Bug 218575 has been marked as a duplicate of this bug. *** *** Bug 218554 has been marked as a duplicate of this bug. *** *** Bug 218548 has been marked as a duplicate of this bug. *** *** Bug 219195 has been marked as a duplicate of this bug. *** *** Bug 219205 has been marked as a duplicate of this bug. *** *** Bug 219360 has been marked as a duplicate of this bug. *** *** Bug 219361 has been marked as a duplicate of this bug. *** *** Bug 216536 has been marked as a duplicate of this bug. *** *** Bug 220498 has been marked as a duplicate of this bug. *** *** Bug 222424 has been marked as a duplicate of this bug. *** *** Bug 223241 has been marked as a duplicate of this bug. *** *** Bug 223634 has been marked as a duplicate of this bug. *** *** Bug 223670 has been marked as a duplicate of this bug. *** *** Bug 224849 has been marked as a duplicate of this bug. *** *** Bug 225310 has been marked as a duplicate of this bug. *** *** Bug 225431 has been marked as a duplicate of this bug. *** *** Bug 225429 has been marked as a duplicate of this bug. *** *** Bug 226374 has been marked as a duplicate of this bug. *** *** Bug 229098 has been marked as a duplicate of this bug. *** Created attachment 43110 [details]
New crash information added by DrKonqi
KTorrent crashed, it was minimised and running when I received this (second in 1 hour) report.
I've simular problems with ktorrent v. 4.01. That one crash every hour and I can't normally use that application. kde 4.4.4 Russian Fedora 13 x86_64 with last updates. (OS: Linux (x86_64) release 2.6.33.5-124.fc13.x86_64 Compiler: gcc) |