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

all peers being choked and related crash on exit

Tags: None
(comma "," separated)
agforsyth
Registered Member
Posts
133
Karma
0
After a few minutes of running KTorrent, my torrents become stalled, and all peers on the torrents show up as choked. Only a restart of KTorrent fixes it, and there are no significant log messages at all.

When this happens, and I quit KTorrent, it crashes with this error:

Code: Select all
Application: KTorrent (ktorrent), signal SIGABRT
[Current thread is 0 (LWP 9912)]

Thread 2 (Thread 0xb417ab90 (LWP 10081)):
#0  0xb7f84430 in __kernel_vsyscall ()
#1  0xb6637a77 in poll () from /lib/tls/i686/cmov/libc.so.6
#2  0xb7e8cb43 in net::DownloadThread::waitForSocketReady (this=0x9af2498, timeout=200) at /home/adam/sources/ktorrent/libbtcore/net/downloadthread.cpp:183
#3  0xb7e8cc39 in net::DownloadThread::update (this=0x9af2498) at /home/adam/sources/ktorrent/libbtcore/net/downloadthread.cpp:53
#4  0xb7e8d738 in net::NetworkThread::run (this=0x9af2498) at /home/adam/sources/ktorrent/libbtcore/net/networkthread.cpp:48
#5  0xb715474e in ?? () from /usr/lib/libQtCore.so.4
#6  0xb5d2b4ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7  0xb66423fe in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb5861700 (LWP 9912)):
[KCrash Handler]
#6  0xb7f84430 in __kernel_vsyscall ()
#7  0xb65896a0 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0xb658b068 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0xb65c71ed in ?? () from /lib/tls/i686/cmov/libc.so.6
#10 0xb65cdfa9 in ?? () from /lib/tls/i686/cmov/libc.so.6
#11 0xb65cfb2d in ?? () from /lib/tls/i686/cmov/libc.so.6
#12 0xb65d1965 in malloc () from /lib/tls/i686/cmov/libc.so.6
#13 0xb714efcd in qMalloc () from /usr/lib/libQtCore.so.4
#14 0xb7157326 in QByteArray::QByteArray () from /usr/lib/libQtCore.so.4
#15 0xb714cba9 in qt_error_string () from /usr/lib/libQtCore.so.4
#16 0xb7153b5f in ?? () from /usr/lib/libQtCore.so.4
#17 0xb7153cdb in ?? () from /usr/lib/libQtCore.so.4
#18 0xb714f41a in QMutex::lock () from /usr/lib/libQtCore.so.4
#19 0xb7e7e7c3 in bt::Log::lock (this=0xb7f5d538) at /home/adam/sources/ktorrent/libbtcore/util/log.cpp:263
#20 0xb7e7e804 in bt::Out (arg=19) at /home/adam/sources/ktorrent/libbtcore/util/log.cpp:271
#21 0xb7e7f0cc in QtMessageOutput (type=QtDebugMsg, msg=0xbf89e844 "QThread: Destroyed while thread is still running") at /home/adam/sources/ktorrent/libbtcore/util/log.cpp:298
#22 0xb714c7a5 in qt_message_output () from /usr/lib/libQtCore.so.4
#23 0xb714ca72 in qWarning () from /usr/lib/libQtCore.so.4
#24 0xb7151c46 in QThread::~QThread () from /usr/lib/libQtCore.so.4
#25 0xb7e8ddb3 in ~NetworkThread (this=0x9af2498) at /home/adam/sources/ktorrent/libbtcore/net/networkthread.cpp:41
#26 0xb7e8c967 in ~DownloadThread (this=0x9af2498) at /home/adam/sources/ktorrent/libbtcore/net/downloadthread.cpp:49
#27 0xb7e8b6cd in ~SocketMonitor (this=0xb7f6156c) at /home/adam/sources/ktorrent/libbtcore/net/socketmonitor.cpp:69
#28 0xb658cf21 in __cxa_finalize () from /lib/tls/i686/cmov/libc.so.6
#29 0xb7e73b14 in __do_global_dtors_aux () from /usr/lib/libbtcore.so.9
#30 0xb7f28260 in _fini () from /usr/lib/libbtcore.so.9
#31 0xb7f93a43 in ?? () from /lib/ld-linux.so.2
#32 0xb658cb89 in exit () from /lib/tls/i686/cmov/libc.so.6
#33 0xb657477d in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#34 0x08062661 in _start () at ../sysdeps/i386/elf/start.S:119


This is an svn build from yesterday; the problem has been occuring for a few days.
George
Moderator
Posts
5421
Karma
1

Wed Feb 04, 2009 10:23 am
Do you know what the abort message was ?
agforsyth
Registered Member
Posts
133
Karma
0

Fri Feb 06, 2009 1:22 pm
I don't know what the abort message was. Here is another crash.
Code: Select all
Application: KTorrent (ktorrent), signal SIGSEGV
[Current thread is 0 (LWP 21259)]

Thread 2 (Thread 0xb4302b90 (LWP 21598)):
#0  0xb80c5430 in __kernel_vsyscall ()
#1  0xb67bba77 in poll () from /lib/tls/i686/cmov/libc.so.6
#2  0xb7fcebd3 in net::DownloadThread::waitForSocketReady (this=0x942d3e0, timeout=50) at /home/adam/sources/ktorrent/libbtcore/net/downloadthread.cpp:183
#3  0xb7fcecc9 in net::DownloadThread::update (this=0x942d3e0) at /home/adam/sources/ktorrent/libbtcore/net/downloadthread.cpp:53
#4  0xb7fcf7c8 in net::NetworkThread::run (this=0x942d3e0) at /home/adam/sources/ktorrent/libbtcore/net/networkthread.cpp:48
#5  0xb72d874e in ?? () from /usr/lib/libQtCore.so.4
#6  0xb5eb24ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7  0xb67c63fe in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb59edad0 (LWP 21259)):
[KCrash Handler]
#6  0xb2f57381 in kt::DownloadedChunkBar::getBitSet (this=0x9afc748) at /home/adam/sources/ktorrent/plugins/infowidget/downloadedchunkbar.cpp:44
#7  0xb2f574c7 in kt::DownloadedChunkBar::drawBarContents (this=0x9afc748, p=0xbfae1238) at /home/adam/sources/ktorrent/plugins/infowidget/downloadedchunkbar.cpp:91
#8  0xb2f57a28 in kt::DownloadedChunkBar::setTC (this=0x9afc748, tc=0x94a8e10) at /home/adam/sources/ktorrent/plugins/infowidget/downloadedchunkbar.cpp:57
#9  0xb2f58dfb in kt::StatusTab::changeTC (this=0x9af0650, tc=0x94a8e10) at /home/adam/sources/ktorrent/plugins/infowidget/statustab.cpp:88
#10 0xb2f5396d in kt::InfoWidgetPlugin::currentTorrentChanged (this=0x9af0608, tc=0x94a8e10) at /home/adam/sources/ktorrent/plugins/infowidget/infowidgetplugin.cpp:160
#11 0xb7f43996 in kt::GUIInterface::notifyViewListeners (this=0x9567b78, tc=0x94a8e10) at /home/adam/sources/ktorrent/libktcore/interfaces/guiinterface.cpp:38
#12 0x08077061 in kt::GUI::currentTabPageChanged (this=0x9567b30, page=0x9be2798) at /home/adam/sources/ktorrent/ktorrent/gui.cpp:675
#13 0x080d0e16 in ideal::MainWindow::qt_metacall (this=0x9567b30, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfae14cc) at /home/adam/sources/ktorrent/build/ideal/mainwindow.moc:65
#14 0x08078f7f in kt::GUI::qt_metacall (this=0x9567b30, _c=QMetaObject::InvokeMetaMethod, _id=46, _a=0xbfae14cc) at /home/adam/sources/ktorrent/build/ktorrent/gui.moc:109
#15 0xb73ddc10 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#16 0xb73de992 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#17 0xb6ec0543 in QTabWidget::currentChanged () from /usr/lib/libQtGui.so.4
#18 0xb6ec23a4 in ?? () from /usr/lib/libQtGui.so.4
#19 0xb6ec2557 in QTabWidget::qt_metacall () from /usr/lib/libQtGui.so.4
#20 0xb7bad79a in KTabWidget::qt_metacall () from /usr/lib/libkdeui.so.5
#21 0xb73ddc10 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#22 0xb73de992 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#23 0xb6eb9123 in QTabBar::currentChanged () from /usr/lib/libQtGui.so.4
#24 0xb6ebddda in QTabBar::setCurrentIndex () from /usr/lib/libQtGui.so.4
#25 0xb6ebe14d in QTabBar::mousePressEvent () from /usr/lib/libQtGui.so.4
#26 0xb7bab0dd in KTabBar::mousePressEvent () from /usr/lib/libkdeui.so.5
#27 0xb6b11939 in QWidget::event () from /usr/lib/libQtGui.so.4
#28 0xb6ebe1e8 in QTabBar::event () from /usr/lib/libQtGui.so.4
#29 0xb6ab987c in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#30 0xb6ac20b1 in QApplication::notify () from /usr/lib/libQtGui.so.4
#31 0xb7aa300d in KApplication::notify () from /usr/lib/libkdeui.so.5
#32 0xb73c8ff1 in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#33 0xb6ac133e in QApplicationPrivate::sendMouseEvent () from /usr/lib/libQtGui.so.4
#34 0xb6b2b676 in ?? () from /usr/lib/libQtGui.so.4
#35 0xb6b2aa05 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#36 0xb6b547ea in ?? () from /usr/lib/libQtGui.so.4
#37 0xb5df6bf8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#38 0xb5dfa2a3 in ?? () from /usr/lib/libglib-2.0.so.0
#39 0xb5dfa461 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#40 0xb73f3628 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#41 0xb6b53ee5 in ?? () from /usr/lib/libQtGui.so.4
#42 0xb73c76ba in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#43 0xb73c787a in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#44 0xb73c9f35 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#45 0xb6ab96f7 in QApplication::exec () from /usr/lib/libQtGui.so.4
#46 0x08065229 in main (argc=1, argv=0xbfae28c4) at /home/adam/sources/ktorrent/ktorrent/main.cpp:171
agforsyth
Registered Member
Posts
133
Karma
0

Fri Feb 06, 2009 4:40 pm
Had the first situation occur again, but the stack was corrupted so no valid backtrace. The last line in the log again was:

Fri Feb 6 11:27:04 2009: SynchronousWait

also, when I started KTorrent again, it repeated this line:

Resetted chunk (number)

in the log for many chunks on the torrent that was attempting to download.
agforsyth
Registered Member
Posts
133
Karma
0

Fri Feb 06, 2009 5:35 pm
And again. Same backtrace as in the first post. Ran ktorrent from the command line this time, here is the output:

Code: Select all
*** glibc detected *** ktorrent: corrupted double-linked list: 0x090f2dd0 ***                                                                                                     
======= Backtrace: =========                                                                                   
/lib/tls/i686/cmov/libc.so.6[0xb6607fa9]                                                                       
/lib/tls/i686/cmov/libc.so.6[0xb6609b2d]                                                                       
/lib/tls/i686/cmov/libc.so.6(__libc_malloc+0x95)[0xb660b965]                                                   
/usr/lib/libQtCore.so.4(_Z7qMallocj+0x1d)[0xb7188fcd]                                                         
/usr/lib/libQtCore.so.4(_ZN10QByteArrayC1Eic+0x36)[0xb7191326]                                                 
/usr/lib/libQtCore.so.4(_Z15qt_error_stringi+0x59)[0xb7186ba9]                                                 
/usr/lib/libQtCore.so.4[0xb718db5f]                                                                           
/usr/lib/libQtCore.so.4[0xb718dcdb]                                                                           
/usr/lib/libQtCore.so.4(_ZN6QMutex4lockEv+0xaa)[0xb718941a]                                                   
/usr/lib/libbtcore.so.9(_ZN2bt3Log4lockEv+0x23)[0xb7e768a3]                                                   
/usr/lib/libbtcore.so.9(_ZN2bt3OutEj+0x34)[0xb7e768e4]                                                         
/usr/lib/libbtcore.so.9[0xb7e771ac]                                                                           
/usr/lib/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x35)[0xb71867a5]                                   
/usr/lib/libQtCore.so.4(_Z8qWarningPKcz+0x62)[0xb7186a72]                                                     
/usr/lib/libQtCore.so.4(_ZN7QThreadD2Ev+0x86)[0xb718bc46]                                                     
/usr/lib/libbtcore.so.9[0xb7e85e93]                                                                           
/usr/lib/libbtcore.so.9[0xb7e84a47]                                                                           
/usr/lib/libbtcore.so.9(_ZN3net13SocketMonitorD1Ev+0x8d)[0xb7e837ad]                                           
/lib/tls/i686/cmov/libc.so.6(__cxa_finalize+0xc1)[0xb65c6f21]                                                 
/usr/lib/libbtcore.so.9[0xb7e6bbf4]                                                                           
/usr/lib/libbtcore.so.9[0xb7f20130]                                                                           
/lib/ld-linux.so.2[0xb7f8aa43]                                                                                 
/lib/tls/i686/cmov/libc.so.6(exit+0x89)[0xb65c6b89]                                                           
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xed)[0xb65ae77d]                                               
ktorrent[0x8062731]                                                                                           
======= Memory map: ========                                                                                   
08048000-08100000 r-xp 00000000 08:03 784083     /usr/bin/ktorrent                                             
08100000-08101000 r--p 000b7000 08:03 784083     /usr/bin/ktorrent                                             
08101000-08103000 rw-p 000b8000 08:03 784083     /usr/bin/ktorrent                                             
090eb000-09a31000 rw-p 090eb000 00:00 0          [heap]                                                       
b1c00000-b1cfe000 rw-p b1c00000 00:00 0                                                                       
b1cfe000-b1d00000 ---p b1cfe000 00:00 0                                                                       
b1de2000-b1df3000 r-xp 00000000 08:03 359409     /lib/libresolv-2.9.so                                         
b1df3000-b1df4000 r--p 00010000 08:03 359409     /lib/libresolv-2.9.so                                         
b1df4000-b1df5000 rw-p 00011000 08:03 359409     /lib/libresolv-2.9.so                                         
b1df5000-b1df7000 rw-p b1df5000 00:00 0                                                                       
b1df7000-b1df8000 ---p b1df7000 00:00 0                                                                       
b1df8000-b25f8000 rwxp b1df8000 00:00 0
b25f8000-b25f9000 ---p b25f8000 00:00 0
b25f9000-b2df9000 rwxp b25f9000 00:00 0
b2df9000-b2e3e000 r-xp 00000000 08:03 806968     /usr/lib/kde4/ktinfowidgetplugin.so
b2e3e000-b2e40000 r--p 00044000 08:03 806968     /usr/lib/kde4/ktinfowidgetplugin.so
b2e40000-b2e41000 rw-p 00046000 08:03 806968     /usr/lib/kde4/ktinfowidgetplugin.so
b2e41000-b2ee1000 r-xp 00000000 08:03 788390     /usr/lib/libsyndication.so.4.2.0
b2ee1000-b2ee3000 r--p 000a0000 08:03 788390     /usr/lib/libsyndication.so.4.2.0
b2ee3000-b2ee4000 rw-p 000a2000 08:03 788390     /usr/lib/libsyndication.so.4.2.0
b2ee4000-b2f1e000 r-xp 00000000 08:03 869490     /usr/lib/kde4/ktsyndicationplugin.so
b2f1e000-b2f20000 r--p 00039000 08:03 869490     /usr/lib/kde4/ktsyndicationplugin.so
b2f20000-b2f21000 rw-p 0003b000 08:03 869490     /usr/lib/kde4/ktsyndicationplugin.so
b2f21000-b2f2b000 r-xp 00000000 08:03 902319     /usr/lib/libgstpbutils-0.10.so.0.16.0
b2f2b000-b2f2c000 ---p 0000a000 08:03 902319     /usr/lib/libgstpbutils-0.10.so.0.16.0
b2f2c000-b2f2d000 r--p 0000a000 08:03 902319     /usr/lib/libgstpbutils-0.10.so.0.16.0
b2f2d000-b2f2e000 rw-p 0000b000 08:03 902319     /usr/lib/libgstpbutils-0.10.so.0.16.0
b2f45000-b2f4f000 r-xp 00000000 08:03 801156     /usr/lib/gstreamer-0.10/libgstdecodebin.so
b2f4f000-b2f50000 r--p 00009000 08:03 801156     /usr/lib/gstreamer-0.10/libgstdecodebin.so
b2f50000-b2f51000 rw-p 0000a000 08:03 801156     /usr/lib/gstreamer-0.10/libgstdecodebin.so
b2f51000-b2f7b000 r-xp 00000000 08:03 784731     /usr/lib/gstreamer-0.10/libgstcoreelements.so
b2f7b000-b2f7c000 r--p 0002a000 08:03 784731     /usr/lib/gstreamer-0.10/libgstcoreelements.so
b2f7c000-b2f7d000 rw-p 0002b000 08:03 784731     /usr/lib/gstreamer-0.10/libgstcoreelements.so
b2f7d000-b2fd2000 r-xp 00000000 08:03 783391     /usr/lib/liboil-0.3.so.0.3.0
b2fd2000-b2fd3000 r--p 00054000 08:03 783391     /usr/lib/liboil-0.3.so.0.3.0
b2fd3000-b2fea000 rw-p 00055000 08:03 783391     /usr/lib/liboil-0.3.so.0.3.0
b2fea000-b2fec000 rw-p b2fea000 00:00 0
b2fec000-b3010000 r-xp 00000000 08:03 786647     /usr/lib/libgstcontroller-0.10.so.0.19.0
b3010000-b3011000 r--p 00024000 08:03 786647     /usr/lib/libgstcontroller-0.10.so.0.19.0
b3011000-b3012000 rw-p 00025000 08:03 786647     /usr/lib/libgstcontroller-0.10.so.0.19.0
b3012000-b3017000 r-xp 00000000 08:03 327559     /lib/tls/i686/cmov/libnss_dns-2.9.so
b3017000-b3018000 r--p 00004000 08:03 327559     /lib/tls/i686/cmov/libnss_dns-2.9.so
b3018000-b3019000 rw-p 00005000 08:03 327559     /lib/tls/i686/cmov/libnss_dns-2.9.so
b3019000-b3026000 r-xp 00000000 08:03 801153     /usr/lib/gstreamer-0.10/libgstaudioresample.so
George
Moderator
Posts
5421
Karma
1

Sat Feb 07, 2009 11:18 am
phantom042 wrote:Had the first situation occur again, but the stack was corrupted so no valid backtrace. The last line in the log again was:

Fri Feb 6 11:27:04 2009: SynchronousWait

also, when I started KTorrent again, it repeated this line:

Resetted chunk (number)

in the log for many chunks on the torrent that was attempting to download.


Those resetted messages were fixed yesterday (wasn't really a bug, just some useless resetting of deselected chunks at start up)
hash
Registered Member
Posts
3
Karma
0

Sun Feb 08, 2009 8:07 am
I can confirm this problem in latest SVN. While seeding i am being connected to all peers (even to those that are seeding) and they're displayed as choked. To fix this i need to restart KTorrent.
George
Moderator
Posts
5421
Karma
1

Sun Feb 08, 2009 4:34 pm
hash wrote:I can confirm this problem in latest SVN. While seeding i am being connected to all peers (even to those that are seeding) and they're displayed as choked. To fix this i need to restart KTorrent.


This is fixed in revision 923348
hash
Registered Member
Posts
3
Karma
0

Sun Feb 08, 2009 9:59 pm
George wrote:This is fixed in revision 923348


Thanks! ;)


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar