Bug 212846

Summary: KTorrent always crashes eventually
Product: [Applications] ktorrent Reporter: ddhutche
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED DUPLICATE    
Severity: crash CC: martin.marques
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Ktorrent crash

Description ddhutche 2009-11-03 01:46:55 UTC
Application that crashed: ktorrent
Version of the application: 3.2.4
KDE Version: 4.3.2 (KDE 4.3.2)
Qt Version: 4.5.2
Operating System: Linux 2.6.31-14-generic i686
Distribution: Ubuntu 9.10

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

Thread 3 (Thread 0xb63a0b70 (LWP 2059)):
#0  net::DownloadThread::update (this=0x84e3040) at ../../libbtcore/net/downloadthread.cpp:71
#1  0x00959d38 in net::NetworkThread::run (this=0x84e3040) at ../../libbtcore/net/networkthread.cpp:48
#2  0x045c5e32 in QThreadPrivate::start (arg=0x84e3040) at thread/qthread_unix.cpp:188
#3  0x00edc80e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#4  0x008037ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread 0xb5817b70 (LWP 2060)):
#0  0x00f0e422 in __kernel_vsyscall ()
#1  0x00ee0e15 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x0081078d in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3  0x045c6e67 in QWaitConditionPrivate::wait (this=0x84e3328, mutex=0x84e332c, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#4  QWaitCondition::wait (this=0x84e3328, mutex=0x84e332c, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#5  0x00958a6d in net::UploadThread::update (this=0x84e32f0) at ../../libbtcore/net/uploadthread.cpp:73
#6  0x00959d38 in net::NetworkThread::run (this=0x84e32f0) at ../../libbtcore/net/networkthread.cpp:48
#7  0x045c5e32 in QThreadPrivate::start (arg=0x84e32f0) at thread/qthread_unix.cpp:188
#8  0x00edc80e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#9  0x008037ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb78a0700 (LWP 2057)):
[KCrash Handler]
#6  0x007ac006 in memcpy () from /lib/tls/i686/cmov/libc.so.6
#7  0xbf8cb76c in ?? ()
#8  0x00ac07bb in QCA::Hash::update(char const*, int) () from /usr/lib/libqca.so.2
#9  0x00944594 in bt::SHA1HashGen::update (this=0x9b47b4c, data=0xb5b9dbf8 "", len=16384) at ../../libbtcore/util/sha1hashgen.cpp:238
#10 0x00979eb8 in bt::ChunkDownload::updateHash (this=<value optimized out>) at ../../libbtcore/download/chunkdownload.cpp:562
#11 0x0097ad30 in bt::ChunkDownload::piece (this=0x9b47ac8, p=..., ok=@0xbf8cb90f) at ../../libbtcore/download/chunkdownload.cpp:133
#12 0x009818ff in bt::Downloader::pieceReceived (this=0x87e6208, p=...) at ../../libbtcore/download/downloader.cpp:133
#13 0x00969b0f in bt::PeerManager::pieceReceived (this=0x8752478, p=...) at ../../libbtcore/peer/peermanager.cpp:669
#14 0x0096849f in bt::Peer::packetReady (this=0x99b8200, packet=0xb4753ee0 "\a", len=9) at ../../libbtcore/peer/peer.cpp:269
#15 0x00971f16 in bt::PacketReader::update (this=0x91d2288) at ../../libbtcore/peer/packetreader.cpp:131
#16 0x009681d9 in bt::Peer::update (this=0x99b8200) at ../../libbtcore/peer/peer.cpp:474
#17 0x0096bf0e in bt::PeerManager::update (this=0x8752478) at ../../libbtcore/peer/peermanager.cpp:117
#18 0x009a13be in bt::TorrentControl::update (this=0x8735bc0) at ../../libbtcore/torrent/torrentcontrol.cpp:178
#19 0x0806d1e7 in kt::Core::update (this=0x85ebfd0) at ../../ktorrent/core.cpp:877
#20 0x08072c1d in kt::Core::qt_metacall (this=0x85ebfd0, _c=QMetaObject::InvokeMetaMethod, _id=12, _a=0xbf8cbc8c) at ./core.moc:148
#21 0x046cc263 in QMetaObject::activate (sender=0x85ebfe4, from_signal_index=4, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3113
#22 0x046ccec2 in QMetaObject::activate (sender=0x85ebfe4, m=0x47a7904, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3187
#23 0x04706667 in QTimer::timeout (this=0x85ebfe4) at .moc/release-shared/moc_qtimer.cpp:128
#24 0x046d19ae in QTimer::timerEvent (this=0x85ebfe4, e=0xbf8cc120) at kernel/qtimer.cpp:261
#25 0x046c63bf in QObject::event (this=0x85ebfe4, e=0xbf8cc120) at kernel/qobject.cpp:1075
#26 0x05e06f54 in QApplicationPrivate::notify_helper (this=0x850cdf8, receiver=0x85ebfe4, e=0xbf8cc120) at kernel/qapplication.cpp:4056
#27 0x05e0e67c in QApplication::notify (this=0xbf8cc474, receiver=0x85ebfe4, e=0xbf8cc120) at kernel/qapplication.cpp:3603
#28 0x0115fbfa in KApplication::notify (this=0xbf8cc474, receiver=0x85ebfe4, event=0xbf8cc120) at ../../kdeui/kernel/kapplication.cpp:302
#29 0x046b66cb in QCoreApplication::notifyInternal (this=0xbf8cc474, receiver=0x85ebfe4, event=0xbf8cc120) at kernel/qcoreapplication.cpp:610
#30 0x046e37ce in QCoreApplication::sendEvent (this=0x850c634) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#31 QTimerInfoList::activateTimers (this=0x850c634) at kernel/qeventdispatcher_unix.cpp:572
#32 0x046e10e0 in timerSourceDispatch (source=0x850c600) at kernel/qeventdispatcher_glib.cpp:165
#33 0x01691e78 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#34 0x01695720 in ?? () from /lib/libglib-2.0.so.0
#35 0x01695853 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#36 0x046e102c in QEventDispatcherGlib::processEvents (this=0x84e0ee8, flags=...) at kernel/qeventdispatcher_glib.cpp:327
#37 0x05ea7be5 in QGuiEventDispatcherGlib::processEvents (this=0x84e0ee8, flags=...) at kernel/qguieventdispatcher_glib.cpp:202
#38 0x046b4c79 in QEventLoop::processEvents (this=0xbf8cc3e4, flags=) at kernel/qeventloop.cpp:149
#39 0x046b50ca in QEventLoop::exec (this=0xbf8cc3e4, flags=...) at kernel/qeventloop.cpp:201
#40 0x046b753f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#41 0x05e06dd7 in QApplication::exec () at kernel/qapplication.cpp:3525
#42 0x08065b98 in main (argc=5, argv=0xbf8cc834) at ../../ktorrent/main.cpp:171

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

Reported using DrKonqi
Comment 1 Joris Guisson 2009-11-03 18:18:48 UTC

*** This bug has been marked as a duplicate of bug 186621 ***
Comment 2 Martin Marques 2009-11-13 12:30:32 UTC
Created attachment 38301 [details]
Ktorrent crash
Comment 3 Martin Marques 2009-11-13 13:32:30 UTC
I think this bug isn't solved as a duplicated, or BUG 186621 isn't solved.

I'm using ktorrent 3.3 and I still get crashes.

The cause of the crashes is that I had a downloaded torrent which I burned and the dvd went wrong, so I copied the files that I could recover from the dvd and started the torrent againg. Crashes appear when starting these torrents.

Transmission doesn't crash, but gives me a permission denied message.
Comment 4 Joris Guisson 2009-11-13 18:32:37 UTC
The attached crash is something different then your original crash. 

Can you send me that torrent ? Also what permissions exactly do those files have, who owns them, and how large are they ?
Comment 5 Martin Marques 2009-11-16 03:42:30 UTC
OK, found the cause of the problem.

Some of the files that got copied from the DVD had read-only permission, reason why ktorrent sometimes gave permission denied messages (transmission always gave it), but most of times ktorrent would just crash.

Now with the permissions fixed crashes have disappeared.

Anyway, a permission denied over a file which has to be written shouldn't end in a crash.