Bug 254122 - Ktorrent crashed while idle
Summary: Ktorrent crashed while idle
Status: RESOLVED FIXED
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR crash
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-14 09:51 UTC by Con Kolivas
Modified: 2010-10-14 18:04 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 Con Kolivas 2010-10-14 09:51:36 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.36-rc7-ck1 x86_64
Distribution: Debian GNU/Linux testing (squeeze)

-- Information about the crash:
Ktorrent had only one torrent loaded but it was stopped. While the machine was idle it spontaneously crashed.

 -- Backtrace:
Application: KTorrent (ktorrent), signal: Segmentation fault
The current source language is "auto; currently asm".
[Current thread is 1 (Thread 0x7f0dae436760 (LWP 22131))]

Thread 7 (Thread 0x7f0d93fff710 (LWP 22135)):
[KCrash Handler]
#5  0x00007f0daba9bdf1 in QMetaObject::metacall (object=<value optimized out>, cl=QMetaObject::InvokeMetaMethod, idx=3, argv=0x12105c0) at kernel/qmetaobject.cpp:235
#6  0x00007f0dabaa6e49 in QObject::event (this=0x1c4c810, e=0x182a310) at kernel/qobject.cpp:1248
#7  0x00007f0daae3732c in QApplicationPrivate::notify_helper (this=0x70a7a0, receiver=0x1c4c810, e=0x182a310) at kernel/qapplication.cpp:4302
#8  0x00007f0daae3d80b in QApplication::notify (this=0x7fff31f2d1d0, receiver=0x1c4c810, e=0x182a310) at kernel/qapplication.cpp:4185
#9  0x0000000000439a0a in kt::App::notify (this=0x61007200546838, receiver=0x0, event=0x3) at ../../ktorrent/app.cpp:97
#10 0x00007f0daba970bc in QCoreApplication::notifyInternal (this=0x7fff31f2d1d0, receiver=0x1c4c810, event=0x182a310) at kernel/qcoreapplication.cpp:726
#11 0x00007f0daba9a764 in QCoreApplication::sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x7efd30) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#12 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x7efd30) at kernel/qcoreapplication.cpp:1367
#13 0x00007f0dabac0b93 in QCoreApplication::sendPostedEvents (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#14 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:276
#15 0x00007f0da66716f2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#16 0x00007f0da6675568 in ?? () from /lib/libglib-2.0.so.0
#17 0x00007f0da667571c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#18 0x00007f0dabac06d3 in QEventDispatcherGlib::processEvents (this=0x7de850, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#19 0x00007f0daba959e2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#20 0x00007f0daba95dbc in QEventLoop::exec (this=0x7f0d93ffede0, flags=) at kernel/qeventloop.cpp:201
#21 0x00007f0dab9a577b in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#22 0x00007f0dadff038e in utp::UTPServerThread::run (this=0x7de8b0) at ../../src/utp/utpserverthread.cpp:44
#23 0x00007f0dab9a7e15 in QThreadPrivate::start (arg=0x7de8b0) at thread/qthread_unix.cpp:248
#24 0x00007f0da73578ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#25 0x00007f0daa20102d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#26 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f0d937fe710 (LWP 22141)):
#0  0x00007f0daa1fa8d3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f0dadfb8b22 in dht::RPCServerThread::run (this=0x7c6140) at ../../src/dht/rpcserver.cpp:107
#2  0x00007f0dab9a7e15 in QThreadPrivate::start (arg=0x7c6140) at thread/qthread_unix.cpp:248
#3  0x00007f0da73578ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#4  0x00007f0daa20102d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f0d98e70710 (LWP 22153)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f0dab9a7563 in QMutexPrivate::wait (this=0x724fd0, timeout=-1) at thread/qmutex_unix.cpp:84
#2  0x00007f0dab9a2e05 in QMutex::lock (this=0x726060) at thread/qmutex.cpp:205
#3  0x00007f0dadf4a94b in bt::Out (arg=19) at ../../src/util/log.cpp:267
#4  0x00007f0dadf4afea in QtMessageOutput (type=<value optimized out>, msg=0x7f0d7c0e6958 "QSocketNotifier: Invalid socket 31 and type 'Read', disabling...") at ../../src/util/log.cpp:294
#5  0x00007f0dab99fc2e in qt_message_output (msgType=QtWarningMsg, buf=0x80 <Address 0x80 out of bounds>) at global/qglobal.cpp:2212
#6  0x00007f0dab99fe22 in qt_message (msgType=QtWarningMsg, msg=0x7f0dabb40cc8 "QSocketNotifier: Invalid socket %d and type '%s', disabling...", ap=0x7f0d98e6fb20) at global/qglobal.cpp:2312
#7  0x00007f0dab9a0155 in qWarning (msg=0x80 <Address 0x80 out of bounds>) at global/qglobal.cpp:2394
#8  0x00007f0dabac0b36 in socketNotifierSourceCheck (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:90
#9  0x00007f0da667492a in g_main_context_check () from /lib/libglib-2.0.so.0
#10 0x00007f0da66752e3 in ?? () from /lib/libglib-2.0.so.0
#11 0x00007f0da667571c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#12 0x00007f0dabac06d3 in QEventDispatcherGlib::processEvents (this=0x1059620, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#13 0x00007f0daba959e2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#14 0x00007f0daba95dbc in QEventLoop::exec (this=0x7f0d98e6fde0, flags=) at kernel/qeventloop.cpp:201
#15 0x00007f0dab9a577b in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#16 0x00007f0daba76338 in QInotifyFileSystemWatcherEngine::run (this=0x1335aa0) at io/qfilesystemwatcher_inotify.cpp:248
#17 0x00007f0dab9a7e15 in QThreadPrivate::start (arg=0x1335aa0) at thread/qthread_unix.cpp:248
#18 0x00007f0da73578ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#19 0x00007f0daa20102d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#20 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f0d84abe710 (LWP 22163)):
#0  0x00007f0daa1f6113 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f0dadf5d7ec in net::Poll::poll (this=0x6e0270, timeout=<value optimized out>) at ../../src/net/poll.cpp:99
#2  0x00007f0dadf59970 in net::DownloadThread::waitForSocketReady (this=0x6e0260) at ../../src/net/downloadthread.cpp:128
#3  0x00007f0dadf59a46 in net::DownloadThread::update (this=0x7f0d7c0385a0) at ../../src/net/downloadthread.cpp:48
#4  0x00007f0dadf5a529 in net::NetworkThread::run (this=0x6e0260) at ../../src/net/networkthread.cpp:48
#5  0x00007f0dab9a7e15 in QThreadPrivate::start (arg=0x6e0260) at thread/qthread_unix.cpp:248
#6  0x00007f0da73578ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#7  0x00007f0daa20102d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f0d842bd710 (LWP 22164)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007f0dab9a7795 in thread_sleep (ti=0x7f0d842bcdd0) at thread/qthread_unix.cpp:398
#2  0x00007f0dab9a78f0 in QThread::msleep (msecs=<value optimized out>) at thread/qthread_unix.cpp:424
#3  0x00007f0dadf592ed in net::UploadThread::update (this=0x6e08b0) at ../../src/net/uploadthread.cpp:89
#4  0x00007f0dadf5a529 in net::NetworkThread::run (this=0x6e08b0) at ../../src/net/networkthread.cpp:48
#5  0x00007f0dab9a7e15 in QThreadPrivate::start (arg=0x6e08b0) at thread/qthread_unix.cpp:248
#6  0x00007f0da73578ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#7  0x00007f0daa20102d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()
The current source language is "auto; currently c".

Thread 2 (Thread 0x7f0d83abc710 (LWP 22165)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f0dab9a8e6b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x7f0d9403ec10, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x7f0d9403ec10, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f0dadf5d252 in net::ReverseResolverThread::run (this=0x7f0d9403ec00) at ../../src/net/reverseresolver.cpp:123
#4  0x00007f0dab9a7e15 in QThreadPrivate::start (arg=0x7f0d9403ec00) at thread/qthread_unix.cpp:248
#5  0x00007f0da73578ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#6  0x00007f0daa20102d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()
The current source language is "auto; currently asm".

Thread 1 (Thread 0x7f0dae436760 (LWP 22131)):
[KCrash Handler]
#5  _int_malloc (av=0x7f0daa48ee40, bytes=68) at malloc.c:4339
#6  0x00007f0daa1a8930 in *__GI___libc_malloc (bytes=68) at malloc.c:3661
#7  0x00007f0dab9ef913 in QString::fromLatin1_helper (str=0x7f0dadffa6a4 "Authentication to ", size=18) at tools/qstring.cpp:3603
#8  0x00007f0dab9f558d in QString::fromAscii_helper (str=0x0, size=68) at tools/qstring.cpp:3638
#9  0x00007f0dadf4a2a6 in QString (this=0x7cfbc0, s=0x7f0daa48ee40 "\001") at /usr/include/qt4/QtCore/qstring.h:413
#10 bt::Log::operator<< (this=0x7cfbc0, s=0x7f0daa48ee40 "\001") at ../../src/util/log.cpp:238
#11 0x00007f0dadf62ec9 in bt::Authenticate::onFinish (this=0x1b52120, succes=false) at ../../src/peer/authenticate.cpp:156
#12 0x00007f0dadf632ff in Authenticate (this=0x1b52120, ip=..., port=<value optimized out>, proto=bt::UTP, info_hash=<value optimized out>, peer_id=<value optimized out>, pcon=0x1b27360)
    at ../../src/peer/authenticate.cpp:76
#13 0x00007f0dadf7663f in bt::PeerConnector::start (this=0x1b27360, method=<value optimized out>) at ../../src/peer/peerconnector.cpp:116
#14 0x00007f0dadf76aed in bt::PeerConnector::authenticationFinished (this=<value optimized out>, auth=<value optimized out>, ok=<value optimized out>) at ../../src/peer/peerconnector.cpp:105
#15 0x00007f0dadf62708 in bt::AuthenticateBase::qt_metacall (this=0x1b948b0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff31f2c770) at ./authenticatebase.moc:74
#16 0x00007f0dadf62d58 in bt::Authenticate::qt_metacall (this=0x7f0daa48ee40, _c=68, _id=0, _a=0x5) at ./authenticate.moc:70
#17 0x00007f0dadf60378 in mse::EncryptedAuthenticate::qt_metacall (this=0x7f0daa48ee40, _c=68, _id=0, _a=0x5) at ./encryptedauthenticate.moc:71
#18 0x00007f0dabaaa306 in QMetaObject::activate (sender=0x1b948c8, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x5) at kernel/qobject.cpp:3295
#19 0x00007f0dabaa6b63 in QObject::event (this=0x1b948c8, e=0x7fff31f2cea0) at kernel/qobject.cpp:1212
#20 0x00007f0daae3732c in QApplicationPrivate::notify_helper (this=0x70a7a0, receiver=0x1b948c8, e=0x7fff31f2cea0) at kernel/qapplication.cpp:4302
#21 0x00007f0daae3d80b in QApplication::notify (this=0x7fff31f2d1d0, receiver=0x1b948c8, e=0x7fff31f2cea0) at kernel/qapplication.cpp:4185
#22 0x0000000000439a0a in kt::App::notify (this=0x7f0daa48ee40, receiver=0x44, event=0x0) at ../../ktorrent/app.cpp:97
#23 0x00007f0daba970bc in QCoreApplication::notifyInternal (this=0x7fff31f2d1d0, receiver=0x1b948c8, event=0x7fff31f2cea0) at kernel/qcoreapplication.cpp:726
#24 0x00007f0dabac3e92 in QCoreApplication::sendEvent (this=0x70e040) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#25 QTimerInfoList::activateTimers (this=0x70e040) at kernel/qeventdispatcher_unix.cpp:603
#26 0x00007f0dabac0a08 in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:184
#27 idleTimerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:231
#28 0x00007f0da66716f2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#29 0x00007f0da6675568 in ?? () from /lib/libglib-2.0.so.0
#30 0x00007f0da667571c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#31 0x00007f0dabac06d3 in QEventDispatcherGlib::processEvents (this=0x6de1d0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#32 0x00007f0daaee718e in QGuiEventDispatcherGlib::processEvents (this=0x7f0daa48ee40, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#33 0x00007f0daba959e2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#34 0x00007f0daba95dbc in QEventLoop::exec (this=0x7fff31f2d140, flags=) at kernel/qeventloop.cpp:201
#35 0x00007f0daba9aa4b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#36 0x0000000000428f5b in main (argc=<value optimized out>, argv=<value optimized out>) at ../../ktorrent/main.cpp:176

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

Possible duplicates by query: bug 253878, bug 253841, bug 253353, bug 253253, bug 253163.

Reported using DrKonqi
Comment 1 Con Kolivas 2010-10-14 14:21:08 UTC
My mistake, it was actually downloading a 1GB file.
Comment 2 Joris Guisson 2010-10-14 18:04:34 UTC
Upgrade to 4.0.3, this should be fixed in that release