Bug 243937

Summary: KTorrent crashes while idling/seeding
Product: [Applications] ktorrent Reporter: Vasilis Vasaitis <vvasaitis>
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Vasilis Vasaitis 2010-07-08 12:34:28 UTC
Application: ktorrent (4.0.1)
KDE Platform Version: 4.4.4 (KDE 4.4.4)
Qt Version: 4.6.3
Operating System: Linux 2.6.32-3-amd64 x86_64
Distribution: Debian GNU/Linux unstable (sid)

-- Information about the crash:
Hi, I seem to be getting the same kind of crashes as when I reported bug #235287 (which was marked as a duplicate of bug #223243). KTorrent crashes simply while sitting in the background seeding, and the backtrace hints at uncaught exceptions (if I'm reading it correctly). This happens multiple times a day.

The crash can be reproduced some of the time.

 -- Backtrace:
Application: KTorrent (ktorrent), signal: Aborted
[Current thread is 1 (Thread 0xf4b08710 (LWP 3302))]

Thread 5 (Thread 0xf2affb70 (LWP 3304)):
#0  0xf52fbe16 in *__GI_clock_gettime (clock_id=-181403660, tp=0xf2aff018) at ../sysdeps/unix/clock_gettime.c:100
#1  0xf694c1cb in qt_gettime () at kernel/qcore_unix.cpp:111
#2  0xf6951425 in QTimerInfoList::updateCurrentTime (this=0x8346b34) at kernel/qeventdispatcher_unix.cpp:340
#3  0xf695146a in QTimerInfoList::timerWait (this=0x8346b34, tm=...) at kernel/qeventdispatcher_unix.cpp:443
#4  0xf694f2d8 in timerSourcePrepareHelper (src=<value optimized out>, timeout=0xf2aff10c) at kernel/qeventdispatcher_glib.cpp:136
#5  0xf526d7ca in g_main_context_prepare () from /lib/libglib-2.0.so.0
#6  0xf526dbe9 in ?? () from /lib/libglib-2.0.so.0
#7  0xf526e1b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#8  0xf694f0cf in QEventDispatcherGlib::processEvents (this=0x833d458, flags=...) at kernel/qeventdispatcher_glib.cpp:414
#9  0xf6921b49 in QEventLoop::processEvents (this=0xf2aff2d0, flags=) at kernel/qeventloop.cpp:149
#10 0xf6921f9a in QEventLoop::exec (this=0xf2aff2d0, flags=...) at kernel/qeventloop.cpp:201
#11 0xf6824619 in QThread::exec (this=0x8329250) at thread/qthread.cpp:487
#12 0xf771de7d in utp::UTPServerThread::run (this=0x8329250) at ../../src/utp/utpserverthread.cpp:40
#13 0xf6826fae in QThreadPrivate::start (arg=0x8329250) at thread/qthread_unix.cpp:248
#14 0xf5343955 in start_thread (arg=0xf2affb70) at pthread_create.c:300
#15 0xf5b5f10e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 4 (Thread 0xeceffb70 (LWP 3325)):
#0  0xf77a6425 in __kernel_vsyscall ()
#1  0xf5b51916 in *__GI___poll (fds=0xf5bd5ff4, nfds=3, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0xf767dd76 in net::Poll::poll (this=0x823e858, timeout=-1) at ../../src/net/poll.cpp:99
#3  0xf767962a in net::DownloadThread::waitForSocketReady (this=0x823e850) at ../../src/net/downloadthread.cpp:128
#4  0xf767970f in net::DownloadThread::update (this=0x823e850) at ../../src/net/downloadthread.cpp:48
#5  0xf767a2d8 in net::NetworkThread::run (this=0x823e850) at ../../src/net/networkthread.cpp:48
#6  0xf6826fae in QThreadPrivate::start (arg=0x823e850) at thread/qthread_unix.cpp:248
#7  0xf5343955 in start_thread (arg=0xeceffb70) at pthread_create.c:300
#8  0xf5b5f10e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 3 (Thread 0xec6feb70 (LWP 3326)):
#0  0xf77a6425 in __kernel_vsyscall ()
#1  0xf5348482 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:179
#2  0xf5b6c114 in __pthread_cond_timedwait (cond=0xec6fe1e8, mutex=0xec6fe218, abstime=0xec6fe260) at forward.c:152
#3  0xf68268b1 in thread_sleep (ti=0x1) at thread/qthread_unix.cpp:398
#4  0xf68269f3 in QThread::msleep (msecs=44) at thread/qthread_unix.cpp:424
#5  0xf7678eb2 in net::UploadThread::update (this=0x823ec58) at ../../src/net/uploadthread.cpp:89
#6  0xf767a2d8 in net::NetworkThread::run (this=0x823ec58) at ../../src/net/networkthread.cpp:48
#7  0xf6826fae in QThreadPrivate::start (arg=0x823ec58) at thread/qthread_unix.cpp:248
#8  0xf5343955 in start_thread (arg=0xec6feb70) at pthread_create.c:300
#9  0xf5b5f10e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 2 (Thread 0xebefdb70 (LWP 3327)):
#0  0xf77a6425 in __kernel_vsyscall ()
#1  0xf5b51916 in *__GI___poll (fds=0xf5bd5ff4, nfds=1, timeout=5000) at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0xf4b14718 in send_dg (statp=0xebefddf4, buf=0xebefc010 "\275\376\001", buflen=45, buf2=0x0, buflen2=0, ans=0xebefc1a0 "F1\201\200", anssiz=1024, ansp=0xebefc9d8, ansp2=0x0, nansp2=0x0, 
    resplen2=0x0) at res_send.c:1062
#3  __libc_res_nsend (statp=0xebefddf4, buf=0xebefc010 "\275\376\001", buflen=45, buf2=0x0, buflen2=0, ans=0xebefc1a0 "F1\201\200", anssiz=1024, ansp=0xebefc9d8, ansp2=0x0, nansp2=0x0, resplen2=0x0)
    at res_send.c:553
#4  0xf4b128a3 in *__GI___libc_res_nquery (statp=0xebefddf4, name=0xebefc5d6 "181.29.236.145.in-addr.arpa", class=1, type=12, answer=0xebefc1a0 "F1\201\200", anslen=1024, answerp=0xebefc9d8, 
    answerp2=0x0, nanswerp2=0x0, resplen2=0x0) at res_query.c:225
#5  0xefe35fa3 in *__GI__nss_dns_gethostbyaddr2_r (addr=0xa8d882d4, len=4, af=2, result=0xebefd054, buffer=0xebefca90 "\377\002", buflen=1024, errnop=0xebefdb28, h_errnop=0xebefd088, ttlp=0x0)
    at nss_dns/dns-host.c:471
#6  0xefe360fa in _nss_dns_gethostbyaddr_r (addr=0xa8d882d4, len=4, af=2, result=0xebefd054, buffer=0xebefca90 "\377\002", buflen=1024, errnop=0xebefdb28, h_errnop=0xebefd088)
    at nss_dns/dns-host.c:530
#7  0xf5b7590b in __gethostbyaddr_r (addr=0xa8d882d4, len=4, type=2, resbuf=0xebefd054, buffer=0xebefca90 "\377\002", buflen=1024, result=0xebefd084, h_errnop=0xebefd088) at ../nss/getXXbyYY_r.c:253
#8  0xf5b7ab7b in *__GI_getnameinfo (sa=0xa8d882d0, addrlen=16, host=0xebefd198 "", hostlen=199, serv=0xebefd0d0 "", servlen=199, flags=<value optimized out>) at getnameinfo.c:223
#9  0xf767d470 in net::ReverseResolver::resolve (this=0x8de05838, addr=...) at ../../src/net/reverseresolver.cpp:64
#10 0xf767d4f3 in net::ReverseResolver::run (this=0x8de05838) at ../../src/net/reverseresolver.cpp:73
#11 0xf767d5f7 in net::ReverseResolverThread::run (this=0xf2b3e1d0) at ../../src/net/reverseresolver.cpp:118
#12 0xf6826fae in QThreadPrivate::start (arg=0xf2b3e1d0) at thread/qthread_unix.cpp:248
#13 0xf5343955 in start_thread (arg=0xebefdb70) at pthread_create.c:300
#14 0xf5b5f10e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xf4b08710 (LWP 3302)):
[KCrash Handler]
#6  0xf77a6425 in __kernel_vsyscall ()
#7  0xf5abd751 in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#8  0xf5ac0b82 in *__GI_abort () at abort.c:92
#9  0xf5cdd53f in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/libstdc++.so.6
#10 0xf5cdb405 in ?? () from /usr/lib/libstdc++.so.6
#11 0xf5cdb442 in std::terminate() () from /usr/lib/libstdc++.so.6
#12 0xf5cdb4fb in __cxa_rethrow () from /usr/lib/libstdc++.so.6
#13 0xf6923542 in QCoreApplication::notifyInternal (this=0xffb73610, receiver=0x831f7e4, event=0xffb732c0) at kernel/qcoreapplication.cpp:729
#14 0xf69527b6 in QCoreApplication::sendEvent (this=0x8263e34) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#15 QTimerInfoList::activateTimers (this=0x8263e34) at kernel/qeventdispatcher_unix.cpp:603
#16 0xf694f3d7 in timerSourceDispatch (source=0x82639c0) at kernel/qeventdispatcher_glib.cpp:184
#17 idleTimerSourceDispatch (source=0x82639c0) at kernel/qeventdispatcher_glib.cpp:231
#18 0xf526a2f5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#19 0xf526dfd8 in ?? () from /lib/libglib-2.0.so.0
#20 0xf526e1b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#21 0xf694f095 in QEventDispatcherGlib::processEvents (this=0x823d640, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#22 0xf5f2af45 in QGuiEventDispatcherGlib::processEvents (this=0x823d640, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#23 0xf6921b49 in QEventLoop::processEvents (this=0xffb73584, flags=) at kernel/qeventloop.cpp:149
#24 0xf6921f9a in QEventLoop::exec (this=0xffb73584, flags=...) at kernel/qeventloop.cpp:201
#25 0xf69271cf in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#26 0xf5e6c667 in QApplication::exec () at kernel/qapplication.cpp:3581
#27 0x08069231 in main (argc=1, argv=0xffb73a14) at ../../ktorrent/main.cpp:176

Possible duplicates by query: bug 243901, bug 243650, bug 243588, bug 243561, bug 242947.

Reported using DrKonqi
Comment 1 Joris Guisson 2010-07-08 17:49:23 UTC

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