Bug 236741 - ktorrent 4.0rc1 crashes every time I try to quit with uTP turned on.
Summary: ktorrent 4.0rc1 crashes every time I try to quit with uTP turned on.
Status: RESOLVED FIXED
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-07 19:47 UTC by Victor Gavrish
Modified: 2010-05-08 12:22 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Gavrish 2010-05-07 19:47:13 UTC
Application: ktorrent (4.0rc1)
KDE Platform Version: 4.4.3 (KDE 4.4.3)
Qt Version: 4.6.2
Operating System: Linux 2.6.33-ARCH i686
Distribution (Platform): Archlinux Packages

-- Information about the crash:
Every time I quit Ktorrent, it crashes. It only happens when uTP is turned on.

The crash can be reproduced every time.

 -- Backtrace:
Application: KTorrent (ktorrent), signal: Segmentation fault
[Current thread is 1 (Thread 0xb4ead710 (LWP 9139))]

Thread 2 (Thread 0xaa9fcb70 (LWP 9171)):
#0  0xb7781424 in __kernel_vsyscall ()
#1  0xb5d89aa6 in poll () from /lib/libc.so.6
#2  0xb2b17930 in __libc_res_nsend () from /lib/libresolv.so.2
#3  0xb2b15883 in __libc_res_nquery () from /lib/libresolv.so.2
#4  0xb3467df1 in _nss_dns_gethostbyaddr2_r () from /lib/libnss_dns.so.2
#5  0xb3467f5a in _nss_dns_gethostbyaddr_r () from /lib/libnss_dns.so.2
#6  0xb5dab09f in gethostbyaddr_r@@GLIBC_2.1.2 () from /lib/libc.so.6
#7  0xb5db36c3 in getnameinfo () from /lib/libc.so.6
#8  0xb76816e0 in net::ReverseResolver::resolve(net::Address const&) () from /usr/lib/libktorrent.so.1
#9  0xb7681763 in net::ReverseResolver::run() () from /usr/lib/libktorrent.so.1
#10 0xb7681a74 in net::ReverseResolverThread::run() () from /usr/lib/libktorrent.so.1
#11 0xb6a28abe in ?? () from /usr/lib/libQtCore.so.4
#12 0xb698eadc in start_thread () from /lib/libpthread.so.0
#13 0xb5d93c1e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb4ead710 (LWP 9139)):
[KCrash Handler]
#6  0xb6a24347 in QMutex::lock() () from /usr/lib/libQtCore.so.4
#7  0xb770ab2d in utp::UTPServer::connectTo(net::Address const&) () from /usr/lib/libktorrent.so.1
#8  0xb771161c in utp::UTPSocket::connectTo(net::Address const&) () from /usr/lib/libktorrent.so.1
#9  0xb768464c in mse::StreamSocket::connectTo(net::Address const&) () from /usr/lib/libktorrent.so.1
#10 0xb7687cfa in bt::Authenticate::Authenticate(QString const&, unsigned short, bt::TransportProtocol, bt::SHA1Hash const&, bt::PeerID const&, bt::PeerConnector*) () from /usr/lib/libktorrent.so.1
#11 0xb769c6c5 in bt::PeerConnector::start(bt::PeerConnector::Method) () from /usr/lib/libktorrent.so.1
#12 0xb769cae5 in bt::PeerConnector::authenticationFinished(bt::Authenticate*, bool) () from /usr/lib/libktorrent.so.1
#13 0xb7687447 in bt::Authenticate::onFinish(bool) () from /usr/lib/libktorrent.so.1
#14 0xb768732b in bt::Authenticate::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libktorrent.so.1
#15 0xb7684b2a in mse::EncryptedAuthenticate::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libktorrent.so.1
#16 0xb6b226ea in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#17 0xb6b31715 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#18 0xb7692067 in bt::PeerManager::stopped() () from /usr/lib/libktorrent.so.1
#19 0xb769452c in bt::PeerManager::stop() () from /usr/lib/libktorrent.so.1
#20 0xb76c0a36 in bt::TorrentControl::stop(bt::WaitJob*) () from /usr/lib/libktorrent.so.1
#21 0xb75dd4cc in kt::QueueManager::stopSafely(bt::TorrentInterface*, bt::WaitJob*) () from /usr/lib/libktcore.so.11
#22 0xb75de16c in kt::QueueManager::onExit(bt::WaitJob*) () from /usr/lib/libktcore.so.11
#23 0x08069526 in kt::Core::onExit() ()
#24 0x08074931 in kt::GUI::queryExit() ()
#25 0xb7217496 in KMainWindowPrivate::_k_shuttingDown() () from /usr/lib/libkdeui.so.5
#26 0xb721a356 in KMainWindow::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkdeui.so.5
#27 0xb725640a in KXmlGuiWindow::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkdeui.so.5
#28 0x080765ff in kt::GUI::qt_metacall(QMetaObject::Call, int, void**) ()
#29 0xb6b226ea in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#30 0xb6b31715 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#31 0xb6b7a6c7 in QCoreApplication::aboutToQuit() () from /usr/lib/libQtCore.so.4
#32 0xb6b204f6 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#33 0xb6062d17 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#34 0x08066dd1 in main ()

Reported using DrKonqi
Comment 1 Joris Guisson 2010-05-08 12:22:23 UTC
SVN commit 1124242 by guisson:

Fix crash at shutdown in when UTP is running 

BUG: 236741

 M  +3 -0      ChangeLog  
 M  +1 -1      src/peer/peermanager.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1124242