This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[bug][svn] ktorrent frequently crashes while downloading

Tags: None
(comma "," separated)
imported4-zlh38
Registered Member
Posts
3
Karma
0
I have frequent crashes when downloading this torrent: http://www.mininova.org/get/776396. KTorrent downloaded first 3 files from this torrent without any problems, but after placing the rest of files into queue KTorrent started to crash.

Backtrace:
Code: Select all
#0  0x00007f6d232621fb in memcpy () from /lib64/libc.so.6
#1  0x00007f6d1f6f5e9d in QCA::MemoryRegion::MemoryRegion ()
   from /usr/lib64/qca2/libqca.so.2                         
#2  0x00007f6d1f70f3e5 in QCA::Hash::update () from /usr/lib64/qca2/libqca.so.2
#3  0x00007f6d1f70f46e in QCA::Hash::update () from /usr/lib64/qca2/libqca.so.2
#4  0x00007f6d2459fbc0 in ?? ()                                               
   from /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent_build/lib/./libbtcore.so.8                                                                               
#5  0x00007f6d245a11a6 in ?? ()                                                   
   from /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent_build/lib/./libbtcore.so.8                                                                               
#6  0x00007f6d245a9f4d in bt::Downloader::pieceReceived ()                         
   from /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent_build/lib/./libbtcore.so.8                                                                               
#7  0x00007f6d245aa1a4 in bt::Downloader::qt_metacall ()                           
   from /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent_build/lib/./libbtcore.so.8                                                                               
#8  0x00007f6d268a8e04 in QMetaObject::activate ()                                 
   from /usr/lib64/qt4/libQtCore.so.4                                             
#9  0x00007f6d245b17d2 in ?? ()                                                   
   from /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent_build/lib/./libbtcore.so.8                                                                               
#10 0x00007f6d24594fc3 in ?? ()                                                   
   from /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent_build/lib/./libbtcore.so.8                                                                               
#11 0x00007f6d245951dc in ?? ()                                                   
   from /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent_build/lib/./libbtcore.so.8                                                                               
#12 0x00007f6d268a8e04 in QMetaObject::activate ()                                 
   from /usr/lib64/qt4/libQtCore.so.4                                             
#13 0x00007f6d2458cf75 in ?? ()                                                   
   from /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent_build/lib/./libbtcore.so.8                                                                               
#14 0x00007f6d2458de70 in ?? ()                                                   
   from /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent_build/lib/./libbtcore.so.8                                                                               
#15 0x00007f6d24598ad1 in ?? ()                                                   
   from /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent_build/lib/./libbtcore.so.8                                                                               
#16 0x00007f6d2458d6d5 in ?? ()                                                   
   from /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent_build/lib/./libbtcore.so.8                                                                               
#17 0x00007f6d245915b3 in bt::PeerManager::update ()                               
---Type <return> to continue, or q <return> to quit---                             
   from /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent_build/lib/./libbtcore.so.8                                                                               
#18 0x00007f6d245c88e0 in bt::TorrentControl::update ()                           
   from /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent_build/lib/./libbtcore.so.8                                                                               
#19 0x00000000004303aa in ?? ()                                                   
#20 0x00000000004338a9 in ?? ()                                                   
#21 0x00007f6d268a8e04 in QMetaObject::activate ()                                 
   from /usr/lib64/qt4/libQtCore.so.4                                             
#22 0x00007f6d268a1713 in QObject::event () from /usr/lib64/qt4/libQtCore.so.4     
#23 0x00007f6d2566badd in QApplicationPrivate::notify_helper ()                   
   from /usr/lib64/qt4/libQtGui.so.4                                               
#24 0x00007f6d2566d18a in QApplication::notify ()                                 
   from /usr/lib64/qt4/libQtGui.so.4                                               
#25 0x00007f6d251105db in KApplication::notify ()                                 
   from /usr/kde/svn/lib64/libkdeui.so.5                                           
#26 0x00007f6d2688fade in QCoreApplication::notifyInternal ()                     
   from /usr/lib64/qt4/libQtCore.so.4                                             
#27 0x00007f6d268c0c35 in ?? () from /usr/lib64/qt4/libQtCore.so.4                 
#28 0x00007f6d268c2b28 in QEventDispatcherUNIX::processEvents ()                   
   from /usr/lib64/qt4/libQtCore.so.4
#29 0x00007f6d25711c4a in ?? () from /usr/lib64/qt4/libQtGui.so.4
#30 0x00007f6d2688e6f2 in QEventLoop::processEvents ()
   from /usr/lib64/qt4/libQtCore.so.4
#31 0x00007f6d2688eb8d in QEventLoop::exec () from /usr/lib64/qt4/libQtCore.so.4
#32 0x00007f6d268942ff in QCoreApplication::exec ()
   from /usr/lib64/qt4/libQtCore.so.4
#33 0x0000000000429da9 in ?? ()
#34 0x00007f6d231fa486 in __libc_start_main () from /lib64/libc.so.6
#35 0x0000000000425e39 in _start ()
imported4-zlh38
Registered Member
Posts
3
Karma
0

Wed Oct 29, 2008 2:02 pm
Here's a more meaningful backtrace:
Code: Select all
#0  0x00007ff9e630b1fb in memcpy () from /lib64/libc.so.6
#1  0x00007ff9e72c3e9d in QCA::MemoryRegion::MemoryRegion () from /usr/lib64/qca2/libqca.so.2
#2  0x00007ff9e72dd3e5 in QCA::Hash::update () from /usr/lib64/qca2/libqca.so.2
#3  0x00007ff9e72dd46e in QCA::Hash::update () from /usr/lib64/qca2/libqca.so.2
#4  0x00007ff9e8672d4e in bt::SHA1HashGen::update (this=0x199f3d8, data=0x7ff9ee54b6e0 "��\233���js�Le\022(.��`�\023+sU<U\215�)�\r���X{�\025�\006>3�\032�JJ7\222\024\211\b�=�\023\202\\\n\222D�*", len=16384)
    at /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent/ktorrent/libbtcore/util/sha1hashgen.cpp:238
#5  0x00007ff9e86b9fff in bt::ChunkDownload::updateHash (this=0x199f2f0) at /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent/ktorrent/libbtcore/download/chunkdownload.cpp:567
#6  0x00007ff9e86bb8a7 in bt::ChunkDownload::piece (this=0x199f2f0, p=@0x7ffff6563280, ok=@0x7ffff6562e9f)
    at /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent/ktorrent/libbtcore/download/chunkdownload.cpp:138
#7  0x00007ff9e86c6ff0 in bt::Downloader::pieceReceived (this=0x1720d40, p=@0x7ffff6563280) at /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent/ktorrent/libbtcore/download/downloader.cpp:116
#8  0x00007ff9e86c7321 in bt::Downloader::qt_metacall (this=0x1720d40, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0x7ffff6563010)
    at /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent_build/ktorrent/libbtcore/downloader.moc:98
#9  0x00007ff9edb9de04 in QMetaObject::activate () from /usr/lib64/qt4/libQtCore.so.4
#10 0x00007ff9e86d2313 in bt::PieceDownloader::downloaded (this=0x198f7c0, _t1=@0x7ffff6563280) at /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent_build/ktorrent/libbtcore/piecedownloader.moc:82
#11 0x00007ff9e86abc75 in bt::PeerDownloader::piece (this=0x198f7c0, p=@0x7ffff6563280) at /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent/ktorrent/libbtcore/peer/peerdownloader.cpp:176
#12 0x00007ff9e86abf53 in bt::PeerDownloader::qt_metacall (this=0x198f7c0, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0x7ffff6563230)
    at /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent_build/ktorrent/libbtcore/peerdownloader.moc:78
#13 0x00007ff9edb9de04 in QMetaObject::activate () from /usr/lib64/qt4/libQtCore.so.4
#14 0x00007ff9e86a08a1 in bt::Peer::piece (this=0x1a47840, _t1=@0x7ffff6563280) at /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent_build/ktorrent/libbtcore/peer.moc:122
#15 0x00007ff9e86a1f5a in bt::Peer::packetReady (this=0x1a47840, packet=0x1a8c290 "\a", len=16393) at /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent/ktorrent/libbtcore/peer/peer.cpp:267
#16 0x00007ff9e86b0613 in bt::PacketReader::update (this=0x1a3e960) at /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent/ktorrent/libbtcore/peer/packetreader.cpp:131
#17 0x00007ff9e86a114d in bt::Peer::update (this=0x1a47840, pman=0x1708060) at /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent/ktorrent/libbtcore/peer/peer.cpp:471
#18 0x00007ff9e86a6f90 in bt::PeerManager::update (this=0x1708060) at /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent/ktorrent/libbtcore/peer/peermanager.cpp:116
#19 0x00007ff9e86f5064 in bt::TorrentControl::update (this=0x14701f0) at /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent/ktorrent/libbtcore/torrent/torrentcontrol.cpp:196
#20 0x00000000004398f2 in kt::Core::update (this=0x10e1480) at /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent/ktorrent/ktorrent/core.cpp:840
#21 0x000000000043e6d7 in kt::Core::qt_metacall (this=0x10e1480, _c=QMetaObject::InvokeMetaMethod, _id=12, _a=0x7ffff6563720)
    at /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent_build/ktorrent/ktorrent/core.moc:145
#22 0x00007ff9edb9de04 in QMetaObject::activate () from /usr/lib64/qt4/libQtCore.so.4
#23 0x00007ff9edb96713 in QObject::event () from /usr/lib64/qt4/libQtCore.so.4
#24 0x00007ff9eb7dbadd in QApplicationPrivate::notify_helper () from /usr/lib64/qt4/libQtGui.so.4
#25 0x00007ff9eb7dd18a in QApplication::notify () from /usr/lib64/qt4/libQtGui.so.4
#26 0x00007ff9ea80d5db in KApplication::notify () from /usr/kde/svn/lib64/libkdeui.so.5
#27 0x00007ff9edb84ade in QCoreApplication::notifyInternal () from /usr/lib64/qt4/libQtCore.so.4
#28 0x00007ff9edbb5c35 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#29 0x00007ff9edbb7b28 in QEventDispatcherUNIX::processEvents () from /usr/lib64/qt4/libQtCore.so.4
#30 0x00007ff9eb881c4a in ?? () from /usr/lib64/qt4/libQtGui.so.4
#31 0x00007ff9edb836f2 in QEventLoop::processEvents () from /usr/lib64/qt4/libQtCore.so.4
#32 0x00007ff9edb83b8d in QEventLoop::exec () from /usr/lib64/qt4/libQtCore.so.4
#33 0x00007ff9edb892ff in QCoreApplication::exec () from /usr/lib64/qt4/libQtCore.so.4
#34 0x000000000042f23e in main (argc=1, argv=0x7ffff6565338) at /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent/ktorrent/ktorrent/main.cpp:167
#0  0x00007ff9e630b1fb in memcpy () from /lib64/libc.so.6
#1  0x00007ff9e72c3e9d in QCA::MemoryRegion::MemoryRegion () from /usr/lib64/qca2/libqca.so.2
#2  0x00007ff9e72dd3e5 in QCA::Hash::update () from /usr/lib64/qca2/libqca.so.2
#3  0x00007ff9e72dd46e in QCA::Hash::update () from /usr/lib64/qca2/libqca.so.2
#4  0x00007ff9e8672d4e in bt::SHA1HashGen::update (this=0x199f3d8, data=0x7ff9ee54b6e0 "��\233���js�Le\022(.��`�\023+sU<U\215�)�\r���X{�\025�\006>3�\032�JJ7\222\024\211\b�=�\023\202\\\n\222D�*", len=16384)
    at /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent/ktorrent/libbtcore/util/sha1hashgen.cpp:238
#5  0x00007ff9e86b9fff in bt::ChunkDownload::updateHash (this=0x199f2f0) at /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent/ktorrent/libbtcore/download/chunkdownload.cpp:567
#6  0x00007ff9e86bb8a7 in bt::ChunkDownload::piece (this=0x199f2f0, p=@0x7ffff6563280, ok=@0x7ffff6562e9f)
    at /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent/ktorrent/libbtcore/download/chunkdownload.cpp:138
#7  0x00007ff9e86c6ff0 in bt::Downloader::pieceReceived (this=0x1720d40, p=@0x7ffff6563280) at /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent/ktorrent/libbtcore/download/downloader.cpp:116
#8  0x00007ff9e86c7321 in bt::Downloader::qt_metacall (this=0x1720d40, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0x7ffff6563010)
    at /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent_build/ktorrent/libbtcore/downloader.moc:98
#9  0x00007ff9edb9de04 in QMetaObject::activate () from /usr/lib64/qt4/libQtCore.so.4
#10 0x00007ff9e86d2313 in bt::PieceDownloader::downloaded (this=0x198f7c0, _t1=@0x7ffff6563280) at /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent_build/ktorrent/libbtcore/piecedownloader.moc:82
#11 0x00007ff9e86abc75 in bt::PeerDownloader::piece (this=0x198f7c0, p=@0x7ffff6563280) at /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent/ktorrent/libbtcore/peer/peerdownloader.cpp:176
#12 0x00007ff9e86abf53 in bt::PeerDownloader::qt_metacall (this=0x198f7c0, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0x7ffff6563230)
    at /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent_build/ktorrent/libbtcore/peerdownloader.moc:78
#13 0x00007ff9edb9de04 in QMetaObject::activate () from /usr/lib64/qt4/libQtCore.so.4
#14 0x00007ff9e86a08a1 in bt::Peer::piece (this=0x1a47840, _t1=@0x7ffff6563280) at /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent_build/ktorrent/libbtcore/peer.moc:122
#15 0x00007ff9e86a1f5a in bt::Peer::packetReady (this=0x1a47840, packet=0x1a8c290 "\a", len=16393) at /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent/ktorrent/libbtcore/peer/peer.cpp:267
#16 0x00007ff9e86b0613 in bt::PacketReader::update (this=0x1a3e960) at /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent/ktorrent/libbtcore/peer/packetreader.cpp:131
#17 0x00007ff9e86a114d in bt::Peer::update (this=0x1a47840, pman=0x1708060) at /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent/ktorrent/libbtcore/peer/peer.cpp:471
#18 0x00007ff9e86a6f90 in bt::PeerManager::update (this=0x1708060) at /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent/ktorrent/libbtcore/peer/peermanager.cpp:116
#19 0x00007ff9e86f5064 in bt::TorrentControl::update (this=0x14701f0) at /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent/ktorrent/libbtcore/torrent/torrentcontrol.cpp:196
#20 0x00000000004398f2 in kt::Core::update (this=0x10e1480) at /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent/ktorrent/ktorrent/core.cpp:840
#21 0x000000000043e6d7 in kt::Core::qt_metacall (this=0x10e1480, _c=QMetaObject::InvokeMetaMethod, _id=12, _a=0x7ffff6563720)
    at /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent_build/ktorrent/ktorrent/core.moc:145
#22 0x00007ff9edb9de04 in QMetaObject::activate () from /usr/lib64/qt4/libQtCore.so.4
#23 0x00007ff9edb96713 in QObject::event () from /usr/lib64/qt4/libQtCore.so.4
#24 0x00007ff9eb7dbadd in QApplicationPrivate::notify_helper () from /usr/lib64/qt4/libQtGui.so.4
#25 0x00007ff9eb7dd18a in QApplication::notify () from /usr/lib64/qt4/libQtGui.so.4
#26 0x00007ff9ea80d5db in KApplication::notify () from /usr/kde/svn/lib64/libkdeui.so.5
#27 0x00007ff9edb84ade in QCoreApplication::notifyInternal () from /usr/lib64/qt4/libQtCore.so.4
#28 0x00007ff9edbb5c35 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#29 0x00007ff9edbb7b28 in QEventDispatcherUNIX::processEvents () from /usr/lib64/qt4/libQtCore.so.4
#30 0x00007ff9eb881c4a in ?? () from /usr/lib64/qt4/libQtGui.so.4
#31 0x00007ff9edb836f2 in QEventLoop::processEvents () from /usr/lib64/qt4/libQtCore.so.4
#32 0x00007ff9edb83b8d in QEventLoop::exec () from /usr/lib64/qt4/libQtCore.so.4
#33 0x00007ff9edb892ff in QCoreApplication::exec () from /usr/lib64/qt4/libQtCore.so.4
#34 0x000000000042f23e in main (argc=1, argv=0x7ffff6565338) at /var/tmp/portage/net-p2p/ktorrent-9999/work/ktorrent/ktorrent/ktorrent/main.cpp:167
George
Moderator
Posts
5421
Karma
1

Thu Oct 30, 2008 8:31 am
I will see if I can reproduce this.

Is disk space preallocation enabled ? Also, what revision exactly are you using ?
imported4-zlh38
Registered Member
Posts
3
Karma
0

Thu Oct 30, 2008 9:18 am
George wrote:I will see if I can reproduce this.

Is disk space preallocation enabled ?


Yes

George wrote: Also, what revision exactly are you using ?

Sorry, I can't tell you what exactly revision I'm using, because I deleted yesterday's svn snapshot.

EDIT - Lately I was trying to reproduce this bug, but failed to do so. Before the bug appeared KTorrent was working in pretty low disk conditions (200mb free or so). When KTorrent started to crash I moved all torrent data to another partition, but that doesn't solve a problem. However, after starting download from scratch KTorrent doesn't crash anymore.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]