Bug 270931 - Ktorrent Crashes Randomly When Downloading to a USB Hard Drive
Summary: Ktorrent Crashes Randomly When Downloading to a USB Hard Drive
Status: RESOLVED DUPLICATE of bug 251117
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: 2011-04-14 09:49 UTC by Alex R.
Modified: 2011-04-14 18:05 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (14.32 KB, text/plain)
2011-04-14 10:13 UTC, Alex R.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex R. 2011-04-14 09:49:49 UTC
Application: ktorrent (4.0.3)
KDE Platform Version: 4.6.2 (4.6.2)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-28-generic x86_64
Distribution: Ubuntu 10.10

-- Information about the crash:
Ktorrent regularly crashes while downloading torrents.  The only thing I can figure that's causing it is the program doesn't wait long enough for the drive setup I have.

I am downloading to a large external USB drive, with a link setup in my home directory.

The crash can be reproduced every time.

-- Backtrace:
Application: KTorrent (ktorrent), signal: Segmentation fault
pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
	in ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
[Current thread is 1 (Thread 0x7f8780694760 (LWP 14657))]

Thread 8 (Thread 0x7f876ac44700 (LWP 14660)):
[KCrash Handler]
#6  0x00007f877dbe7351 in QMetaObject::metacall (object=<value optimized out>, cl=QMetaObject::InvokeMetaMethod, idx=3, argv=0x24abad0) at kernel/qmetaobject.cpp:235
#7  0x00007f877dbf3bde in QObject::event (this=0x314ea40, e=0x207270412075684c) at kernel/qobject.cpp:1219
#8  0x00007f877cd2bfdc in QApplicationPrivate::notify_helper (this=0x16d0d20, receiver=0x314ea40, e=0x22808a0) at kernel/qapplication.cpp:4396
#9  0x00007f877cd31aed in QApplication::notify (this=0x7fff722e6bf0, receiver=0x314ea40, e=0x22808a0) at kernel/qapplication.cpp:4277
#10 0x0000000000437d1a in kt::App::notify (this=0x207270412075684c, receiver=0x0, event=0x3) at ../../ktorrent/app.cpp:97
#11 0x00007f877dbe1cdc in QCoreApplication::notifyInternal (this=0x7fff722e6bf0, receiver=0x314ea40, event=0x22808a0) at kernel/qcoreapplication.cpp:732
#12 0x00007f877dbe4c22 in sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x17ad000) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#13 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x17ad000) at kernel/qcoreapplication.cpp:1373
#14 0x00007f877dc0e653 in sendPostedEvents (s=0x1854b00) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#15 postEventSourceDispatch (s=0x1854b00) at kernel/qeventdispatcher_glib.cpp:277
#16 0x00007f8777904342 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#17 0x00007f87779082a8 in ?? () from /lib/libglib-2.0.so.0
#18 0x00007f877790845c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#19 0x00007f877dc0e193 in QEventDispatcherGlib::processEvents (this=0x1874920, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#20 0x00007f877dbe0a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#21 0x00007f877dbe0dec in QEventLoop::exec (this=0x7f876ac43db0, flags=) at kernel/qeventloop.cpp:201
#22 0x00007f877daeb2fd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#23 0x00007f878025c15e in utp::UTPServerThread::run (this=0x17afc90) at ../../src/utp/utpserverthread.cpp:44
#24 0x00007f877daee27e in QThreadPrivate::start (arg=0x17afc90) at thread/qthread_unix.cpp:266
#25 0x00007f877d863971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#26 0x00007f877c13892d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#27 0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f876a443700 (LWP 14661)):
#0  0x00007f877c1312c3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f8780223212 in dht::RPCServerThread::run (this=0x16cd160) at ../../src/dht/rpcserver.cpp:107
#2  0x00007f877daee27e in QThreadPrivate::start (arg=0x16cd160) at thread/qthread_unix.cpp:266
#3  0x00007f877d863971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#4  0x00007f877c13892d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f875a90a700 (LWP 14669)):
#0  0x00007f877c12c203 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f8777908009 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f877790845c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007f877dc0e1e6 in QEventDispatcherGlib::processEvents (this=0x24da0a0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417
#4  0x00007f877dbe0a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007f877dbe0dec in QEventLoop::exec (this=0x7f875a909db0, flags=) at kernel/qeventloop.cpp:201
#6  0x00007f877daeb2fd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#7  0x00007f877dbc05f8 in QInotifyFileSystemWatcherEngine::run (this=0x26fb000) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f877daee27e in QThreadPrivate::start (arg=0x26fb000) at thread/qthread_unix.cpp:266
#9  0x00007f877d863971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#10 0x00007f877c13892d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f8763fff700 (LWP 14709)):
#0  net::Socket::prepare (this=0x7f875c519640, p=0x16658a0, mode=net::Poll::INPUT) at ../../src/net/socket.cpp:457
#1  0x00007f87801c06de in net::DownloadThread::waitForSocketReady (this=0x1665890) at ../../src/net/downloadthread.cpp:123
#2  0x00007f87801c07e6 in net::DownloadThread::update (this=0x7f875c519640) at ../../src/net/downloadthread.cpp:48
#3  0x00007f87801c12c9 in net::NetworkThread::run (this=0x1665890) at ../../src/net/networkthread.cpp:48
#4  0x00007f877daee27e in QThreadPrivate::start (arg=0x1665890) at thread/qthread_unix.cpp:266
#5  0x00007f877d863971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#6  0x00007f877c13892d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f8769078700 (LWP 14710)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f877daed533 in QMutexPrivate::wait (this=0x1665810, timeout=-1) at thread/qmutex_unix.cpp:84
#2  0x00007f877dae8ee5 in QMutex::lock (this=0x6d9088) at thread/qmutex.cpp:167
#3  0x00007f87801bfc0d in net::UploadThread::waitForSocketsReady (this=0x1665dc0) at ../../src/net/uploadthread.cpp:112
#4  0x00007f87801bfe86 in net::UploadThread::update (this=0x166585c) at ../../src/net/uploadthread.cpp:45
#5  0x00007f87801c12c9 in net::NetworkThread::run (this=0x1665dc0) at ../../src/net/networkthread.cpp:48
#6  0x00007f877daee27e in QThreadPrivate::start (arg=0x1665dc0) at thread/qthread_unix.cpp:266
#7  0x00007f877d863971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#8  0x00007f877c13892d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f87637fe700 (LWP 14711)):
#0  0x00007f877c12a72d in read () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f877c0c5278 in _IO_new_file_underflow (fp=0x7f876490f4b0) at fileops.c:606
#2  0x00007f877c0c6dfe in _IO_default_uflow (fp=0x8) at genops.c:440
#3  0x00007f877c0bb32e in _IO_getline_info (fp=0x7f876490f4b0, buf=0x7f87804f0000 "RESOLVE-ADDRESS 68.151.96.236\n", n=255, delim=10, extract_delim=1, eof=0x0) at iogetline.c:74
#4  0x00007f877c0ba209 in _IO_fgets (buf=0x7f87637fd0d0 "-15 Timeout reached\n", n=<value optimized out>, fp=0x7f876490f4b0) at iofgets.c:58
#5  0x00007f874e315fcb in ?? () from /lib/libnss_mdns4.so.2
#6  0x00007f874e316435 in _nss_mdns4_gethostbyaddr_r () from /lib/libnss_mdns4.so.2
#7  0x00007f877c153578 in __gethostbyaddr_r (addr=0x2d90f34, len=4, type=<value optimized out>, resbuf=0x7f87637fdb50, buffer=<value optimized out>, buflen=<value optimized out>, result=0x7f87637fdb80, h_errnop=0x7f87637fdb8c) at ../nss/getXXbyYY_r.c:253
#8  0x00007f877c159b6b in getnameinfo (sa=0x2d90f30, addrlen=<value optimized out>, host=0x7f87637fdcb0 "", hostlen=199, serv=0x7f87637fdbe0 "", servlen=199, flags=<value optimized out>) at getnameinfo.c:223
#9  0x00007f87801c3f4f in net::ReverseResolver::resolve (this=<value optimized out>, addr=...) at ../../src/net/reverseresolver.cpp:64
#10 0x00007f87801c3ff0 in net::ReverseResolver::run (this=0x3a09900) at ../../src/net/reverseresolver.cpp:73
#11 0x00007f87801c41dd in net::ReverseResolverThread::run (this=0x7f875c48b920) at ../../src/net/reverseresolver.cpp:118
#12 0x00007f877daee27e in QThreadPrivate::start (arg=0x7f875c48b920) at thread/qthread_unix.cpp:266
#13 0x00007f877d863971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#14 0x00007f877c13892d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#15 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f874cb11700 (LWP 14919)):
#0  0x00007f877c12c203 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=3000) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f8762994383 in send_dg (statp=0x7f874cb11db8, buf=<value optimized out>, buflen=<value optimized out>, buf2=0x0, buflen2=<value optimized out>, ansp=<value optimized out>, anssizp=0x7f874cb0ec60, terrno=0x7f874cb0ec08, ns=1, v_circuit=0x7f874cb0ec04, gotsomewhere=0x7f874cb0ec0c, anscp=0x7f874cb10040, ansp2=0x0, anssizp2=0x0, resplen2=0x0) at res_send.c:1066
#2  0x00007f8762996004 in __libc_res_nsend (statp=0x7f874cb11db8, buf=<value optimized out>, buflen=<value optimized out>, buf2=0x0, buflen2=<value optimized out>, ans=0x7f874cb0f7e0 "\316\360\201\202", anssiz=1024, ansp=0x7f874cb10040, ansp2=0x0, nansp2=0x0, resplen2=0x0) at res_send.c:556
#3  0x00007f8762992665 in __libc_res_nquery (statp=0x7f874cb11db8, name=<value optimized out>, class=<value optimized out>, type=<value optimized out>, answer=0x7f874cb0f7e0 "\316\360\201\202", anslen=<value optimized out>, answerp=0x7f874cb10040, answerp2=0x0, nanswerp2=0x0, resplen2=0x0) at res_query.c:225
#4  0x00007f8762992c21 in __libc_res_nquerydomain (statp=0x7f874cb11db8, name=0x7f875da28af8 "idowns.org", domain=0x9 <Address 0x9 out of bounds>, class=<value optimized out>, type=1, answer=0x7f874cb0f7e0 "\316\360\201\202", anslen=1024, answerp=0x7f874cb10040, answerp2=0x0, nanswerp2=0x0, resplen2=0x0) at res_query.c:576
#5  0x00007f87629937a5 in __libc_res_nsearch (statp=0x7f874cb11db8, name=<value optimized out>, class=<value optimized out>, type=<value optimized out>, answer=0x7f874cb0f7e0 "\316\360\201\202", anslen=1024, answerp=0x7f874cb10040, answerp2=0x0, nanswerp2=0x0, resplen2=0x0) at res_query.c:377
#6  0x00007f8762ba62a8 in _nss_dns_gethostbyname3_r (name=<value optimized out>, af=2, result=0x7f874cb10510, buffer=<value optimized out>, buflen=<value optimized out>, errnop=<value optimized out>, h_errnop=0x7f874cb10568, ttlp=0x0, canonp=0x0) at nss_dns/dns-host.c:197
#7  0x00007f8762ba6564 in _nss_dns_gethostbyname2_r (name=0x7f874cb0eb20 "\a", af=1, result=0xbb8, buffer=0xffffffffffffffff <Address 0xffffffffffffffff out of bounds>, buflen=0, errnop=0x0, h_errnop=0x7f874cb10568) at nss_dns/dns-host.c:257
#8  0x00007f877c153d89 in __gethostbyname2_r (name=0x7f875da28af8 "idowns.org", af=2, resbuf=0x7f874cb10510, buffer=0x7f874cb10190 "\377\002", buflen=512, result=<value optimized out>, h_errnop=0x7f874cb10568) at ../nss/getXXbyYY_r.c:253
#9  0x00007f877c108f20 in gaih_inet (name=<value optimized out>, service=<value optimized out>, req=0x7f874cb106b0, pai=0x7f874cb10748, naddrs=<value optimized out>) at ../sysdeps/posix/getaddrinfo.c:531
#10 0x00007f877c10a802 in getaddrinfo (name=0x7f875da28af8 "idowns.org", service=0x0, hints=0x7f874cb106b0, pai=0x7f874cb10848) at ../sysdeps/posix/getaddrinfo.c:2159
#11 0x00007f877e97a9b5 in QHostInfoAgent::fromName (hostName=...) at kernel/qhostinfo_unix.cpp:219
#12 0x00007f877e96edf0 in QHostInfoRunnable::run (this=0x68be0b0) at kernel/qhostinfo.cpp:452
#13 0x00007f877dae3d02 in QThreadPoolThread::run (this=0x7f875c0be430) at concurrent/qthreadpool.cpp:106
#14 0x00007f877daee27e in QThreadPrivate::start (arg=0x7f875c0be430) at thread/qthread_unix.cpp:266
#15 0x00007f877d863971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#16 0x00007f877c13892d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#17 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f8780694760 (LWP 14657)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f877daeee3b in wait (this=<value optimized out>, mutex=0x2d607c0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x2d607c0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f877dae3ad1 in QThreadPoolPrivate::waitForDone (this=0x2d60730) at concurrent/qthreadpool.cpp:295
#4  0x00007f877dae41cd in QThreadPool::waitForDone (this=<value optimized out>) at concurrent/qthreadpool.cpp:616
#5  0x00007f877e96d92f in QHostInfoLookupManager::clear (this=0x2d76840) at kernel/qhostinfo.cpp:514
#6  0x00007f877e96da91 in QHostInfoLookupManager::~QHostInfoLookupManager (this=0x2d7643c, __in_chrg=<value optimized out>) at kernel/qhostinfo.cpp:499
#7  0x00007f877e96f5a5 in QGlobalStaticDeleter<QHostInfoLookupManager>::~QGlobalStaticDeleter (this=0x7f877ebfd278, __in_chrg=<value optimized out>) at ../../include/QtCore/../../src/corelib/global/qglobal.h:1814
#8  0x00007f877c08b4f2 in __run_exit_handlers (status=1) at exit.c:78
#9  exit (status=1) at exit.c:100
#10 0x00007f877cda3678 in qt_xio_errhandler () at kernel/qapplication_x11.cpp:745
#11 0x00007f877f2ccb88 in KApplication::xioErrhandler (this=0x7fff722e6bf0, dpy=0x16d2910) at ../../kdeui/kernel/kapplication.cpp:419
#12 0x00007f877999dc8e in _XIOError () from /usr/lib/libX11.so.6
#13 0x00007f877999cbfd in _XEventsQueued () from /usr/lib/libX11.so.6
#14 0x00007f877998cfef in XEventsQueued () from /usr/lib/libX11.so.6
#15 0x00007f877cddec77 in x11EventSourcePrepare (s=0x16cf770, timeout=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:79
#16 0x00007f8777907a11 in g_main_context_prepare () from /lib/libglib-2.0.so.0
#17 0x00007f8777907e78 in ?? () from /lib/libglib-2.0.so.0
#18 0x00007f877790845c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#19 0x00007f877dc0e193 in QEventDispatcherGlib::processEvents (this=0x1662720, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#20 0x00007f877cddea4e in QGuiEventDispatcherGlib::processEvents (this=0x2d7643c, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#21 0x00007f877dbe0a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#22 0x00007f877dbe0dec in QEventLoop::exec (this=0x7fff722e6b60, flags=) at kernel/qeventloop.cpp:201
#23 0x00007f877dbe4ebb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#24 0x0000000000426a8b in main (argc=<value optimized out>, argv=<value optimized out>) at ../../ktorrent/main.cpp:176

Possible duplicates by query: bug 270920, bug 270883, bug 270846, bug 270816, bug 270733.

Reported using DrKonqi
Comment 1 Alex R. 2011-04-14 10:13:38 UTC
Created attachment 58947 [details]
New crash information added by DrKonqi

ktorrent (4.0.3) on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.0

After restarting the application, it crashed again.

-- Backtrace (Reduced):
#6  QCoreApplication::notifyInternal (this=0x7fff43df02a0, receiver=0x5bef660, event=0x7f0148893b40) at kernel/qcoreapplication.cpp:720
#7  0x00007f015b0606f2 in sendEvent (this=0x1a5a630) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#8  QTimerInfoList::activateTimers (this=0x1a5a630) at kernel/qeventdispatcher_unix.cpp:602
#9  0x00007f015b05d4c8 in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:184
#10 idleTimerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:231
Comment 2 Joris Guisson 2011-04-14 18:05:17 UTC

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