Bug 271163

Summary: ktorren crashed while not focused window
Product: [Applications] ktorrent Reporter: louiszakrzewski
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED DUPLICATE    
Severity: crash CC: hanty2000
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi
New crash information added by DrKonqi

Description louiszakrzewski 2011-04-17 17:11:53 UTC
Application: ktorrent (4.1.0)
KDE Platform Version: 4.6.00 (4.6.0) "release 6"
Qt Version: 4.7.1
Operating System: Linux 2.6.37.1-1.2-desktop x86_64
Distribution: "openSUSE 11.4 (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:
I used Chromefor normal surfing and Ktorrent wasnt the active window. 2 active transfers
- Custom settings of the application:
 only settings i changed were: -using utorrent protocol and -set it to primary protocol

The crash can be reproduced some of the time.

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

Thread 7 (Thread 0x7f6f4cfd0700 (LWP 8324)):
#0  0x00007f6f6629938c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f6f53b8a084 in WTF::TCMalloc_PageHeap::runScavengerThread(void*) () from /usr/lib64/libQtWebKit.so.4
#2  0x00007f6f66294a3f in start_thread () from /lib64/libpthread.so.0
#3  0x00007f6f64be267d in clone () from /lib64/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f6f3f7f6700 (LWP 8396)):
#0  0x00007f6f6629938c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f6f66522b93 in QMutexPrivate::wait (this=0x1260c80, timeout=-1) at thread/qmutex_unix.cpp:84
#2  0x00007f6f6651f505 in QMutex::lock (this=0x1260e58) at thread/qmutex.cpp:167
#3  0x00007f6f688e12c0 in QMutexLocker (this=0x12604d0, p=0x6e92c0, mode=net::Poll::INPUT, conn=...) at /usr/include/QtCore/qmutex.h:102
#4  utp::UTPServer::preparePolling (this=0x12604d0, p=0x6e92c0, mode=net::Poll::INPUT, conn=...) at /usr/src/debug/libktorrent-1.1.0/src/utp/utpserver.cpp:452
#5  0x00007f6f688e9303 in utp::UTPSocket::prepare (this=0x1265720, p=0x6e92c0, mode=net::Poll::INPUT) at /usr/src/debug/libktorrent-1.1.0/src/utp/utpsocket.cpp:212
#6  0x00007f6f68848e46 in net::DownloadThread::waitForSocketReady (this=0x6e92b0) at /usr/src/debug/libktorrent-1.1.0/src/net/downloadthread.cpp:123
#7  0x00007f6f68848f46 in net::DownloadThread::update (this=0x6e92b0) at /usr/src/debug/libktorrent-1.1.0/src/net/downloadthread.cpp:48
#8  0x00007f6f68849149 in net::NetworkThread::run (this=0x6e92b0) at /usr/src/debug/libktorrent-1.1.0/src/net/networkthread.cpp:48
#9  0x00007f6f66523a5e in QThreadPrivate::start (arg=0x6e92b0) at thread/qthread_unix.cpp:285
#10 0x00007f6f66294a3f in start_thread () from /lib64/libpthread.so.0
#11 0x00007f6f64be267d in clone () from /lib64/libc.so.6
#12 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f6f3eff5700 (LWP 8397)):
#0  0x00007f6f6629938c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f6f66522b93 in QMutexPrivate::wait (this=0x6e9230, timeout=-1) at thread/qmutex_unix.cpp:84
#2  0x00007f6f6651f505 in QMutex::lock (this=0x6e8870) at thread/qmutex.cpp:167
#3  0x00007f6f688487ac in net::UploadThread::update (this=0x6e97d0) at /usr/src/debug/libktorrent-1.1.0/src/net/uploadthread.cpp:49
#4  0x00007f6f68849149 in net::NetworkThread::run (this=0x6e97d0) at /usr/src/debug/libktorrent-1.1.0/src/net/networkthread.cpp:48
#5  0x00007f6f66523a5e in QThreadPrivate::start (arg=0x6e97d0) at thread/qthread_unix.cpp:285
#6  0x00007f6f66294a3f in start_thread () from /lib64/libpthread.so.0
#7  0x00007f6f64be267d in clone () from /lib64/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f6f3e7f4700 (LWP 8398)):
#0  0x00007f6f6629938c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f6f6652414b in wait (this=<value optimized out>, mutex=0xc475a0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0xc475a0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f6f6884bd12 in net::ReverseResolverThread::run (this=0xc47590) at /usr/src/debug/libktorrent-1.1.0/src/net/reverseresolver.cpp:123
#4  0x00007f6f66523a5e in QThreadPrivate::start (arg=0xc47590) at thread/qthread_unix.cpp:285
#5  0x00007f6f66294a3f in start_thread () from /lib64/libpthread.so.0
#6  0x00007f6f64be267d in clone () from /lib64/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f6f49ce0700 (LWP 8412)):
#0  0xffffffffff600177 in ?? ()
#1  0x00007fff23ded7a1 in ?? ()
#2  0x00007f6f601c12b3 in clock_gettime () from /lib64/librt.so.1
#3  0x00007f6f665752b2 in do_gettime () at tools/qelapsedtimer_unix.cpp:123
#4  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#5  0x00007f6f6663833d in QTimerInfoList::updateCurrentTime (this=0x7f6f44002610) at kernel/qeventdispatcher_unix.cpp:339
#6  0x00007f6f666386b5 in QTimerInfoList::timerWait (this=0x7f6f44002610, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#7  0x00007f6f6663717c in timerSourcePrepareHelper (src=<value optimized out>, timeout=0x7f6f49cdfc4c) at kernel/qeventdispatcher_glib.cpp:136
#8  0x00007f6f66637225 in timerSourcePrepare (source=<value optimized out>, timeout=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#9  0x00007f6f5ff10087 in g_main_context_prepare () from /lib64/libglib-2.0.so.0
#10 0x00007f6f5ff10fa9 in ?? () from /lib64/libglib-2.0.so.0
#11 0x00007f6f5ff11650 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#12 0x00007f6f66637976 in QEventDispatcherGlib::processEvents (this=0x11c4b30, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#13 0x00007f6f6660c052 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#14 0x00007f6f6660c265 in QEventLoop::exec (this=0x7f6f49cdfde0, flags=...) at kernel/qeventloop.cpp:201
#15 0x00007f6f665211e4 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#16 0x00007f6f665ed968 in QInotifyFileSystemWatcherEngine::run (this=0x11af930) at io/qfilesystemwatcher_inotify.cpp:248
#17 0x00007f6f66523a5e in QThreadPrivate::start (arg=0x11af930) at thread/qthread_unix.cpp:285
#18 0x00007f6f66294a3f in start_thread () from /lib64/libpthread.so.0
#19 0x00007f6f64be267d in clone () from /lib64/libc.so.6
#20 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f6f41ffb700 (LWP 8437)):
[KCrash Handler]
#6  0x00007f6f688e1d68 in QHash<unsigned short, QHashDummyValue>::findNode (this=0x1217650, akey=<value optimized out>, ahp=0x0) at /usr/include/QtCore/qhash.h:885
#7  0x00007f6f688dde59 in contains (this=0x1260e20, conn=..., readable=true, writeable=false) at /usr/include/QtCore/qhash.h:872
#8  contains (this=0x1260e20, conn=..., readable=true, writeable=false) at /usr/include/QtCore/qset.h:86
#9  polling (this=0x1260e20, conn=..., readable=true, writeable=false) at /usr/src/debug/libktorrent-1.1.0/src/utp/pollpipe.h:56
#10 utp::UTPServer::Private::wakeUpPollPipes (this=0x1260e20, conn=..., readable=true, writeable=false) at /usr/src/debug/libktorrent-1.1.0/src/utp/utpserver.cpp:193
#11 0x00007f6f688ddf80 in utp::UTPServer::stateChanged (this=<value optimized out>, conn=<value optimized out>, readable=<value optimized out>, writeable=<value optimized out>) at /usr/src/debug/libktorrent-1.1.0/src/utp/utpserver.cpp:476
#12 0x00007f6f688e59fa in utp::Connection::checkState (this=0x1a68f50) at /usr/src/debug/libktorrent-1.1.0/src/utp/connection.cpp:284
#13 0x00007f6f688e600e in utp::Connection::handlePacket (this=0x1a68f50, parser=..., packet=...) at /usr/src/debug/libktorrent-1.1.0/src/utp/connection.cpp:266
#14 0x00007f6f688df7da in utp::UTPServer::handlePacket (this=0x12604d0, packet=..., addr=<value optimized out>) at /usr/src/debug/libktorrent-1.1.0/src/utp/utpserver.cpp:358
#15 0x00007f6f688dd9d0 in utp::UTPServer::Private::dataReceived (this=0x1260e20, data=..., addr=...) at /usr/src/debug/libktorrent-1.1.0/src/utp/utpserver.cpp:209
#16 0x00007f6f6884d120 in net::ServerSocket::readyToRead (this=0x12655d0) at /usr/src/debug/libktorrent-1.1.0/src/net/serversocket.cpp:130
#17 0x00007f6f6882f3bb in net::ServerSocket::qt_metacall (this=0x12655d0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7f6f41ffa570) at /usr/src/debug/libktorrent-1.1.0/build/src/moc_serversocket.cpp:76
#18 0x00007f6f66621def in QMetaObject::activate (sender=0x9304d0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7f6f41ffa570) at kernel/qobject.cpp:3272
#19 0x00007f6f66669ebe in QSocketNotifier::activated (this=<value optimized out>, _t1=105) at .moc/release-shared/moc_qsocketnotifier.cpp:89
#20 0x00007f6f6662799b in QSocketNotifier::event (this=0x9304d0, e=0x7f6f41ffac00) at kernel/qsocketnotifier.cpp:317
#21 0x00007f6f657bbd14 in QApplicationPrivate::notify_helper (this=0x733020, receiver=0x9304d0, e=0x7f6f41ffac00) at kernel/qapplication.cpp:4445
#22 0x00007f6f657c422a in QApplication::notify (this=<value optimized out>, receiver=0x9304d0, e=0x7f6f41ffac00) at kernel/qapplication.cpp:4324
#23 0x000000000043c4d1 in ?? ()
#24 0x00007f6f6660cbfc in QCoreApplication::notifyInternal (this=0x7fff23c33480, receiver=0x9304d0, event=0x7f6f41ffac00) at kernel/qcoreapplication.cpp:732
#25 0x00007f6f666372f9 in sendEvent (source=0xd31480) at kernel/qcoreapplication.h:215
#26 socketNotifierSourceDispatch (source=0xd31480) at kernel/qeventdispatcher_glib.cpp:110
#27 0x00007f6f5ff10bd3 in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#28 0x00007f6f5ff113b0 in ?? () from /lib64/libglib-2.0.so.0
#29 0x00007f6f5ff11650 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#30 0x00007f6f6663791f in QEventDispatcherGlib::processEvents (this=0x1261dc0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#31 0x00007f6f6660c052 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#32 0x00007f6f6660c265 in QEventLoop::exec (this=0x7f6f41ffae20, flags=...) at kernel/qeventloop.cpp:201
#33 0x00007f6f665211e4 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#34 0x00007f6f66523a5e in QThreadPrivate::start (arg=0x10fd0a0) at thread/qthread_unix.cpp:285
#35 0x00007f6f66294a3f in start_thread () from /lib64/libpthread.so.0
#36 0x00007f6f64be267d in clone () from /lib64/libc.so.6
#37 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f6f68d4c760 (LWP 8323)):
#0  0x00007f6f6629938c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f6f6652414b in wait (this=<value optimized out>, mutex=0x11af750, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x11af750, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f6f66523200 in QThread::wait (this=<value optimized out>, time=18446744073709551615) at thread/qthread_unix.cpp:683
#4  0x00007f6f665e11d0 in QFileSystemWatcher::~QFileSystemWatcher (this=0xf23a20, __in_chrg=<value optimized out>) at io/qfilesystemwatcher.cpp:440
#5  0x00007f6f665e12a9 in QFileSystemWatcher::~QFileSystemWatcher (this=0xf23a20, __in_chrg=<value optimized out>) at io/qfilesystemwatcher.cpp:456
#6  0x00007f6f6661f1d4 in QObjectPrivate::deleteChildren (this=0xf23980) at kernel/qobject.cpp:1949
#7  0x00007f6f66623e72 in QObject::~QObject (this=0x11af9a0, __in_chrg=<value optimized out>) at kernel/qobject.cpp:945
#8  0x00007f6f683147a9 in ?? () from /usr/lib64/libsolid.so.4
#9  0x00007f6f64b445a1 in __run_exit_handlers () from /lib64/libc.so.6
#10 0x00007f6f64b445f5 in exit () from /lib64/libc.so.6
#11 0x00007f6f65828378 in qt_xio_errhandler () at kernel/qapplication_x11.cpp:773
#12 0x00007f6f66f61ab8 in KApplication::xioErrhandler(_XDisplay*) () from /usr/lib64/libkdeui.so.5
#13 0x00007f6f6279478e in _XIOError () from /usr/lib64/libX11.so.6
#14 0x00007f6f6279203d in _XEventsQueued () from /usr/lib64/libX11.so.6
#15 0x00007f6f627828df in XEventsQueued () from /usr/lib64/libX11.so.6
#16 0x00007f6f65860c2c in x11EventSourceCheck (s=0x73a9f0) at kernel/qguieventdispatcher_glib.cpp:85
#17 0x00007f6f5ff1084c in g_main_context_check () from /lib64/libglib-2.0.so.0
#18 0x00007f6f5ff11132 in ?? () from /lib64/libglib-2.0.so.0
#19 0x00007f6f5ff11650 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#20 0x00007f6f6663791f in QEventDispatcherGlib::processEvents (this=0x6e7050, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#21 0x00007f6f65860d8e in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#22 0x00007f6f6660c052 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#23 0x00007f6f6660c265 in QEventLoop::exec (this=0x7fff23c333e0, flags=...) at kernel/qeventloop.cpp:201
#24 0x00007f6f666106ab in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#25 0x000000000042bf45 in _start ()

Possible duplicates by query: bug 270127, bug 270109, bug 269612, bug 259046.

Reported using DrKonqi
Comment 1 Joris Guisson 2011-04-17 17:58:34 UTC

*** This bug has been marked as a duplicate of bug 270127 ***
Comment 2 hanty 2011-04-27 17:34:05 UTC
Created attachment 59369 [details]
New crash information added by DrKonqi

ktorrent (4.1.0) on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.2

- What I was doing when the application crashed: working with other application.

- Unusual behavior I noticed: KTorrent crush only when downloading and not focus.

- Custom settings of the application: turning on IP Filter, Zeroconf.

-- Backtrace (Reduced):
#6  0x00007f4062b45708 in QHash<unsigned short, QHashDummyValue>::findNode (this=0x102f5c0, akey=<value optimized out>, ahp=0x0) at /usr/include/QtCore/qhash.h:885
#7  0x00007f4062b41899 in contains (this=0x8222f0, conn=..., readable=true, writeable=false) at /usr/include/QtCore/qhash.h:872
#8  contains (this=0x8222f0, conn=..., readable=true, writeable=false) at /usr/include/QtCore/qset.h:86
#9  polling (this=0x8222f0, conn=..., readable=true, writeable=false) at /usr/src/debug/libktorrent-1.1.0/src/utp/pollpipe.h:56
#10 utp::UTPServer::Private::wakeUpPollPipes (this=0x8222f0, conn=..., readable=true, writeable=false) at /usr/src/debug/libktorrent-1.1.0/src/utp/utpserver.cpp:193
Comment 3 hanty 2011-04-27 19:10:26 UTC
Created attachment 59374 [details]
New crash information added by DrKonqi

ktorrent (4.1.0) on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.2

- What I was doing when the application crashed: dowloading some torrents.

- Unusual behavior I noticed: application is not in focus.

- Custom settings of the application: IP Filter, Zeroconf.

-- Backtrace (Reduced):
#6  0x00007fb89aaec708 in QHash<unsigned short, QHashDummyValue>::findNode (this=0x106cef0, akey=<value optimized out>, ahp=0x0) at /usr/include/QtCore/qhash.h:885
#7  0x00007fb89aae8899 in contains (this=0x868410, conn=..., readable=true, writeable=false) at /usr/include/QtCore/qhash.h:872
#8  contains (this=0x868410, conn=..., readable=true, writeable=false) at /usr/include/QtCore/qset.h:86
#9  polling (this=0x868410, conn=..., readable=true, writeable=false) at /usr/src/debug/libktorrent-1.1.0/src/utp/pollpipe.h:56
#10 utp::UTPServer::Private::wakeUpPollPipes (this=0x868410, conn=..., readable=true, writeable=false) at /usr/src/debug/libktorrent-1.1.0/src/utp/utpserver.cpp:193