Bug 411222 - Crash when quitting KTorrent
Summary: Crash when quitting KTorrent
Status: RESOLVED DUPLICATE of bug 383127
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2019-08-23 22:39 UTC by Steve Soule
Modified: 2019-09-27 16:14 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (10.17 KB, text/plain)
2019-08-30 21:33 UTC, Steve Soule
Details
New crash information added by DrKonqi (10.51 KB, text/plain)
2019-09-24 06:16 UTC, Steve Soule
Details
New crash information added by DrKonqi (10.56 KB, text/plain)
2019-09-27 16:14 UTC, Steve Soule
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Soule 2019-08-23 22:39:14 UTC
Application: ktorrent (5.1.1)

Qt Version: 5.9.7
Frameworks Version: 5.55.0
Operating System: Linux 4.12.14-lp151.28.13-default x86_64
Distribution (Platform): openSUSE RPMs

-- Information about the crash:
- What I was doing when the application crashed:
I noticed that a torrent had finished downloading.  I "stopped" it from the right-click menu.  (I did not remove the torrent from the list.)  Then I hit the "Quit" item in the "File" menu.  KTorrent froze for about 20 seconds before its window disappeared and the bug reporting window appeared.

-- Backtrace:
Application: KTorrent (ktorrent), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fd32dc21900 (LWP 2049))]

Thread 4 (Thread 0x7fd30ce23700 (LWP 3827)):
#0  0x00007fd32380c8ad in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fd3289ab11b in QWaitConditionPrivate::wait (time=18446744073709551615, this=0x564d3ee35dd0) at thread/qwaitcondition_unix.cpp:143
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x564d3eeaab90, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:215
#3  0x00007fd32d478af3 in ?? () from /usr/lib64/libKF5Torrent.so.6
#4  0x00007fd3289a9ced in QThreadPrivate::start (arg=0x564d3eeaab80) at thread/qthread_unix.cpp:368
#5  0x00007fd323806569 in start_thread () from /lib64/libpthread.so.0
#6  0x00007fd327d569ef in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7fd30e4c5700 (LWP 2062)):
#0  0x00007fd327d47c98 in read () from /lib64/libc.so.6
#1  0x00007fd320f44ca0 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fd320effcb8 in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fd320f00150 in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007fd320f002bc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007fd328be196b in QEventDispatcherGlib::processEvents (this=0x7fd304000b10, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#6  0x00007fd328b8690a in QEventLoop::exec (this=this@entry=0x7fd30e4c4cb0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#7  0x00007fd3289a4daa in QThread::exec (this=<optimized out>) at thread/qthread.cpp:515
#8  0x00007fd3289a9ced in QThreadPrivate::start (arg=0x564d3c7d4e80) at thread/qthread_unix.cpp:368
#9  0x00007fd323806569 in start_thread () from /lib64/libpthread.so.0
#10 0x00007fd327d569ef in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7fd314867700 (LWP 2056)):
#0  0x00007fd327d47c98 in read () from /lib64/libc.so.6
#1  0x00007fd320f44ca0 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fd320effcb8 in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fd320f00150 in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007fd320f002bc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007fd328be196b in QEventDispatcherGlib::processEvents (this=0x7fd308000b10, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#6  0x00007fd328b8690a in QEventLoop::exec (this=this@entry=0x7fd314866c80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#7  0x00007fd3289a4daa in QThread::exec (this=<optimized out>) at thread/qthread.cpp:515
#8  0x00007fd32a03b9e5 in ?? () from /usr/lib64/libQt5DBus.so.5
#9  0x00007fd3289a9ced in QThreadPrivate::start (arg=0x7fd32a2aed60) at thread/qthread_unix.cpp:368
#10 0x00007fd323806569 in start_thread () from /lib64/libpthread.so.0
#11 0x00007fd327d569ef in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7fd32dc21900 (LWP 2049)):
[KCrash Handler]
#6  QChar::isSurrogate (this=<optimized out>) at ../../../include/QtCore/../../src/corelib/tools/qchar.h:453
#7  QStringIterator::next (invalidAs=65533, this=<synthetic pointer>, this=<synthetic pointer>) at ../../../include/QtCore/5.9.7/QtCore/private/../../../../../src/corelib/tools/qstringiterator_p.h:168
#8  QFontEngineFT::stringToCMap (this=0x564d3e8e4960, str=<optimized out>, len=<optimized out>, glyphs=0x7ffe4c38e2a0, nglyphs=0x7ffe4c38e288, flags=...) at freetype/qfontengine_ft.cpp:1736
#9  0x00007fd329220846 in QFontEngineMulti::stringToCMap (this=0x564d3e3e7be0, str=0xd62035b1ff32, len=4, glyphs=0x7ffe4c38e2a0, nglyphs=0x7ffe4c38e288, flags=...) at text/qfontengine.cpp:1903
#10 0x00007fd329242222 in QTextEngine::shapeText (this=this@entry=0x564d3e640f80, item=item@entry=2) at text/qtextengine.cpp:1019
#11 0x00007fd329242c4f in QTextEngine::shape (this=this@entry=0x564d3e640f80, item=item@entry=2) at text/qtextengine.cpp:1566
#12 0x00007fd32925765c in QTextLine::layout_helper (this=this@entry=0x7ffe4c38e590, maxGlyphs=maxGlyphs@entry=2147483647) at text/qtextlayout.cpp:1837
#13 0x00007fd3292580a0 in QTextLine::setLineWidth (this=this@entry=0x7ffe4c38e590, width=<optimized out>) at text/qtextlayout.cpp:1600
#14 0x00007fd3299a6c91 in viewItemTextLayout (textLayout=..., lineWidth=8388607) at styles/qcommonstyle.cpp:849
#15 0x00007fd3299a9af8 in QCommonStylePrivate::viewItemSize (this=this@entry=0x564d3c7d4510, option=option@entry=0x7ffe4c38e840, role=role@entry=0) at styles/qcommonstyle.cpp:893
#16 0x00007fd3299aa436 in QCommonStylePrivate::viewItemLayout (this=0x564d3c7d4510, opt=opt@entry=0x7ffe4c38e840, checkRect=checkRect@entry=0x7ffe4c38e770, pixmapRect=pixmapRect@entry=0x7ffe4c38e750, textRect=textRect@entry=0x7ffe4c38e760, sizehint=sizehint@entry=true) at styles/qcommonstyle.cpp:990
#17 0x00007fd3299aad7f in QCommonStyle::sizeFromContents (this=0x564d3c7c4d70, ct=ct@entry=QStyle::CT_ItemViewItem, opt=0x7ffe4c38e840, csz=..., widget=0x564d3e2b51d0) at styles/qcommonstyle.cpp:4915
#18 0x00007fd30fb9dc47 in Oxygen::Style::itemViewItemSizeFromContents (this=<optimized out>, option=<optimized out>, contentsSize=..., widget=<optimized out>) at /usr/src/debug/oxygen5-5.12.8-lp151.1.2.x86_64/kstyle/oxygenstyle.cpp:3193
#19 0x00007fd329ba0fca in QStyledItemDelegate::sizeHint (this=0x564d3e2d3a00, option=..., index=...) at itemviews/qstyleditemdelegate.cpp:413
#20 0x0000564d3b7f3b84 in kt::ViewDelegate::sizeHint (this=<optimized out>, option=..., index=...) at /usr/src/debug/ktorrent-5.1.1-lp151.1.3.x86_64/ktorrent/view/viewdelegate.cpp:190
#21 0x00007fd329be4dba in QTreeView::indexRowSizeHint (this=this@entry=0x564d3e2b51d0, index=...) at itemviews/qtreeview.cpp:3001
#22 0x00007fd329be574e in QTreeViewPrivate::layout (this=this@entry=0x564d3e2b5350, i=i@entry=-1, recursiveExpanding=recursiveExpanding@entry=false, afterIsUninitialized=afterIsUninitialized@entry=false) at itemviews/qtreeview.cpp:3335
#23 0x00007fd329bed6ae in QTreeView::doItemsLayout (this=0x564d3e2b51d0) at itemviews/qtreeview.cpp:2120
#24 0x00007fd329be7d45 in QAbstractItemViewPrivate::executePostedLayout (this=0x564d3e2b5350) at ../../include/QtWidgets/5.9.7/QtWidgets/private/../../../../../src/widgets/itemviews/qabstractitemview_p.h:229
#25 QTreeViewPrivate::updateScrollBars (this=0x564d3e2b5350) at itemviews/qtreeview.cpp:3666
#26 0x00007fd329bef218 in QTreeView::updateGeometries (this=0x564d3e2b51d0) at itemviews/qtreeview.cpp:2840
#27 0x00007fd329b7e3b9 in QAbstractItemView::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at .moc/moc_qabstractitemview.cpp:418
#28 0x00007fd328bb7535 in QMetaObject::activate (sender=sender@entry=0x564d3e2c59b0, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=8, argv=argv@entry=0x0) at kernel/qobject.cpp:3767
#29 0x00007fd328bb7c07 in QMetaObject::activate (sender=sender@entry=0x564d3e2c59b0, m=m@entry=0x7fd32a0143c0 <QHeaderView::staticMetaObject>, local_signal_index=local_signal_index@entry=8, argv=argv@entry=0x0) at kernel/qobject.cpp:3629
#30 0x00007fd329b89d83 in QHeaderView::geometriesChanged (this=this@entry=0x564d3e2c59b0) at .moc/moc_qheaderview.cpp:453
#31 0x00007fd329b94551 in QHeaderView::viewportEvent (this=0x564d3e2c59b0, e=0x7ffe4c38f140) at itemviews/qheaderview.cpp:2755
#32 0x00007fd328b885bc in QCoreApplicationPrivate::sendThroughObjectEventFilters (receiver=receiver@entry=0x564d3e2c5ec0, event=event@entry=0x7ffe4c38f140) at kernel/qcoreapplication.cpp:1135
#33 0x00007fd3299323b5 in QApplicationPrivate::notify_helper (this=this@entry=0x564d3c738290, receiver=receiver@entry=0x564d3e2c5ec0, e=e@entry=0x7ffe4c38f140) at kernel/qapplication.cpp:3719
#34 0x00007fd329939ca4 in QApplication::notify (this=0x7ffe4c38f8c0, receiver=0x564d3e2c5ec0, e=0x7ffe4c38f140) at kernel/qapplication.cpp:3482
#35 0x00007fd328b888d8 in QCoreApplication::notifyInternal2 (receiver=receiver@entry=0x564d3e2c5ec0, event=event@entry=0x7ffe4c38f140) at kernel/qcoreapplication.cpp:1024
#36 0x00007fd32996beca in QCoreApplication::sendEvent (event=0x7ffe4c38f140, receiver=0x564d3e2c5ec0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:233
#37 QWidgetPrivate::hideChildren (this=<optimized out>, spontaneous=spontaneous@entry=false) at kernel/qwidget.cpp:8455
#38 0x00007fd32996beb2 in QWidgetPrivate::hideChildren (this=<optimized out>, spontaneous=spontaneous@entry=false) at kernel/qwidget.cpp:8450
#39 0x00007fd32996beb2 in QWidgetPrivate::hideChildren (this=<optimized out>, spontaneous=spontaneous@entry=false) at kernel/qwidget.cpp:8450
#40 0x00007fd32996beb2 in QWidgetPrivate::hideChildren (this=<optimized out>, spontaneous=spontaneous@entry=false) at kernel/qwidget.cpp:8450
#41 0x00007fd32996beb2 in QWidgetPrivate::hideChildren (this=<optimized out>, spontaneous=spontaneous@entry=false) at kernel/qwidget.cpp:8450
#42 0x00007fd32996beb2 in QWidgetPrivate::hideChildren (this=<optimized out>, spontaneous=spontaneous@entry=false) at kernel/qwidget.cpp:8450
#43 0x00007fd32996beb2 in QWidgetPrivate::hideChildren (this=<optimized out>, spontaneous=spontaneous@entry=false) at kernel/qwidget.cpp:8450
#44 0x00007fd32996beb2 in QWidgetPrivate::hideChildren (this=this@entry=0x564d3c840e60, spontaneous=spontaneous@entry=false) at kernel/qwidget.cpp:8450
#45 0x00007fd32996c194 in QWidgetPrivate::hide_helper (this=this@entry=0x564d3c840e60) at kernel/qwidget.cpp:8178
#46 0x00007fd329970940 in QWidget::setVisible (this=0x7ffe4c38f930, visible=<optimized out>) at kernel/qwidget.cpp:8369
#47 0x00007fd32996c458 in QWidgetPrivate::close_helper (this=0x564d3c840e60, mode=<optimized out>) at kernel/qwidget.cpp:8498
#48 0x00007fd32996caa0 in QWidget::~QWidget (this=0x7ffe4c38f930, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1633
#49 0x00007fd32c7a74bd in KMainWindow::~KMainWindow (this=0x7ffe4c38f930, __in_chrg=<optimized out>) at /usr/src/debug/kxmlgui-5.55.0-lp151.1.1.x86_64/src/kmainwindow.cpp:401
#50 0x0000564d3b77c8a7 in kt::GUI::~GUI (this=0x7ffe4c38f930, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/ktorrent-5.1.1-lp151.1.3.x86_64/ktorrent/gui.cpp:128
#51 0x0000564d3b76beb2 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/ktorrent-5.1.1-lp151.1.3.x86_64/ktorrent/main.cpp:213
[Inferior 1 (process 2049) detached]

The reporter indicates this bug may be a duplicate of or related to bug 383127.

Possible duplicates by query: bug 383127.

Reported using DrKonqi
Comment 1 Steve Soule 2019-08-30 21:33:34 UTC
Created attachment 122433 [details]
New crash information added by DrKonqi

ktorrent (5.1.1) using Qt 5.9.7

- What I was doing when the application crashed:

The circumstances and behavior are identical to last time this happened:  first, I noticed that a torrent was done downloading.  I "stopped" the torrent.  Then I picked "Quit" from the "File" menu.  The KTorrent window disappeared, and about 20 seconds later the crash-reporting window appeared.

-- Backtrace (Reduced):
#6  std::__atomic_base<int>::load (__m=std::memory_order_relaxed, this=0x73746e6f662f6572) at /usr/include/c++/7/bits/atomic_base.h:396
#7  QAtomicOps<int>::load<int> (_q_value=...) at ../../include/QtCore/../../src/corelib/arch/qatomic_cxx11.h:227
#8  QBasicAtomicInteger<int>::load (this=0x73746e6f662f6572) at ../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:102
[...]
#10 QString::QString (other=..., this=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qstring.h:907
#11 v_construct_helper<QString> (t=..., x=0x7ffed7c2c620) at ../../include/QtCore/5.9.7/QtCore/private/../../../../../src/corelib/kernel/qvariant_p.h:123
Comment 2 Christoph Feck 2019-09-01 02:24:08 UTC

*** This bug has been marked as a duplicate of bug 383127 ***
Comment 3 Steve Soule 2019-09-24 06:16:07 UTC
Created attachment 122829 [details]
New crash information added by DrKonqi

ktorrent (5.1.1) using Qt 5.9.7

- What I was doing when the application crashed:

Same as last time and the time before.  I've had this same crash in the same circumstances about five times now (and I haven't bothered to report it several of those times).

-- Backtrace (Reduced):
#6  std::__atomic_base<int>::load (__m=std::memory_order_relaxed, this=0x0) at /usr/include/c++/7/bits/atomic_base.h:396
#7  QAtomicOps<int>::load<int> (_q_value=...) at ../../include/QtCore/../../src/corelib/arch/qatomic_cxx11.h:227
#8  QBasicAtomicInteger<int>::load (this=0x0) at ../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:102
[...]
#10 QString::QString (other=..., this=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qstring.h:907
#11 v_construct_helper<QString> (t=..., x=0x7ffe17e09260) at ../../include/QtCore/5.9.7/QtCore/private/../../../../../src/corelib/kernel/qvariant_p.h:123
Comment 4 Steve Soule 2019-09-27 16:14:39 UTC
Created attachment 122909 [details]
New crash information added by DrKonqi

ktorrent (5.1.1) using Qt 5.9.7

- What I was doing when the application crashed:

Two torrents had finished.  I closed the check boxes.  I stopped them using the right-click menu.  Then I quit KTorrent from the File menu.  The KTorrent window disappeared, and twenty seconds later the crash reporter appeared.  So it's the same as last time.

-- Backtrace (Reduced):
#6  QChar::isSurrogate (this=<optimized out>) at ../../../include/QtCore/../../src/corelib/tools/qchar.h:453
#7  QStringIterator::next (invalidAs=65533, this=<synthetic pointer>, this=<synthetic pointer>) at ../../../include/QtCore/5.9.7/QtCore/private/../../../../../src/corelib/tools/qstringiterator_p.h:168
#8  QFontEngineFT::stringToCMap (this=0x557416b9d880, str=<optimized out>, len=<optimized out>, glyphs=0x7ffe6b4be220, nglyphs=0x7ffe6b4be208, flags=...) at freetype/qfontengine_ft.cpp:1736
#9  0x00007ff46bc0a846 in QFontEngineMulti::stringToCMap (this=0x5574166a58c0, str=0xaae82aaf47a6, len=1, glyphs=0x7ffe6b4be220, nglyphs=0x7ffe6b4be208, flags=...) at text/qfontengine.cpp:1903
#10 0x00007ff46bc2c222 in QTextEngine::shapeText (this=this@entry=0x5574170ccab0, item=item@entry=788) at text/qtextengine.cpp:1019