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

Spontaneous crash (might be related to queue manager)

Tags: None
(comma "," separated)
User avatar
kriko
Registered Member
Posts
164
Karma
0
OS
Seems like ktorrent crashes when I move a single torrent up within queue manager list, but it doesn't happen every time.
Is there any way I can improve this bug report?

Code: Select all
Application: KTorrent (ktorrent), signal: Aborted
[Current thread is 1 (Thread 0x7fab2bdff760 (LWP 20106))]

Thread 5 (Thread 0x7fab17635710 (LWP 20108)):
#0  0x00007fffe4d91851 in clock_gettime ()
#1  0x00007fab22bdf2a3 in clock_gettime () from /lib64/librt.so.1
#2  0x00007fab293b65ff in qt_gettime () at kernel/qcore_unix.cpp:111
#3  0x00007fab293b666b in qt_safe_select (nfds=24, fdread=0x88ab60, fdwrite=0x88adf8, fdexcept=0x88b090, orig_timeout=0x7fab17634cf0) at kernel/qcore_unix.cpp:147
#4  0x00007fab293bb53b in QEventDispatcherUNIXPrivate::doSelect (this=0x88a9a0, flags=..., timeout=0x7fab17634cf0) at kernel/qeventdispatcher_unix.cpp:218
#5  0x00007fab293bc8af in QEventDispatcherUNIX::processEvents (this=0x899c60, flags=...) at kernel/qeventdispatcher_unix.cpp:935
#6  0x00007fab29390292 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007fab29390495 in QEventLoop::exec (this=0x7fab17634dc0, flags=...) at kernel/qeventloop.cpp:201
#8  0x00007fab292a72cf in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#9  0x00007fab2b969a63 in utp::UTPServerThread::run (this=0x864630) at /home/kriko/workspace/repo/ktorrent/libktorrent/src/utp/utpserverthread.cpp:44
#10 0x00007fab292a9bf5 in QThreadPrivate::start (arg=0x864630) at thread/qthread_unix.cpp:248
#11 0x00007fab2901ba4f in start_thread () from /lib64/libpthread.so.0
#12 0x00007fab2799e82d in clone () from /lib64/libc.so.6
#13 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fab16e34710 (LWP 20109)):
#0  0x00007fab279956b3 in poll () from /lib64/libc.so.6
#1  0x00007fab2b8a9f6a in net::Poll::poll (this=0x7fab16e33d60, timeout=500) at /home/kriko/workspace/repo/ktorrent/libktorrent/src/net/poll.cpp:99
#2  0x00007fab2b927a72 in dht::RPCServer::Private::run (this=0x8102e0) at /home/kriko/workspace/repo/ktorrent/libktorrent/src/dht/rpcserver.cpp:95
#3  0x00007fab292a9bf5 in QThreadPrivate::start (arg=0x8102e0) at thread/qthread_unix.cpp:248
#4  0x00007fab2901ba4f in start_thread () from /lib64/libpthread.so.0
#5  0x00007fab2799e82d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fab132c1710 (LWP 20125)):
#0  0x00007fab2902039c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fab292a8d23 in QMutexPrivate::wait (this=0x712790, timeout=-1) at thread/qmutex_unix.cpp:84
#2  0x00007fab292a5465 in QMutex::lock (this=0x703128) at thread/qmutex.cpp:167
#3  0x00007fab2b8a1ce6 in net::SocketMonitor::lock (this=0x703120) at /home/kriko/workspace/repo/ktorrent/libktorrent/src/net/socketmonitor.cpp:82
#4  0x00007fab2b8a478c in net::DownloadThread::update (this=0x712b20) at /home/kriko/workspace/repo/ktorrent/libktorrent/src/net/downloadthread.cpp:51
#5  0x00007fab2b8a4df2 in net::NetworkThread::run (this=0x712b20) at /home/kriko/workspace/repo/ktorrent/libktorrent/src/net/networkthread.cpp:48
#6  0x00007fab292a9bf5 in QThreadPrivate::start (arg=0x712b20) at thread/qthread_unix.cpp:248
#7  0x00007fab2901ba4f in start_thread () from /lib64/libpthread.so.0
#8  0x00007fab2799e82d in clone () from /lib64/libc.so.6
#9  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fab12ac0710 (LWP 20126)):
#0  0x00007fab2b8c9e4a in std::list<bt::Packet*, std::allocator<bt::Packet*> >::begin (this=0x25b2550) at /usr/include/c++/4.5/bits/stl_list.h:700
#1  0x00007fab2b8c9c2a in std::list<bt::Packet*, std::allocator<bt::Packet*> >::size (this=0x25b2550) at /usr/include/c++/4.5/bits/stl_list.h:806
#2  0x00007fab2b8c968a in bt::PacketWriter::getNumPacketsToWrite (this=0x25b2530) at /home/kriko/workspace/repo/ktorrent/libktorrent/src/peer/packetwriter.cpp:308
#3  0x00007fab2b8c95aa in bt::PacketWriter::hasBytesToWrite (this=0x25b2530) at /home/kriko/workspace/repo/ktorrent/libktorrent/src/peer/packetwriter.cpp:286
#4  0x00007fab2b8aed0c in mse::StreamSocket::hasBytesToWrite (this=0x2382ba0) at /home/kriko/workspace/repo/ktorrent/libktorrent/src/mse/streamsocket.cpp:309
#5  0x00007fab2b8a3c11 in net::BufferedSocket::bytesReadyToWrite (this=0x191ba60) at /home/kriko/workspace/repo/ktorrent/libktorrent/src/net/bufferedsocket.h:118
#6  0x00007fab2b8a387e in net::UploadThread::waitForSocketsReady (this=0x713070) at /home/kriko/workspace/repo/ktorrent/libktorrent/src/net/uploadthread.cpp:122
#7  0x00007fab2b8a350f in net::UploadThread::update (this=0x713070) at /home/kriko/workspace/repo/ktorrent/libktorrent/src/net/uploadthread.cpp:45
#8  0x00007fab2b8a4df2 in net::NetworkThread::run (this=0x713070) at /home/kriko/workspace/repo/ktorrent/libktorrent/src/net/networkthread.cpp:48
#9  0x00007fab292a9bf5 in QThreadPrivate::start (arg=0x713070) at thread/qthread_unix.cpp:248
#10 0x00007fab2901ba4f in start_thread () from /lib64/libpthread.so.0
#11 0x00007fab2799e82d in clone () from /lib64/libc.so.6
#12 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fab2bdff760 (LWP 20106)):
[KCrash Handler]
#6  0x00007fab279009e5 in raise () from /lib64/libc.so.6
#7  0x00007fab27901ee6 in abort () from /lib64/libc.so.6
#8  0x00007fab2b892c8b in bt::QtMessageOutput (type=QtFatalMsg, msg=0x2122238 "ASSERT: \"!isEmpty()\" in file /usr/include/QtCore/qlist.h, line 263")
    at /home/kriko/workspace/repo/ktorrent/libktorrent/src/util/log.cpp:305
#9  0x00007fab292a192e in qt_message_output (msgType=QtFatalMsg, buf=<value optimized out>) at global/qglobal.cpp:2212
#10 0x00007fab292a1b4d in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7fab293ed488 "ASSERT: \"%s\" in file %s, line %d", ap=0x7fffe4c67b40)
    at global/qglobal.cpp:2312
#11 0x00007fab292a1ce5 in qFatal (msg=<value optimized out>) at global/qglobal.cpp:2495
#12 0x00007fab292a1d2a in qt_assert (assertion=0x4e8a <Address 0x4e8a out of bounds>, file=0x6 <Address 0x6 out of bounds>, line=-1) at global/qglobal.cpp:2011
#13 0x000000000044f78a in QList<int>::first (this=0x7fffe4c67cc0) at /usr/include/QtCore/qlist.h:263
#14 0x000000000044f52e in QList<int>::front (this=0x7fffe4c67cc0) at /usr/include/QtCore/qlist.h:279
#15 0x000000000044dfc2 in kt::QueueManagerWidget::moveTopClicked (this=0x9759c0) at /home/kriko/workspace/repo/ktorrent/ktorrent/ktorrent/tools/queuemanagerwidget.cpp:171
#16 0x000000000044f05d in kt::QueueManagerWidget::qt_metacall (this=0x9759c0, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0x7fffe4c67ef0)
    at /home/kriko/workspace/repo/ktorrent/ktorrent/build/ktorrent/queuemanagerwidget.moc:91
#17 0x00007fab293a4a1f in QMetaObject::activate (sender=0x9dc110, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fffe4c67ef0) at kernel/qobject.cpp:3295
#18 0x00007fab2855fd12 in QAction::triggered (this=<value optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#19 0x00007fab2855ff0a in QAction::activate (this=0x9dc110, event=<value optimized out>) at kernel/qaction.cpp:1255
#20 0x00007fab289079fa in QAbstractButtonPrivate::click (this=0x99ec60) at widgets/qabstractbutton.cpp:528
#21 0x00007fab28907cac in QAbstractButton::mouseReleaseEvent (this=0x9bac00, e=0x7fffe4c688a0) at widgets/qabstractbutton.cpp:1121
#22 0x00007fab289c125a in QToolButton::mouseReleaseEvent (this=<value optimized out>, e=<value optimized out>) at widgets/qtoolbutton.cpp:721
#23 0x00007fab285b5dbc in QWidget::event (this=0x9bac00, event=0x7fffe4c688a0) at kernel/qwidget.cpp:8044
#24 0x00007fab285654d4 in QApplicationPrivate::notify_helper (this=0x740050, receiver=0x9bac00, e=0x7fffe4c688a0) at kernel/qapplication.cpp:4302
#25 0x00007fab2856e34a in QApplication::notify (this=<value optimized out>, receiver=0x9bac00, e=0x7fffe4c688a0) at kernel/qapplication.cpp:3867
#26 0x000000000043f9ea in kt::App::notify (this=0x7fffe4c69430, receiver=0x9bac00, event=0x7fffe4c688a0) at /home/kriko/workspace/repo/ktorrent/ktorrent/ktorrent/app.cpp:97
#27 0x00007fab29390e4c in QCoreApplication::notifyInternal (this=0x7fffe4c69430, receiver=0x9bac00, event=0x7fffe4c688a0) at kernel/qcoreapplication.cpp:726
#28 0x00007fab285671e5 in sendEvent (receiver=0x9bac00, event=0x7fffe4c688a0, alienWidget=0x9bac00, nativeWidget=0x820930, buttonDown=0x7fab29011b28, lastMouseReceiver=..., spontaneous=true)
    at ../../src/corelib/kernel/qcoreapplication.h:215
#29 QApplicationPrivate::sendMouseEvent (receiver=0x9bac00, event=0x7fffe4c688a0, alienWidget=0x9bac00, nativeWidget=0x820930, buttonDown=0x7fab29011b28, lastMouseReceiver=..., spontaneous=true)
    at kernel/qapplication.cpp:2967
#30 0x00007fab285e16c8 in QETWidget::translateMouseEvent (this=0x820930, event=<value optimized out>) at kernel/qapplication_x11.cpp:4380
#31 0x00007fab285dfe19 in QApplication::x11ProcessEvent (this=0x7fffe4c69430, event=0x7fffe4c69210) at kernel/qapplication_x11.cpp:3513
#32 0x00007fab28606bf4 in QEventDispatcherX11::processEvents (this=0x70f880, flags=...) at kernel/qeventdispatcher_x11.cpp:132
#33 0x00007fab29390292 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#34 0x00007fab29390495 in QEventLoop::exec (this=0x7fffe4c693a0, flags=...) at kernel/qeventloop.cpp:201
#35 0x00007fab2939488b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#36 0x000000000042ae5c in main (argc=1, argv=0x7fffe4c6a1e8) at /home/kriko/workspace/repo/ktorrent/ktorrent/ktorrent/main.cpp:176
George
Moderator
Posts
5421
Karma
1
I can only see this happening if the buttons to move torrents are enabled and no torrent is selected, which should be impossible.
George
Moderator
Posts
5421
Karma
1
I have added some safety checks which should prevent the crash. But I still don't understand how you can get in to this situation.
User avatar
kriko
Registered Member
Posts
164
Karma
0
OS
I'll try to reproduce, but so far no luck.
Let's consider it fixed for now.


Thank you!


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]