Bug 252316

Summary: random ktorrent crash
Product: [Applications] ktorrent Reporter: Ritesh Raj Sarraf <kde-bugs>
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Ritesh Raj Sarraf 2010-09-25 10:53:53 UTC
Application: ktorrent (4.0.2)
KDE Platform Version: 4.5.1 (KDE 4.5.1)
Qt Version: 4.6.3
Operating System: Linux 2.6.35-trunk-amd64 x86_64
Distribution: Debian GNU/Linux testing (squeeze)

-- Information about the crash:
ktorrent crashed randomly. ktorrent was configured to run with 4 active torrent and 15 active seeds. There were around 20 torrents in the queue. After a couple of hours of run, ktorrent was seen to have crashed.
Haven't tried it again. Hope the backtrace is useful.

The crash can be reproduced some of the time.

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

Thread 6 (Thread 0x7fa5ebd70710 (LWP 1638)):
[KCrash Handler]
#6  QCoreApplication::notifyInternal (this=0x7fff6905d150, receiver=0x4f93b70, event=0x7fa5ebd6fb70) at kernel/qcoreapplication.cpp:713
#7  0x00007fa5fe531e92 in sendEvent (this=0x26c2660) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#8  QTimerInfoList::activateTimers (this=0x26c2660) at kernel/qeventdispatcher_unix.cpp:603
#9  0x00007fa5fe52ea08 in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:184
#10 idleTimerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:231
#11 0x00007fa5f871f172 in g_main_dispatch (context=0x26be980) at /glib2.0-2.25.14/glib/gmain.c:2119
#12 g_main_context_dispatch (context=0x26be980) at /glib2.0-2.25.14/glib/gmain.c:2672
#13 0x00007fa5f87230c8 in g_main_context_iterate (context=0x26be980, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at /glib2.0-2.25.14/glib/gmain.c:2750
#14 0x00007fa5f872327c in g_main_context_iteration (context=0x26be980, may_block=1) at /glib2.0-2.25.14/glib/gmain.c:2813
#15 0x00007fa5fe52e6d3 in QEventDispatcherGlib::processEvents (this=0x2807e50, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#16 0x00007fa5fe5039e2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#17 0x00007fa5fe503dbc in QEventLoop::exec (this=0x7fa5ebd6fde0, flags=) at kernel/qeventloop.cpp:201
#18 0x00007fa5fe41377b in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#19 0x00007fa600abc38e in utp::UTPServerThread::run (this=0x2805ec0) at ../../src/utp/utpserverthread.cpp:44
#20 0x00007fa5fe415e15 in QThreadPrivate::start (arg=0x2805ec0) at thread/qthread_unix.cpp:248
#21 0x00007fa5f960c8ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#22 0x00007fa5fcc6f02d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#23 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7fa5ec571710 (LWP 1640)):
#0  0x00007fa5fcc688d3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007fa600a84b22 in dht::RPCServerThread::run (this=0x28b28b0) at ../../src/dht/rpcserver.cpp:107
#2  0x00007fa5fe415e15 in QThreadPrivate::start (arg=0x28b28b0) at thread/qthread_unix.cpp:248
#3  0x00007fa5f960c8ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#4  0x00007fa5fcc6f02d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fa5d8d06710 (LWP 1713)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fa5fe415563 in QMutexPrivate::wait (this=0x268d2a0, timeout=-1) at thread/qmutex_unix.cpp:84
#2  0x00007fa5fe410de5 in QMutex::lock (this=0x6d69c8) at thread/qmutex.cpp:167
#3  0x00007fa600a2580d in net::DownloadThread::waitForSocketReady (this=0x268d320) at ../../src/net/downloadthread.cpp:110
#4  0x00007fa600a25a46 in net::DownloadThread::update (this=0x268d2ec) at ../../src/net/downloadthread.cpp:48
#5  0x00007fa600a26529 in net::NetworkThread::run (this=0x268d320) at ../../src/net/networkthread.cpp:48
#6  0x00007fa5fe415e15 in QThreadPrivate::start (arg=0x268d320) at thread/qthread_unix.cpp:248
#7  0x00007fa5f960c8ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#8  0x00007fa5fcc6f02d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fa5d8505710 (LWP 1714)):
#0  0x00007fa600a25160 in net::UploadThread::update (this=0x268d990) at ../../src/net/uploadthread.cpp:57
#1  0x00007fa600a26529 in net::NetworkThread::run (this=0x268d990) at ../../src/net/networkthread.cpp:48
#2  0x00007fa5fe415e15 in QThreadPrivate::start (arg=0x268d990) at thread/qthread_unix.cpp:248
#3  0x00007fa5f960c8ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#4  0x00007fa5fcc6f02d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fa5d7d04710 (LWP 1715)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fa5fe416e6b in wait (this=<value optimized out>, mutex=0x517bf00, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x517bf00, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007fa600a29252 in net::ReverseResolverThread::run (this=0x517bef0) at ../../src/net/reverseresolver.cpp:123
#4  0x00007fa5fe415e15 in QThreadPrivate::start (arg=0x517bef0) at thread/qthread_unix.cpp:248
#5  0x00007fa5f960c8ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#6  0x00007fa5fcc6f02d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fa600f02760 (LWP 1636)):
#0  0x00007fa5fcc64113 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fa5f6b508ca in _xcb_conn_wait (c=0x26d6ba0, cond=<value optimized out>, vector=0x7fff6905aa20, count=0x7fff6905aa1c) at ../../src/xcb_conn.c:316
#2  0x00007fa5f6b50ec9 in _xcb_out_send (c=0x26d6ba0, vector=0x7fff6905aa20, count=0x7fff6905aa1c) at ../../src/xcb_out.c:338
#3  0x00007fa5f6b51175 in xcb_writev (c=0x26d6ba0, vector=0x7fff6905aa70, count=3, requests=451) at ../../src/xcb_out.c:286
#4  0x00007fa5fa951616 in _XSend (dpy=0x26e11e0, data=<value optimized out>, size=0) at ../../src/xcb_io.c:339
#5  0x00007fa5fa951769 in _XReply (dpy=0x7fff6905a990, rep=0x7fff6905ab30, extra=0, discard=1) at ../../src/xcb_io.c:457
#6  0x00007fa5fa93ef9f in XQueryPointer (dpy=0x26e11e0, w=268, root=0x7fff6905abe0, child=0x7fff6905abd8, root_x=0x7fff6905abfc, root_y=0x7fff6905abf8, win_x=0x7fff6905abf4, win_y=0x7fff6905abf0, mask=0x7fff6905abec) at ../../src/QuPntr.c:49
#7  0x00007fa5fd9362ed in QCursor::pos () at kernel/qcursor_x11.cpp:155
#8  0x00007fa5fd8ab591 in QApplicationPrivate::sendSyntheticEnterLeave (this=<value optimized out>, widget=0x2a55b70) at kernel/qapplication.cpp:3033
#9  0x00007fa5fd90284a in QWidget::setVisible (this=0x2a55b70, visible=<value optimized out>) at kernel/qwidget.cpp:7447
#10 0x00007fa5f28f37f0 in show (this=0x2a51320, object=0x2a550f0, event=0x7fff6905b390) at /usr/include/qt4/QtGui/qwidget.h:485
#11 Oxygen::LabelData::eventFilter (this=0x2a51320, object=0x2a550f0, event=0x7fff6905b390) at ../../../kstyles/oxygen/transitions/oxygenlabeldata.cpp:117
#12 0x00007fa5fe5044d7 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0x2a550f0, event=0x7fff6905b390) at kernel/qcoreapplication.cpp:841
#13 0x00007fa5fd8a52fc in QApplicationPrivate::notify_helper (this=0x26b8900, receiver=0x2a550f0, e=0x7fff6905b390) at kernel/qapplication.cpp:4298
#14 0x00007fa5fd8ab80b in QApplication::notify (this=0x7fff6905d150, receiver=0x2a550f0, e=0x7fff6905b390) at kernel/qapplication.cpp:4185
#15 0x0000000000439a0a in kt::App::notify (this=0x7fff6905a990, receiver=0x1, event=0xffffffffffffffff) at ../../ktorrent/app.cpp:97
#16 0x00007fa5fe5050bc in QCoreApplication::notifyInternal (this=0x7fff6905d150, receiver=0x2a550f0, event=0x7fff6905b390) at kernel/qcoreapplication.cpp:726
#17 0x00007fa5fd90380d in sendSpontaneousEvent (this=0x2a55230, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, backingStore=0x394a190) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#18 QWidgetPrivate::drawWidget (this=0x2a55230, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, backingStore=0x394a190) at kernel/qwidget.cpp:5363
#19 0x00007fa5fd9044a8 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=1, rgn=<value optimized out>, offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x394a190) at kernel/qwidget.cpp:5476
#20 0x00007fa5fd9042d9 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=2, rgn=<value optimized out>, offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x394a190) at kernel/qwidget.cpp:5463
#21 0x00007fa5fd9042d9 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=3, rgn=<value optimized out>, offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x394a190) at kernel/qwidget.cpp:5463
#22 0x00007fa5fd90356a in QWidgetPrivate::drawWidget (this=0x2a51d50, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, backingStore=0x394a190) at kernel/qwidget.cpp:5412
#23 0x00007fa5fd9044a8 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=28, rgn=<value optimized out>, offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x394a190) at kernel/qwidget.cpp:5476
#24 0x00007fa5fd90356a in QWidgetPrivate::drawWidget (this=0x7fa5e4000e20, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, backingStore=0x394a190) at kernel/qwidget.cpp:5412
#25 0x00007fa5fdabd9e5 in QWidgetBackingStore::sync (this=0x394a190) at painting/qbackingstore.cpp:1300
#26 0x00007fa5fd8f5170 in QWidgetPrivate::syncBackingStore (this=0x7fa5e4000e20) at kernel/qwidget.cpp:1688
#27 0x00007fa5fd8fb915 in QWidget::event (this=0x7fa5e4000c00, event=0x5e338e0) at kernel/qwidget.cpp:8337
#28 0x00007fa5fdcbe0db in QMainWindow::event (this=0x7fa5e4000c00, event=0x5e338e0) at widgets/qmainwindow.cpp:1414
#29 0x00007fa5ffcbe5c3 in KXmlGuiWindow::event (this=0x7fff6905a990, ev=0x1) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:130
#30 0x00007fa5fd8a532c in QApplicationPrivate::notify_helper (this=0x26b8900, receiver=0x7fa5e4000c00, e=0x5e338e0) at kernel/qapplication.cpp:4302
#31 0x00007fa5fd8ab80b in QApplication::notify (this=0x7fff6905d150, receiver=0x7fa5e4000c00, e=0x5e338e0) at kernel/qapplication.cpp:4185
#32 0x0000000000439a0a in kt::App::notify (this=0x7fff6905a990, receiver=0x1, event=0xffffffffffffffff) at ../../ktorrent/app.cpp:97
#33 0x00007fa5fe5050bc in QCoreApplication::notifyInternal (this=0x7fff6905d150, receiver=0x7fa5e4000c00, event=0x5e338e0) at kernel/qcoreapplication.cpp:726
#34 0x00007fa5fe508764 in sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x268bab0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#35 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x268bab0) at kernel/qcoreapplication.cpp:1367
#36 0x00007fa5fe52eb93 in sendPostedEvents (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#37 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:276
#38 0x00007fa5f871f172 in g_main_dispatch (context=0x26bb080) at /glib2.0-2.25.14/glib/gmain.c:2119
#39 g_main_context_dispatch (context=0x26bb080) at /glib2.0-2.25.14/glib/gmain.c:2672
#40 0x00007fa5f87230c8 in g_main_context_iterate (context=0x26bb080, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at /glib2.0-2.25.14/glib/gmain.c:2750
#41 0x00007fa5f872327c in g_main_context_iteration (context=0x26bb080, may_block=1) at /glib2.0-2.25.14/glib/gmain.c:2813
#42 0x00007fa5fe52e6d3 in QEventDispatcherGlib::processEvents (this=0x268b1d0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#43 0x00007fa5fd95518e in QGuiEventDispatcherGlib::processEvents (this=0x7fff6905a990, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#44 0x00007fa5fe5039e2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#45 0x00007fa5fe503dbc in QEventLoop::exec (this=0x7fff6905d0c0, flags=) at kernel/qeventloop.cpp:201
#46 0x00007fa5fe508a4b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#47 0x0000000000428f5b in main (argc=<value optimized out>, argv=<value optimized out>) at ../../ktorrent/main.cpp:176

Possible duplicates by query: bug 251826, bug 251738, bug 251303, bug 251117, bug 250918.

Reported using DrKonqi
Comment 1 Joris Guisson 2010-09-25 11:11:50 UTC

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