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

SVN ktorrent-11-11-06 SegFault

Tags: None
(comma "," separated)
djseverin
Registered Member
Posts
10
Karma
0

SVN ktorrent-11-11-06 SegFault

Mon Nov 13, 2006 11:19 pm
I am currently running ktorrent-11-11-06. I find that it is constantly crashing with a segfault. Have done a backtrace but can't see any way to attach it to this post, so please excuse me dumping it in here directly.

===============================
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1234458944 (LWP 6373)]
[New Thread -1240044624 (LWP 6388)]
[KCrash handler]
#6 0xb71b487d in QMutex::lock () from /usr/lib/libqt-mt.so.3
#7 0xb7e4de77 in bt::PacketReader::update () from /usr/lib/libktorrent.so.0
#8 0xb7e2d9cb in bt::Peer::update () from /usr/lib/libktorrent.so.0
#9 0xb7e32371 in bt::PeerManager::update () from /usr/lib/libktorrent.so.0
#10 0xb7e40138 in bt::TorrentControl::update () from /usr/lib/libktorrent.so.0
#11 0x080774cb in KTorrentCore::update ()
#12 0x0807cc1d in KTorrentCore::qt_invoke ()
#13 0xb6ed3051 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#14 0xb6ed3aec in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#15 0xb7268536 in QTimer::timeout () from /usr/lib/libqt-mt.so.3
#16 0xb6ef8049 in QTimer::event () from /usr/lib/libqt-mt.so.3
#17 0xb6e68f3e in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
#18 0xb6e6913a in QApplication::notify () from /usr/lib/libqt-mt.so.3
#19 0xb76131cd in KApplication::notify () from /usr/lib/libkdecore.so.4
#20 0xb6dfa157 in QApplication::sendEvent () from /usr/lib/libqt-mt.so.3
#21 0xb6e5a92b in QEventLoop::activateTimers () from /usr/lib/libqt-mt.so.3
#22 0xb6e0df67 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
#23 0xb6e81a2f in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#24 0xb6e81952 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#25 0xb6e67a4d in QApplication::exec () from /usr/lib/libqt-mt.so.3
#26 0x08063738 in main ()
===============================

I am not sure what I'm looking at, so any advice would be most welcome :D

I would also like to comment that other then this little difficulty, this version of kTorrent is fantastic.


"We are the music makers, we are the dreamers of dreams"
George
Moderator
Posts
5421
Karma
1

Tue Nov 14, 2006 9:54 am
Strange, we haven't seen that before. Can you recompile with debug info (./configure --enable-debug=full) ? That should give some more information about the crash.
djseverin
Registered Member
Posts
10
Karma
0

Done and done

Wed Nov 15, 2006 1:33 am
Ok, recompiled kTorrent 11-11-06 recompile with debug info (./configure --enable-debug=full) and let it run. The following was the result of the backtrace.

====================================

Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1234880832 (LWP 13010)]
[New Thread -1243219024 (LWP 13032)]
[KCrash handler]
#6 0xffffe410 in __kernel_vsyscall ()
#7 0xb66a59a1 in raise () from /lib/tls/i686/cmov/libc.so.6
#8 0xb66a72b9 in abort () from /lib/tls/i686/cmov/libc.so.6
#9 0xb6883c84 in __gnu_cxx::__verbose_terminate_handler ()
from /usr/lib/libstdc++.so.6
#10 0xb6881915 in __gxx_personality_v0 () from /usr/lib/libstdc++.so.6
#11 0xb688194a in std::terminate () from /usr/lib/libstdc++.so.6
#12 0xb6881a7e in __cxa_throw () from /usr/lib/libstdc++.so.6
#13 0xb6881e81 in operator new () from /usr/lib/libstdc++.so.6
#14 0xb6881f3d in operator new[] () from /usr/lib/libstdc++.so.6
#15 0xb7deb9ab in mse::StreamSocket::reinsert (this=0x87e80b0,
d=0x3326ebc6 <Address 0x3326ebc6 out of bounds>, size=1299471632)
at streamsocket.cpp:248
#16 0xb7dece0d in mse::EncryptedAuthenticate::handlePadD (this=0x8803728)
at encryptedauthenticate.cpp:233
#17 0xb7deda27 in mse::EncryptedAuthenticate::onReadyRead (this=0x8803728)
at encryptedauthenticate.cpp:283
#18 0xb7e69cfa in bt::AuthenticationMonitor::update (this=0x80ec2b0)
at authenticationmonitor.cpp:122
#19 0x08083262 in KTorrentCore::update (this=0x83b86b0)
at ktorrentcore.cpp:537
#20 0x08084915 in KTorrentCore::qt_invoke (this=0x83b86b0, _id=5,
_o=0xbf8ec09c) at ktorrentcore.moc:243
#21 0xb6e6c051 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#22 0xb6e6caec in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#23 0xb7201536 in QTimer::timeout () from /usr/lib/libqt-mt.so.3
#24 0xb6e91049 in QTimer::event () from /usr/lib/libqt-mt.so.3
#25 0xb6e01f3e in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
#26 0xb6e0213a in QApplication::notify () from /usr/lib/libqt-mt.so.3
#27 0xb75ac1cd in KApplication::notify () from /usr/lib/libkdecore.so.4
#28 0xb6d93157 in QApplication::sendEvent () from /usr/lib/libqt-mt.so.3
#29 0xb6df392b in QEventLoop::activateTimers () from /usr/lib/libqt-mt.so.3
#30 0xb6da6f67 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
#31 0xb6e1aa2f in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#32 0xb6e1a952 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#33 0xb6e00a4d in QApplication::exec () from /usr/lib/libqt-mt.so.3
#34 0x08066320 in main (argc=7, argv=0xbf8ec854) at main.cpp:118

====================================

Hope that helps a tad more. If I can do anything else to help let me know.


"We are the music makers, we are the dreamers of dreams"
George
Moderator
Posts
5421
Karma
1

Wed Nov 15, 2006 9:27 am
I made a commit last night which should prevent this situation.
djseverin
Registered Member
Posts
10
Karma
0

Wed Nov 15, 2006 12:23 pm
Sounds great. Will wait for the next available snapshot and test. Thanks again for all your work!


"We are the music makers, we are the dreamers of dreams"


Bookmarks



Who is online

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