Bug 286460 - Miscelleneous ktorrent crash
Summary: Miscelleneous ktorrent crash
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-11-13 02:55 UTC by George R. Goffe
Modified: 2011-11-15 17:35 UTC (History)
1 user (show)

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-11-13 02:55:10 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-103.fc14.x86_64 x86_64
Distribution: "Fedora release 14 (Laughlin)"

-- Information about the crash:
I was downloading approximately 150 torrents and have experienced this crash several times.

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 0x7fd0398a2840 (LWP 2609))]

Thread 5 (Thread 0x7fd02e0ba700 (LWP 2611)):
#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=0x7fd0200009b0, block=1, dispatch=1, self=<value optimized out>) at gmain.c:3093
#2  g_main_context_iterate (context=0x7fd0200009b0, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2775
#3  0x0000003b53c428ad in g_main_context_iteration (context=0x7fd0200009b0, may_block=1) at gmain.c:2843
#4  0x0000003b40d88326 in QEventDispatcherGlib::processEvents (this=0x7fd0200008c0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x0000003b40d5c472 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x0000003b40d5c6bc in QEventLoop::exec (this=0x7fd02e0b9d40, flags=...) at kernel/qeventloop.cpp:201
#7  0x0000003b40c71644 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:498
#8  0x0000003b40c73ee5 in QThreadPrivate::start (arg=0xe73ee0) at thread/qthread_unix.cpp:331
#9  0x0000003b54c06ccb in start_thread (arg=0x7fd02e0ba700) at pthread_create.c:301
#10 0x0000003b540e0c2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 4 (Thread 0x7fd02d8b9700 (LWP 2612)):
#0  0x000000332fadf6d4 in ref (this=0xe7c0c0) at /usr/include/QtCore/qatomic_x86_64.h:121
#1  QList (this=0xe7c0c0) at /usr/include/QtCore/qlist.h:118
#2  QForeachContainer (this=0xe7c0c0) at /usr/include/QtCore/qglobal.h:2248
#3  dht::RPCServer::Private::run (this=0xe7c0c0) at /usr/src/debug/libktorrent-1.1.2/src/dht/rpcserver.cpp:91
#4  0x0000003b40c73ee5 in QThreadPrivate::start (arg=0xe7c0c0) at thread/qthread_unix.cpp:331
#5  0x0000003b54c06ccb in start_thread (arg=0x7fd02d8b9700) at pthread_create.c:301
#6  0x0000003b540e0c2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 3 (Thread 0x7fd0075f6700 (LWP 2792)):
#0  utp::UTPServer::preparePolling (this=0xd72e40, p=0x1d2175c0, mode=net::Poll::INPUT, conn=...) at /usr/src/debug/libktorrent-1.1.2/src/utp/utpserver.cpp:451
#1  0x000000332fb1aaf3 in utp::UTPSocket::prepare (this=0x7fd020cc65e0, p=0x1d2175c0, mode=net::Poll::INPUT) at /usr/src/debug/libktorrent-1.1.2/src/utp/utpsocket.cpp:212
#2  0x000000332fa7a406 in net::DownloadThread::waitForSocketReady (this=0x1d2175b0) at /usr/src/debug/libktorrent-1.1.2/src/net/downloadthread.cpp:123
#3  0x000000332fa7a506 in net::DownloadThread::update (this=0x1d2175b0) at /usr/src/debug/libktorrent-1.1.2/src/net/downloadthread.cpp:48
#4  0x000000332fa7a709 in net::NetworkThread::run (this=0x1d2175b0) at /usr/src/debug/libktorrent-1.1.2/src/net/networkthread.cpp:48
#5  0x0000003b40c73ee5 in QThreadPrivate::start (arg=0x1d2175b0) at thread/qthread_unix.cpp:331
#6  0x0000003b54c06ccb in start_thread (arg=0x7fd0075f6700) at pthread_create.c:301
#7  0x0000003b540e0c2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7fd006df5700 (LWP 2793)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x0000003b40c72fe3 in QMutexPrivate::wait (this=0x1d170d60, timeout=-1) at thread/qmutex_unix.cpp:84
#2  0x0000003b40c6f9d5 in QMutex::lock (this=0x1d174eb0) at thread/qmutex.cpp:167
#3  0x000000332fa79b8a in net::UploadThread::waitForSocketsReady (this=0x1d1944a0) at /usr/src/debug/libktorrent-1.1.2/src/net/uploadthread.cpp:112
#4  0x000000332fa79de6 in net::UploadThread::update (this=0x1d1944a0) at /usr/src/debug/libktorrent-1.1.2/src/net/uploadthread.cpp:45
#5  0x000000332fa7a709 in net::NetworkThread::run (this=0x1d1944a0) at /usr/src/debug/libktorrent-1.1.2/src/net/networkthread.cpp:48
#6  0x0000003b40c73ee5 in QThreadPrivate::start (arg=0x1d1944a0) at thread/qthread_unix.cpp:331
#7  0x0000003b54c06ccb in start_thread (arg=0x7fd006df5700) at pthread_create.c:301
#8  0x0000003b540e0c2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7fd0398a2840 (LWP 2609)):
[KCrash Handler]
#6  QAbstractSocketEngine::state (this=0x400000058b3e50) at socket/qabstractsocketengine.cpp:186
#7  0x0000003b420a94f8 in QNativeSocketEngine::waitForReadOrWrite (this=0x400000058b3e50, readyToRead=<value optimized out>, readyToWrite=0x7fff9b1f449e, checkRead=true, checkWrite=<value optimized out>, msecs=-1, timedOut=0x0) at socket/qnativesocketengine.cpp:988
#8  0x0000003b420ba9cd in QAbstractSocket::waitForBytesWritten (this=0x1f1fc680, msecs=-1) at socket/qabstractsocket.cpp:1928
#9  0x0000003b468c3672 in KIO::SocketConnectionBackend::sendCommand (this=0x1f502700, task=...) at /usr/src/debug/kdelibs-4.6.5/kio/kio/connection.cpp:294
#10 0x0000003b468c49cf in KIO::Connection::sendnow (this=0x121d34b0, _cmd=48, data=...) at /usr/src/debug/kdelibs-4.6.5/kio/kio/connection.cpp:505
#11 0x0000003b468c5da6 in KIO::ConnectionPrivate::dequeue (this=0x1e003da0) at /usr/src/debug/kdelibs-4.6.5/kio/kio/connection.cpp:78
#12 0x0000003b4698dc94 in KIO::Slave::accept (this=<value optimized out>) at /usr/src/debug/kdelibs-4.6.5/kio/kio/slave.cpp:120
#13 0x0000003b4698ea74 in KIO::Slave::qt_metacall (this=0x1f286460, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff9b1f4640) at /usr/src/debug/kdelibs-4.6.5/x86_64-redhat-linux-gnu/kio/slave.moc:81
#14 0x0000003b40d71acf in QMetaObject::activate (sender=0x1f1ffd30, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x0) at kernel/qobject.cpp:3278
#15 0x0000003b468c5370 in KIO::ConnectionServer::qt_metacall (this=0x1f1ffd30, _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 0x0000003b40d71acf in QMetaObject::activate (sender=0x1f8777e0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x0) at kernel/qobject.cpp:3278
#17 0x0000003b468c526c in KIO::AbstractConnectionBackend::qt_metacall (this=0x1f8777e0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff9b1f4850) at /usr/src/debug/kdelibs-4.6.5/x86_64-redhat-linux-gnu/kio/connection_p.moc:78
#18 0x0000003b468c52b8 in KIO::SocketConnectionBackend::qt_metacall (this=0x1f8777e0, _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 0x0000003b40d71acf in QMetaObject::activate (sender=0x1f41ee30, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x0) at kernel/qobject.cpp:3278
#20 0x0000003b443b9c80 in KLocalSocketServer::incomingConnection (this=0x1f41ee30, descriptor=1206) at /usr/src/debug/kdelibs-4.6.5/kdecore/network/klocalsocket.cpp:212
#21 0x0000003b44426fb5 in KLocalSocketServerPrivate::processSocketActivity (this=0x1e58f480) at /usr/src/debug/kdelibs-4.6.5/kdecore/network/klocalsocket_unix.cpp:394
#22 0x0000003b443b9b32 in KLocalSocketServer::qt_metacall (this=0x1f41ee30, _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 0x0000003b40d71acf in QMetaObject::activate (sender=0x1e58f4d0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff9b1f4a50) at kernel/qobject.cpp:3278
#24 0x0000003b40dba1ce in QSocketNotifier::activated (this=<value optimized out>, _t1=404) at .moc/release-shared/moc_qsocketnotifier.cpp:89
#25 0x0000003b40d7814b in QSocketNotifier::event (this=0x1e58f4d0, e=0x7fff9b1f50e0) at kernel/qsocketnotifier.cpp:317
#26 0x0000003b435b9c14 in QApplicationPrivate::notify_helper (this=0xd6c830, receiver=0x1e58f4d0, e=0x7fff9b1f50e0) at kernel/qapplication.cpp:4481
#27 0x0000003b435be7ca in QApplication::notify (this=<value optimized out>, receiver=0x1e58f4d0, e=0x7fff9b1f50e0) 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 0x0000003b40d5d0dc in QCoreApplication::notifyInternal (this=0x7fff9b1f53c0, receiver=0x1e58f4d0, event=0x7fff9b1f50e0) at kernel/qcoreapplication.cpp:787
#30 0x0000003b40d87c89 in sendEvent (source=0xd6e240) at kernel/qcoreapplication.h:215
#31 socketNotifierSourceDispatch (source=0xd6e240) at kernel/qeventdispatcher_glib.cpp:110
#32 0x0000003b53c41e33 in g_main_dispatch (context=0xd48fe0) at gmain.c:2149
#33 g_main_context_dispatch (context=0xd48fe0) at gmain.c:2702
#34 0x0000003b53c42610 in g_main_context_iterate (context=0xd48fe0, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2780
#35 0x0000003b53c428ad in g_main_context_iteration (context=0xd48fe0, may_block=1) at gmain.c:2843
#36 0x0000003b40d882cf in QEventDispatcherGlib::processEvents (this=0xd163b0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#37 0x0000003b4365f55e in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:207
#38 0x0000003b40d5c472 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#39 0x0000003b40d5c6bc in QEventLoop::exec (this=0x7fff9b1f5320, flags=...) at kernel/qeventloop.cpp:201
#40 0x0000003b40d60b7b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#41 0x00000000004298eb in main (argc=1, argv=0x7fff9b1f6238) at /usr/src/debug/ktorrent-4.1.2/ktorrent/main.cpp:177

Possible duplicates by query: bug 286344, bug 284683, bug 280534, bug 280477, bug 280214.

Reported using DrKonqi
Comment 1 Christoph Feck 2011-11-13 10:06:39 UTC
George, did you succeed with compiling ktorrent from git master branch? From what I can see, a recent commit should have fixed it.
Comment 2 Joris Guisson 2011-11-13 17:17:49 UTC

*** This bug has been marked as a duplicate of bug 274544 ***
Comment 3 George R. Goffe 2011-11-15 17:35:14 UTC
Christoph,

Thanks for the reminder.

I opened a bug at Red Hat about automoc4 reporting the wrong version but this did NOT affect the problem with Ktorrent failing to build. I actually removed automoc4 completely from my system and still got this bug! Kevin recommended removing CMakeCache.txt. I did this and builds started succeeding. Here's the RH bug.

https://bugzilla.redhat.com/show_bug.cgi?id=748115

I have been building Ktorrent on my FC14 x86_64 system ever since. I'm not sure that I like the direction that Ktorrent is heading so I've returned to the pre development version. I wish I could influence the developer's efforts. Ktorrent is the best "torrent" manager I've found. I could make a list of what I think is important if you're interested.

THANK you so much for all your help with this.

Regards,

George...