Bug 248868

Summary: Ktorrent crash after some time downloading a torrent with many (about 60000) peers and seeds (about 7000)
Product: [Applications] ktorrent Reporter: Alessandro Russo <axela74>
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Alessandro Russo 2010-08-24 07:58:42 UTC
Application: ktorrent (4.0.1)
KDE Platform Version: 4.5.00 (KDE 4.5.0)
Qt Version: 4.7.0
Operating System: Linux 2.6.31.4-alex i686
Distribution: Ubuntu 10.04.1 LTS

-- Information about the crash:
- What I was doing when the application crashed:

I was downloading a torrent with many peers (about 60000) and seeds (about 7000). Ktorrent keep crashing while downloading this torrent, this is the 4th time. It usually take some hours before the crash.

The crash can be reproduced some of the time.

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

Thread 7 (Thread 0xb5738b70 (LWP 21141)):
#0  0x04ddb411 in idleTimerSourcePrepare (source=0x8c2bf80, timeout=0xb57380fc) at kernel/qeventdispatcher_glib.cpp:204
#1  0x014bbaca in g_main_context_prepare () from /lib/libglib-2.0.so.0
#2  0x014bbee9 in ?? () from /lib/libglib-2.0.so.0
#3  0x014bc4b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#4  0x04ddb1cf in QEventDispatcherGlib::processEvents (this=0x8c0f080, flags=...) at kernel/qeventdispatcher_glib.cpp:414
#5  0x04dab419 in QEventLoop::processEvents (this=0xb57382d0, flags=) at kernel/qeventloop.cpp:149
#6  0x04dab89a in QEventLoop::exec (this=0xb57382d0, flags=...) at kernel/qeventloop.cpp:201
#7  0x04ca8b5e in QThread::exec (this=0x8b2e4b8) at thread/qthread.cpp:490
#8  0x00cde5cd in utp::UTPServerThread::run() () from /usr/lib/libktorrent.so.1
#9  0x04cabe39 in QThreadPrivate::start (arg=0x8b2e4b8) at thread/qthread_unix.cpp:266
#10 0x003fe96e in start_thread (arg=0xb5738b70) at pthread_create.c:300
#11 0x07b34a4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 6 (Thread 0xb4f37b70 (LWP 21142)):
#0  0x006b2422 in __kernel_vsyscall ()
#1  0x07b2d971 in select () at ../sysdeps/unix/syscall-template.S:82
#2  0x00ca1395 in ?? () from /usr/lib/libktorrent.so.1
#3  0x04cabe39 in QThreadPrivate::start (arg=0x8c32510) at thread/qthread_unix.cpp:266
#4  0x003fe96e in start_thread (arg=0xb4f37b70) at pthread_create.c:300
#5  0x07b34a4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 5 (Thread 0xae9beb70 (LWP 21206)):
#0  0x006b2422 in __kernel_vsyscall ()
#1  0x00403342 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:179
#2  0x04cab37e in thread_sleep (ti=0x1) at thread/qthread_unix.cpp:416
#3  0x04cab4d3 in QThread::msleep (msecs=50) at thread/qthread_unix.cpp:442
#4  0x00c35bb2 in ?? () from /usr/lib/libktorrent.so.1
#5  0x00c36528 in ?? () from /usr/lib/libktorrent.so.1
#6  0x04cabe39 in QThreadPrivate::start (arg=0x8b0c930) at thread/qthread_unix.cpp:266
#7  0x003fe96e in start_thread (arg=0xae9beb70) at pthread_create.c:300
#8  0x07b34a4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 4 (Thread 0xae1bdb70 (LWP 21207)):
#0  0x006b2422 in __kernel_vsyscall ()
#1  0x00403342 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:179
#2  0x04cab37e in thread_sleep (ti=0x1) at thread/qthread_unix.cpp:416
#3  0x04cab4d3 in QThread::msleep (msecs=50) at thread/qthread_unix.cpp:442
#4  0x00c35102 in ?? () from /usr/lib/libktorrent.so.1
#5  0x00c36528 in ?? () from /usr/lib/libktorrent.so.1
#6  0x04cabe39 in QThreadPrivate::start (arg=0x8b0cd50) at thread/qthread_unix.cpp:266
#7  0x003fe96e in start_thread (arg=0xae1bdb70) at pthread_create.c:300
#8  0x07b34a4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 3 (Thread 0xad9bcb70 (LWP 21208)):
#0  0x006b2422 in __kernel_vsyscall ()
#1  0x00403015 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
#2  0x04caca07 in QWaitConditionPrivate::wait (this=0x92959bc, mutex=0x92959b8, time=4294967295) at thread/qwaitcondition_unix.cpp:88
#3  QWaitCondition::wait (this=0x92959bc, mutex=0x92959b8, time=4294967295) at thread/qwaitcondition_unix.cpp:160
#4  0x00c39ca2 in ?? () from /usr/lib/libktorrent.so.1
#5  0x04cabe39 in QThreadPrivate::start (arg=0x92959b0) at thread/qthread_unix.cpp:266
#6  0x003fe96e in start_thread (arg=0xad9bcb70) at pthread_create.c:300
#7  0x07b34a4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 2 (Thread 0xb3c60b70 (LWP 21325)):
#0  0x082e7e16 in *__GI_clock_gettime (clock_id=137281524, tp=0xb3c5ff90) at ../sysdeps/unix/clock_gettime.c:100
#1  0x04d06edb in do_gettime () at tools/qelapsedtimer_unix.cpp:105
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:119
#3  0x04ddd2f5 in QTimerInfoList::updateCurrentTime (this=0x9e00814) at kernel/qeventdispatcher_unix.cpp:339
#4  0x04ddd33a in QTimerInfoList::timerWait (this=0x9e00814, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#5  0x04ddb3d8 in timerSourcePrepareHelper (src=<value optimized out>, timeout=0xb3c600bc) at kernel/qeventdispatcher_glib.cpp:136
#6  0x04ddb465 in timerSourcePrepare (source=0x0, timeout=0x82ebff4) at kernel/qeventdispatcher_glib.cpp:169
#7  0x014bbaca in g_main_context_prepare () from /lib/libglib-2.0.so.0
#8  0x014bbee9 in ?? () from /lib/libglib-2.0.so.0
#9  0x014bc4b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#10 0x04ddb1cf in QEventDispatcherGlib::processEvents (this=0x9457498, flags=...) at kernel/qeventdispatcher_glib.cpp:414
#11 0x04dab419 in QEventLoop::processEvents (this=0xb3c60290, flags=) at kernel/qeventloop.cpp:149
#12 0x04dab89a in QEventLoop::exec (this=0xb3c60290, flags=...) at kernel/qeventloop.cpp:201
#13 0x04ca8b5e in QThread::exec (this=0x97f72d8) at thread/qthread.cpp:490
#14 0x04d8a55b in QInotifyFileSystemWatcherEngine::run (this=0x97f72d8) at io/qfilesystemwatcher_inotify.cpp:248
#15 0x04cabe39 in QThreadPrivate::start (arg=0x97f72d8) at thread/qthread_unix.cpp:266
#16 0x003fe96e in start_thread (arg=0xb3c60b70) at pthread_create.c:300
#17 0x07b34a4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb7811710 (LWP 21139)):
[KCrash Handler]
#7  0x006b2422 in __kernel_vsyscall ()
#8  0x07a91651 in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#9  0x07a94a82 in *__GI_abort () at abort.c:92
#10 0x0089052f in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/libstdc++.so.6
#11 0x0088e465 in ?? () from /usr/lib/libstdc++.so.6
#12 0x0088e4a2 in std::terminate() () from /usr/lib/libstdc++.so.6
#13 0x0088e55b in __cxa_rethrow () from /usr/lib/libstdc++.so.6
#14 0x04dac982 in QCoreApplication::notifyInternal (this=0xbf8126c0, receiver=0xbe7439bc, event=0xbf812370) at kernel/qcoreapplication.cpp:735
#15 0x04dde6d6 in QCoreApplication::sendEvent (this=0x8b356a4) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#16 QTimerInfoList::activateTimers (this=0x8b356a4) at kernel/qeventdispatcher_unix.cpp:602
#17 0x04ddb4d7 in timerSourceDispatch (source=0x8b35b00) at kernel/qeventdispatcher_glib.cpp:184
#18 idleTimerSourceDispatch (source=0x8b35b00) at kernel/qeventdispatcher_glib.cpp:231
#19 0x014b85e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#20 0x014bc2d8 in ?? () from /lib/libglib-2.0.so.0
#21 0x014bc4b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#22 0x04ddb1cf in QEventDispatcherGlib::processEvents (this=0x8b335c0, flags=...) at kernel/qeventdispatcher_glib.cpp:414
#23 0x05f913b5 in QGuiEventDispatcherGlib::processEvents (this=0x8b335c0, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#24 0x04dab419 in QEventLoop::processEvents (this=0xbf812634, flags=) at kernel/qeventloop.cpp:149
#25 0x04dab89a in QEventLoop::exec (this=0xbf812634, flags=...) at kernel/qeventloop.cpp:201
#26 0x04dafe4f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#27 0x05eceef7 in QApplication::exec () at kernel/qapplication.cpp:3665
#28 0x08069351 in _start ()

Possible duplicates by query: bug 248686, bug 248509, bug 247989, bug 247654, bug 247207.

Reported using DrKonqi
Comment 1 Joris Guisson 2010-08-24 18:34:47 UTC
This was fixed in libktorrent 1.0.2, upgrade to ktorrent 4.0.2

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