Bug 267402

Summary: open port chrash
Product: [Applications] ktorrent Reporter: Robert Sela <sela>
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Mandriva RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Robert Sela 2011-03-01 18:43:19 UTC
Application: ktorrent (4.0.1)
KDE Platform Version: 4.4.3 (KDE 4.4.3)
Qt Version: 4.6.2
Operating System: Linux 2.6.36.2-desktop-2mnb x86_64
Distribution: "Mandriva Linux 2010.2"

-- Information about the crash:
Another torrent aplication was already open using the sam port.

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

Thread 6 (Thread 0x7f8b50d26710 (LWP 31015)):
#0  0x00007f8b6c8db429 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f8b6cb60632 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00007f8b6cb55ab9 in ?? () from /usr/lib64/libQtCore.so.4
#3  0x00007f8b6cb5f715 in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007f8b6c8d6a5d in start_thread () from /lib64/libpthread.so.0
#5  0x00007f8b6b21815d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f8b50525710 (LWP 31016)):
#0  0x00007f8b6c8db429 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f8b6cb60632 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00007f8b6cb55ab9 in ?? () from /usr/lib64/libQtCore.so.4
#3  0x00007f8b6cb5f715 in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007f8b6c8d6a5d in start_thread () from /lib64/libpthread.so.0
#5  0x00007f8b6b21815d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f8b4fd24710 (LWP 31017)):
#0  0x00007f8b6c8db429 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f8b6cb60632 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00007f8b6cb55ab9 in ?? () from /usr/lib64/libQtCore.so.4
#3  0x00007f8b6cb5f715 in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007f8b6c8d6a5d in start_thread () from /lib64/libpthread.so.0
#5  0x00007f8b6b21815d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f8b4f523710 (LWP 31018)):
#0  0x00007f8b6c8db429 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f8b6cb60632 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00007f8b6cb55ab9 in ?? () from /usr/lib64/libQtCore.so.4
#3  0x00007f8b6cb5f715 in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007f8b6c8d6a5d in start_thread () from /lib64/libpthread.so.0
#5  0x00007f8b6b21815d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f8b4ed22710 (LWP 31019)):
#0  0x00007f8b6c8db429 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f8b6cb60632 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00007f8b6cb55ab9 in ?? () from /usr/lib64/libQtCore.so.4
#3  0x00007f8b6cb5f715 in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007f8b6c8d6a5d in start_thread () from /lib64/libpthread.so.0
#5  0x00007f8b6b21815d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f8b6ee9b720 (LWP 30987)):
[KCrash Handler]
#5  0x00007f8b6e9bac1c in net::Socket::sendTo (this=0x0, buf=0x1aff078 "A", len=20, a=...) at /usr/src/debug/libktorrent-1.0.1/src/net/socket.cpp:297
#6  0x00007f8b6ea51b56 in utp::UTPServer::sendTo (this=0x17a6c40, data=..., addr=..., conn_id=26923) at /usr/src/debug/libktorrent-1.0.1/src/utp/utpserver.cpp:316
#7  0x00007f8b6ea55e8d in utp::Connection::sendPacket (this=0x1e97bb0, type=<value optimized out>, p_ack_nr=<value optimized out>) at /usr/src/debug/libktorrent-1.0.1/src/utp/connection.cpp:315
#8  0x00007f8b6ea5604d in utp::Connection::sendSYN (this=0x1e97c20) at /usr/src/debug/libktorrent-1.0.1/src/utp/connection.cpp:329
#9  0x00007f8b6ea51107 in utp::UTPServer::connectTo (this=0x17a6c40, addr=<value optimized out>) at /usr/src/debug/libktorrent-1.0.1/src/utp/utpserver.cpp:340
#10 0x00007f8b6ea59766 in utp::UTPSocket::connectTo (this=0x1a97350, addr=...) at /usr/src/debug/libktorrent-1.0.1/src/utp/utpsocket.cpp:85
#11 0x00007f8b6e9c3ac5 in mse::StreamSocket::connectTo (this=0x200e600, addr=...) at /usr/src/debug/libktorrent-1.0.1/src/mse/streamsocket.cpp:210
#12 0x00007f8b6e9c8094 in bt::Authenticate::Authenticate (this=0x2773620, ip=..., port=<value optimized out>, proto=bt::UTP, info_hash=<value optimized out>, peer_id=<value optimized out>, pcon=
    0x1ebe3a0) at /usr/src/debug/libktorrent-1.0.1/src/peer/authenticate.cpp:66
#13 0x00007f8b6e9c533d in mse::EncryptedAuthenticate::EncryptedAuthenticate (this=0x1e97c20, ip=..., port=25120, proto=32078880, info_hash=..., peer_id=..., pcon=0x1ebe3a0)
    at /usr/src/debug/libktorrent-1.0.1/src/mse/encryptedauthenticate.cpp:46
#14 0x00007f8b6e9dafae in bt::PeerConnector::start (this=0x1ebe3a0, method=<value optimized out>) at /usr/src/debug/libktorrent-1.0.1/src/peer/peerconnector.cpp:114
#15 0x00007f8b6e9d2b77 in bt::PeerManager::connectToPeers (this=0x1c946c0) at /usr/src/debug/libktorrent-1.0.1/src/peer/peermanager.cpp:434
#16 0x00007f8b6ea01bc6 in bt::TorrentControl::update (this=0x1c8ed50) at /usr/src/debug/libktorrent-1.0.1/src/torrent/torrentcontrol.cpp:170
#17 0x00000000004296db in kt::Core::update (this=0x179fa10) at /usr/src/debug/ktorrent-4.0.1/ktorrent/core.cpp:1020
#18 0x0000000000431012 in kt::Core::qt_metacall (this=0x179fa10, _c=QMetaObject::InvokeMetaMethod, _id=37497696, _a=0x7fffb18a85b0) at /usr/src/debug/ktorrent-4.0.1/build/ktorrent/core.moc:167
#19 0x00007f8b6cc66b5f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#20 0x00007f8b6cc637b3 in QObject::event(QEvent*) () from /usr/lib64/libQtCore.so.4
#21 0x00007f8b6bdf97cc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#22 0x00007f8b6bdffdcb in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#23 0x0000000000437d7a in kt::App::notify (this=0x1e97c20, receiver=0x1aff078, event=0x1a66220) at /usr/src/debug/ktorrent-4.0.1/ktorrent/app.cpp:97
#24 0x00007f8b6cc53d5c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#25 0x00007f8b6cc80a82 in ?? () from /usr/lib64/libQtCore.so.4
#26 0x00007f8b6cc7d554 in ?? () from /usr/lib64/libQtCore.so.4
#27 0x00007f8b67395d20 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#28 0x00007f8b67399b88 in ?? () from /usr/lib64/libglib-2.0.so.0
#29 0x00007f8b67399d3c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#30 0x00007f8b6cc7d243 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#31 0x00007f8b6bea858e in ?? () from /usr/lib64/libQtGui.so.4
#32 0x00007f8b6cc52682 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#33 0x00007f8b6cc52a5c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#34 0x00007f8b6cc5679b in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#35 0x00000000004272cb in main (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/debug/ktorrent-4.0.1/ktorrent/main.cpp:176

This bug may be a duplicate of or related to bug 244935.

Possible duplicates by query: bug 251534, bug 244935.

Reported using DrKonqi
Comment 1 Joris Guisson 2011-03-03 20:59:14 UTC

*** This bug has been marked as a duplicate of bug 244935 ***