Bug 307512

Summary: Ktorrent crashes without user activity
Product: [Plasma] Oxygen Reporter: emiel.tenberge
Component: generalAssignee: Hugo Pereira Da Costa <hugo.pereira.da.costa>
Status: RESOLVED DUPLICATE    
Severity: crash CC: hugo.pereira.da.costa
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=329216
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description emiel.tenberge 2012-09-28 06:12:44 UTC
Application: ktorrent (4.1.3)
KDE Platform Version: 4.8.5 (4.8.5)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-31-generic x86_64
Distribution: Ubuntu 12.04.1 LTS

-- Information about the crash:
- What I was doing when the application crashed:
Ktorrent was downloading/uploading about 20 torrents, about 5 "active". No other user activity.

The crash can be reproduced some of the time.

-- Backtrace:
Application: KTorrent (ktorrent), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f3c24718780 (LWP 27527))]

Thread 9 (Thread 0x7f3c0e8c0700 (LWP 27529)):
#0  0x00007f3c1d991f69 in __pthread_mutex_lock (mutex=0x7f3c00000a60) at pthread_mutex_lock.c:92
#1  0x00007f3c1c1795a1 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f3c1c13d851 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f3c1c13df5b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f3c1c13e164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f3c21f1b426 in QEventDispatcherGlib::processEvents (this=0x7f3c000008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007f3c21eeac82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f3c21eeaed7 in QEventLoop::exec (this=0x7f3c0e8bfe00, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f3c21de9fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#9  0x00007f3c21decfcb in QThreadPrivate::start (arg=0x2695300) at thread/qthread_unix.cpp:298
#10 0x00007f3c1d98fe9a in start_thread (arg=0x7f3c0e8c0700) at pthread_create.c:308
#11 0x00007f3c205c639d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f3c0f0c1700 (LWP 27530)):
#0  0x00007f3c205ba9e3 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f3c242151aa in net::Poll::poll (this=0x7f3c0f0c0cd0, timeout=<optimized out>) at ../../src/net/poll.cpp:99
#2  0x00007f3c2427793b in dht::RPCServer::Private::run (this=0x281cec0) at ../../src/dht/rpcserver.cpp:95
#3  0x00007f3c21decfcb in QThreadPrivate::start (arg=0x281cec0) at thread/qthread_unix.cpp:298
#4  0x00007f3c1d98fe9a in start_thread (arg=0x7f3c0f0c1700) at pthread_create.c:308
#5  0x00007f3c205c639d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f3bfd723700 (LWP 27531)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f3c07613dec in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007f3c07613f19 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007f3c1d98fe9a in start_thread (arg=0x7f3bfd723700) at pthread_create.c:308
#4  0x00007f3c205c639d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f3bfce22700 (LWP 27532)):
#0  0x00007f3c205ba9e3 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f3c1c13e036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f3c1c13e164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f3c21f1b426 in QEventDispatcherGlib::processEvents (this=0x7f3bf80008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f3c21eeac82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f3c21eeaed7 in QEventLoop::exec (this=0x7f3bfce21e00, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f3c21de9fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f3c21decfcb in QThreadPrivate::start (arg=0x355b1d0) at thread/qthread_unix.cpp:298
#8  0x00007f3c1d98fe9a in start_thread (arg=0x7f3bfce22700) at pthread_create.c:308
#9  0x00007f3c205c639d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f3bb6db6700 (LWP 27541)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:39
#1  0x00007f3c21deba9b in _q_futex (val2=0, addr2=0x0, timeout=0x0, val=2, op=0, addr=0x267ce80) at thread/qmutex_unix.cpp:99
#2  QMutexPrivate::wait (this=0x267ce80, timeout=<optimized out>) at thread/qmutex_unix.cpp:113
#3  0x00007f3c21de79cd in QMutex::lock (this=<optimized out>) at thread/qmutex.cpp:164
#4  0x00007f3c24211cea in net::DownloadThread::waitForSocketReady (this=0x2692b60) at ../../src/net/downloadthread.cpp:110
#5  0x00007f3c24211f56 in net::DownloadThread::update (this=0x2692b60) at ../../src/net/downloadthread.cpp:48
#6  0x00007f3c24212169 in net::NetworkThread::run (this=0x2692b60) at ../../src/net/networkthread.cpp:48
#7  0x00007f3c21decfcb in QThreadPrivate::start (arg=0x2692b60) at thread/qthread_unix.cpp:298
#8  0x00007f3c1d98fe9a in start_thread (arg=0x7f3bb6db6700) at pthread_create.c:308
#9  0x00007f3c205c639d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f3bb65b5700 (LWP 27542)):
#0  internalSet (actual=0x7f3c00181bc0, o=0x7f3c00322520, this=<synthetic pointer>) at /usr/include/qt4/QtCore/qsharedpointer_impl.h:431
#1  operator=<utp::Connection> (other=..., this=<synthetic pointer>) at /usr/include/qt4/QtCore/qsharedpointer_impl.h:500
#2  QSharedPointer<utp::Connection> (other=..., this=<synthetic pointer>) at /usr/include/qt4/QtCore/qsharedpointer_impl.h:496
#3  toStrongRef (this=0x7f3c001278a8) at /usr/include/qt4/QtCore/qsharedpointer_impl.h:649
#4  utp::UTPSocket::ok (this=<optimized out>) at ../../src/utp/utpsocket.cpp:139
#5  0x00007f3c242118aa in update (this=0x2680980) at ../../src/net/uploadthread.cpp:57
#6  net::UploadThread::update (this=0x2680980) at ../../src/net/uploadthread.cpp:43
#7  0x00007f3c24212169 in net::NetworkThread::run (this=0x2680980) at ../../src/net/networkthread.cpp:48
#8  0x00007f3c21decfcb in QThreadPrivate::start (arg=0x2680980) at thread/qthread_unix.cpp:298
#9  0x00007f3c1d98fe9a in start_thread (arg=0x7f3bb65b5700) at pthread_create.c:308
#10 0x00007f3c205c639d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f3baffff700 (LWP 27543)):
#0  0x00007f3c205b8f9d in read () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f3c2054e968 in _IO_new_file_underflow (fp=0x7f3ba4005010) at fileops.c:619
#2  0x00007f3c2054f9ae in _IO_default_uflow (fp=0x7f3ba4005010) at genops.c:440
#3  0x00007f3c20543afa in _IO_getline_info (fp=0x7f3ba4005010, buf=0x7f3bafffe1e0 "\030", n=255, delim=10, extract_delim=1, eof=0x0) at iogetline.c:74
#4  0x00007f3c205429db in _IO_fgets (buf=0x7f3bafffe1e0 "\030", n=<optimized out>, fp=0x7f3ba4005010) at iofgets.c:58
#5  0x00007f3bb5bb311f in ?? () from /lib/libnss_mdns4.so.2
#6  0x00007f3bb5bb384f in _nss_mdns4_gethostbyaddr_r () from /lib/libnss_mdns4.so.2
#7  0x00007f3c205def52 in __gethostbyaddr_r (addr=0x3872d04, len=4, type=2, resbuf=0x7f3bafffeb50, buffer=0x7f3bafffe550 "\377\002", buflen=1024, result=0x7f3bafffeb90, h_errnop=0x7f3bafffebb0) at ../nss/getXXbyYY_r.c:256
#8  0x00007f3c205e53e7 in __GI_getnameinfo (sa=0x3872d00, addrlen=<optimized out>, host=0x7f3bafffec10 "", hostlen=199, serv=0x7f3bafffece0 "", servlen=199, flags=8) at getnameinfo.c:223
#9  0x00007f3c2421482f in net::ReverseResolver::resolve (this=<optimized out>, addr=...) at ../../src/net/reverseresolver.cpp:64
#10 0x00007f3c242148c7 in net::ReverseResolver::run (this=0x3fe93c0) at ../../src/net/reverseresolver.cpp:73
#11 0x00007f3c24214c47 in net::ReverseResolverThread::run (this=0x363b290) at ../../src/net/reverseresolver.cpp:118
#12 0x00007f3c21decfcb in QThreadPrivate::start (arg=0x363b290) at thread/qthread_unix.cpp:298
#13 0x00007f3c1d98fe9a in start_thread (arg=0x7f3baffff700) at pthread_create.c:308
#14 0x00007f3c205c639d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#15 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f3bb79c2700 (LWP 27580)):
#0  0x00007f3c1c13d983 in g_main_context_query () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f3c1c13dfaa in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f3c1c13e164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f3c21f1b426 in QEventDispatcherGlib::processEvents (this=0x7f3bb0002c70, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f3c21eeac82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f3c21eeaed7 in QEventLoop::exec (this=0x7f3bb79c1dd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f3c21de9fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f3c21eca9ff in QInotifyFileSystemWatcherEngine::run (this=0x363ac10) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f3c21decfcb in QThreadPrivate::start (arg=0x363ac10) at thread/qthread_unix.cpp:298
#9  0x00007f3c1d98fe9a in start_thread (arg=0x7f3bb79c2700) at pthread_create.c:308
#10 0x00007f3c205c639d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f3c24718780 (LWP 27527)):
[KCrash Handler]
#6  0x00007f3c2050a405 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f3c2050db6b in __GI_abort () at abort.c:91
#8  0x00007f3c20547d0e in __libc_message (do_abort=2, fmt=0x7f3c2064ffb0 "*** glibc detected *** %s: %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:201
#9  0x00007f3c20552506 in malloc_printerr (action=3, str=0x7f3c20650110 "double free or corruption (out)", ptr=<optimized out>) at malloc.c:5007
#10 0x00007f3c2132b3f5 in QImageData::~QImageData (this=0x3a03ec0, __in_chrg=<optimized out>) at image/qimage.cpp:226
#11 0x00007f3c2132b483 in QImage::~QImage (this=0x4195e80, __in_chrg=<optimized out>) at image/qimage.cpp:1283
#12 0x00007f3c21354a8f in QRasterPixmapData::~QRasterPixmapData (this=0x4195e50, __in_chrg=<optimized out>) at image/qpixmap_raster.cpp:93
#13 0x00007f3c21354ac9 in QRasterPixmapData::~QRasterPixmapData (this=0x4195e50, __in_chrg=<optimized out>) at image/qpixmap_raster.cpp:95
#14 0x00007f3c21346de7 in operator= (o=..., this=0x30e1f70) at ../../include/QtCore/../../src/corelib/tools/qshareddata.h:185
#15 operator= (pixmap=..., this=0x30e1f60) at image/qpixmap.cpp:463
#16 QPixmap::operator= (this=0x30e1f60, pixmap=...) at image/qpixmap.cpp:454
#17 0x00007f3c140ea62a in ?? () from /usr/lib/kde4/plugins/styles/oxygen.so
#18 0x00007f3c140eadbb in ?? () from /usr/lib/kde4/plugins/styles/oxygen.so
#19 0x00007f3c21eec028 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<optimized out>, receiver=0x30df6f0, event=0x7fff2b5a7a50) at kernel/qcoreapplication.cpp:986
#20 0x00007f3c2126e85f in notify_helper (e=0x7fff2b5a7a50, receiver=0x30df6f0, this=0x26bc9b0) at kernel/qapplication.cpp:4555
#21 QApplicationPrivate::notify_helper (this=0x26bc9b0, receiver=0x30df6f0, e=0x7fff2b5a7a50) at kernel/qapplication.cpp:4531
#22 0x00007f3c21273713 in QApplication::notify (this=0x7fff2b5a9540, receiver=0x30df6f0, e=0x7fff2b5a7a50) at kernel/qapplication.cpp:4420
#23 0x0000000000439a21 in kt::App::notify (this=<optimized out>, receiver=<optimized out>, event=<optimized out>) at ../../ktorrent/app.cpp:99
#24 0x00007f3c21eebe9c in QCoreApplication::notifyInternal (this=0x7fff2b5a9540, receiver=0x30df6f0, event=0x7fff2b5a7a50) at kernel/qcoreapplication.cpp:876
#25 0x00007f3c212bad96 in sendSpontaneousEvent (event=0x7fff2b5a7a50, receiver=0x30df6f0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:234
#26 QWidgetPrivate::drawWidget (this=0x30e17b0, pdev=0x3599f20, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x30f6cc0) at kernel/qwidget.cpp:5585
#27 0x00007f3c212bba0f in QWidgetPrivate::paintSiblingsRecursive (this=0x30de9b0, pdev=0x3599f20, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x30f6cc0) at kernel/qwidget.cpp:5794
#28 0x00007f3c212bb797 in QWidgetPrivate::paintSiblingsRecursive (this=0x30de9b0, pdev=0x3599f20, siblings=..., index=1, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x30f6cc0) at kernel/qwidget.cpp:5781
#29 0x00007f3c212baacc in QWidgetPrivate::drawWidget (this=0x30de9b0, pdev=0x3599f20, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x30f6cc0) at kernel/qwidget.cpp:5638
#30 0x00007f3c212bba0f in QWidgetPrivate::paintSiblingsRecursive (this=0x2801e50, pdev=0x3599f20, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x30f6cc0) at kernel/qwidget.cpp:5794
#31 0x00007f3c212baacc in QWidgetPrivate::drawWidget (this=0x2801e50, pdev=0x3599f20, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x30f6cc0) at kernel/qwidget.cpp:5638
#32 0x00007f3c2148bb58 in QWidgetBackingStore::sync (this=0x30f6cc0) at painting/qbackingstore.cpp:1373
#33 0x00007f3c212b1ac0 in QWidgetPrivate::syncBackingStore (this=0x2801e50) at kernel/qwidget.cpp:1891
#34 0x00007f3c212bf60c in QWidget::event (this=0x2801d30, event=0x3e60510) at kernel/qwidget.cpp:8655
#35 0x00007f3c21698c4b in QMainWindow::event (this=0x2801d30, event=0x3e60510) at widgets/qmainwindow.cpp:1478
#36 0x00007f3c22a4d378 in KXmlGuiWindow::event (this=0x2801d30, ev=0x3e60510) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:126
#37 0x00007f3c2126e894 in notify_helper (e=0x3e60510, receiver=0x2801d30, this=0x26bc9b0) at kernel/qapplication.cpp:4559
#38 QApplicationPrivate::notify_helper (this=0x26bc9b0, receiver=0x2801d30, e=0x3e60510) at kernel/qapplication.cpp:4531
#39 0x00007f3c21273713 in QApplication::notify (this=0x7fff2b5a9540, receiver=0x2801d30, e=0x3e60510) at kernel/qapplication.cpp:4420
#40 0x0000000000439a21 in kt::App::notify (this=<optimized out>, receiver=<optimized out>, event=<optimized out>) at ../../ktorrent/app.cpp:99
#41 0x00007f3c21eebe9c in QCoreApplication::notifyInternal (this=0x7fff2b5a9540, receiver=0x2801d30, event=0x3e60510) at kernel/qcoreapplication.cpp:876
#42 0x00007f3c21eefc6a in sendEvent (event=0x3e60510, receiver=0x2801d30) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#43 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x2644670) at kernel/qcoreapplication.cpp:1500
#44 0x00007f3c21f1af93 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#45 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:279
#46 0x00007f3c1c13dd53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#47 0x00007f3c1c13e0a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#48 0x00007f3c1c13e164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#49 0x00007f3c21f1b3bf in QEventDispatcherGlib::processEvents (this=0x2645b30, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#50 0x00007f3c21316d5e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#51 0x00007f3c21eeac82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#52 0x00007f3c21eeaed7 in QEventLoop::exec (this=0x7fff2b5a94d0, flags=...) at kernel/qeventloop.cpp:204
#53 0x00007f3c21eeff67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#54 0x0000000000428452 in main (argc=5, argv=0x7fff2b5aa3b8) at ../../ktorrent/main.cpp:177

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

Possible duplicates by query: bug 306286, bug 306284, bug 306240, bug 305122, bug 303828.

Reported using DrKonqi
Comment 1 Jekyll Wu 2013-01-01 21:06:00 UTC
Either a oxygen problem or Qt problem.
Comment 2 Joris Guisson 2013-03-11 19:14:12 UTC
Oxygen people should decide if it is their problem or Qt's, reassigning
Comment 3 Hugo Pereira Da Costa 2014-01-04 19:07:59 UTC
can you try 
ktorrent -graphicssystem=native 
and see if the crash still happens ? 
this really looks like an issue with Qt's raster engine.
Comment 4 Hugo Pereira Da Costa 2014-01-04 19:08:33 UTC

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