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

ktorrent 3.1.2 crashes soon after download starts

Tags: None
(comma "," separated)
MadCAD
Registered Member
Posts
10
Karma
0
System is openSUSE 11 i586, experiencing this issue with KDE 4.1, 4.1.1, 4.1.64, 4.1.66 (now).

Crash usually occurs shortly after new download starts.
During crash nothing is written to the console, nor any error messages are shown - program just closes

Konsole output:
Code: Select all
madcad@server:~/Desktop> ktorrent
ktorrent(28437)/kdeui (K*Gesture*) KAction::setGlobalShortcut: Attempt to set global shortcut for action without objectName(). Read the setGlobalShortcut() documentation.
Object::disconnect: Unexpected null parameter
Object::disconnect: Unexpected null parameter


~/.kde4/share/apps/ktorrent/log:
Code: Select all
Сб сент. 20 05:12:32 2008: FreeBytes 34.71 ГБ
Сб сент. 20 05:12:32 2008: Downloaded 187.4 MБ
Сб сент. 20 05:12:32 2008: Remaining 2.29 ГБ
Сб сент. 20 05:12:34 2008: Chunk 250 downloaded
Сб сент. 20 05:12:38 2008: Accepted connection from 91.77.201.39:52724
Сб сент. 20 05:12:38 2008: Authentication(S) to 91.77.201.39 : failure
Сб сент. 20 05:12:39 2008: Accepted connection from 91.77.201.39:52729
Сб сент. 20 05:12:39 2008: Already connected to -KT2250-IxJk9MjbRxbW
Сб сент. 20 05:12:39 2008: Authentication(S) to 91.77.201.39 : failure
Сб сент. 20 05:12:55 2008: Retransmitting 1873:0
Сб сент. 20 05:12:55 2008: Retransmitting 1873:16384
Сб сент. 20 05:12:58 2008: Connection closed
Сб сент. 20 05:13:13 2008: Accepted connection from 213.39.171.232:3656
Сб сент. 20 05:13:14 2008: Authentication(S) to 213.39.171.232 : ok
Сб сент. 20 05:13:17 2008: Accepted connection from 87.236.29.237:3240
Сб сент. 20 05:13:17 2008: Cannot find PeerManager for hash : 636c1e7bca067281a40536f909e564219f888d3c
Сб сент. 20 05:13:17 2008: Authentication(S) to 87.236.29.237 : failure
Сб сент. 20 05:13:29 2008: Chunk 678 downloaded
Сб сент. 20 05:13:32 2008: FreeBytes 34.71 ГБ
Сб сент. 20 05:13:32 2008: Downloaded 189.0 MБ
Сб сент. 20 05:13:32 2008: Remaining 2.28 ГБ
Сб сент. 20 05:13:56 2008: Accepted connection from 89.222.164.151:1092
Сб сент. 20 05:13:56 2008: Cannot find PeerManager for hash : eb198e728cf310e90f0f0590e2b4e121ea3501d3
Сб сент. 20 05:13:56 2008: Authentication(S) to 89.222.164.151 : failure
Сб сент. 20 05:13:56 2008: Retransmitting 1873:0
Сб сент. 20 05:13:56 2008: Retransmitting 1873:16384
Сб сент. 20 05:13:59 2008: Accepted connection from 91.77.201.39:53206
Сб сент. 20 05:13:59 2008: Authentication(S) to 91.77.201.39 : failure
Сб сент. 20 05:14:00 2008: Accepted connection from 91.77.201.39:53229
Сб сент. 20 05:14:00 2008: Already connected to -KT2250-IxJk9MjbRxbW
Сб сент. 20 05:14:00 2008: Authentication(S) to 91.77.201.39 : failure
Сб сент. 20 05:14:14 2008: Accepted connection from 76.91.114.214:61781
Сб сент. 20 05:14:14 2008: Cannot find PeerManager for hash : 794d3f5f34760f40262a10dd5035fb666fa75277
Сб сент. 20 05:14:14 2008: Authentication(S) to 76.91.114.214 : failure
Сб сент. 20 05:14:29 2008: Connection closed
Сб сент. 20 05:14:31 2008: Accepted connection from 85.30.220.19:20396
Сб сент. 20 05:14:31 2008: Cannot find PeerManager for hash : 636c1e7bca067281a40536f909e564219f888d3c
Сб сент. 20 05:14:31 2008: Authentication(S) to 85.30.220.19 : failure
Сб сент. 20 05:14:32 2008: FreeBytes 34.71 ГБ
Сб сент. 20 05:14:32 2008: Downloaded 189.1 MБ
Сб сент. 20 05:14:32 2008: Remaining 2.28 ГБ
Сб сент. 20 05:14:35 2008: Accepted connection from 87.236.29.237:4655
Сб сент. 20 05:14:35 2008: Cannot find PeerManager for hash : 636c1e7bca067281a40536f909e564219f888d3c
Сб сент. 20 05:14:35 2008: Authentication(S) to 87.236.29.237 : failure
Сб сент. 20 05:14:44 2008: Accepted connection from 213.39.171.232:62803
Сб сент. 20 05:14:45 2008: Authentication(S) to 213.39.171.232 : ok
George
Moderator
Posts
5421
Karma
1

Sat Sep 20, 2008 10:28 am
Have you got a backtrace of the crash ?
MadCAD
Registered Member
Posts
10
Karma
0

Sat Sep 20, 2008 4:50 pm
KDE applications after crash usually show a message with notification like "Program crashed, please report bug to developers", but at this case no any messages shown - program just silently disapperas from desktop and tray.

I have no idea how to backtrace it, but if you point me on some kind of "how to", I'll try to do it.
George
Moderator
Posts
5421
Karma
1

Mon Sep 22, 2008 7:06 am
If it is a regular exit, then this is already fixed.

Try running it in gdb :

gdb `which ktorrent`

run --nofork

Wait for it to happen, and if gdb prints Program exitted normally, then this is the problem which is already fixed. (The fix will be part of 3.1.3, which will be released next weekend)
MadCAD
Registered Member
Posts
10
Karma
0

Mon Sep 29, 2008 10:44 am
I cannot reproduce the problem now, I hope it's gone
MadCAD
Registered Member
Posts
10
Karma
0

Sun Oct 05, 2008 3:21 pm
crashes are back, ktorrent 3.1.3 from Packman, that's log of gdb session:

Code: Select all
madcad@server:~> gdb `which ktorrent`
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i586-suse-linux"...
(gdb) run --nofork
Starting program: /usr/bin/ktorrent --nofork
[Thread debugging using libthread_db enabled]
[New Thread 0xb5e1f6d0 (LWP 6268)]
[New Thread 0xb41beb90 (LWP 6271)]
[Thread 0xb41beb90 (LWP 6271) exited]
ktorrent(6268)/kdeui (K*Gesture*) KAction::setGlobalShortcut: Attempt to set global shortcut for action without objectName(). Read the setGlobalShortcut() documentation.
Calling appendChild() on a null node does nothing.
Calling appendChild() on a null node does nothing.
Calling appendChild() on a null node does nothing.
[New Thread 0xb41beb90 (LWP 6276)]
[New Thread 0xb347ab90 (LWP 6277)]
[New Thread 0xb2c79b90 (LWP 6279)]
[Thread 0xb2c79b90 (LWP 6279) exited]

Program received signal SIGBUS, Bus error.
[Switching to Thread 0xb5e1f6d0 (LWP 6268)]
0xb6178791 in memcpy () from /lib/libc.so.6
George
Moderator
Posts
5421
Karma
1

Mon Oct 06, 2008 4:08 pm
After it happens run the command bt in gdb, this will print a backtrace. Post that here.
MadCAD
Registered Member
Posts
10
Karma
0

Sat Oct 11, 2008 5:51 pm
Ooops, it happens again! Here is tail part of gdb log and backtrace:

Code: Select all
<a lot of stuff skipped>
[Thread 0xb3249b90 (LWP 9490) exited]                                                                                                                           
[Thread 0xb40fbb90 (LWP 9489) exited]                                                                                                                           
[New Thread 0xb40fbb90 (LWP 9491)]                                                                                                                             
[New Thread 0xb3249b90 (LWP 9492)]                                                                                                                             
[New Thread 0xb03f7b90 (LWP 10675)]                                                                                                                             
[Thread 0xb03f7b90 (LWP 10675) exited]                                                                                                                         
[New Thread 0xb03f7b90 (LWP 12585)]                                                                                                                             

Program received signal SIGBUS, Bus error.
[Switching to Thread 0xb5d5e6d0 (LWP 30093)]
0xb60b7791 in memcpy () from /lib/libc.so.6
(gdb) bt
#0  0xb60b7791 in memcpy () from /lib/libc.so.6
#1  0xb7827324 in bt::ChunkDownload::piece (this=0x9b30050, p=@0xbfe8c1a8, ok=@0xbfe8beab)
    at /usr/src/debug/ktorrent-3.1.3/libbtcore/download/chunkdownload.cpp:119
#2  0xb782ea4b in bt::Downloader::pieceReceived (this=0x85f3c20, p=@0xbfe8c1a8) at /usr/src/debug/ktorrent-3.1.3/libbtcore/download/downloader.cpp:122
#3  0xb782f3f2 in bt::Downloader::qt_metacall (this=0x85f3c20, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0xbfe8bfac)
    at /usr/src/debug/ktorrent-3.1.3/build/libbtcore/downloader.moc:101
#4  0xb6feb47a in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#5  0xb6feb9f2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#6  0xb7834d63 in bt::PieceDownloader::downloaded (this=0x929b008, _t1=@0xbfe8c1a8) at /usr/src/debug/ktorrent-3.1.3/build/libbtcore/piecedownloader.moc:82
#7  0xb781ced7 in bt::PeerDownloader::piece (this=0x929b008, p=@0xbfe8c1a8) at /usr/src/debug/ktorrent-3.1.3/libbtcore/peer/peerdownloader.cpp:178
#8  0xb781d195 in bt::PeerDownloader::qt_metacall (this=0x929b008, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0xbfe8c13c)
    at /usr/src/debug/ktorrent-3.1.3/build/libbtcore/peerdownloader.moc:78
#9  0xb6feb47a in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#10 0xb6feb9f2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#11 0xb7815353 in bt::Peer::piece (this=0x8f0f030, _t1=@0xbfe8c1a8) at /usr/src/debug/ktorrent-3.1.3/build/libbtcore/peer.moc:122
#12 0xb7816196 in bt::Peer::packetReady (this=0x8f0f030, packet=0x9000db8 "\a", len=16393) at /usr/src/debug/ktorrent-3.1.3/libbtcore/peer/peer.cpp:264
#13 0xb7820604 in bt::PacketReader::update (this=0x99507b0) at /usr/src/debug/ktorrent-3.1.3/libbtcore/peer/packetreader.cpp:131
#14 0xb78159f6 in bt::Peer::update (this=0x8f0f030, pman=0x85dd5f8) at /usr/src/debug/ktorrent-3.1.3/libbtcore/peer/peer.cpp:468
#15 0xb781a1ca in bt::PeerManager::update (this=0x85dd5f8) at /usr/src/debug/ktorrent-3.1.3/libbtcore/peer/peermanager.cpp:104
#16 0xb7853188 in bt::TorrentControl::update (this=0x85dc128) at /usr/src/debug/ktorrent-3.1.3/libbtcore/torrent/torrentcontrol.cpp:195
#17 0x0806b3c6 in kt::Core::update (this=0x823fb60) at /usr/src/debug/ktorrent-3.1.3/ktorrent/core.cpp:798
#18 0x080717d4 in kt::Core::qt_metacall (this=0x823fb60, _c=QMetaObject::InvokeMetaMethod, _id=140384704, _a=0xbfe8c428)
    at /usr/src/debug/ktorrent-3.1.3/build/ktorrent/core.moc:145
#19 0xb6feb47a in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#20 0xb6feb9f2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#21 0xb7020e57 in QTimer::timeout () from /usr/lib/libQtCore.so.4
---Type <return> to continue, or q <return> to quit---
#22 0xb6ff2b3e in QTimer::timerEvent () from /usr/lib/libQtCore.so.4
#23 0xb6fe7d9f in QObject::event () from /usr/lib/libQtCore.so.4
#24 0xb66c4ecc in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#25 0xb66cb31e in QApplication::notify () from /usr/lib/libQtGui.so.4
#26 0xb7635ded in KApplication::notify () from /usr/lib/libkdeui.so.5
#27 0xb6fd9bc1 in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#28 0xb7002266 in QTimerInfoList::activateTimers () from /usr/lib/libQtCore.so.4
#29 0xb70028bb in QEventDispatcherUNIX::processEvents () from /usr/lib/libQtCore.so.4
#30 0xb674f0a2 in QEventDispatcherX11::processEvents () from /usr/lib/libQtGui.so.4
#31 0xb6fd833a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#32 0xb6fd84fa in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#33 0xb6fda6dd in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#34 0xb66c4d47 in QApplication::exec () from /usr/lib/libQtGui.so.4
#35 0x08064571 in main (argc=2, argv=0xbfe8d004) at /usr/src/debug/ktorrent-3.1.3/ktorrent/main.cpp:166

MadCAD
Registered Member
Posts
10
Karma
0

Sat Oct 11, 2008 6:23 pm
There also were few such messages earlier in the log:

Code: Select all
ktorrent(30093): Failed to lock file "/var/tmp/kdecache-madcad/kpc/kde-icon-cache.lock" , last result = 1
George
Moderator
Posts
5421
Karma
1

Mon Oct 13, 2008 8:10 am
I think i see what the problem is.
George
Moderator
Posts
5421
Karma
1

Tue Oct 14, 2008 4:57 pm
OK, I have added some safety checks to prevent this, but seeing that I cannot reproduce this, I'm not really sure if it is fixed.

If possible try the following patch :

http://ktorrent.org/downloads/chunk_download.patch
soffokl
Registered Member
Posts
6
Karma
0

Wed Oct 15, 2008 10:23 am
Sorry for my English but i have the same problem
here is my crash log
Code: Select all
Приложение: KTorrent (ktorrent), сигнал SIGSEGV
[Current thread is 0 (LWP 4063)]

Thread 3 (Thread 0xb383db90 (LWP 4079)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0x4bc0ef42 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb7e1a259 in ?? () from /usr/lib/libQtCore.so.4
#3  0xb7e1a38b in QThread::msleep () from /usr/lib/libQtCore.so.4
#4  0xb67273be in ?? () from /usr/lib/libbtcore.so.7
#5  0xb6727c38 in ?? () from /usr/lib/libbtcore.so.7
#6  0xb7e1a84e in ?? () from /usr/lib/libQtCore.so.4
#7  0x4bc0b175 in start_thread () from /lib/libpthread.so.0
#8  0x4bb5fdce in clone () from /lib/libc.so.6

Thread 2 (Thread 0xb303cb90 (LWP 4080)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0x4bc0ec15 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb7e1b862 in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#3  0xb6726aee in ?? () from /usr/lib/libbtcore.so.7
#4  0xb6727c38 in ?? () from /usr/lib/libbtcore.so.7
#5  0xb7e1a84e in ?? () from /usr/lib/libQtCore.so.4
#6  0x4bc0b175 in start_thread () from /lib/libpthread.so.0
#7  0x4bb5fdce in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb64296d0 (LWP 4063)):
[KCrash Handler]
#6  0xb77c22b3 in QMenu::popup () from /usr/lib/libQtGui.so.4
#7  0x08083d16 in _start ()

And I do not know what to do with it.
PS OpenSuse 11 kde 4.1.2 ktorrent 3.1.3
George
Moderator
Posts
5421
Karma
1

Thu Oct 16, 2008 5:29 pm
soffokl wrote:Sorry for my English but i have the same problem
here is my crash log
Code: Select all
Приложение: KTorrent (ktorrent), сигнал SIGSEGV
[Current thread is 0 (LWP 4063)]

Thread 3 (Thread 0xb383db90 (LWP 4079)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0x4bc0ef42 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb7e1a259 in ?? () from /usr/lib/libQtCore.so.4
#3  0xb7e1a38b in QThread::msleep () from /usr/lib/libQtCore.so.4
#4  0xb67273be in ?? () from /usr/lib/libbtcore.so.7
#5  0xb6727c38 in ?? () from /usr/lib/libbtcore.so.7
#6  0xb7e1a84e in ?? () from /usr/lib/libQtCore.so.4
#7  0x4bc0b175 in start_thread () from /lib/libpthread.so.0
#8  0x4bb5fdce in clone () from /lib/libc.so.6

Thread 2 (Thread 0xb303cb90 (LWP 4080)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0x4bc0ec15 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb7e1b862 in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#3  0xb6726aee in ?? () from /usr/lib/libbtcore.so.7
#4  0xb6727c38 in ?? () from /usr/lib/libbtcore.so.7
#5  0xb7e1a84e in ?? () from /usr/lib/libQtCore.so.4
#6  0x4bc0b175 in start_thread () from /lib/libpthread.so.0
#7  0x4bb5fdce in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb64296d0 (LWP 4063)):
[KCrash Handler]
#6  0xb77c22b3 in QMenu::popup () from /usr/lib/libQtGui.so.4
#7  0x08083d16 in _start ()

And I do not know what to do with it.
PS OpenSuse 11 kde 4.1.2 ktorrent 3.1.3


That is a different problem

Anyway do you have a better backtrace ? The crash is in thread 0 and there is no backtrace of that thread.

Last edited by George on Thu Oct 16, 2008 5:31 pm, edited 1 time in total.
George
Moderator
Posts
5421
Karma
1

Thu Oct 16, 2008 5:29 pm
I have figured out what the problem is and it is now fixed.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot]