Bug 246693 - Crashing often while in background
Summary: Crashing often while in background
Status: RESOLVED FIXED
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian unstable Linux
: NOR crash
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-04 15:20 UTC by Jukka Tastula
Modified: 2010-08-21 17:24 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 Jukka Tastula 2010-08-04 15:20:37 UTC
Application: ktorrent (4.0.2)
KDE Platform Version: 4.4.5 (KDE 4.4.5)
Qt Version: 4.6.3
Operating System: Linux 2.6.35 i686
Distribution: Debian GNU/Linux unstable (sid)

-- Information about the crash:
Not doing anything specific that I can think of, just seeding a couple of torrents as usual in the background.


The crash can be reproduced some of the time.

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

Thread 5 (Thread 0xb3608b70 (LWP 22345)):
#0  0xb783b424 in __kernel_vsyscall ()
#1  0xb5bea916 in poll () from /lib/i686/cmov/libc.so.6
#2  0xb531206b in g_poll () from /lib/libglib-2.0.so.0
#3  0xb5304dac in ?? () from /lib/libglib-2.0.so.0
#4  0xb53051b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0xb69e00cf in QEventDispatcherGlib::processEvents (this=0xa134150, flags=...) at kernel/qeventdispatcher_glib.cpp:414
#6  0xb69b2b49 in QEventLoop::processEvents (this=0xb3608290, flags=) at kernel/qeventloop.cpp:149
#7  0xb69b2f9a in QEventLoop::exec (this=0xb3608290, flags=...) at kernel/qeventloop.cpp:201
#8  0xb68b5619 in QThread::exec (this=0xa136030) at thread/qthread.cpp:487
#9  0xb77af03e in utp::UTPServerThread::run (this=0xa136030) at ../../src/utp/utpserverthread.cpp:44
#10 0xb68b7fae in QThreadPrivate::start (arg=0xa136030) at thread/qthread_unix.cpp:248
#11 0xb53da955 in start_thread () from /lib/i686/cmov/libpthread.so.0
#12 0xb5bf810e in clone () from /lib/i686/cmov/libc.so.6

Thread 4 (Thread 0xb2cffb70 (LWP 22350)):
#0  0xb783b424 in __kernel_vsyscall ()
#1  0xb5bf1291 in select () from /lib/i686/cmov/libc.so.6
#2  0xb7773105 in dht::RPCServerThread::run (this=0xa0fb6f0) at ../../src/dht/rpcserver.cpp:107
#3  0xb68b7fae in QThreadPrivate::start (arg=0xa0fb6f0) at thread/qthread_unix.cpp:248
#4  0xb53da955 in start_thread () from /lib/i686/cmov/libpthread.so.0
#5  0xb5bf810e in clone () from /lib/i686/cmov/libc.so.6

Thread 3 (Thread 0xadb33b70 (LWP 22368)):
#0  0xb783b424 in __kernel_vsyscall ()
#1  0xb5bea916 in poll () from /lib/i686/cmov/libc.so.6
#2  0xb770ee76 in net::Poll::poll (this=0xa0d08b0, timeout=-1) at ../../src/net/poll.cpp:99
#3  0xb770a72a in net::DownloadThread::waitForSocketReady (this=0xa0d08a8) at ../../src/net/downloadthread.cpp:128
#4  0xb770a80f in net::DownloadThread::update (this=0xa0d08a8) at ../../src/net/downloadthread.cpp:48
#5  0xb770b3d8 in net::NetworkThread::run (this=0xa0d08a8) at ../../src/net/networkthread.cpp:48
#6  0xb68b7fae in QThreadPrivate::start (arg=0xa0d08a8) at thread/qthread_unix.cpp:248
#7  0xb53da955 in start_thread () from /lib/i686/cmov/libpthread.so.0
#8  0xb5bf810e in clone () from /lib/i686/cmov/libc.so.6

Thread 2 (Thread 0xad332b70 (LWP 22369)):
#0  0xb783b424 in __kernel_vsyscall ()
#1  0xb53df482 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/i686/cmov/libpthread.so.0
#2  0xb5c05114 in pthread_cond_timedwait () from /lib/i686/cmov/libc.so.6
#3  0xb68b78b1 in thread_sleep (ti=0x1) at thread/qthread_unix.cpp:398
#4  0xb68b79f3 in QThread::msleep (msecs=100) at thread/qthread_unix.cpp:424
#5  0xb7709fb2 in net::UploadThread::update (this=0xa0d0cb0) at ../../src/net/uploadthread.cpp:89
#6  0xb770b3d8 in net::NetworkThread::run (this=0xa0d0cb0) at ../../src/net/networkthread.cpp:48
#7  0xb68b7fae in QThreadPrivate::start (arg=0xa0d0cb0) at thread/qthread_unix.cpp:248
#8  0xb53da955 in start_thread () from /lib/i686/cmov/libpthread.so.0
#9  0xb5bf810e in clone () from /lib/i686/cmov/libc.so.6

Thread 1 (Thread 0xb4b9f710 (LWP 22341)):
[KCrash Handler]
#6  0xb7709745 in QLinkedList<QPair<unsigned int, unsigned long long> >::erase (this=0xb1a2f50, now=1280925527306) at /usr/include/qt4/QtCore/qlinkedlist.h:469
#7  net::Speed::update (this=0xb1a2f50, now=1280925527306) at ../../src/net/speed.cpp:56
#8  0xb7705206 in net::BufferedSocket::updateSpeeds (this=0xaff05d8, now=1280925527306) at ../../src/net/bufferedsocket.cpp:219
#9  0xb7711003 in mse::StreamSocket::updateSpeeds (this=0xb416288) at ../../src/mse/streamsocket.cpp:344
#10 0xb771b15b in bt::Peer::update (this=0xa12ced8) at ../../src/peer/peer.cpp:537
#11 0xb772107e in bt::PeerManager::update (this=0xafc1dc8) at ../../src/peer/peermanager.cpp:142
#12 0xb7754b7d in bt::TorrentControl::update (this=0xafc18e0) at ../../src/torrent/torrentcontrol.cpp:163
#13 0x0806b353 in kt::Core::update (this=0xb2d024f8) at ../../ktorrent/core.cpp:1023
#14 0x0807354d in kt::Core::qt_metacall (this=0xb2d024f8, _c=QMetaObject::InvokeMetaMethod, _id=298, _a=0xbf8a841c) at ./core.moc:167
#15 0xb69b980a in QMetaObject::metacall (object=0xb2d024f8, cl=2975858704, idx=22, argv=0xbf8a841c) at kernel/qmetaobject.cpp:237
#16 0xb69c81db in QMetaObject::activate (sender=0xb2d0250c, m=0xb6ac8724, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3295
#17 0xb6a1a7e7 in QTimer::timeout (this=0xb2d0250c) at .moc/release-shared/moc_qtimer.cpp:134
#18 0xb69d00be in QTimer::timerEvent (this=0xb2d0250c, e=0xbf8a8920) at kernel/qtimer.cpp:271
#19 0xb69c4c84 in QObject::event (this=0xb2d0250c, e=0xaee2e410) at kernel/qobject.cpp:1212
#20 0xb5efd5cc in QApplicationPrivate::notify_helper (this=0xa0f8e78, receiver=0xb2d0250c, e=0xbf8a8920) at kernel/qapplication.cpp:4302
#21 0xb5f0415e in QApplication::notify (this=0xbf8a8c70, receiver=0xb2d0250c, e=0xbf8a8920) at kernel/qapplication.cpp:3706
#22 0x08079dac in kt::App::notify (this=0xb1600010, receiver=0xaee2e410, event=0x12a) at ../../ktorrent/app.cpp:97
#23 0xb69b452b in QCoreApplication::notifyInternal (this=0xbf8a8c70, receiver=0xb2d0250c, event=0xbf8a8920) at kernel/qcoreapplication.cpp:726
#24 0xb69e37b6 in QCoreApplication::sendEvent (this=0xa0f4674) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#25 QTimerInfoList::activateTimers (this=0xa0f4674) at kernel/qeventdispatcher_unix.cpp:603
#26 0xb69e03d7 in timerSourceDispatch (source=0xa0f46a8) at kernel/qeventdispatcher_glib.cpp:184
#27 idleTimerSourceDispatch (source=0xa0f46a8) at kernel/qeventdispatcher_glib.cpp:231
#28 0xb53012f5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#29 0xb5304fd8 in ?? () from /lib/libglib-2.0.so.0
#30 0xb53051b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#31 0xb69e0095 in QEventDispatcherGlib::processEvents (this=0xa0cf640, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#32 0xb5fbbf45 in QGuiEventDispatcherGlib::processEvents (this=0xa0cf640, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#33 0xb69b2b49 in QEventLoop::processEvents (this=0xbf8a8be4, flags=) at kernel/qeventloop.cpp:149
#34 0xb69b2f9a in QEventLoop::exec (this=0xbf8a8be4, flags=...) at kernel/qeventloop.cpp:201
#35 0xb69b81cf in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#36 0xb5efd667 in QApplication::exec () at kernel/qapplication.cpp:3581
#37 0x080692a1 in main (argc=5, argv=0xbf8a9074) at ../../ktorrent/main.cpp:176

Reported using DrKonqi
Comment 1 Joris Guisson 2010-08-05 19:34:12 UTC
Is µTP enabled ?
Comment 2 Jukka Tastula 2010-08-05 20:21:48 UTC
It was when this crash happened.
Comment 3 Joris Guisson 2010-08-21 17:03:30 UTC
Fixed in rev 1166311.
Comment 4 Joris Guisson 2010-08-21 17:24:54 UTC
SVN commit 1166253 by guisson:

Use smart pointers for mse::StreamSocket, should fix a crash

BUG: 246693

 M  +1 -0      ChangeLog  
 M  +1 -3      src/interfaces/serverinterface.cpp  
 M  +2 -5      src/interfaces/serverinterface.h  
 M  +1 -1      src/mse/encryptedserverauthenticate.cpp  
 M  +1 -1      src/mse/encryptedserverauthenticate.h  
 M  +0 -2      src/mse/streamsocket.cpp  
 M  +4 -3      src/mse/streamsocket.h  
 M  +1 -1      src/net/socks.cpp  
 M  +3 -7      src/net/socks.h  
 M  +4 -14     src/peer/authenticate.cpp  
 M  +0 -8      src/peer/authenticate.h  
 M  +10 -3     src/peer/authenticatebase.cpp  
 M  +5 -12     src/peer/authenticatebase.h  
 M  +2 -2      src/peer/authenticationmonitor.cpp  
 M  +1 -2      src/peer/peer.cpp  
 M  +3 -8      src/peer/peer.h  
 M  +3 -4      src/peer/peermanager.cpp  
 M  +2 -2      src/peer/peermanager.h  
 M  +2 -6      src/peer/serverauthenticate.cpp  
 M  +1 -1      src/peer/serverauthenticate.h  
 M  +2 -1      src/torrent/server.cpp  
 M  +2 -3      src/utp/utpserver.cpp  
 M  +1 -1      src/utp/utpserver_p.h  


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