This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[svn] ktorrent hangs after a time

Tags: None
(comma "," separated)
imported4-Tomasu
Registered Member
Posts
302
Karma
0

[svn] ktorrent hangs after a time

Mon Oct 11, 2010 3:10 am
I've got a backtrace

Code: Select all
(gdb) thread apply all bt

Thread 9 (Thread 0x7f90928ec710 (LWP 28961)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f909f529583 in QMutexPrivate::wait (this=0x1907b00, timeout=-1) at thread/qmutex_unix.cpp:84
#2  0x00007f909f524e05 in QMutex::lock (this=0x1812838) at thread/qmutex.cpp:167
#3  0x00007f90a1b2227d in QMutexLocker::relock (this=0x7f90928eb3c0) at /usr/include/qt4/QtCore/qmutex.h:120
#4  0x00007f90a1bc5d76 in utp::UTPServer::Private::wakeUpPollPipes (this=<value optimized out>, conn=<value optimized out>, readable=87, writeable=255)
    at /home/moose/build/libktorrent-trunk/src/utp/utpserver.cpp:241
#5  0x00007f90a1bcdd22 in utp::Connection::checkState (this=0x7f90702aff00) at /home/moose/build/libktorrent-trunk/src/utp/connection.cpp:279
#6  0x00007f90a1bcfbe8 in utp::Connection::handleTimeout (this=0x7f90702aff00) at /home/moose/build/libktorrent-trunk/src/utp/connection.cpp:662
#7  0x00007f909f628ba3 in QObject::event (this=0x7f90702aff00, e=0x7f90928ebb60) at kernel/qobject.cpp:1212
#8  0x00007f909e73e32c in QApplicationPrivate::notify_helper (this=0x180e900, receiver=0x7f90702aff00, e=0x7f90928ebb60) at kernel/qapplication.cpp:4302
#9  0x00007f909e74480b in QApplication::notify (this=0x7fff4a58c310, receiver=0x7f90702aff00, e=0x7f90928ebb60) at kernel/qapplication.cpp:4185
#10 0x000000000043c1ce in kt::App::notify (this=0x7fff4a58c310, receiver=0x7f90702aff00, event=0x7f90928ebb60) at /home/moose/build/ktorrent-trunk/ktorrent/app.cpp:97
#11 0x00007f909f61915c in QCoreApplication::notifyInternal (this=0x7fff4a58c310, receiver=0x7f90702aff00, event=0x7f90928ebb60) at kernel/qcoreapplication.cpp:726
#12 0x00007f909f645ed2 in QCoreApplication::sendEvent (this=0x7f908c0050d0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#13 QTimerInfoList::activateTimers (this=0x7f908c0050d0) at kernel/qeventdispatcher_unix.cpp:603
#14 0x00007f909f642a48 in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:184
#15 idleTimerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:231
#16 0x00007f909a2626c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#17 0x00007f909a266538 in ?? () from /lib/libglib-2.0.so.0
#18 0x00007f909a2666ec in g_main_context_iteration () from /lib/libglib-2.0.so.0
#19 0x00007f909f642713 in QEventDispatcherGlib::processEvents (this=0x1907430, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#20 0x00007f909f617a82 in QEventLoop::processEvents (this=<value optimized out>, flags=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
) at kernel/qeventloop.cpp:149
#21 0x00007f909f617e5c in QEventLoop::exec (this=0x7f90928ebdd0, flags=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
) at kernel/qeventloop.cpp:201
#22 0x00007f909f52779b in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#23 0x00007f90a1bcdb46 in utp::UTPServerThread::run (this=0x19064c0) at /home/moose/build/libktorrent-trunk/src/utp/utpserverthread.cpp:44
#24 0x00007f909f529e35 in QThreadPrivate::start (arg=0x19064c0) at thread/qthread_unix.cpp:248
#25 0x00007f909af488ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#26 0x00007f909db0801d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#27 0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f90920eb710 (LWP 28962)):
#0  0x00007f909dafd103 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=500) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f90a1b286a0 in net::Poll::poll (this=0x7f90920ead50, timeout=<value optimized out>) at /home/moose/build/libktorrent-trunk/src/net/poll.cpp:99
#2  0x00007f90a1b966b4 in dht::RPCServer::Private::run (this=<value optimized out>) at /home/moose/build/libktorrent-trunk/src/dht/rpcserver.cpp:95
#3  0x00007f909f529e35 in QThreadPrivate::start (arg=0x190d640) at thread/qthread_unix.cpp:248
#4  0x00007f909af488ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#5  0x00007f909db0801d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f907c8eb710 (LWP 28968)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007f9080901f41 in ?? () from /usr/lib/libxine.so.1
---Type <return> to continue, or q <return> to quit---
#2  0x00007f909af488ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#3  0x00007f909db0801d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f90930ed710 (LWP 28969)):
#0  0x00007f909dafd103 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f909a266299 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f909a2666ec in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007f909f642713 in QEventDispatcherGlib::processEvents (this=0x2228880, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#4  0x00007f909f617a82 in QEventLoop::processEvents (this=<value optimized out>, flags=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
) at kernel/qeventloop.cpp:149
#5  0x00007f909f617e5c in QEventLoop::exec (this=0x7f90930ecdc0, flags=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
) at kernel/qeventloop.cpp:201
#6  0x00007f909f52779b in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#7  0x00007f9080b5e400 in ?? () from /usr/lib/qt4/plugins/phonon_backend/phonon_xine.so
#8  0x00007f909f529e35 in QThreadPrivate::start (arg=0x22289e0) at thread/qthread_unix.cpp:248
#9  0x00007f909af488ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007f909db0801d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f907afad710 (LWP 28973)):
#0  0x00007f909dafd103 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=333) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f907a5a88d5 in ?? () from /usr/lib/xine/plugins/1.29/xineplug_ao_out_alsa.so
#2  0x00007f909af488ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#3  0x00007f909db0801d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f907a5a3710 (LWP 28974)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f9080912aab in ?? () from /usr/lib/libxine.so.1
#2  0x00007f909af488ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#3  0x00007f909db0801d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f9075fab710 (LWP 28985)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f909f529583 in QMutexPrivate::wait (this=0x7f9070a17040, timeout=-1) at thread/qmutex_unix.cpp:84
#2  0x00007f909f524e25 in QMutex::lock (this=0x7f90702aff50) at thread/qmutex.cpp:205
#3  0x00007f90a1b2227d in QMutexLocker::relock (this=0x7f9075faaca0) at /usr/include/qt4/QtCore/qmutex.h:120
#4  0x00007f90a1bcdf8d in utp::Connection::bytesAvailable (this=0x7f90702aff00) at /home/moose/build/libktorrent-trunk/src/utp/connection.cpp:550
#5  0x00007f90a1bc5f85 in utp::UTPServer::preparePolling (this=0x1907d70, p=0x17de220, mode=net::Poll::INPUT, conn=0x7f90702aff00)
    at /home/moose/build/libktorrent-trunk/src/utp/utpserver.cpp:560
#6  0x00007f90a1bd24e0 in utp::UTPSocket::prepare (this=0x7f9071706830, p=0x17de220, mode=net::Poll::INPUT) at /home/moose/build/libktorrent-trunk/src/utp/utpsocket.cpp:201
#7  0x00007f90a1b23c43 in net::DownloadThread::waitForSocketReady (this=0x17de210) at /home/moose/build/libktorrent-trunk/src/net/downloadthread.cpp:123
#8  0x00007f90a1b23cb6 in net::DownloadThread::update (this=0x7f9070a1708c) at /home/moose/build/libktorrent-trunk/src/net/downloadthread.cpp:48
#9  0x00007f90a1b246d9 in net::NetworkThread::run (this=0x17de210) at /home/moose/build/libktorrent-trunk/src/net/networkthread.cpp:48
---Type <return> to continue, or q <return> to quit---
#10 0x00007f909f529e35 in QThreadPrivate::start (arg=0x17de210) at thread/qthread_unix.cpp:248
#11 0x00007f909af488ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#12 0x00007f909db0801d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f90757aa710 (LWP 28986)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f909f529583 in QMutexPrivate::wait (this=0x17de190, timeout=-1) at thread/qmutex_unix.cpp:84
#2  0x00007f909f524e05 in QMutex::lock (this=0x6e1688) at thread/qmutex.cpp:167
#3  0x00007f90a1b22d4c in net::UploadThread::waitForSocketsReady (this=0x17de860) at /home/moose/build/libktorrent-trunk/src/net/uploadthread.cpp:112
#4  0x00007f90a1b22e76 in net::UploadThread::update (this=0x17de1dc) at /home/moose/build/libktorrent-trunk/src/net/uploadthread.cpp:45
#5  0x00007f90a1b246d9 in net::NetworkThread::run (this=0x17de860) at /home/moose/build/libktorrent-trunk/src/net/networkthread.cpp:48
#6  0x00007f909f529e35 in QThreadPrivate::start (arg=0x17de860) at thread/qthread_unix.cpp:248
#7  0x00007f909af488ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#8  0x00007f909db0801d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f90a2069760 (LWP 28959)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f909f529583 in QMutexPrivate::wait (this=0x1907b00, timeout=-1) at thread/qmutex_unix.cpp:84
#2  0x00007f909f524e05 in QMutex::lock (this=0x1812838) at thread/qmutex.cpp:167
#3  0x00007f90a1b2227d in QMutexLocker::relock (this=0x7fff4a589a70) at /usr/include/qt4/QtCore/qmutex.h:120
#4  0x00007f90a1bc5f0d in utp::UTPServer::preparePolling (this=0x1907d70, p=0x6e1080, mode=3160, conn=0xffffffffffffffff)
    at /home/moose/build/libktorrent-trunk/src/utp/utpserver.cpp:550
#5  0x00007f90a1bd24e0 in utp::UTPSocket::prepare (this=0x7f9070054d20, p=0x6e1080, mode=net::Poll::INPUT) at /home/moose/build/libktorrent-trunk/src/utp/utpsocket.cpp:201
#6  0x00007f90a1b316f9 in bt::AuthenticationMonitor::update (this=0x6e1080) at /home/moose/build/libktorrent-trunk/src/peer/authenticationmonitor.cpp:93
#7  0x000000000042e2d3 in kt::Core::update (this=0x7f908c003f20) at /home/moose/build/ktorrent-trunk/ktorrent/core.cpp:1038
#8  0x000000000043225d in kt::Core::qt_metacall (this=0x7f908c003f20, _c=QMetaObject::InvokeMetaMethod, _id=-512, _a=0x7fff4a589cd0)
    at /home/moose/build/ktorrent-trunk/build/ktorrent/core.moc:159
#9  0x00007f909f62c346 in QMetaObject::activate (sender=0x7f908c003f48, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff)
    at kernel/qobject.cpp:3295
#10 0x00007f909f628ba3 in QObject::event (this=0x7f908c003f48, e=0x7fff4a58a400) at kernel/qobject.cpp:1212
#11 0x00007f909e73e32c in QApplicationPrivate::notify_helper (this=0x180e900, receiver=0x7f908c003f48, e=0x7fff4a58a400) at kernel/qapplication.cpp:4302
#12 0x00007f909e74480b in QApplication::notify (this=0x7fff4a58c310, receiver=0x7f908c003f48, e=0x7fff4a58a400) at kernel/qapplication.cpp:4185
#13 0x000000000043c1ce in kt::App::notify (this=0x7fff4a58c310, receiver=0x7f908c003f48, event=0x7fff4a58a400) at /home/moose/build/ktorrent-trunk/ktorrent/app.cpp:97
#14 0x00007f909f61915c in QCoreApplication::notifyInternal (this=0x7fff4a58c310, receiver=0x7f908c003f48, event=0x7fff4a58a400) at kernel/qcoreapplication.cpp:726
#15 0x00007f909f645ed2 in QCoreApplication::sendEvent (this=0x180b9b0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#16 QTimerInfoList::activateTimers (this=0x180b9b0) at kernel/qeventdispatcher_unix.cpp:603
#17 0x00007f909f642a48 in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:184
#18 idleTimerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:231
#19 0x00007f909a2626c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#20 0x00007f909a266538 in ?? () from /lib/libglib-2.0.so.0
#21 0x00007f909a2666ec in g_main_context_iteration () from /lib/libglib-2.0.so.0
#22 0x00007f909f642713 in QEventDispatcherGlib::processEvents (this=0x17dc200, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
---Type <return> to continue, or q <return> to quit---
#23 0x00007f909e7ee14e in QGuiEventDispatcherGlib::processEvents (this=0x1907b4c, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#24 0x00007f909f617a82 in QEventLoop::processEvents (this=<value optimized out>, flags=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
) at kernel/qeventloop.cpp:149
#25 0x00007f909f617e5c in QEventLoop::exec (this=0x7fff4a58a6a0, flags=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
) at kernel/qeventloop.cpp:201
#26 0x00007f909ec08e7e in QDialog::exec (this=0x7fff4a58a730) at dialogs/qdialog.cpp:546
#27 0x00007f90a0759d5a in KInputDialog::getText (caption=<value optimized out>, label=<value optimized out>, value=<value optimized out>, ok=0x7fff4a58a8cf,
    parent=<value optimized out>, validator=0x0, mask=..., whatsThis=..., completionList=...) at ../../kdeui/dialogs/kinputdialog.cpp:352
#28 0x00000000004533ed in kt::GroupView::addNewGroup (this=<value optimized out>) at /home/moose/build/ktorrent-trunk/ktorrent/groups/groupview.cpp:322
#29 0x0000000000454c5c in kt::GroupView::qt_metacall (this=0x7f908c0483f0, _c=QMetaObject::InvokeMetaMethod, _id=3160, _a=0x7fff4a58aa30)
    at /home/moose/build/ktorrent-trunk/build/ktorrent/groupview.moc:104
#30 0x00007f909f62c346 in QMetaObject::activate (sender=0x18c1f20, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff)
    at kernel/qobject.cpp:3295
#31 0x00007f909e738132 in QAction::triggered (this=0x1907b4c, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#32 0x00007f909e73a1ab in QAction::activate (this=0x18c1f20, event=<value optimized out>) at kernel/qaction.cpp:1255
#33 0x00007f909eb79981 in QMenuPrivate::activateCausedStack (this=<value optimized out>, causedStack=..., action=0x18c1f20, action_e=QAction::Trigger, self=true)
    at widgets/qmenu.cpp:1002
#34 0x00007f909eb7f512 in QMenuPrivate::activateAction (this=0x7f908cbc2a30, action=0x18c1f20, action_e=QAction::Trigger, self=<value optimized out>) at widgets/qmenu.cpp:1094
#35 0x00007f90a08b58be in KMenu::mouseReleaseEvent (this=0x7f908cbbc410, e=0x80) at ../../kdeui/widgets/kmenu.cpp:471
#36 0x00007f909e794602 in QWidget::event (this=0x7f908cbbc410, event=0x7fff4a58b7e0) at kernel/qwidget.cpp:8044
#37 0x00007f909eb8170b in QMenu::event (this=0x7f908cbbc410, e=0x7fff4a58b7e0) at widgets/qmenu.cpp:2421
#38 0x00007f909e73e32c in QApplicationPrivate::notify_helper (this=0x180e900, receiver=0x7f908cbbc410, e=0x7fff4a58b7e0) at kernel/qapplication.cpp:4302
#39 0x00007f909e744fdb in QApplication::notify (this=0x7fff4a58c310, receiver=0x7f908cbbc410, e=0x7fff4a58b7e0) at kernel/qapplication.cpp:3867
#40 0x000000000043c1ce in kt::App::notify (this=0x7fff4a58c310, receiver=0x7f908cbbc410, event=0x7fff4a58b7e0) at /home/moose/build/ktorrent-trunk/ktorrent/app.cpp:97
#41 0x00007f909f61915c in QCoreApplication::notifyInternal (this=0x7fff4a58c310, receiver=0x7f908cbbc410, event=0x7fff4a58b7e0) at kernel/qcoreapplication.cpp:726
#42 0x00007f909e7441be in QCoreApplication::sendEvent (receiver=0x7f908cbbc410, event=0x7fff4a58b7e0, alienWidget=0x0, nativeWidget=0x7f908cbbc410,
    buttonDown=<value optimized out>, lastMouseReceiver=<value optimized out>, spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#43 QApplicationPrivate::sendMouseEvent (receiver=0x7f908cbbc410, event=0x7fff4a58b7e0, alienWidget=0x0, nativeWidget=0x7f908cbbc410, buttonDown=<value optimized out>,
    lastMouseReceiver=<value optimized out>, spontaneous=true) at kernel/qapplication.cpp:2967
#44 0x00007f909e7c44bd in QETWidget::translateMouseEvent (this=0x7f908cbbc410, event=<value optimized out>) at kernel/qapplication_x11.cpp:4314
#45 0x00007f909e7c29ac in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fff4a58bf60) at kernel/qapplication_x11.cpp:3513
#46 0x00007f909e7ee552 in x11EventSourceDispatch (s=0x180c5d0, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#47 0x00007f909a2626c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#48 0x00007f909a266538 in ?? () from /lib/libglib-2.0.so.0
#49 0x00007f909a2666ec in g_main_context_iteration () from /lib/libglib-2.0.so.0
#50 0x00007f909f642713 in QEventDispatcherGlib::processEvents (this=0x17dc200, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#51 0x00007f909e7ee14e in QGuiEventDispatcherGlib::processEvents (this=0x1907b4c, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#52 0x00007f909f617a82 in QEventLoop::processEvents (this=<value optimized out>, flags=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
) at kernel/qeventloop.cpp:149
#53 0x00007f909f617e5c in QEventLoop::exec (this=0x7fff4a58c280, flags=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
) at kernel/qeventloop.cpp:201
#54 0x00007f909f61caeb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#55 0x000000000042c3a9 in main (argc=<value optimized out>, argv=<value optimized out>) at /home/moose/build/ktorrent-trunk/ktorrent/main.cpp:175


I have a somewhat old KDE install (which is probably whats causing the DWARF errors) mind you, and that could be causing it. ktorrent and libktorrent are insalled from trunk as of a couple hours before this post (both showing Revision: 1184618). KDE is 4.4.5 from debian.
George
Moderator
Posts
5421
Karma
1
I see the problem
George
Moderator
Posts
5421
Karma
1
Should be fixed now


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]