Application: ktorrent (4.0.5) KDE Platform Version: 4.5.1 (KDE 4.5.1) Qt Version: 4.7.0 Operating System: Linux 2.6.35-24-generic x86_64 Distribution: Ubuntu 10.10 -- Information about the crash: After some time (15 min to 4 hs) it crashes for no reason. Tried to run it under valgrind, but it gave no concrete information about the crash, so I installed the Qt Debugging Symbols and filled this report. The crash can be reproduced every time. -- Backtrace: Application: KTorrent (ktorrent), signal: Segmentation fault [Current thread is 1 (Thread 0x7f37ab9f8760 (LWP 2854))] Thread 8 (Thread 0x7f3796850700 (LWP 2856)): #0 0x00007f37a7565203 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=6) at ../sysdeps/unix/sysv/linux/poll.c:87 #1 0x00007f37a23c0009 in ?? () from /lib/libglib-2.0.so.0 #2 0x00007f37a23c045c in g_main_context_iteration () from /lib/libglib-2.0.so.0 #3 0x00007f37a90471e6 in QEventDispatcherGlib::processEvents (this=0x1f5a5b0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417 #4 0x00007f37a9019a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149 #5 0x00007f37a9019dec in QEventLoop::exec (this=0x7f379684fdb0, flags=) at kernel/qeventloop.cpp:201 #6 0x00007f37a8f242fd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490 #7 0x00007f37ab5ac1ce in utp::UTPServerThread::run (this=0x1f49bd0) at /home/nico/libktorrent-1.0.5-3/src/utp/utpserverthread.cpp:44 #8 0x00007f37a8f2727e in QThreadPrivate::start (arg=0x1f49bd0) at thread/qthread_unix.cpp:266 #9 0x00007f37a8c9c971 in start_thread (arg=<value optimized out>) at pthread_create.c:304 #10 0x00007f37a757192d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #11 0x0000000000000000 in ?? () Thread 7 (Thread 0x7f3797051700 (LWP 2857)): #0 0x00007f37a756a2c3 in select () at ../sysdeps/unix/syscall-template.S:82 #1 0x00007f37ab5732e2 in dht::RPCServerThread::run (this=0x1faced0) at /home/nico/libktorrent-1.0.5-3/src/dht/rpcserver.cpp:107 #2 0x00007f37a8f2727e in QThreadPrivate::start (arg=0x1faced0) at thread/qthread_unix.cpp:266 #3 0x00007f37a8c9c971 in start_thread (arg=<value optimized out>) at pthread_create.c:304 #4 0x00007f37a757192d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #5 0x0000000000000000 in ?? () Thread 6 (Thread 0x7f378eeba700 (LWP 2858)): #0 0x00007f37a7565203 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87 #1 0x00007f37a23c0009 in ?? () from /lib/libglib-2.0.so.0 #2 0x00007f37a23c045c in g_main_context_iteration () from /lib/libglib-2.0.so.0 #3 0x00007f37a90471e6 in QEventDispatcherGlib::processEvents (this=0x2ee02d0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417 #4 0x00007f37a9019a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149 #5 0x00007f37a9019dec in QEventLoop::exec (this=0x7f378eeb9db0, flags=) at kernel/qeventloop.cpp:201 #6 0x00007f37a8f242fd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490 #7 0x00007f37a8ff95f8 in QInotifyFileSystemWatcherEngine::run (this=0x2edf820) at io/qfilesystemwatcher_inotify.cpp:248 #8 0x00007f37a8f2727e in QThreadPrivate::start (arg=0x2edf820) at thread/qthread_unix.cpp:266 #9 0x00007f37a8c9c971 in start_thread (arg=<value optimized out>) at pthread_create.c:304 #10 0x00007f37a757192d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #11 0x0000000000000000 in ?? () Thread 5 (Thread 0x7f377facf700 (LWP 2875)): #0 0x00007f37a8f21c47 in testAndSetOrdered (this=0x1f4ef58) at ../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:145 #1 testAndSetRelease (this=0x1f4ef58) at ../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:272 #2 QMutex::unlock (this=0x1f4ef58) at thread/qmutex.cpp:375 #3 0x00007f37ab5a8562 in unlock (this=0x1f4eea0, p=<value optimized out>, mode=<value optimized out>, conn=0x7f3784b9c7f0) at /usr/include/qt4/QtCore/qmutex.h:114 #4 ~QMutexLocker (this=0x1f4eea0, p=<value optimized out>, mode=<value optimized out>, conn=0x7f3784b9c7f0) at /usr/include/qt4/QtCore/qmutex.h:108 #5 utp::UTPServer::preparePolling (this=0x1f4eea0, p=<value optimized out>, mode=<value optimized out>, conn=0x7f3784b9c7f0) at /home/nico/libktorrent-1.0.5-3/src/utp/utpserver.cpp:549 #6 0x00007f37ab5b07c9 in utp::UTPSocket::prepare (this=0x7f378462a900, p=0x1e113b0, mode=net::Poll::INPUT) at /home/nico/libktorrent-1.0.5-3/src/utp/utpsocket.cpp:202 #7 0x00007f37ab50ff5e in net::DownloadThread::waitForSocketReady (this=0x1e113a0) at /home/nico/libktorrent-1.0.5-3/src/net/downloadthread.cpp:123 #8 0x00007f37ab510066 in net::DownloadThread::update (this=0x1f4ef58) at /home/nico/libktorrent-1.0.5-3/src/net/downloadthread.cpp:48 #9 0x00007f37ab510b49 in net::NetworkThread::run (this=0x1e113a0) at /home/nico/libktorrent-1.0.5-3/src/net/networkthread.cpp:48 #10 0x00007f37a8f2727e in QThreadPrivate::start (arg=0x1e113a0) at thread/qthread_unix.cpp:266 #11 0x00007f37a8c9c971 in start_thread (arg=<value optimized out>) at pthread_create.c:304 #12 0x00007f37a757192d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #13 0x0000000000000000 in ?? () Thread 4 (Thread 0x7f377f2ce700 (LWP 2876)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162 #1 0x00007f37a8f26533 in QMutexPrivate::wait (this=0x1e11320, timeout=-1) at thread/qmutex_unix.cpp:84 #2 0x00007f37a8f21ee5 in QMutex::lock (this=0x6da0e8) at thread/qmutex.cpp:167 #3 0x00007f37ab50f48d in net::UploadThread::waitForSocketsReady (this=0x1e11a10) at /home/nico/libktorrent-1.0.5-3/src/net/uploadthread.cpp:112 #4 0x00007f37ab50f706 in net::UploadThread::update (this=0x1e1136c) at /home/nico/libktorrent-1.0.5-3/src/net/uploadthread.cpp:45 #5 0x00007f37ab510b49 in net::NetworkThread::run (this=0x1e11a10) at /home/nico/libktorrent-1.0.5-3/src/net/networkthread.cpp:48 #6 0x00007f37a8f2727e in QThreadPrivate::start (arg=0x1e11a10) at thread/qthread_unix.cpp:266 #7 0x00007f37a8c9c971 in start_thread (arg=<value optimized out>) at pthread_create.c:304 #8 0x00007f37a757192d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #9 0x0000000000000000 in ?? () Thread 3 (Thread 0x7f377eacd700 (LWP 2877)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162 #1 0x00007f37a8f27e3b in wait (this=<value optimized out>, mutex=0x7f37847fcaa0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88 #2 QWaitCondition::wait (this=<value optimized out>, mutex=0x7f37847fcaa0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160 #3 0x00007f37ab513b62 in net::ReverseResolverThread::run (this=0x7f37847fca90) at /home/nico/libktorrent-1.0.5-3/src/net/reverseresolver.cpp:123 #4 0x00007f37a8f2727e in QThreadPrivate::start (arg=0x7f37847fca90) at thread/qthread_unix.cpp:266 #5 0x00007f37a8c9c971 in start_thread (arg=<value optimized out>) at pthread_create.c:304 #6 0x00007f37a757192d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #7 0x0000000000000000 in ?? () Thread 2 (Thread 0x7f3781df9700 (LWP 4694)): #0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:212 #1 0x00007f37a8f27da2 in wait (this=<value optimized out>, mutex=0x38e7020, time=30000) at thread/qwaitcondition_unix.cpp:86 #2 QWaitCondition::wait (this=<value optimized out>, mutex=0x38e7020, time=30000) at thread/qwaitcondition_unix.cpp:160 #3 0x00007f37a8f1cda2 in QThreadPoolThread::run (this=0x7f378400ef30) at concurrent/qthreadpool.cpp:140 #4 0x00007f37a8f2727e in QThreadPrivate::start (arg=0x7f378400ef30) at thread/qthread_unix.cpp:266 #5 0x00007f37a8c9c971 in start_thread (arg=<value optimized out>) at pthread_create.c:304 #6 0x00007f37a757192d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #7 0x0000000000000000 in ?? () Thread 1 (Thread 0x7f37ab9f8760 (LWP 2854)): [KCrash Handler] #6 getTorrent (this=0x7f37783275d0, method=bt::PeerConnector::UTP_WITH_ENCRYPTION) at /home/nico/libktorrent-1.0.5-3/src/peer/peermanager.h:179 #7 bt::PeerConnector::start (this=0x7f37783275d0, method=bt::PeerConnector::UTP_WITH_ENCRYPTION) at /home/nico/libktorrent-1.0.5-3/src/peer/peerconnector.cpp:122 #8 0x00007f37ab52eea0 in bt::PeerConnector::authenticationFinished (this=<value optimized out>, auth=<value optimized out>, ok=<value optimized out>) at /home/nico/libktorrent-1.0.5-3/src/peer/peerconnector.cpp:116 #9 0x00007f37ab51af78 in bt::AuthenticationMonitor::handleData (this=0x6d9b80) at /home/nico/libktorrent-1.0.5-3/src/peer/authenticationmonitor.cpp:129 #10 0x0000000000428ccf in kt::Core::update (this=0x1f3c810) at /home/nico/ktorrent-4.0.5/ktorrent/core.cpp:1016 #11 0x0000000000431392 in kt::Core::qt_metacall (this=0x1f3c810, _c=QMetaObject::InvokeMetaMethod, _id=7471215, _a=0x7fffe4c23cc0) at /home/nico/ktorrent-4.0.5/build/ktorrent/core.moc:169 #12 0x00007f37a9032b27 in QMetaObject::activate (sender=0x1f3c838, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x1) at kernel/qobject.cpp:3280 #13 0x00007f37a902c8f9 in QObject::event (this=0x1f3c838, e=0x2) at kernel/qobject.cpp:1183 #14 0x00007f37a8164fdc in QApplicationPrivate::notify_helper (this=0x1e49000, receiver=0x1f3c838, e=0x7fffe4c243f0) at kernel/qapplication.cpp:4396 #15 0x00007f37a816aaed in QApplication::notify (this=0x7fffe4c24720, receiver=0x1f3c838, e=0x7fffe4c243f0) at kernel/qapplication.cpp:4277 #16 0x0000000000437eba in kt::App::notify (this=0x7f37783275d0, receiver=0x2, event=0x0) at /home/nico/ktorrent-4.0.5/ktorrent/app.cpp:97 #17 0x00007f37a901acdc in QCoreApplication::notifyInternal (this=0x7fffe4c24720, receiver=0x1f3c838, event=0x7fffe4c243f0) at kernel/qcoreapplication.cpp:732 #18 0x00007f37a904a6f2 in sendEvent (this=0x1e45630) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215 #19 QTimerInfoList::activateTimers (this=0x1e45630) at kernel/qeventdispatcher_unix.cpp:602 #20 0x00007f37a90474c8 in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:184 #21 idleTimerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:231 #22 0x00007f37a23bc342 in g_main_context_dispatch () from /lib/libglib-2.0.so.0 #23 0x00007f37a23c02a8 in ?? () from /lib/libglib-2.0.so.0 #24 0x00007f37a23c045c in g_main_context_iteration () from /lib/libglib-2.0.so.0 #25 0x00007f37a9047193 in QEventDispatcherGlib::processEvents (this=0x1e0f320, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415 #26 0x00007f37a8217a4e in QGuiEventDispatcherGlib::processEvents (this=0x7f37783275d0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204 #27 0x00007f37a9019a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149 #28 0x00007f37a9019dec in QEventLoop::exec (this=0x7fffe4c24690, flags=) at kernel/qeventloop.cpp:201 #29 0x00007f37a901debb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009 #30 0x0000000000426d9b in main (argc=<value optimized out>, argv=<value optimized out>) at /home/nico/ktorrent-4.0.5/ktorrent/main.cpp:176 Reported using DrKonqi
This is already fixed in the 1.1 branch
Do you mean 4.1? or you refered to libktorrent 1.1 ?
libktorrent obviously, ktorrent 1.1 was ages ago
*** Bug 270733 has been marked as a duplicate of this bug. ***