Application: ktorrent (4.1.1) KDE Platform Version: 4.7.2 (4.7.2) Qt Version: 4.7.4 Operating System: Linux 3.0.0-14-generic x86_64 Distribution: Ubuntu 11.10 -- Information about the crash: - What I was doing when the application crashed: Since a couple of months i use an encrypted home directory and i noticed that the starting of a download is slow (something with allocating space in the encrypted home?) so today i decided to download the linuxmint iso directly into /boot/images. therefore in the console i did sudo -i mkdir /boot/images chgrp plugdev /boot/images chmod -R g+w /boot/images ls -ld /boot/images/ drwxrwxr-x 2 root plugdev 4096 2011-12-22 14:31 /boot/images/ the i downloaded the torrent http://torrents.linuxmint.com/torrents/linuxmint-201109-gnome-dvd-64bit.iso.torrent and told ktorrent to use /boot/images more or less at the same time i deleted the files from another torrent that had already been downloaded and consequently i got the "files not found" - "do you want to recreate" dialog from ktorrent now i dont recall whether the recreate-dialog or the /boot/images-download came first but after these two operations ktorrent crashed and it crashes immediatly again when i tried to restart it. The crash can be reproduced every time. -- Backtrace: Application: KTorrent (ktorrent), signal: Segmentation fault [Current thread is 1 (Thread 0x7f51b5c40780 (LWP 6458))] Thread 7 (Thread 0x7f51a2062700 (LWP 6460)): #0 0x00007f51aef9103e in __pthread_mutex_lock (mutex=0x7f519c000968) at pthread_mutex_lock.c:62 #1 0x00007f51ad579361 in g_main_context_query () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #2 0x00007f51ad579e6a in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #3 0x00007f51ad57a429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #4 0x00007f51b3499f3e in QEventDispatcherGlib::processEvents (this=0x12392c0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424 #5 0x00007f51b346dcf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149 #6 0x00007f51b346def7 in QEventLoop::exec (this=0x7f51a2061e00, flags=...) at kernel/qeventloop.cpp:201 #7 0x00007f51b338527f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498 #8 0x00007f51b3387d05 in QThreadPrivate::start (arg=0x1233940) at thread/qthread_unix.cpp:331 #9 0x00007f51aef8eefc in start_thread (arg=0x7f51a2062700) at pthread_create.c:304 #10 0x00007f51b1bc489d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #11 0x0000000000000000 in ?? () Thread 6 (Thread 0x7f51a1861700 (LWP 6461)): #0 0x00007f51b57a9d40 in ref (this=0x11a162c) at /usr/include/qt4/QtCore/qatomic_x86_64.h:121 #1 ref (this=<optimized out>) at /usr/include/qt4/QtCore/qsharedpointer_impl.h:326 #2 ExternalRefCount (other=<optimized out>, this=0x7f51a1860d90) at /usr/include/qt4/QtCore/qsharedpointer_impl.h:389 #3 QSharedPointer (other=<optimized out>, this=0x7f51a1860d90) at /usr/include/qt4/QtCore/qsharedpointer_impl.h:465 #4 dht::RPCServer::Private::run (this=0x1259630) at ../../src/dht/rpcserver.cpp:97 #5 0x00007f51b3387d05 in QThreadPrivate::start (arg=0x1259630) at thread/qthread_unix.cpp:331 #6 0x00007f51aef8eefc in start_thread (arg=0x7f51a1861700) at pthread_create.c:304 #7 0x00007f51b1bc489d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #8 0x0000000000000000 in ?? () Thread 5 (Thread 0x7f5193bb0700 (LWP 6462)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162 #1 0x00007f519aee1c2c in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4 #2 0x00007f519aee1d59 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4 #3 0x00007f51aef8eefc in start_thread (arg=0x7f5193bb0700) at pthread_create.c:304 #4 0x00007f51b1bc489d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #5 0x0000000000000000 in ?? () Thread 4 (Thread 0x7f51932af700 (LWP 6463)): #0 0x00007f51aef921fd in __pthread_mutex_unlock_usercnt (mutex=<optimized out>, decr=<optimized out>) at pthread_mutex_unlock.c:52 #1 __pthread_mutex_unlock (mutex=0x1d9af78) at pthread_mutex_unlock.c:290 #2 0x00007f51ad5793f5 in g_main_context_query () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #3 0x00007f51ad579e6a in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #4 0x00007f51ad57a429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #5 0x00007f51b3499f3e in QEventDispatcherGlib::processEvents (this=0x1d9ad00, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424 #6 0x00007f51b346dcf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149 #7 0x00007f51b346def7 in QEventLoop::exec (this=0x7f51932aee00, flags=...) at kernel/qeventloop.cpp:201 #8 0x00007f51b338527f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498 #9 0x00007f51b3387d05 in QThreadPrivate::start (arg=0x1d9a4e0) at thread/qthread_unix.cpp:331 #10 0x00007f51aef8eefc in start_thread (arg=0x7f51932af700) at pthread_create.c:304 #11 0x00007f51b1bc489d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #12 0x0000000000000000 in ?? () Thread 3 (Thread 0x7f5191c36700 (LWP 6477)): #0 begin (this=0x6de500) at ../../src/net/downloadthread.cpp:135 #1 net::DownloadThread::waitForSocketReady (this=0x110fdf0) at ../../src/net/downloadthread.cpp:117 #2 0x00007f51b5744336 in net::DownloadThread::update (this=0x110fdf0) at ../../src/net/downloadthread.cpp:48 #3 0x00007f51b5744549 in net::NetworkThread::run (this=0x110fdf0) at ../../src/net/networkthread.cpp:48 #4 0x00007f51b3387d05 in QThreadPrivate::start (arg=0x110fdf0) at thread/qthread_unix.cpp:331 #5 0x00007f51aef8eefc in start_thread (arg=0x7f5191c36700) at pthread_create.c:304 #6 0x00007f51b1bc489d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #7 0x0000000000000000 in ?? () Thread 2 (Thread 0x7f514c0e6700 (LWP 6478)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162 #1 0x00007f51b3386d13 in QMutexPrivate::wait (this=0x1110720, timeout=-1) at thread/qmutex_unix.cpp:84 #2 0x00007f51b3383345 in QMutex::lock (this=0x110f900) at thread/qmutex.cpp:167 #3 0x00007f51b5743c50 in update (this=0x110f740) at ../../src/net/uploadthread.cpp:49 #4 net::UploadThread::update (this=0x110f740) at ../../src/net/uploadthread.cpp:43 #5 0x00007f51b5744549 in net::NetworkThread::run (this=0x110f740) at ../../src/net/networkthread.cpp:48 #6 0x00007f51b3387d05 in QThreadPrivate::start (arg=0x110f740) at thread/qthread_unix.cpp:331 #7 0x00007f51aef8eefc in start_thread (arg=0x7f514c0e6700) at pthread_create.c:304 #8 0x00007f51b1bc489d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #9 0x0000000000000000 in ?? () Thread 1 (Thread 0x7f51b5c40780 (LWP 6458)): [KCrash Handler] #6 bt::PieceData::write (this=0x0, buf=0x2707228 "3\355\372\216\325\274", buf_size=256893, off=0) at ../../src/diskio/piecedata.cpp:61 #7 0x00007f51b57677a7 in bt::WebSeed::handleData (this=0x14e3460, tmp=...) at ../../src/download/webseed.cpp:426 #8 0x00007f51b5767a02 in bt::WebSeed::readData (this=0x14e3460) at ../../src/download/webseed.cpp:397 #9 0x00007f51b5768f75 in bt::WebSeed::update (this=0x14e3460) at ../../src/download/webseed.cpp:353 #10 0x00007f51b57723e7 in bt::Downloader::update (this=0x14c2100) at ../../src/download/downloader.cpp:204 #11 0x00007f51b578e3a9 in bt::TorrentControl::update (this=0x139ef60) at ../../src/torrent/torrentcontrol.cpp:175 #12 0x000000000042b9bd in kt::Core::update (this=0x1247890) at ../../ktorrent/core.cpp:1052 #13 0x000000000043304d in kt::Core::qt_metacall (this=0x1247890, _c=QMetaObject::InvokeMetaMethod, _id=10, _a=0x7fffb3db8e20) at ./core.moc:164 #14 0x00007f51b3481eba in QMetaObject::activate (sender=0x12478b8, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3278 #15 0x00007f51b3485789 in QObject::event (this=0x12478b8, e=<optimized out>) at kernel/qobject.cpp:1181 #16 0x00007f51b281f424 in notify_helper (e=0x7fffb3db9360, receiver=0x12478b8, this=0x1135450) at kernel/qapplication.cpp:4486 #17 QApplicationPrivate::notify_helper (this=0x1135450, receiver=0x12478b8, e=0x7fffb3db9360) at kernel/qapplication.cpp:4458 #18 0x00007f51b2824291 in QApplication::notify (this=0x7fffb3db9660, receiver=0x12478b8, e=0x7fffb3db9360) at kernel/qapplication.cpp:4365 #19 0x0000000000439921 in kt::App::notify (this=<optimized out>, receiver=<optimized out>, event=<optimized out>) at ../../ktorrent/app.cpp:99 #20 0x00007f51b346eafc in QCoreApplication::notifyInternal (this=0x7fffb3db9660, receiver=0x12478b8, event=0x7fffb3db9360) at kernel/qcoreapplication.cpp:787 #21 0x00007f51b349bd62 in sendEvent (event=0x7fffb3db9360, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215 #22 QTimerInfoList::activateTimers (this=0x113bc00) at kernel/qeventdispatcher_unix.cpp:603 #23 0x00007f51b3499514 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:184 #24 0x00007f51ad579a5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #25 0x00007f51ad57a258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #26 0x00007f51ad57a429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #27 0x00007f51b3499ed6 in QEventDispatcherGlib::processEvents (this=0x10e1fa0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422 #28 0x00007f51b28c707e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204 #29 0x00007f51b346dcf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149 #30 0x00007f51b346def7 in QEventLoop::exec (this=0x7fffb3db95f0, flags=...) at kernel/qeventloop.cpp:201 #31 0x00007f51b3472789 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064 #32 0x0000000000428362 in main (argc=1, argv=0x7fffb3dba4d8) at ../../ktorrent/main.cpp:177 Possible duplicates by query: bug 281605. Reported using DrKonqi
aha, so it is suggested to be a duplicate of #281605, and also this part of the backtrace Thread 1 (Thread 0x7f51b5c40780 (LWP 6458)): [KCrash Handler] #6 bt::PieceData::write (this=0x0 and the diff for the fix for #281605, support that.
ubuntu currently only has libktorrent3 (1.1.1-2) but libktorrent3_1.1.3-1_amd64.deb from debian http://packages.debian.org/sid/amd64/libktorrent3/download incorporates this fix. i just installed that version and now ktorrent runs ok again. so im closing this as duplicate *** This bug has been marked as a duplicate of bug 281605 ***