Bug 284683 - ktorrent-4.1.2 segfault
Summary: ktorrent-4.1.2 segfault
Status: RESOLVED DUPLICATE of bug 274544
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-22 09:49 UTC by George R. Goffe
Modified: 2011-10-25 16:23 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description George R. Goffe 2011-10-22 09:49:07 UTC
Application: ktorrent (4.1.2)
KDE Platform Version: 4.6.5 (4.6.5)
Qt Version: 4.7.4
Operating System: Linux 2.6.35.14-97.fc14.x86_64 x86_64
Distribution: "Fedora release 14 (Laughlin)"

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

I was doing standard downloads. I had > 1500 downloads started but only a few were actually running. I was sorting these downloads when this crash happened. The system is a quite recent x86_64 installation.

The crash can be reproduced every time.

-- Backtrace:
Application: KTorrent (ktorrent), signal: Segmentation fault
82	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7ffbb70ba840 (LWP 30660))]

Thread 8 (Thread 0x7ffbaadc1700 (LWP 30662)):
#0  0x0000003b54c0a7d9 in __pthread_mutex_unlock_usercnt (mutex=0x7ffb9c0009b8) at pthread_mutex_unlock.c:52
#1  __pthread_mutex_unlock (mutex=0x7ffb9c0009b8) at pthread_mutex_unlock.c:290
#2  0x0000003b53c428d5 in g_main_context_iteration (context=0x7ffb9c0009b0, may_block=<value optimized out>) at gmain.c:2844
#3  0x0000003b5f188326 in QEventDispatcherGlib::processEvents (this=0x7ffb9c0008c0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#4  0x0000003b5f15c472 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x0000003b5f15c6bc in QEventLoop::exec (this=0x7ffbaadc0d40, flags=...) at kernel/qeventloop.cpp:201
#6  0x0000003b5f071644 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:498
#7  0x0000003b5f073ee5 in QThreadPrivate::start (arg=0xb4bce0) at thread/qthread_unix.cpp:331
#8  0x0000003b54c06ccb in start_thread (arg=0x7ffbaadc1700) at pthread_create.c:301
#9  0x0000003b540e0c2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 7 (Thread 0x7ffbab5c2700 (LWP 30663)):
#0  0x0000003b540d7283 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x000000367967d71c in net::Poll::poll (this=0x7ffbab5c1c10, timeout=<value optimized out>) at /usr/src/debug/libktorrent-1.1.2/src/net/poll.cpp:99
#2  0x00000036796df813 in dht::RPCServer::Private::run (this=0xb6e1f0) at /usr/src/debug/libktorrent-1.1.2/src/dht/rpcserver.cpp:95
#3  0x0000003b5f073ee5 in QThreadPrivate::start (arg=0xb6e1f0) at thread/qthread_unix.cpp:331
#4  0x0000003b54c06ccb in start_thread (arg=0x7ffbab5c2700) at pthread_create.c:301
#5  0x0000003b540e0c2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 6 (Thread 0x7ffb88fdd700 (LWP 30740)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00000035aef28944 in scavengerThread (context=0x35af7458e0) at wtf/FastMalloc.cpp:2378
#2  WTF::TCMalloc_PageHeap::runScavengerThread (context=0x35af7458e0) at wtf/FastMalloc.cpp:1497
#3  0x0000003b54c06ccb in start_thread (arg=0x7ffb88fdd700) at pthread_create.c:301
#4  0x0000003b540e0c2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 5 (Thread 0x7ffb886dc700 (LWP 30741)):
#0  0x0000003b540d7283 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x0000003b53c42374 in g_main_context_poll (context=0x7ffb800009b0, block=1, dispatch=1, self=<value optimized out>) at gmain.c:3093
#2  g_main_context_iterate (context=0x7ffb800009b0, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2775
#3  0x0000003b53c428ad in g_main_context_iteration (context=0x7ffb800009b0, may_block=1) at gmain.c:2843
#4  0x0000003b5f188326 in QEventDispatcherGlib::processEvents (this=0x7ffb800008c0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x0000003b5f15c472 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x0000003b5f15c6bc in QEventLoop::exec (this=0x7ffb886dbd40, flags=...) at kernel/qeventloop.cpp:201
#7  0x0000003b5f071644 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:498
#8  0x0000003b5f073ee5 in QThreadPrivate::start (arg=0x202b2660) at thread/qthread_unix.cpp:331
#9  0x0000003b54c06ccb in start_thread (arg=0x7ffb886dc700) at pthread_create.c:301
#10 0x0000003b540e0c2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 4 (Thread 0x7ffb7f7fe700 (LWP 30922)):
#0  unlock (this=0x2b0c9930) at /usr/include/QtCore/qmutex.h:114
#1  ~QMutexLocker (this=0x2b0c9930) at /usr/include/QtCore/qmutex.h:108
#2  utp::Connection::bytesAvailable (this=0x2b0c9930) at /usr/src/debug/libktorrent-1.1.2/src/utp/connection.cpp:525
#3  0x0000003679712f87 in utp::UTPServer::preparePolling (this=<value optimized out>, p=0x9ad140, mode=net::Poll::INPUT, conn=...) at /usr/src/debug/libktorrent-1.1.2/src/utp/utpserver.cpp:462
#4  0x000000367971aaf3 in utp::UTPSocket::prepare (this=0x28c75520, p=0x9ad140, mode=net::Poll::INPUT) at /usr/src/debug/libktorrent-1.1.2/src/utp/utpsocket.cpp:212
#5  0x000000367967a406 in net::DownloadThread::waitForSocketReady (this=0x9ad130) at /usr/src/debug/libktorrent-1.1.2/src/net/downloadthread.cpp:123
#6  0x000000367967a506 in net::DownloadThread::update (this=0x9ad130) at /usr/src/debug/libktorrent-1.1.2/src/net/downloadthread.cpp:48
#7  0x000000367967a709 in net::NetworkThread::run (this=0x9ad130) at /usr/src/debug/libktorrent-1.1.2/src/net/networkthread.cpp:48
#8  0x0000003b5f073ee5 in QThreadPrivate::start (arg=0x9ad130) at thread/qthread_unix.cpp:331
#9  0x0000003b54c06ccb in start_thread (arg=0x7ffb7f7fe700) at pthread_create.c:301
#10 0x0000003b540e0c2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 3 (Thread 0x7ffb7e7fc700 (LWP 30923)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x0000003b5f072fe3 in QMutexPrivate::wait (this=0x9ad0b0, timeout=-1) at thread/qmutex_unix.cpp:84
#2  0x0000003b5f06f9d5 in QMutex::lock (this=0x9ad080) at thread/qmutex.cpp:167
#3  0x0000003679679b8a in net::UploadThread::waitForSocketsReady (this=0x9adb10) at /usr/src/debug/libktorrent-1.1.2/src/net/uploadthread.cpp:112
#4  0x0000003679679de6 in net::UploadThread::update (this=0x9adb10) at /usr/src/debug/libktorrent-1.1.2/src/net/uploadthread.cpp:45
#5  0x000000367967a709 in net::NetworkThread::run (this=0x9adb10) at /usr/src/debug/libktorrent-1.1.2/src/net/networkthread.cpp:48
#6  0x0000003b5f073ee5 in QThreadPrivate::start (arg=0x9adb10) at thread/qthread_unix.cpp:331
#7  0x0000003b54c06ccb in start_thread (arg=0x7ffb7e7fc700) at pthread_create.c:301
#8  0x0000003b540e0c2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7ffb7d7d1700 (LWP 14411)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:216
#1  0x0000003b5f074532 in wait (this=<value optimized out>, mutex=0x2067f340, time=30000) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x2067f340, time=30000) at thread/qwaitcondition_unix.cpp:160
#3  0x0000003b5f068fc8 in QThreadPoolThread::run (this=0x1fd27f40) at concurrent/qthreadpool.cpp:140
#4  0x0000003b5f073ee5 in QThreadPrivate::start (arg=0x1fd27f40) at thread/qthread_unix.cpp:331
#5  0x0000003b54c06ccb in start_thread (arg=0x7ffb7d7d1700) at pthread_create.c:301
#6  0x0000003b540e0c2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7ffbb70ba840 (LWP 30660)):
[KCrash Handler]
#6  QAbstractSocketEngine::state (this=0x0) at socket/qabstractsocketengine.cpp:186
#7  0x0000003b5f6a94f8 in QNativeSocketEngine::waitForReadOrWrite (this=0x0, readyToRead=<value optimized out>, readyToWrite=0x7fff1f811dce, checkRead=true, checkWrite=<value optimized out>, msecs=-1, timedOut=0x0) at socket/qnativesocketengine.cpp:988
#8  0x0000003b5f6ba9cd in QAbstractSocket::waitForBytesWritten (this=0x2975e920, msecs=-1) at socket/qabstractsocket.cpp:1928
#9  0x00000035a44c3582 in KIO::SocketConnectionBackend::sendCommand (this=0x2c7bca20, task=...) at /usr/src/debug/kdelibs-4.6.5/kio/kio/connection.cpp:294
#10 0x00000035a44c48df in KIO::Connection::sendnow (this=0x294c65e0, _cmd=85, data=...) at /usr/src/debug/kdelibs-4.6.5/kio/kio/connection.cpp:505
#11 0x00000035a44c5cb6 in KIO::ConnectionPrivate::dequeue (this=0x2b98fe00) at /usr/src/debug/kdelibs-4.6.5/kio/kio/connection.cpp:78
#12 0x00000035a458dba4 in KIO::Slave::accept (this=<value optimized out>) at /usr/src/debug/kdelibs-4.6.5/kio/kio/slave.cpp:120
#13 0x00000035a458e984 in KIO::Slave::qt_metacall (this=0xd9edda0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff1f811f70) at /usr/src/debug/kdelibs-4.6.5/x86_64-redhat-linux-gnu/kio/slave.moc:81
#14 0x0000003b5f171acf in QMetaObject::activate (sender=0x27365a00, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x0) at kernel/qobject.cpp:3278
#15 0x00000035a44c5280 in KIO::ConnectionServer::qt_metacall (this=0x27365a00, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=<value optimized out>) at /usr/src/debug/kdelibs-4.6.5/x86_64-redhat-linux-gnu/kio/connection.moc:146
#16 0x0000003b5f171acf in QMetaObject::activate (sender=0x2bd3e1e0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x0) at kernel/qobject.cpp:3278
#17 0x00000035a44c517c in KIO::AbstractConnectionBackend::qt_metacall (this=0x2bd3e1e0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff1f812180) at /usr/src/debug/kdelibs-4.6.5/x86_64-redhat-linux-gnu/kio/connection_p.moc:78
#18 0x00000035a44c51c8 in KIO::SocketConnectionBackend::qt_metacall (this=0x2bd3e1e0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=<value optimized out>) at /usr/src/debug/kdelibs-4.6.5/x86_64-redhat-linux-gnu/kio/connection_p.moc:153
#19 0x0000003b5f171acf in QMetaObject::activate (sender=0x2532ec90, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x0) at kernel/qobject.cpp:3278
#20 0x0000003b603b9a20 in KLocalSocketServer::incomingConnection (this=0x2532ec90, descriptor=1152) at /usr/src/debug/kdelibs-4.6.5/kdecore/network/klocalsocket.cpp:212
#21 0x0000003b60426d45 in KLocalSocketServerPrivate::processSocketActivity (this=0x2bda91e0) at /usr/src/debug/kdelibs-4.6.5/kdecore/network/klocalsocket_unix.cpp:394
#22 0x0000003b603b98d2 in KLocalSocketServer::qt_metacall (this=0x2532ec90, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=<value optimized out>) at /usr/src/debug/kdelibs-4.6.5/x86_64-redhat-linux-gnu/kdecore/klocalsocket.moc:140
#23 0x0000003b5f171acf in QMetaObject::activate (sender=0x2bda9230, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff1f812380) at kernel/qobject.cpp:3278
#24 0x0000003b5f1ba1ce in QSocketNotifier::activated (this=<value optimized out>, _t1=1150) at .moc/release-shared/moc_qsocketnotifier.cpp:89
#25 0x0000003b5f17814b in QSocketNotifier::event (this=0x2bda9230, e=0x7fff1f812a10) at kernel/qsocketnotifier.cpp:317
#26 0x0000003b631b9c14 in QApplicationPrivate::notify_helper (this=0xa1e160, receiver=0x2bda9230, e=0x7fff1f812a10) at kernel/qapplication.cpp:4481
#27 0x0000003b631be7ca in QApplication::notify (this=<value optimized out>, receiver=0x2bda9230, e=0x7fff1f812a10) at kernel/qapplication.cpp:4360
#28 0x0000000000439fa1 in kt::App::notify (this=<value optimized out>, receiver=<value optimized out>, event=<value optimized out>) at /usr/src/debug/ktorrent-4.1.2/ktorrent/app.cpp:99
#29 0x0000003b5f15d0dc in QCoreApplication::notifyInternal (this=0x7fff1f812cf0, receiver=0x2bda9230, event=0x7fff1f812a10) at kernel/qcoreapplication.cpp:787
#30 0x0000003b5f187c89 in sendEvent (source=0x9d0ec0) at kernel/qcoreapplication.h:215
#31 socketNotifierSourceDispatch (source=0x9d0ec0) at kernel/qeventdispatcher_glib.cpp:110
#32 0x0000003b53c41e33 in g_main_dispatch (context=0x9fd440) at gmain.c:2149
#33 g_main_context_dispatch (context=0x9fd440) at gmain.c:2702
#34 0x0000003b53c42610 in g_main_context_iterate (context=0x9fd440, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2780
#35 0x0000003b53c428ad in g_main_context_iteration (context=0x9fd440, may_block=1) at gmain.c:2843
#36 0x0000003b5f1882cf in QEventDispatcherGlib::processEvents (this=0x9a9d10, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#37 0x0000003b6325f55e in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:207
#38 0x0000003b5f15c472 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#39 0x0000003b5f15c6bc in QEventLoop::exec (this=0x7fff1f812c50, flags=...) at kernel/qeventloop.cpp:201
#40 0x0000003b5f160b7b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#41 0x00000000004298eb in main (argc=1, argv=0x7fff1f813b68) at /usr/src/debug/ktorrent-4.1.2/ktorrent/main.cpp:177

Possible duplicates by query: bug 280534, bug 280477, bug 280214, bug 278555, bug 275950.

Reported using DrKonqi
Comment 1 Joris Guisson 2011-10-25 16:23:09 UTC

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