Bug 255350 - KTorrent crashed when external USB HDD with seeding torrents accidentally disconnected
Summary: KTorrent crashed when external USB HDD with seeding torrents accidentally dis...
Status: RESOLVED DUPLICATE of bug 241598
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-26 22:42 UTC by Andrey
Modified: 2010-10-27 17:52 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey 2010-10-26 22:42:34 UTC
Application: ktorrent (4.0.3)
KDE Platform Version: 4.5.1 (KDE 4.5.1)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-22-generic x86_64
Distribution: Ubuntu 10.10

-- Information about the crash:
My external USB HDD (Transcend) sometimes unexpectedly disconnected (bug in system or something else). It disappeared from mounted devices. Then KTorrent always displayed crash report.

Expected behaviour: torrents seeded from this drive must be marked as "unavailable" or something like this.

The crash can be reproduced every time.

-- Backtrace:
Application: KTorrent (ktorrent), signal: Bus error
[Current thread is 1 (Thread 0x7fe58b788760 (LWP 1714))]

Thread 6 (Thread 0x7fe57c84e710 (LWP 1752)):
#0  0x00007fe5873021d3 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fe58215d009 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007fe58215d7b5 in g_main_loop_run () from /lib/libglib-2.0.so.0
#3  0x00007fe57cf850f4 in ?? () from /usr/lib/libgio-2.0.so.0
#4  0x00007fe5821827e4 in ?? () from /lib/libglib-2.0.so.0
#5  0x00007fe588a39971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#6  0x00007fe58730e91d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7fe56ec14710 (LWP 1821)):
#0  0x00007fe5873072b3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007fe58b302212 in dht::RPCServerThread::run (this=0x24ee8f0) at ../../src/dht/rpcserver.cpp:107
#2  0x00007fe588cc427e in QThreadPrivate::start (arg=0x24ee8f0) at thread/qthread_unix.cpp:266
#3  0x00007fe588a39971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#4  0x00007fe58730e91d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fe557fff710 (LWP 1971)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007fe557ffed70 in ?? ()
#2  0x00007fff1f5ff714 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 3 (Thread 0x7fe5577fe710 (LWP 1972)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fe588cc3533 in QMutexPrivate::wait (this=0x21ff2a0, timeout=-1) at thread/qmutex_unix.cpp:84
#2  0x00007fe588cbeee5 in QMutex::lock (this=0x6d9088) at thread/qmutex.cpp:167
#3  0x00007fe58b29ec0d in net::UploadThread::waitForSocketsReady (this=0x21ff990) at ../../src/net/uploadthread.cpp:112
#4  0x00007fe58b29ee86 in net::UploadThread::update (this=0x21ff2ec) at ../../src/net/uploadthread.cpp:45
#5  0x00007fe58b2a02c9 in net::NetworkThread::run (this=0x21ff990) at ../../src/net/networkthread.cpp:48
#6  0x00007fe588cc427e in QThreadPrivate::start (arg=0x21ff990) at thread/qthread_unix.cpp:266
#7  0x00007fe588a39971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#8  0x00007fe58730e91d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fe556ffd710 (LWP 1973)):
#0  0x00007fe5873006fd in read () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007fe58729b278 in _IO_new_file_underflow (fp=0x7fe5582911a0) at fileops.c:606
#2  0x00007fe58729cdfe in _IO_default_uflow (fp=0x3) at genops.c:440
#3  0x00007fe58729132e in _IO_getline_info (fp=0x7fe5582911a0, buf=0x7fe56f415000 "RESOLVE-ADDRESS 92.55.25.157\n", n=255, delim=10, extract_delim=1, eof=0x0) at iogetline.c:74
#4  0x00007fe587290209 in _IO_fgets (buf=0x7fe556ffc0d0 "-15 Timeout reached\n", n=<value optimized out>, fp=0x7fe5582911a0) at iofgets.c:58
#5  0x00007fe55c353fcb in ?? () from /lib/libnss_mdns4.so.2
#6  0x00007fe55c354435 in _nss_mdns4_gethostbyaddr_r () from /lib/libnss_mdns4.so.2
#7  0x00007fe587329568 in __gethostbyaddr_r (addr=0x3d3eba4, len=4, type=<value optimized out>, resbuf=0x7fe556ffcb50, buffer=<value optimized out>, buflen=<value optimized out>, result=0x7fe556ffcb80, h_errnop=0x7fe556ffcb8c) at ../nss/getXXbyYY_r.c:253
#8  0x00007fe58732fb5b in getnameinfo (sa=0x3d3eba0, addrlen=<value optimized out>, host=0x7fe556ffccb0 "", hostlen=199, serv=0x7fe556ffcbe0 "", servlen=199, flags=<value optimized out>) at getnameinfo.c:223
#9  0x00007fe58b2a2f4f in net::ReverseResolver::resolve (this=<value optimized out>, addr=...) at ../../src/net/reverseresolver.cpp:64
#10 0x00007fe58b2a2ff0 in net::ReverseResolver::run (this=0x39cb670) at ../../src/net/reverseresolver.cpp:73
#11 0x00007fe58b2a31dd in net::ReverseResolverThread::run (this=0x7fe558003c30) at ../../src/net/reverseresolver.cpp:118
#12 0x00007fe588cc427e in QThreadPrivate::start (arg=0x7fe558003c30) at thread/qthread_unix.cpp:266
#13 0x00007fe588a39971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#14 0x00007fe58730e91d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#15 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fe58b788760 (LWP 1714)):
[KCrash Handler]
#6  memcpy () at ../sysdeps/x86_64/memcpy.S:267
#7  0x00007fe58b308180 in bt::Chunk::readPiece (this=<value optimized out>, off=<value optimized out>, len=16384, data=0x510cbed "") at //usr/include/bits/string3.h:52
#8  0x00007fe58b2b9954 in bt::PacketWriter::sendChunk (this=0x51a9e30, index=291, begin=2228224, len=16384, ch=<value optimized out>) at ../../src/peer/packetwriter.cpp:195
#9  0x00007fe58b2b8307 in bt::PeerUploader::update (this=0x4c36c10, cman=..., opt_unchoked=<value optimized out>) at ../../src/peer/peeruploader.cpp:83
#10 0x00007fe58b2ddb16 in bt::Uploader::update (this=0x2d1a2a0, opt_unchoked=43645) at ../../src/torrent/uploader.cpp:48
#11 0x00007fe58b2e58e0 in bt::TorrentControl::update (this=0x2cd9260) at ../../src/torrent/torrentcontrol.cpp:173
#12 0x00000000004289fb in kt::Core::update (this=0x7fe568003e70) at ../../ktorrent/core.cpp:1030
#13 0x0000000000431222 in kt::Core::qt_metacall (this=0x7fe568003e70, _c=QMetaObject::InvokeMetaMethod, _id=84986861, _a=0x7fff1f562f40) at ./core.moc:167
#14 0x00007fe588dcfb27 in QMetaObject::activate (sender=0x7fe568003e98, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x800) at kernel/qobject.cpp:3280
#15 0x00007fe588dc98f9 in QObject::event (this=0x7fe568003e98, e=0x7fe56d97e000) at kernel/qobject.cpp:1183
#16 0x00007fe587f01fdc in QApplicationPrivate::notify_helper (this=0x222c4c0, receiver=0x7fe568003e98, e=0x7fff1f563670) at kernel/qapplication.cpp:4396
#17 0x00007fe587f07aed in QApplication::notify (this=0x7fff1f5639a0, receiver=0x7fe568003e98, e=0x7fff1f563670) at kernel/qapplication.cpp:4277
#18 0x0000000000437d1a in kt::App::notify (this=0x510cbed, receiver=0x7fe56d97e000, event=0x4000) at ../../ktorrent/app.cpp:97
#19 0x00007fe588db7cdc in QCoreApplication::notifyInternal (this=0x7fff1f5639a0, receiver=0x7fe568003e98, event=0x7fff1f563670) at kernel/qcoreapplication.cpp:732
#20 0x00007fe588de76f2 in sendEvent (this=0x2232950) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#21 QTimerInfoList::activateTimers (this=0x2232950) at kernel/qeventdispatcher_unix.cpp:602
#22 0x00007fe588de44c8 in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:184
#23 idleTimerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:231
#24 0x00007fe582159342 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#25 0x00007fe58215d2a8 in ?? () from /lib/libglib-2.0.so.0
#26 0x00007fe58215d45c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#27 0x00007fe588de4193 in QEventDispatcherGlib::processEvents (this=0x21fd320, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#28 0x00007fe587fb4a4e in QGuiEventDispatcherGlib::processEvents (this=0x510cbed, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#29 0x00007fe588db6a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#30 0x00007fe588db6dec in QEventLoop::exec (this=0x7fff1f563910, flags=) at kernel/qeventloop.cpp:201
#31 0x00007fe588dbaebb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#32 0x0000000000426a8b in main (argc=<value optimized out>, argv=<value optimized out>) at ../../ktorrent/main.cpp:176

Possible duplicates by query: bug 248686, bug 248509, bug 235873.

Reported using DrKonqi
Comment 1 Joris Guisson 2010-10-27 17:52:35 UTC

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