Bug 240393 - Ktorrent crashes while running in the background
Summary: Ktorrent crashes while running in the 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:
: 286312 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-06-01 22:12 UTC by Jan Ziehm
Modified: 2011-11-13 17:20 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (7.14 KB, text/plain)
2010-06-13 19:49 UTC, Jeff Cook
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Ziehm 2010-06-01 22:12:32 UTC
Application: ktorrent (4.0.0)
KDE Platform Version: 4.4.3 (KDE 4.4.3)
Qt Version: 4.6.2
Operating System: Linux 2.6.34-0.slh.1-sidux-amd64 x86_64
Distribution: Debian GNU/Linux unstable (sid)

-- Information about the crash:
Ktorrent crashed while running in the background minimized to the system tray. I did not interact with the application when it crashed.

 -- Backtrace:
Application: KTorrent (ktorrent), signal: Segmentation fault
__lll_lock_wait_private ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:97
	in ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
[Current thread is 1 (Thread 0x7f2190b26760 (LWP 6984))]

Thread 11 (Thread 0x7f2181320710 (LWP 7006)):
[KCrash Handler]
#5  malloc_consolidate (av=0x7f217c000020) at malloc.c:5145
#6  0x00007f218c895458 in _int_free (av=0x7f217c000020, p=0x7f217c24b9a0) at malloc.c:5018
#7  0x00007f218c89888c in *__GI___libc_free (mem=<value optimized out>) at malloc.c:3739
#8  0x00007f21906de32a in utp::LocalWindow::~LocalWindow() () from /usr/lib/libktorrent.so.1
#9  0x00007f21906dc6c0 in utp::Connection::~Connection() () from /usr/lib/libktorrent.so.1
#10 0x00007f21906d6dfb in utp::UTPServer::clearDeadConnections() () from /usr/lib/libktorrent.so.1
#11 0x00007f21906d6efe in utp::UTPServer::readPacket(int) () from /usr/lib/libktorrent.so.1
#12 0x00007f219062bdb3 in utp::UTPServer::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libktorrent.so.1
#13 0x00007f218e19ac3f in QMetaObject::activate (sender=0x19450b0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x41) at kernel/qobject.cpp:3293
#14 0x00007f218e1e6b7e in QSocketNotifier::activated (this=0x7f217c000020, _t1=20) at .moc/release-shared/moc_qsocketnotifier.cpp:89
#15 0x00007f218e1a1e03 in QSocketNotifier::event (this=0x19450b0, e=0x7f218131fbf0) at kernel/qsocketnotifier.cpp:317
#16 0x00007f218d5268fc in QApplicationPrivate::notify_helper (this=0x1942a30, receiver=0x19450b0, e=0x7f218131fbf0) at kernel/qapplication.cpp:4300
#17 0x00007f218d52cddb in QApplication::notify (this=0x7fffa9da08e0, receiver=0x19450b0, e=0x7f218131fbf0) at kernel/qapplication.cpp:4183
#18 0x00007f218f7d2366 in KApplication::notify (this=0x7fffa9da08e0, receiver=0x19450b0, event=0x7f218131fbf0) at ../../kdeui/kernel/kapplication.cpp:302
#19 0x00007f218e187f0c in QCoreApplication::notifyInternal (this=0x7fffa9da08e0, receiver=0x19450b0, event=0x7f218131fbf0) at kernel/qcoreapplication.cpp:704
#20 0x00007f218e1b171a in QCoreApplication::sendEvent (source=0x19598f0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#21 socketNotifierSourceDispatch (source=0x19598f0) at kernel/qeventdispatcher_glib.cpp:110
#22 0x00007f2188d626c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#23 0x00007f2188d66538 in ?? () from /lib/libglib-2.0.so.0
#24 0x00007f2188d666ec in g_main_context_iteration () from /lib/libglib-2.0.so.0
#25 0x00007f218e1b1363 in QEventDispatcherGlib::processEvents (this=0x1a2e2b0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#26 0x00007f218e186832 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#27 0x00007f218e186c0c in QEventLoop::exec (this=0x7f218131fe20, flags=) at kernel/qeventloop.cpp:201
#28 0x00007f218e090bb9 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#29 0x00007f218e0935b5 in QThreadPrivate::start (arg=0x19491b0) at thread/qthread_unix.cpp:248
#30 0x00007f2189a488ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#31 0x00007f218c8f103d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#32 0x0000000000000000 in ?? ()

Thread 10 (Thread 0x7f2180b1f710 (LWP 7007)):
#0  0x00007f218c8ea8d3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f21906a3fdc in ?? () from /usr/lib/libktorrent.so.1
#2  0x00007f218e0935b5 in QThreadPrivate::start (arg=0x1a22fe0) at thread/qthread_unix.cpp:248
#3  0x00007f2189a488ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#4  0x00007f218c8f103d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7f216b2d7710 (LWP 7160)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f218e092d03 in QMutexPrivate::wait (this=0x1945f90, timeout=-1) at thread/qmutex_unix.cpp:84
#2  0x00007f218e08e845 in QMutex::lock (this=0x1945e78) at thread/qmutex.cpp:167
#3  0x00007f21906d7ea8 in utp::UTPServer::preparePolling(net::Poll*, net::Poll::Mode, utp::Connection*) () from /usr/lib/libktorrent.so.1
#4  0x00007f21906df209 in utp::UTPSocket::prepare(net::Poll*, net::Poll::Mode) () from /usr/lib/libktorrent.so.1
#5  0x00007f219064505e in ?? () from /usr/lib/libktorrent.so.1
#6  0x00007f2190645156 in ?? () from /usr/lib/libktorrent.so.1
#7  0x00007f2190645c39 in ?? () from /usr/lib/libktorrent.so.1
#8  0x00007f218e0935b5 in QThreadPrivate::start (arg=0x19171e0) at thread/qthread_unix.cpp:248
#9  0x00007f2189a488ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007f218c8f103d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f216aad6710 (LWP 7161)):
#0  __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:97
#1  0x00007f218c89a498 in _L_lock_9590 () from /lib/libc.so.6
#2  0x00007f218c898881 in *__GI___libc_free (mem=0x7f217c000020) at malloc.c:3737
#3  0x00007f2190649739 in std::_Rb_tree<int, std::pair<int const, QSharedPointer<net::PollClient> >, std::_Select1st<std::pair<int const, QSharedPointer<net::PollClient> > >, std::less<int>, std::allocator<std::pair<int const, QSharedPointer<net::PollClient> > > >::_M_erase(std::_Rb_tree_node<std::pair<int const, QSharedPointer<net::PollClient> > >*) () from /usr/lib/libktorrent.so.1
#4  0x00007f2190648f57 in net::Poll::poll(int) () from /usr/lib/libktorrent.so.1
#5  0x00007f2190644726 in ?? () from /usr/lib/libktorrent.so.1
#6  0x00007f2190644806 in ?? () from /usr/lib/libktorrent.so.1
#7  0x00007f2190645c39 in ?? () from /usr/lib/libktorrent.so.1
#8  0x00007f218e0935b5 in QThreadPrivate::start (arg=0x1917830) at thread/qthread_unix.cpp:248
#9  0x00007f2189a488ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007f218c8f103d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f216a2d5710 (LWP 7162)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f218e09457b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x2d8fdd0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x2d8fdd0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f2190648962 in ?? () from /usr/lib/libktorrent.so.1
#4  0x00007f218e0935b5 in QThreadPrivate::start (arg=0x2d8fdc0) at thread/qthread_unix.cpp:248
#5  0x00007f2189a488ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#6  0x00007f218c8f103d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f2181b21710 (LWP 12640)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007f218e0944e2 in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x313ab60, time=30000) at thread/qwaitcondition_unix.cpp:85
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x313ab60, time=30000) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f218e089919 in QThreadPoolThread::run (this=0x7f217c1e7120) at concurrent/qthreadpool.cpp:140
#4  0x00007f218e0935b5 in QThreadPrivate::start (arg=0x7f217c1e7120) at thread/qthread_unix.cpp:248
#5  0x00007f2189a488ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#6  0x00007f218c8f103d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f216d6e4710 (LWP 12641)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007f218e0944e2 in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x313ab60, time=30000) at thread/qwaitcondition_unix.cpp:85
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x313ab60, time=30000) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f218e089919 in QThreadPoolThread::run (this=0x7f217c0461c0) at concurrent/qthreadpool.cpp:140
#4  0x00007f218e0935b5 in QThreadPrivate::start (arg=0x7f217c0461c0) at thread/qthread_unix.cpp:248
#5  0x00007f2189a488ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#6  0x00007f218c8f103d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f216cee3710 (LWP 12642)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007f218e0944e2 in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x313ab60, time=30000) at thread/qwaitcondition_unix.cpp:85
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x313ab60, time=30000) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f218e089919 in QThreadPoolThread::run (this=0x7f217c1ea3b0) at concurrent/qthreadpool.cpp:140
#4  0x00007f218e0935b5 in QThreadPrivate::start (arg=0x7f217c1ea3b0) at thread/qthread_unix.cpp:248
#5  0x00007f2189a488ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#6  0x00007f218c8f103d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f216e6e6710 (LWP 12643)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007f218e0944e2 in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x313ab60, time=30000) at thread/qwaitcondition_unix.cpp:85
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x313ab60, time=30000) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f218e089919 in QThreadPoolThread::run (this=0x3107870) at concurrent/qthreadpool.cpp:140
#4  0x00007f218e0935b5 in QThreadPrivate::start (arg=0x3107870) at thread/qthread_unix.cpp:248
#5  0x00007f2189a488ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#6  0x00007f218c8f103d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f216dee5710 (LWP 12644)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007f218e0944e2 in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x313ab60, time=30000) at thread/qwaitcondition_unix.cpp:85
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x313ab60, time=30000) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f218e089919 in QThreadPoolThread::run (this=0x7f217c1eb960) at concurrent/qthreadpool.cpp:140
#4  0x00007f218e0935b5 in QThreadPrivate::start (arg=0x7f217c1eb960) at thread/qthread_unix.cpp:248
#5  0x00007f2189a488ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#6  0x00007f218c8f103d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f2190b26760 (LWP 6984)):
#0  __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:97
#1  0x00007f218c89a498 in _L_lock_9590 () from /lib/libc.so.6
#2  0x00007f218c898881 in *__GI___libc_free (mem=0x7f217c000020) at malloc.c:3737
#3  0x00007f218e0915e5 in ~QThreadData (this=0x7f217c006ef0, __in_chrg=<value optimized out>) at thread/qthread.cpp:114
#4  0x00007f218e0916b8 in QThreadData::deref (this=0x7f217c000020) at thread/qthread.cpp:128
#5  0x00007f218e0916f7 in ~QThreadPrivate (this=0x7f217c1eba00, __in_chrg=<value optimized out>) at thread/qthread.cpp:197
#6  0x00007f218e19d926 in QScopedPointerDeleter<QObjectData>::cleanup (this=<value optimized out>, __in_chrg=<value optimized out>) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:62
#7  ~QScopedPointer (this=<value optimized out>, __in_chrg=<value optimized out>) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:100
#8  ~QObject (this=<value optimized out>, __in_chrg=<value optimized out>) at kernel/qobject.cpp:992
#9  0x00007f218e090e39 in ~QThread (this=0x7f217c08aa20, __in_chrg=<value optimized out>) at thread/qthread.cpp:411
#10 0x00007f218e08a493 in ~QThreadPoolThread (this=0x7f217c000020, __in_chrg=<value optimized out>) at concurrent/qthreadpool.cpp:64
#11 0x00007f218e089c38 in QThreadPoolPrivate::reset (this=0x3675380) at concurrent/qthreadpool.cpp:278
#12 0x00007f218e089e08 in ~QThreadPool (this=0x32c8790, __in_chrg=<value optimized out>) at concurrent/qthreadpool.cpp:429
#13 0x00007f218e08a435 in ~QGlobalStaticDeleter (this=0x7f218e49e3f8, __in_chrg=<value optimized out>) at ../../include/QtCore/../../src/corelib/global/qglobal.h:1803
#14 0x00007f218c8585f2 in __run_exit_handlers (status=1, listp=0x7f218cb7d4a8, run_list_atexit=true) at exit.c:78
#15 0x00007f218c858645 in *__GI_exit (status=2080374816) at exit.c:100
#16 0x00007f218d59d1c8 in qt_xio_errhandler () at kernel/qapplication_x11.cpp:734
#17 0x00007f218f7d1d88 in KApplication::xioErrhandler (this=0x7fffa9da08e0, dpy=0x196f440) at ../../kdeui/kernel/kapplication.cpp:408
#18 0x00007f218b164e3e in _XIOError () from /usr/lib/libX11.so.6
#19 0x00007f218b16c25f in ?? () from /usr/lib/libX11.so.6
#20 0x00007f218b16cb97 in _XEventsQueued () from /usr/lib/libX11.so.6
#21 0x00007f218b155463 in XEventsQueued () from /usr/lib/libX11.so.6
#22 0x00007f218d5d65f7 in x11EventSourcePrepare (s=0x195ddd0, timeout=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:79
#23 0x00007f2188d65ca1 in g_main_context_prepare () from /lib/libglib-2.0.so.0
#24 0x00007f2188d66108 in ?? () from /lib/libglib-2.0.so.0
#25 0x00007f2188d666ec in g_main_context_iteration () from /lib/libglib-2.0.so.0
#26 0x00007f218e1b13b6 in QEventDispatcherGlib::processEvents (this=0x19151d0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:414
#27 0x00007f218d5d63ce in QGuiEventDispatcherGlib::processEvents (this=0x7f217c000020, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#28 0x00007f218e186832 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#29 0x00007f218e186c0c in QEventLoop::exec (this=0x7fffa9da0850, flags=) at kernel/qeventloop.cpp:201
#30 0x00007f218e18a94b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#31 0x0000000000428d7b in _start ()

Reported using DrKonqi
Comment 1 Gregor Kališnik 2010-06-09 12:14:32 UTC
I see utp in the backtrace.

"My" KTorrent crashes when using utp. Using KTorrent 4.4.0 on Gentoo system.
Comment 2 Jeff Cook 2010-06-13 19:49:39 UTC
Created attachment 47977 [details]
New crash information added by DrKonqi

ktorrent crashed while running in background, seeding things. utp seems involved. This has happened several times since KTorrent 4.0 was pushed and I enabled utp.

Looks like I might not have all necessary debug things installed, but maybe the backtrace will be useful anyway.
Comment 3 Alexey Shildyakov 2010-07-05 11:25:00 UTC
Confirm that is because using UTP (uTorrent) protocol.
Comment 4 Joris Guisson 2010-07-09 19:42:18 UTC
Should be fixed in 4.0.2
Comment 5 Joris Guisson 2011-11-13 17:20:46 UTC
*** Bug 286312 has been marked as a duplicate of this bug. ***