Bug 278555

Summary: ktorrent-dev: crash during download
Product: [Applications] ktorrent Reporter: George R. Goffe <grgoffe>
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED DUPLICATE    
Severity: crash CC: gabe.giles, hrvoje.senjan, ubuntu
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi
New crash information added by DrKonqi

Description George R. Goffe 2011-07-26 15:37:41 UTC
Application: ktorrent (4.2dev)
KDE Platform Version: 4.6.5 (4.6.5)
Qt Version: 4.7.3
Operating System: Linux 2.6.35.13-92.fc14.i686 i686
Distribution: "Fedora release 14 (Laughlin)"

-- Information about the crash:
More or less normal download operations. This problem seems to be associated with the following two error messages from the ktorrent log:

Tue Jul 26 05:59:01 2011: Qt Warning: QSocketNotifier: Invalid socket 20 and type 'Read', disabling...
Tue Jul 26 05:59:01 2011: Qt Warning: QSocketNotifier: Invalid socket 20 and type 'Write', disabling...

My thought is that it's a memory over lay.

The crash can be reproduced every time.

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

Thread 13 (Thread 0xb4cffb70 (LWP 7700)):
#0  0x0071ae56 in clock_gettime (clock_id=1, tp=0xb4cfefd0) at ../sysdeps/unix/clock_gettime.c:100
#1  0x0441acf9 in do_gettime () at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0x044e9916 in QTimerInfoList::updateCurrentTime (this=0xb4301874) at kernel/qeventdispatcher_unix.cpp:339
#4  0x044e934e in timerSourceCheckHelper (src=0xb4301840) at kernel/qeventdispatcher_glib.cpp:150
#5  0x00799e07 in g_main_context_check (context=0xb43004e8, max_priority=2147483647, fds=0xb4301a48, n_fds=1) at gmain.c:2658
#6  0x0079a742 in g_main_context_iterate (context=0xb43004e8, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2777
#7  0x0079ac35 in g_main_context_iteration (context=0xb43004e8, may_block=1) at gmain.c:2843
#8  0x044e8ce7 in QEventDispatcherGlib::processEvents (this=0xb4300468, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#9  0x044ba0fa in QEventLoop::processEvents (this=0xb4cff260, flags=...) at kernel/qeventloop.cpp:149
#10 0x044ba3aa in QEventLoop::exec (this=0xb4cff260, flags=...) at kernel/qeventloop.cpp:201
#11 0x043c0b73 in QThread::exec (this=0x8f51238) at thread/qthread.cpp:492
#12 0x00dbdd5d in utp::UTPServerThread::run (this=0x8f51238) at /tools/ktorrent/libktorrent/src/utp/utpserverthread.cpp:41
#13 0x043c36c3 in QThreadPrivate::start (arg=0x8f51238) at thread/qthread_unix.cpp:320
#14 0x0014ee99 in start_thread (arg=0xb4cffb70) at pthread_create.c:301
#15 0x003a4d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 12 (Thread 0xb42ffb70 (LWP 7701)):
#0  0x0052c416 in __kernel_vsyscall ()
#1  0x00399c36 in __poll (fds=0xb3901ae8, nfds=1, timeout=500) at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0x00d18116 in net::Poll::poll (this=0xb42ff1fc, timeout=500) at /tools/ktorrent/libktorrent/src/net/poll.cpp:99
#3  0x00d83b6b in dht::RPCServer::Private::run (this=0x8f55ea0) at /tools/ktorrent/libktorrent/src/dht/rpcserver.cpp:95
#4  0x043c36c3 in QThreadPrivate::start (arg=0x8f55ea0) at thread/qthread_unix.cpp:320
#5  0x0014ee99 in start_thread (arg=0xb42ffb70) at pthread_create.c:301
#6  0x003a4d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 11 (Thread 0xb56aeb70 (LWP 8025)):
#0  0x0052c416 in __kernel_vsyscall ()
#1  0x00399c36 in __poll (fds=0xb4d038c8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0x007aadac in g_poll (fds=0xb4d038c8, nfds=1, timeout=-1) at gpoll.c:132
#3  0x0079a8b7 in g_main_context_poll (context=0xb4d004e8, block=1, dispatch=1, self=<value optimized out>) at gmain.c:3093
#4  g_main_context_iterate (context=0xb4d004e8, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2775
#5  0x0079ac35 in g_main_context_iteration (context=0xb4d004e8, may_block=1) at gmain.c:2843
#6  0x044e8ce7 in QEventDispatcherGlib::processEvents (this=0xb4d00468, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#7  0x044ba0fa in QEventLoop::processEvents (this=0xb56ae260, flags=...) at kernel/qeventloop.cpp:149
#8  0x044ba3aa in QEventLoop::exec (this=0xb56ae260, flags=...) at kernel/qeventloop.cpp:201
#9  0x043c0b73 in QThread::exec (this=0x271da638) at thread/qthread.cpp:492
#10 0x08bb5b5a in kt::ScanThread::run (this=0x271da638) at /tools/ktorrent/ktorrent/plugins/scanfolder/scanthread.cpp:151
#11 0x043c36c3 in QThreadPrivate::start (arg=0x271da638) at thread/qthread_unix.cpp:320
#12 0x0014ee99 in start_thread (arg=0xb56aeb70) at pthread_create.c:301
#13 0x003a4d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 10 (Thread 0xb0effb70 (LWP 8029)):
#0  0x0052c416 in __kernel_vsyscall ()
#1  0x0015339b in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:169
#2  0x42b191d7 in scavengerThread (context=0x430c5380) at wtf/FastMalloc.cpp:2378
#3  WTF::TCMalloc_PageHeap::runScavengerThread (context=0x430c5380) at wtf/FastMalloc.cpp:1497
#4  0x0014ee99 in start_thread (arg=0xb0effb70) at pthread_create.c:301
#5  0x003a4d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 9 (Thread 0xad620b70 (LWP 22454)):
#0  _int_malloc (av=0xb3900010, bytes=8) at malloc.c:4299
#1  0x0033f070 in __libc_malloc (bytes=8) at malloc.c:3660
#2  0x043bd2ae in qMalloc (size=8) at global/qmalloc.cpp:55
#3  0x043e1dab in QHashData::allocateNode (this=0xacbf9bb0, nodeAlign=4) at tools/qhash.cpp:175
#4  0x00dc5a70 in createNode (this=0xb3909738, p=0x8e8b5a8, conn_id=40241, self=...) at /usr/include/QtCore/qhash.h:541
#5  insert (this=0xb3909738, p=0x8e8b5a8, conn_id=40241, self=...) at /usr/include/QtCore/qhash.h:761
#6  insert (this=0xb3909738, p=0x8e8b5a8, conn_id=40241, self=...) at /usr/include/QtCore/qset.h:176
#7  utp::PollPipe::prepare (this=0xb3909738, p=0x8e8b5a8, conn_id=40241, self=...) at /tools/ktorrent/libktorrent/src/utp/pollpipe.cpp:41
#8  0x00dbbc79 in utp::UTPServer::preparePolling (this=0x8ec19d0, p=0x8e8b5a8, mode=net::Poll::INPUT, conn=...) at /tools/ktorrent/libktorrent/src/utp/utpserver.cpp:464
#9  0x00dc3d5a in utp::UTPSocket::prepare (this=0xabf02b88, p=0x8e8b5a8, mode=net::Poll::INPUT) at /tools/ktorrent/libktorrent/src/utp/utpsocket.cpp:212
#10 0x00d14648 in net::DownloadThread::waitForSocketReady (this=0x8e8b5a0) at /tools/ktorrent/libktorrent/src/net/downloadthread.cpp:123
#11 0x00d1477f in net::DownloadThread::update (this=0x8e8b5a0) at /tools/ktorrent/libktorrent/src/net/downloadthread.cpp:48
#12 0x00d14a18 in net::NetworkThread::run (this=0x8e8b5a0) at /tools/ktorrent/libktorrent/src/net/networkthread.cpp:48
#13 0x043c36c3 in QThreadPrivate::start (arg=0x8e8b5a0) at thread/qthread_unix.cpp:320
#14 0x0014ee99 in start_thread (arg=0xad620b70) at pthread_create.c:301
#15 0x003a4d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 8 (Thread 0xa0b84b70 (LWP 22455)):
#0  0x0052c416 in __kernel_vsyscall ()
#1  0x0015339b in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:169
#2  0x043c26ba in QMutexPrivate::wait (this=0x8e8b4b0, timeout=-1) at thread/qmutex_unix.cpp:84
#3  0x043becb2 in QMutex::lock (this=0x8e8b498) at thread/qmutex.cpp:167
#4  0x00d12d50 in net::SocketMonitor::lock (this=0x8115dbc) at /tools/ktorrent/libktorrent/src/net/socketmonitor.cpp:108
#5  0x00d13cc2 in net::UploadThread::waitForSocketsReady (this=0x8e8b928) at /tools/ktorrent/libktorrent/src/net/uploadthread.cpp:112
#6  0x00d13f5f in net::UploadThread::update (this=0x8e8b928) at /tools/ktorrent/libktorrent/src/net/uploadthread.cpp:45
#7  0x00d14a18 in net::NetworkThread::run (this=0x8e8b928) at /tools/ktorrent/libktorrent/src/net/networkthread.cpp:48
#8  0x043c36c3 in QThreadPrivate::start (arg=0x8e8b928) at thread/qthread_unix.cpp:320
#9  0x0014ee99 in start_thread (arg=0xa0b84b70) at pthread_create.c:301
#10 0x003a4d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 7 (Thread 0xab621b70 (LWP 22461)):
#0  0x0052c416 in __kernel_vsyscall ()
#1  0x0015339b in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:169
#2  0x043c3db7 in wait (this=0x2863e24c, mutex=0x2863e248, time=4294967295) at thread/qwaitcondition_unix.cpp:88
#3  QWaitCondition::wait (this=0x2863e24c, mutex=0x2863e248, time=4294967295) at thread/qwaitcondition_unix.cpp:160
#4  0x00d17c17 in net::ReverseResolverThread::run (this=0x2863e240) at /tools/ktorrent/libktorrent/src/net/reverseresolver.cpp:123
#5  0x043c36c3 in QThreadPrivate::start (arg=0x2863e240) at thread/qthread_unix.cpp:320
#6  0x0014ee99 in start_thread (arg=0xab621b70) at pthread_create.c:301
#7  0x003a4d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 6 (Thread 0x9a3fcb70 (LWP 24342)):
#0  0x0052c416 in __kernel_vsyscall ()
#1  0x00399c36 in __poll (fds=0x9a3faa30, nfds=1, timeout=5000) at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0x008744c4 in send_dg (statp=0x9a3fcdf4, buf=0x9a3faa90 "\225\021\001", buflen=39, buf2=0x0, buflen2=0, ans=0x9a3fb4d0 "N\333\201\200", anssiz=1024, ansp=0x9a3fbd04, ansp2=0x0, nansp2=0x0, resplen2=0x0) at res_send.c:1058
#3  __libc_res_nsend (statp=0x9a3fcdf4, buf=0x9a3faa90 "\225\021\001", buflen=39, buf2=0x0, buflen2=0, ans=0x9a3fb4d0 "N\333\201\200", anssiz=1024, ansp=0x9a3fbd04, ansp2=0x0, nansp2=0x0, resplen2=0x0) at res_send.c:556
#4  0x00872037 in __libc_res_nquery (statp=0x9a3fcdf4, name=0x97ef6db8 "denis.stalker.h3q.com", class=1, type=1, answer=0x9a3fb4d0 "N\333\201\200", anslen=1024, answerp=0x9a3fbd04, answerp2=0x0, nanswerp2=0x0, resplen2=0x0) at res_query.c:225
#5  0x008725cb in __libc_res_nquerydomain (statp=0x9a3fcdf4, name=<value optimized out>, domain=0x0, class=1, type=1, answer=0x9a3fb4d0 "N\333\201\200", anslen=1024, answerp=0x9a3fbd04, answerp2=0x0, nanswerp2=0x0, resplen2=0x0) at res_query.c:576
#6  0x008729c5 in __libc_res_nsearch (statp=0x9a3fcdf4, name=0x97ef6db8 "denis.stalker.h3q.com", class=1, type=1, answer=0x9a3fb4d0 "N\333\201\200", anslen=1024, answerp=0x9a3fbd04, answerp2=0x0, nanswerp2=0x0, resplen2=0x0) at res_query.c:377
#7  0x01dc96cf in _nss_dns_gethostbyname3_r (name=0x97ef6db8 "denis.stalker.h3q.com", af=2, result=0x9a3fc06c, buffer=0x9a3fbda0 "\321\277zF", buflen=512, errnop=0x9a3fcb28, h_errnop=0x9a3fc084, canonp=0x0, ttlp=0x0) at nss_dns/dns-host.c:197
#8  0x003bf675 in __gethostbyname2_r (name=0x97ef6db8 "denis.stalker.h3q.com", af=2, resbuf=0x9a3fc06c, buffer=0x9a3fbda0 "\321\277zF", buflen=512, result=0x9a3fc088, h_errnop=0x9a3fc084) at ../nss/getXXbyYY_r.c:256
#9  0x00389e5f in gaih_inet (name=0x97ef6db8 "denis.stalker.h3q.com", service=<value optimized out>, req=0x9a3fc238, pai=0x9a3fc1d4, naddrs=0x9a3fc1c4) at ../sysdeps/posix/getaddrinfo.c:531
#10 0x0038c72b in getaddrinfo (name=0x97ef6db8 "denis.stalker.h3q.com", service=<value optimized out>, hints=0x9a3fc238, pai=0x9a3fc268) at ../sysdeps/posix/getaddrinfo.c:2161
#11 0x021a1ea9 in (anonymous namespace)::GetAddrInfoThread::run (this=0x97ef6d58) at /usr/src/debug/kdelibs-4.6.5/kdecore/network/k3resolverstandardworkers.cpp:456
#12 0x021a0063 in KNetwork::Internal::KResolverThread::run (this=0xacbd21d0) at /usr/src/debug/kdelibs-4.6.5/kdecore/network/k3resolvermanager.cpp:278
#13 0x043c36c3 in QThreadPrivate::start (arg=0xacbd21d0) at thread/qthread_unix.cpp:320
#14 0x0014ee99 in start_thread (arg=0x9a3fcb70) at pthread_create.c:301
#15 0x003a4d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 5 (Thread 0x9b3feb70 (LWP 24349)):
#0  0x0052c416 in __kernel_vsyscall ()
#1  0x00399c36 in __poll (fds=0x9b3fca30, nfds=1, timeout=5000) at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0x008744c4 in send_dg (statp=0x9b3fedf4, buf=0x9b3fca90 "\270\217\001", buflen=54, buf2=0x0, buflen2=0, ans=0x9b3fd4d0 "\237\222\201\200", anssiz=1024, ansp=0x9b3fdd04, ansp2=0x0, nansp2=0x0, resplen2=0x0) at res_send.c:1058
#3  __libc_res_nsend (statp=0x9b3fedf4, buf=0x9b3fca90 "\270\217\001", buflen=54, buf2=0x0, buflen2=0, ans=0x9b3fd4d0 "\237\222\201\200", anssiz=1024, ansp=0x9b3fdd04, ansp2=0x0, nansp2=0x0, resplen2=0x0) at res_send.c:556
#4  0x00872037 in __libc_res_nquery (statp=0x9b3fedf4, name=0x9b3fcc23 "denis.stalker.h3q.com.sleazegate.com", class=1, type=28, answer=0x9b3fd4d0 "\237\222\201\200", anslen=1024, answerp=0x9b3fdd04, answerp2=0x0, nanswerp2=0x0, resplen2=0x0) at res_query.c:225
#5  0x008725cb in __libc_res_nquerydomain (statp=0x9b3fedf4, name=<value optimized out>, domain=0x9b3fee54 "sleazegate.com", class=1, type=28, answer=0x9b3fd4d0 "\237\222\201\200", anslen=1024, answerp=0x9b3fdd04, answerp2=0x0, nanswerp2=0x0, resplen2=0x0) at res_query.c:576
#6  0x0087284c in __libc_res_nsearch (statp=0x9b3fedf4, name=0x95f70460 "denis.stalker.h3q.com", class=1, type=28, answer=0x9b3fd4d0 "\237\222\201\200", anslen=1024, answerp=0x9b3fdd04, answerp2=0x0, nanswerp2=0x0, resplen2=0x0) at res_query.c:414
#7  0x01dc96cf in _nss_dns_gethostbyname3_r (name=0x95f70460 "denis.stalker.h3q.com", af=10, result=0x9b3fe06c, buffer=0x9b3fdda0 "", buflen=512, errnop=0x9b3feb28, h_errnop=0x9b3fe084, canonp=0x0, ttlp=0x0) at nss_dns/dns-host.c:197
#8  0x003bf675 in __gethostbyname2_r (name=0x95f70460 "denis.stalker.h3q.com", af=10, resbuf=0x9b3fe06c, buffer=0x9b3fdda0 "", buflen=512, result=0x9b3fe088, h_errnop=0x9b3fe084) at ../nss/getXXbyYY_r.c:256
#9  0x00389e5f in gaih_inet (name=0x95f70460 "denis.stalker.h3q.com", service=<value optimized out>, req=0x9b3fe238, pai=0x9b3fe1d4, naddrs=0x9b3fe1c4) at ../sysdeps/posix/getaddrinfo.c:531
#10 0x0038c72b in getaddrinfo (name=0x95f70460 "denis.stalker.h3q.com", service=<value optimized out>, hints=0x9b3fe238, pai=0x9b3fe268) at ../sysdeps/posix/getaddrinfo.c:2161
#11 0x021a1ea9 in (anonymous namespace)::GetAddrInfoThread::run (this=0x95f703b8) at /usr/src/debug/kdelibs-4.6.5/kdecore/network/k3resolverstandardworkers.cpp:456
#12 0x021a0063 in KNetwork::Internal::KResolverThread::run (this=0xacd8ff78) at /usr/src/debug/kdelibs-4.6.5/kdecore/network/k3resolvermanager.cpp:278
#13 0x043c36c3 in QThreadPrivate::start (arg=0xacd8ff78) at thread/qthread_unix.cpp:320
#14 0x0014ee99 in start_thread (arg=0x9b3feb70) at pthread_create.c:301
#15 0x003a4d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 4 (Thread 0x9bbffb70 (LWP 24387)):
#0  0x0052c416 in __kernel_vsyscall ()
#1  0x00399c36 in __poll (fds=0x9bbfda30, nfds=1, timeout=5000) at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0x008744c4 in send_dg (statp=0x9bbffdf4, buf=0x9bbfda90 "7\001\001", buflen=54, buf2=0x0, buflen2=0, ans=0x9bbfe4d0 "'y\201\200", anssiz=1024, ansp=0x9bbfed04, ansp2=0x0, nansp2=0x0, resplen2=0x0) at res_send.c:1058
#3  __libc_res_nsend (statp=0x9bbffdf4, buf=0x9bbfda90 "7\001\001", buflen=54, buf2=0x0, buflen2=0, ans=0x9bbfe4d0 "'y\201\200", anssiz=1024, ansp=0x9bbfed04, ansp2=0x0, nansp2=0x0, resplen2=0x0) at res_send.c:556
#4  0x00872037 in __libc_res_nquery (statp=0x9bbffdf4, name=0x9bbfdc23 "denis.stalker.h3q.com.sleazegate.com", class=1, type=1, answer=0x9bbfe4d0 "'y\201\200", anslen=1024, answerp=0x9bbfed04, answerp2=0x0, nanswerp2=0x0, resplen2=0x0) at res_query.c:225
#5  0x008725cb in __libc_res_nquerydomain (statp=0x9bbffdf4, name=<value optimized out>, domain=0x9bbffe54 "sleazegate.com", class=1, type=1, answer=0x9bbfe4d0 "'y\201\200", anslen=1024, answerp=0x9bbfed04, answerp2=0x0, nanswerp2=0x0, resplen2=0x0) at res_query.c:576
#6  0x0087284c in __libc_res_nsearch (statp=0x9bbffdf4, name=0x95dbb6b0 "denis.stalker.h3q.com", class=1, type=1, answer=0x9bbfe4d0 "'y\201\200", anslen=1024, answerp=0x9bbfed04, answerp2=0x0, nanswerp2=0x0, resplen2=0x0) at res_query.c:414
#7  0x01dc96cf in _nss_dns_gethostbyname3_r (name=0x95dbb6b0 "denis.stalker.h3q.com", af=2, result=0x9bbff06c, buffer=0x9bbfeda0 "\321\277zF", buflen=512, errnop=0x9bbffb28, h_errnop=0x9bbff084, canonp=0x0, ttlp=0x0) at nss_dns/dns-host.c:197
#8  0x003bf675 in __gethostbyname2_r (name=0x95dbb6b0 "denis.stalker.h3q.com", af=2, resbuf=0x9bbff06c, buffer=0x9bbfeda0 "\321\277zF", buflen=512, result=0x9bbff088, h_errnop=0x9bbff084) at ../nss/getXXbyYY_r.c:256
#9  0x00389e5f in gaih_inet (name=0x95dbb6b0 "denis.stalker.h3q.com", service=<value optimized out>, req=0x9bbff238, pai=0x9bbff1d4, naddrs=0x9bbff1c4) at ../sysdeps/posix/getaddrinfo.c:531
#10 0x0038c72b in getaddrinfo (name=0x95dbb6b0 "denis.stalker.h3q.com", service=<value optimized out>, hints=0x9bbff238, pai=0x9bbff268) at ../sysdeps/posix/getaddrinfo.c:2161
#11 0x021a1ea9 in (anonymous namespace)::GetAddrInfoThread::run (this=0x95f70138) at /usr/src/debug/kdelibs-4.6.5/kdecore/network/k3resolverstandardworkers.cpp:456
#12 0x021a0063 in KNetwork::Internal::KResolverThread::run (this=0xacb57c38) at /usr/src/debug/kdelibs-4.6.5/kdecore/network/k3resolvermanager.cpp:278
#13 0x043c36c3 in QThreadPrivate::start (arg=0xacb57c38) at thread/qthread_unix.cpp:320
#14 0x0014ee99 in start_thread (arg=0x9bbffb70) at pthread_create.c:301
#15 0x003a4d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 3 (Thread 0x9abfdb70 (LWP 24388)):
#0  0x0052c416 in __kernel_vsyscall ()
#1  0x00399c36 in __poll (fds=0x9abfba30, nfds=1, timeout=5000) at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0x008744c4 in send_dg (statp=0x9abfddf4, buf=0x9abfba90 "[\333\001", buflen=39, buf2=0x0, buflen2=0, ans=0x9abfc4d0 "\355\025\201\200", anssiz=1024, ansp=0x9abfcd04, ansp2=0x0, nansp2=0x0, resplen2=0x0) at res_send.c:1058
#3  __libc_res_nsend (statp=0x9abfddf4, buf=0x9abfba90 "[\333\001", buflen=39, buf2=0x0, buflen2=0, ans=0x9abfc4d0 "\355\025\201\200", anssiz=1024, ansp=0x9abfcd04, ansp2=0x0, nansp2=0x0, resplen2=0x0) at res_send.c:556
#4  0x00872037 in __libc_res_nquery (statp=0x9abfddf4, name=0x95fd76e8 "denis.stalker.h3q.com", class=1, type=28, answer=0x9abfc4d0 "\355\025\201\200", anslen=1024, answerp=0x9abfcd04, answerp2=0x0, nanswerp2=0x0, resplen2=0x0) at res_query.c:225
#5  0x008725cb in __libc_res_nquerydomain (statp=0x9abfddf4, name=<value optimized out>, domain=0x0, class=1, type=28, answer=0x9abfc4d0 "\355\025\201\200", anslen=1024, answerp=0x9abfcd04, answerp2=0x0, nanswerp2=0x0, resplen2=0x0) at res_query.c:576
#6  0x008729c5 in __libc_res_nsearch (statp=0x9abfddf4, name=0x95fd76e8 "denis.stalker.h3q.com", class=1, type=28, answer=0x9abfc4d0 "\355\025\201\200", anslen=1024, answerp=0x9abfcd04, answerp2=0x0, nanswerp2=0x0, resplen2=0x0) at res_query.c:377
#7  0x01dc96cf in _nss_dns_gethostbyname3_r (name=0x95fd76e8 "denis.stalker.h3q.com", af=10, result=0x9abfd06c, buffer=0x9abfcda0 "", buflen=512, errnop=0x9abfdb28, h_errnop=0x9abfd084, canonp=0x0, ttlp=0x0) at nss_dns/dns-host.c:197
#8  0x003bf675 in __gethostbyname2_r (name=0x95fd76e8 "denis.stalker.h3q.com", af=10, resbuf=0x9abfd06c, buffer=0x9abfcda0 "", buflen=512, result=0x9abfd088, h_errnop=0x9abfd084) at ../nss/getXXbyYY_r.c:256
#9  0x00389e5f in gaih_inet (name=0x95fd76e8 "denis.stalker.h3q.com", service=<value optimized out>, req=0x9abfd238, pai=0x9abfd1d4, naddrs=0x9abfd1c4) at ../sysdeps/posix/getaddrinfo.c:531
#10 0x0038c72b in getaddrinfo (name=0x95fd76e8 "denis.stalker.h3q.com", service=<value optimized out>, hints=0x9abfd238, pai=0x9abfd268) at ../sysdeps/posix/getaddrinfo.c:2161
#11 0x021a1ea9 in (anonymous namespace)::GetAddrInfoThread::run (this=0x95fd7688) at /usr/src/debug/kdelibs-4.6.5/kdecore/network/k3resolverstandardworkers.cpp:456
#12 0x021a0063 in KNetwork::Internal::KResolverThread::run (this=0xb39d2120) at /usr/src/debug/kdelibs-4.6.5/kdecore/network/k3resolvermanager.cpp:278
#13 0x043c36c3 in QThreadPrivate::start (arg=0xb39d2120) at thread/qthread_unix.cpp:320
#14 0x0014ee99 in start_thread (arg=0x9abfdb70) at pthread_create.c:301
#15 0x003a4d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 2 (Thread 0x9e549b70 (LWP 24389)):
#0  0x0052c416 in __kernel_vsyscall ()
#1  0x00399c36 in __poll (fds=0x9e547a30, nfds=1, timeout=5000) at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0x008744c4 in send_dg (statp=0x9e549df4, buf=0x9e547a90 "@\261\001", buflen=54, buf2=0x0, buflen2=0, ans=0x9e5484d0 "\364\360\201\200", anssiz=1024, ansp=0x9e548d04, ansp2=0x0, nansp2=0x0, resplen2=0x0) at res_send.c:1058
#3  __libc_res_nsend (statp=0x9e549df4, buf=0x9e547a90 "@\261\001", buflen=54, buf2=0x0, buflen2=0, ans=0x9e5484d0 "\364\360\201\200", anssiz=1024, ansp=0x9e548d04, ansp2=0x0, nansp2=0x0, resplen2=0x0) at res_send.c:556
#4  0x00872037 in __libc_res_nquery (statp=0x9e549df4, name=0x9e547c23 "denis.stalker.h3q.com.sleazegate.com", class=1, type=28, answer=0x9e5484d0 "\364\360\201\200", anslen=1024, answerp=0x9e548d04, answerp2=0x0, nanswerp2=0x0, resplen2=0x0) at res_query.c:225
#5  0x008725cb in __libc_res_nquerydomain (statp=0x9e549df4, name=<value optimized out>, domain=0x9e549e54 "sleazegate.com", class=1, type=28, answer=0x9e5484d0 "\364\360\201\200", anslen=1024, answerp=0x9e548d04, answerp2=0x0, nanswerp2=0x0, resplen2=0x0) at res_query.c:576
#6  0x0087284c in __libc_res_nsearch (statp=0x9e549df4, name=0x95f693a8 "denis.stalker.h3q.com", class=1, type=28, answer=0x9e5484d0 "\364\360\201\200", anslen=1024, answerp=0x9e548d04, answerp2=0x0, nanswerp2=0x0, resplen2=0x0) at res_query.c:414
#7  0x01dc96cf in _nss_dns_gethostbyname3_r (name=0x95f693a8 "denis.stalker.h3q.com", af=10, result=0x9e54906c, buffer=0x9e548da0 "", buflen=512, errnop=0x9e549b28, h_errnop=0x9e549084, canonp=0x0, ttlp=0x0) at nss_dns/dns-host.c:197
#8  0x003bf675 in __gethostbyname2_r (name=0x95f693a8 "denis.stalker.h3q.com", af=10, resbuf=0x9e54906c, buffer=0x9e548da0 "", buflen=512, result=0x9e549088, h_errnop=0x9e549084) at ../nss/getXXbyYY_r.c:256
#9  0x00389e5f in gaih_inet (name=0x95f693a8 "denis.stalker.h3q.com", service=<value optimized out>, req=0x9e549238, pai=0x9e5491d4, naddrs=0x9e5491c4) at ../sysdeps/posix/getaddrinfo.c:531
#10 0x0038c72b in getaddrinfo (name=0x95f693a8 "denis.stalker.h3q.com", service=<value optimized out>, hints=0x9e549238, pai=0x9e549268) at ../sysdeps/posix/getaddrinfo.c:2161
#11 0x021a1ea9 in (anonymous namespace)::GetAddrInfoThread::run (this=0x95f69348) at /usr/src/debug/kdelibs-4.6.5/kdecore/network/k3resolverstandardworkers.cpp:456
#12 0x021a0063 in KNetwork::Internal::KResolverThread::run (this=0xacb4b950) at /usr/src/debug/kdelibs-4.6.5/kdecore/network/k3resolvermanager.cpp:278
#13 0x043c36c3 in QThreadPrivate::start (arg=0xacb4b950) at thread/qthread_unix.cpp:320
#14 0x0014ee99 in start_thread (arg=0x9e549b70) at pthread_create.c:301
#15 0x003a4d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 1 (Thread 0xb779f780 (LWP 7698)):
[KCrash Handler]
#7  QAbstractSocketEngine::state (this=0x0) at socket/qabstractsocketengine.cpp:186
#8  0x0623a5cb in QNativeSocketEngine::waitForReadOrWrite (this=0x244b7f10, readyToRead=0xbfab14bf, readyToWrite=0xbfab14be, checkRead=true, checkWrite=true, msecs=-1, timedOut=0x0) at socket/qnativesocketengine.cpp:988
#9  0x0624cb77 in QAbstractSocket::waitForBytesWritten (this=0x288db450, msecs=-1) at socket/qabstractsocket.cpp:1924
#10 0x0469096b in KIO::SocketConnectionBackend::sendCommand (this=0x31ee2a00, task=...) at /usr/src/debug/kdelibs-4.6.5/kio/kio/connection.cpp:294
#11 0x04691bfb in KIO::Connection::sendnow (this=0x33609070, _cmd=85, data=...) at /usr/src/debug/kdelibs-4.6.5/kio/kio/connection.cpp:505
#12 0x04692ece in KIO::ConnectionPrivate::dequeue (this=0x28837088) at /usr/src/debug/kdelibs-4.6.5/kio/kio/connection.cpp:78
#13 0x0476c3d5 in KIO::Slave::accept (this=0x2c41c380) at /usr/src/debug/kdelibs-4.6.5/kio/kio/slave.cpp:120
#14 0x0476d4f3 in KIO::Slave::qt_metacall (this=0x2c41c380, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbfab16cc) at /usr/src/debug/kdelibs-4.6.5/i686-redhat-linux-gnu/kio/slave.moc:81
#15 0x044c179b in QMetaObject::metacall (object=0x2c41c380, cl=QMetaObject::InvokeMetaMethod, idx=29, argv=0xbfab16cc) at kernel/qmetaobject.cpp:237
#16 0x044d0cc7 in QMetaObject::activate (sender=0x297054f0, m=0x488eb90, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3278
#17 0x04692728 in KIO::ConnectionServer::newConnection (this=0x297054f0) at /usr/src/debug/kdelibs-4.6.5/i686-redhat-linux-gnu/kio/connection.moc:157
#18 0x04692782 in KIO::ConnectionServer::qt_metacall (this=0x297054f0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbfab17dc) at /usr/src/debug/kdelibs-4.6.5/i686-redhat-linux-gnu/kio/connection.moc:146
#19 0x044c179b in QMetaObject::metacall (object=0x297054f0, cl=QMetaObject::InvokeMetaMethod, idx=4, argv=0xbfab17dc) at kernel/qmetaobject.cpp:237
#20 0x044d0cc7 in QMetaObject::activate (sender=0x29822888, m=0x488eb60, local_signal_index=2, argv=0x0) at kernel/qobject.cpp:3278
#21 0x04692578 in KIO::AbstractConnectionBackend::newConnection (this=0x29822888) at /usr/src/debug/kdelibs-4.6.5/i686-redhat-linux-gnu/kio/connection_p.moc:102
#22 0x046925fb in KIO::AbstractConnectionBackend::qt_metacall (this=0x29822888, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbfab191c) at /usr/src/debug/kdelibs-4.6.5/i686-redhat-linux-gnu/kio/connection_p.moc:78
#23 0x0469265d in KIO::SocketConnectionBackend::qt_metacall (this=0x29822888, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0xbfab191c) at /usr/src/debug/kdelibs-4.6.5/i686-redhat-linux-gnu/kio/connection_p.moc:153
#24 0x044c179b in QMetaObject::metacall (object=0x29822888, cl=QMetaObject::InvokeMetaMethod, idx=6, argv=0xbfab191c) at kernel/qmetaobject.cpp:237
#25 0x044d0cc7 in QMetaObject::activate (sender=0x29d49920, m=0x22d0e74, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3278
#26 0x021ac948 in KLocalSocketServer::newConnection (this=0x29d49920) at /usr/src/debug/kdelibs-4.6.5/i686-redhat-linux-gnu/kdecore/klocalsocket.moc:151
#27 0x021acb61 in KLocalSocketServer::incomingConnection (this=0x29d49920, descriptor=1226) at /usr/src/debug/kdelibs-4.6.5/kdecore/network/klocalsocket.cpp:212
#28 0x02228ba2 in KLocalSocketServerPrivate::processSocketActivity (this=0x3449c4b0) at /usr/src/debug/kdelibs-4.6.5/kdecore/network/klocalsocket_unix.cpp:394
#29 0x021ac9cb in KLocalSocketServer::qt_metacall (this=0x29d49920, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbfab1b08) at /usr/src/debug/kdelibs-4.6.5/i686-redhat-linux-gnu/kdecore/klocalsocket.moc:140
#30 0x044c179b in QMetaObject::metacall (object=0x29d49920, cl=QMetaObject::InvokeMetaMethod, idx=5, argv=0xbfab1b08) at kernel/qmetaobject.cpp:237
#31 0x044d0cc7 in QMetaObject::activate (sender=0x31f97648, m=0x45f7a90, local_signal_index=0, argv=0xbfab1b08) at kernel/qobject.cpp:3278
#32 0x0451f2d4 in QSocketNotifier::activated (this=0x31f97648, _t1=1162) at .moc/release-shared/moc_qsocketnotifier.cpp:89
#33 0x044d74cf in QSocketNotifier::event (this=0x31f97648, e=0xbfab1f74) at kernel/qsocketnotifier.cpp:317
#34 0x4136958c in QApplicationPrivate::notify_helper (this=0x8ec9e18, receiver=0x31f97648, e=0xbfab1f74) at kernel/qapplication.cpp:4462
#35 0x4136e292 in QApplication::notify (this=0xbfab2280, receiver=0x31f97648, e=0xbfab1f74) at kernel/qapplication.cpp:3862
#36 0x08079487 in kt::App::notify (this=0xbfab2280, receiver=0x31f97648, event=0xbfab1f74) at /tools/ktorrent/ktorrent/ktorrent/app.cpp:99
#37 0x044baf63 in QCoreApplication::notifyInternal (this=0xbfab2280, receiver=0x31f97648, event=0xbfab1f74) at kernel/qcoreapplication.cpp:731
#38 0x044e862f in sendEvent (source=0x8ec7d00) at kernel/qcoreapplication.h:215
#39 socketNotifierSourceDispatch (source=0x8ec7d00) at kernel/qeventdispatcher_glib.cpp:110
#40 0x0079a192 in g_main_dispatch (context=0x8ec7380) at gmain.c:2149
#41 g_main_context_dispatch (context=0x8ec7380) at gmain.c:2702
#42 0x0079a978 in g_main_context_iterate (context=0x8ec7380, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2780
#43 0x0079ac35 in g_main_context_iteration (context=0x8ec7380, may_block=1) at gmain.c:2843
#44 0x044e8cad in QEventDispatcherGlib::processEvents (this=0x8e898a0, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#45 0x4141d206 in QGuiEventDispatcherGlib::processEvents (this=0x8e898a0, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#46 0x044ba0fa in QEventLoop::processEvents (this=0xbfab21f4, flags=...) at kernel/qeventloop.cpp:149
#47 0x044ba3aa in QEventLoop::exec (this=0xbfab21f4, flags=...) at kernel/qeventloop.cpp:201
#48 0x044bef57 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#49 0x41367398 in QApplication::exec () at kernel/qapplication.cpp:3736
#50 0x08069071 in main (argc=-1113784319, argv=0xa1fe003b) at /tools/ktorrent/ktorrent/ktorrent/main.cpp:177

Possible duplicates by query: bug 275950, bug 275928, bug 275877, bug 274944, bug 272218.

Reported using DrKonqi
Comment 1 Christoph Feck 2011-07-27 11:01:57 UTC
It is possible that you run out of file descriptors. What is the output of "ulimit -n"?
Comment 2 George R. Goffe 2011-07-27 21:47:53 UTC
Christoph,

My current "ulimit -n" is 32768.

Regards,

George...
Comment 3 Hrvoje Senjan 2011-08-14 16:57:06 UTC
Created attachment 62826 [details]
New crash information added by DrKonqi

ktorrent (4.2dev) on KDE Platform 4.7.00 (4.7.0) using Qt 4.7.2

- What I was doing when the application crashed:

Nothing, ktorrent crashed out of the sudden

-- Backtrace (Reduced):
#6  QAbstractSocketEngine::state (this=0x10080) at socket/qabstractsocketengine.cpp:186
#7  0x00007fc73cde84d8 in QNativeSocketEngine::waitForReadOrWrite (this=0x10080, readyToRead=<value optimized out>, readyToWrite=0x7fff1160853e, checkRead=true, checkWrite=<value optimized out>, msecs=-1, timedOut=0x0) at socket/qnativesocketengine.cpp:988
#8  0x00007fc73cdf97cf in QAbstractSocket::waitForBytesWritten (this=0x2944cb0, msecs=-1) at socket/qabstractsocket.cpp:1924
#9  0x00007fc73d363b82 in KIO::SocketConnectionBackend::sendCommand (this=0x2ad5560, task=...) at ../../kio/kio/connection.cpp:294
#10 0x00007fc73d364f2f in KIO::Connection::sendnow (this=0x7fc710022300, _cmd=85, data=...) at ../../kio/kio/connection.cpp:505
Comment 4 Joris Guisson 2011-08-17 16:33:47 UTC
*** Bug 280214 has been marked as a duplicate of this bug. ***
Comment 5 Joris Guisson 2011-08-20 16:38:55 UTC
*** Bug 280477 has been marked as a duplicate of this bug. ***
Comment 6 Joris Guisson 2011-08-24 17:01:08 UTC
*** Bug 280534 has been marked as a duplicate of this bug. ***
Comment 7 gabe.giles 2011-09-04 05:02:32 UTC
Created attachment 63364 [details]
New crash information added by DrKonqi

ktorrent (4.1.2) on KDE Platform 4.7.00 (4.7.0) "release 10" using Qt 4.7.4

- What I was doing when the application crashed: The only other application I was running was Dolphin. I was just running torrents when the program crashed.

-- Backtrace (Reduced):
#6  QAbstractSocketEngine::state (this=0x0) at socket/qabstractsocketengine.cpp:186
#7  0x00007f2a7f5176c8 in QNativeSocketEngine::waitForReadOrWrite (this=0x0, readyToRead=<value optimized out>, readyToWrite=0x7fff61a344de, checkRead=true, checkWrite=<value optimized out>, msecs=-1, timedOut=0x0) at socket/qnativesocketengine.cpp:988
#8  0x00007f2a7f528aae in QAbstractSocket::waitForBytesWritten (this=0x28e81810, msecs=-1) at socket/qabstractsocket.cpp:1928
#9  0x00007f2a7f860db2 in KIO::SocketConnectionBackend::sendCommand(KIO::Task const&) () from /usr/lib64/libkio.so.5
#10 0x00007f2a7f8620ef in KIO::Connection::sendnow(int, QByteArray const&) () from /usr/lib64/libkio.so.5
Comment 8 Joris Guisson 2011-09-18 09:21:52 UTC

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