Bug 275928

Summary: ktorrent from svn(?)/git(?) repository--crash
Product: [Applications] ktorrent Reporter: George R. Goffe <grgoffe>
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description George R. Goffe 2011-06-17 18:36:59 UTC
Application: ktorrent (4.2dev)
KDE Platform Version: 4.6.3 (4.6.3)
Qt Version: 4.7.2
Operating System: Linux 2.6.35.13-92.fc14.i686 i686
Distribution: "Fedora release 14 (Laughlin)"

-- Information about the crash:
This crash doesn't happen immediately but does so after several hours of operation. 

The valgrind seems to run and then get stuck or is it ktorrent that gets stuck? Several popups appear, then NOTHING.

This version of ktorrent is:
ktorrent --version
Qt: 4.7.2
KDE Development Platform: 4.6.3 (4.6.3)
KTorrent: 4.2dev

The crash can be reproduced every time.

-- Backtrace:
Application: KTorrent (ktorrent), signal: Segmentation fault
[Current thread is 1 (Thread 0xb76c0780 (LWP 21307))]

Thread 9 (Thread 0xb55cfb70 (LWP 21398)):
#0  0x00491e56 in clock_gettime (clock_id=1, tp=0xb55cefb0) at ../sysdeps/unix/clock_gettime.c:100
#1  0x020e3cf9 in do_gettime () at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0x021b2c93 in updateCurrentTime (this=0xb4c01a74, tm=...) at kernel/qeventdispatcher_unix.cpp:339
#4  QTimerInfoList::timerWait (this=0xb4c01a74, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#5  0x021b1482 in timerSourcePrepareHelper (src=<value optimized out>, timeout=0xb55cf09c) at kernel/qeventdispatcher_glib.cpp:136
#6  0x021b151d in timerSourcePrepare (source=0xb4c01a40, timeout=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#7  0x005556b6 in g_main_context_prepare (context=<value optimized out>, priority=0xb55cf10c) at gmain.c:2469
#8  0x0055655b in g_main_context_iterate (context=0xb4c004e8, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2760
#9  0x00556c35 in g_main_context_iteration (context=0xb4c004e8, may_block=1) at gmain.c:2843
#10 0x021b1ce7 in QEventDispatcherGlib::processEvents (this=0xb4c00468, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#11 0x021830fa in QEventLoop::processEvents (this=0xb55cf260, flags=...) at kernel/qeventloop.cpp:149
#12 0x021833aa in QEventLoop::exec (this=0xb55cf260, flags=...) at kernel/qeventloop.cpp:201
#13 0x02089b73 in QThread::exec (this=0x122ddc58) at thread/qthread.cpp:492
#14 0x032d4b5a in kt::ScanThread::run (this=0x122ddc58) at /tools/ktorrent/ktorrent/plugins/scanfolder/scanthread.cpp:151
#15 0x0208c6c3 in QThreadPrivate::start (arg=0x122ddc58) at thread/qthread_unix.cpp:320
#16 0x0013fe99 in start_thread (arg=0xb55cfb70) at pthread_create.c:301
#17 0x002c6d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 8 (Thread 0xb3b82b70 (LWP 21401)):
#0  0x00480416 in __kernel_vsyscall ()
#1  0x0014439b in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:169
#2  0x420de1d7 in scavengerThread (context=0x4268a380) at wtf/FastMalloc.cpp:2378
#3  WTF::TCMalloc_PageHeap::runScavengerThread (context=0x4268a380) at wtf/FastMalloc.cpp:1497
#4  0x0013fe99 in start_thread (arg=0xb3b82b70) at pthread_create.c:301
#5  0x002c6d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 7 (Thread 0xaf0ebb70 (LWP 21453)):
#0  0x00480416 in __kernel_vsyscall ()
#1  0x0014439b in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:169
#2  0x0208b6ba in QMutexPrivate::wait (this=0x9adb4b0, timeout=-1) at thread/qmutex_unix.cpp:84
#3  0x02087cb2 in QMutex::lock (this=0x9adb498) at thread/qmutex.cpp:167
#4  0x006abb00 in net::SocketMonitor::lock (this=0x8115dbc) at /tools/ktorrent/libktorrent/src/net/socketmonitor.cpp:108
#5  0x006ad545 in net::DownloadThread::update (this=0x9adb5a0) at /tools/ktorrent/libktorrent/src/net/downloadthread.cpp:51
#6  0x006ad7c8 in net::NetworkThread::run (this=0x9adb5a0) at /tools/ktorrent/libktorrent/src/net/networkthread.cpp:48
#7  0x0208c6c3 in QThreadPrivate::start (arg=0x9adb5a0) at thread/qthread_unix.cpp:320
#8  0x0013fe99 in start_thread (arg=0xaf0ebb70) at pthread_create.c:301
#9  0x002c6d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 6 (Thread 0xae8eab70 (LWP 21454)):
#0  net::UploadThread::update (this=0x9adb928) at /tools/ktorrent/libktorrent/src/net/uploadthread.cpp:57
#1  0x006ad7c8 in net::NetworkThread::run (this=0x9adb928) at /tools/ktorrent/libktorrent/src/net/networkthread.cpp:48
#2  0x0208c6c3 in QThreadPrivate::start (arg=0x9adb928) at thread/qthread_unix.cpp:320
#3  0x0013fe99 in start_thread (arg=0xae8eab70) at pthread_create.c:301
#4  0x002c6d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 5 (Thread 0xae0e9b70 (LWP 21455)):
#0  0x00480416 in __kernel_vsyscall ()
#1  0x0014439b in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:169
#2  0x0208cdb7 in wait (this=0x13c3c514, mutex=0x13c3c510, time=4294967295) at thread/qwaitcondition_unix.cpp:88
#3  QWaitCondition::wait (this=0x13c3c514, mutex=0x13c3c510, time=4294967295) at thread/qwaitcondition_unix.cpp:160
#4  0x006b09c7 in net::ReverseResolverThread::run (this=0x13c3c508) at /tools/ktorrent/libktorrent/src/net/reverseresolver.cpp:123
#5  0x0208c6c3 in QThreadPrivate::start (arg=0x13c3c508) at thread/qthread_unix.cpp:320
#6  0x0013fe99 in start_thread (arg=0xae0e9b70) at pthread_create.c:301
#7  0x002c6d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 4 (Thread 0xac8ffb70 (LWP 31640)):
#0  0x00480416 in __kernel_vsyscall ()
#1  0x00144743 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:236
#2  0x0208cd30 in wait (this=0x12322804, mutex=0x12322800, time=30000) at thread/qwaitcondition_unix.cpp:86
#3  QWaitCondition::wait (this=0x12322804, mutex=0x12322800, time=30000) at thread/qwaitcondition_unix.cpp:160
#4  0x02080d39 in QThreadPoolThread::run (this=0x12aca3a0) at concurrent/qthreadpool.cpp:140
#5  0x0208c6c3 in QThreadPrivate::start (arg=0x12aca3a0) at thread/qthread_unix.cpp:320
#6  0x0013fe99 in start_thread (arg=0xac8ffb70) at pthread_create.c:301
#7  0x002c6d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 3 (Thread 0xb00edb70 (LWP 2323)):
#0  0x00480416 in __kernel_vsyscall ()
#1  0x00144743 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:236
#2  0x0208cd30 in wait (this=0x12322804, mutex=0x12322800, time=30000) at thread/qwaitcondition_unix.cpp:86
#3  QWaitCondition::wait (this=0x12322804, mutex=0x12322800, time=30000) at thread/qwaitcondition_unix.cpp:160
#4  0x02080d39 in QThreadPoolThread::run (this=0x1255ff78) at concurrent/qthreadpool.cpp:140
#5  0x0208c6c3 in QThreadPrivate::start (arg=0x1255ff78) at thread/qthread_unix.cpp:320
#6  0x0013fe99 in start_thread (arg=0xb00edb70) at pthread_create.c:301
#7  0x002c6d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 2 (Thread 0xa4ff6b70 (LWP 24073)):
#0  0x00480416 in __kernel_vsyscall ()
#1  0x002bbc36 in __poll (fds=0xa4ff4a30, nfds=1, timeout=4900) at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0x0046b4c4 in send_dg (statp=0xa4ff6df4, buf=0xa4ff4a90 "\264\230\001", buflen=54, buf2=0x0, buflen2=0, ans=0xa4ff54d0 "e)\201\200", anssiz=1024, ansp=0xa4ff5d04, ansp2=0x0, nansp2=0x0, resplen2=0x0) at res_send.c:1058
#3  __libc_res_nsend (statp=0xa4ff6df4, buf=0xa4ff4a90 "\264\230\001", buflen=54, buf2=0x0, buflen2=0, ans=0xa4ff54d0 "e)\201\200", anssiz=1024, ansp=0xa4ff5d04, ansp2=0x0, nansp2=0x0, resplen2=0x0) at res_send.c:556
#4  0x00469037 in __libc_res_nquery (statp=0xa4ff6df4, name=0xa4ff4c23 "denis.stalker.h3q.com.sleazegate.com", class=1, type=1, answer=0xa4ff54d0 "e)\201\200", anslen=1024, answerp=0xa4ff5d04, answerp2=0x0, nanswerp2=0x0, resplen2=0x0) at res_query.c:225
#5  0x004695cb in __libc_res_nquerydomain (statp=0xa4ff6df4, name=<value optimized out>, domain=0xa4ff6e69 "sleazegate.com", class=1, type=1, answer=0xa4ff54d0 "e)\201\200", anslen=1024, answerp=0xa4ff5d04, answerp2=0x0, nanswerp2=0x0, resplen2=0x0) at res_query.c:576
#6  0x0046984c in __libc_res_nsearch (statp=0xa4ff6df4, name=0xb17cad90 "denis.stalker.h3q.com", class=1, type=1, answer=0xa4ff54d0 "e)\201\200", anslen=1024, answerp=0xa4ff5d04, answerp2=0x0, nanswerp2=0x0, resplen2=0x0) at res_query.c:414
#7  0x01a166cf in _nss_dns_gethostbyname3_r (name=0xb17cad90 "denis.stalker.h3q.com", af=2, result=0xa4ff606c, buffer=0xa4ff5da0 "\320^\353\225", buflen=512, errnop=0xa4ff6b28, h_errnop=0xa4ff6084, canonp=0x0, ttlp=0x0) at nss_dns/dns-host.c:197
#8  0x002e1675 in __gethostbyname2_r (name=0xb17cad90 "denis.stalker.h3q.com", af=2, resbuf=0xa4ff606c, buffer=0xa4ff5da0 "\320^\353\225", buflen=512, result=0xa4ff6088, h_errnop=0xa4ff6084) at ../nss/getXXbyYY_r.c:256
#9  0x002abe5f in gaih_inet (name=0xb17cad90 "denis.stalker.h3q.com", service=<value optimized out>, req=0xa4ff6238, pai=0xa4ff61d4, naddrs=0xa4ff61c4) at ../sysdeps/posix/getaddrinfo.c:531
#10 0x002ae72b in getaddrinfo (name=0xb17cad90 "denis.stalker.h3q.com", service=<value optimized out>, hints=0xa4ff6238, pai=0xa4ff6268) at ../sysdeps/posix/getaddrinfo.c:2161
#11 0x07297eb9 in (anonymous namespace)::GetAddrInfoThread::run (this=0xb17c23e8) at /usr/src/debug/kdelibs-4.6.3/kdecore/network/k3resolverstandardworkers.cpp:456
#12 0x07296073 in KNetwork::Internal::KResolverThread::run (this=0xb17add10) at /usr/src/debug/kdelibs-4.6.3/kdecore/network/k3resolvermanager.cpp:278
#13 0x0208c6c3 in QThreadPrivate::start (arg=0xb17add10) at thread/qthread_unix.cpp:320
#14 0x0013fe99 in start_thread (arg=0xa4ff6b70) at pthread_create.c:301
#15 0x002c6d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 1 (Thread 0xb76c0780 (LWP 21307)):
[KCrash Handler]
#7  QAbstractSocketEngine::state (this=0x0) at socket/qabstractsocketengine.cpp:186
#8  0x023df5cb in QNativeSocketEngine::waitForReadOrWrite (this=0x12687188, readyToRead=0xbf89f10f, readyToWrite=0xbf89f10e, checkRead=true, checkWrite=true, msecs=-1, timedOut=0x0) at socket/qnativesocketengine.cpp:988
#9  0x023f1b77 in QAbstractSocket::waitForBytesWritten (this=0x183bf6d8, msecs=-1) at socket/qabstractsocket.cpp:1924
#10 0x033f95ab in KIO::SocketConnectionBackend::sendCommand (this=0x187470f8, task=...) at /usr/src/debug/kdelibs-4.6.3/kio/kio/connection.cpp:294
#11 0x033fa83b in KIO::Connection::sendnow (this=0x18a6c398, _cmd=85, data=...) at /usr/src/debug/kdelibs-4.6.3/kio/kio/connection.cpp:505
#12 0x033fbb0e in KIO::ConnectionPrivate::dequeue (this=0x176667a0) at /usr/src/debug/kdelibs-4.6.3/kio/kio/connection.cpp:78
#13 0x034d4c55 in KIO::Slave::accept (this=0x177878a0) at /usr/src/debug/kdelibs-4.6.3/kio/kio/slave.cpp:120
#14 0x034d5d73 in KIO::Slave::qt_metacall (this=0x177878a0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbf89f31c) at /usr/src/debug/kdelibs-4.6.3/i686-redhat-linux-gnu/kio/slave.moc:81
#15 0x0218a79b in QMetaObject::metacall (object=0x177878a0, cl=QMetaObject::InvokeMetaMethod, idx=29, argv=0xbf89f31c) at kernel/qmetaobject.cpp:237
#16 0x02199cc7 in QMetaObject::activate (sender=0x1723ecd0, m=0x35f7430, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3278
#17 0x033fb368 in KIO::ConnectionServer::newConnection (this=0x1723ecd0) at /usr/src/debug/kdelibs-4.6.3/i686-redhat-linux-gnu/kio/connection.moc:157
#18 0x033fb3c2 in KIO::ConnectionServer::qt_metacall (this=0x1723ecd0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbf89f42c) at /usr/src/debug/kdelibs-4.6.3/i686-redhat-linux-gnu/kio/connection.moc:146
#19 0x0218a79b in QMetaObject::metacall (object=0x1723ecd0, cl=QMetaObject::InvokeMetaMethod, idx=4, argv=0xbf89f42c) at kernel/qmetaobject.cpp:237
#20 0x02199cc7 in QMetaObject::activate (sender=0x14b964f0, m=0x35f7400, local_signal_index=2, argv=0x0) at kernel/qobject.cpp:3278
#21 0x033fb1b8 in KIO::AbstractConnectionBackend::newConnection (this=0x14b964f0) at /usr/src/debug/kdelibs-4.6.3/i686-redhat-linux-gnu/kio/connection_p.moc:102
#22 0x033fb23b in KIO::AbstractConnectionBackend::qt_metacall (this=0x14b964f0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbf89f56c) at /usr/src/debug/kdelibs-4.6.3/i686-redhat-linux-gnu/kio/connection_p.moc:78
#23 0x033fb29d in KIO::SocketConnectionBackend::qt_metacall (this=0x14b964f0, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0xbf89f56c) at /usr/src/debug/kdelibs-4.6.3/i686-redhat-linux-gnu/kio/connection_p.moc:153
#24 0x0218a79b in QMetaObject::metacall (object=0x14b964f0, cl=QMetaObject::InvokeMetaMethod, idx=6, argv=0xbf89f56c) at kernel/qmetaobject.cpp:237
#25 0x02199cc7 in QMetaObject::activate (sender=0x1357caa8, m=0x73c6e74, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3278
#26 0x072a2958 in KLocalSocketServer::newConnection (this=0x1357caa8) at /usr/src/debug/kdelibs-4.6.3/i686-redhat-linux-gnu/kdecore/klocalsocket.moc:151
#27 0x072a2b71 in KLocalSocketServer::incomingConnection (this=0x1357caa8, descriptor=1216) at /usr/src/debug/kdelibs-4.6.3/kdecore/network/klocalsocket.cpp:212
#28 0x0731ebb2 in KLocalSocketServerPrivate::processSocketActivity (this=0x17f45688) at /usr/src/debug/kdelibs-4.6.3/kdecore/network/klocalsocket_unix.cpp:394
#29 0x072a29db in KLocalSocketServer::qt_metacall (this=0x1357caa8, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbf89f758) at /usr/src/debug/kdelibs-4.6.3/i686-redhat-linux-gnu/kdecore/klocalsocket.moc:140
#30 0x0218a79b in QMetaObject::metacall (object=0x1357caa8, cl=QMetaObject::InvokeMetaMethod, idx=5, argv=0xbf89f758) at kernel/qmetaobject.cpp:237
#31 0x02199cc7 in QMetaObject::activate (sender=0x17dea3a8, m=0x22c0a90, local_signal_index=0, argv=0xbf89f758) at kernel/qobject.cpp:3278
#32 0x021e82d4 in QSocketNotifier::activated (this=0x17dea3a8, _t1=1109) at .moc/release-shared/moc_qsocketnotifier.cpp:89
#33 0x021a04cf in QSocketNotifier::event (this=0x17dea3a8, e=0xbf89fbc4) at kernel/qsocketnotifier.cpp:317
#34 0x044a754c in QApplicationPrivate::notify_helper (this=0x9b19d50, receiver=0x17dea3a8, e=0xbf89fbc4) at kernel/qapplication.cpp:4462
#35 0x044ac252 in QApplication::notify (this=0xbf89fed0, receiver=0x17dea3a8, e=0xbf89fbc4) at kernel/qapplication.cpp:3862
#36 0x08079487 in kt::App::notify (this=0xbf89fed0, receiver=0x17dea3a8, event=0xbf89fbc4) at /tools/ktorrent/ktorrent/ktorrent/app.cpp:99
#37 0x02183f63 in QCoreApplication::notifyInternal (this=0xbf89fed0, receiver=0x17dea3a8, event=0xbf89fbc4) at kernel/qcoreapplication.cpp:731
#38 0x021b162f in sendEvent (source=0x9b1a500) at kernel/qcoreapplication.h:215
#39 socketNotifierSourceDispatch (source=0x9b1a500) at kernel/qeventdispatcher_glib.cpp:110
#40 0x00556192 in g_main_dispatch (context=0x9b1a480) at gmain.c:2149
#41 g_main_context_dispatch (context=0x9b1a480) at gmain.c:2702
#42 0x00556978 in g_main_context_iterate (context=0x9b1a480, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2780
#43 0x00556c35 in g_main_context_iteration (context=0x9b1a480, may_block=1) at gmain.c:2843
#44 0x021b1cad in QEventDispatcherGlib::processEvents (this=0x9ad98a0, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#45 0x0455b1c6 in QGuiEventDispatcherGlib::processEvents (this=0x9ad98a0, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#46 0x021830fa in QEventLoop::processEvents (this=0xbf89fe44, flags=...) at kernel/qeventloop.cpp:149
#47 0x021833aa in QEventLoop::exec (this=0xbf89fe44, flags=...) at kernel/qeventloop.cpp:201
#48 0x02187f57 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#49 0x044a5358 in QApplication::exec () at kernel/qapplication.cpp:3736
#50 0x08069071 in main (argc=-576913407, argv=0x2a9e002d) at /tools/ktorrent/ktorrent/ktorrent/main.cpp:177

Possible duplicates by query: bug 275877, bug 274944, bug 272218, bug 270025, bug 268864.

Reported using DrKonqi
Comment 1 Joris Guisson 2011-06-17 19:20:46 UTC

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