Bug 386400 - KTorrent crash while closing application
Summary: KTorrent crash while closing application
Status: RESOLVED DUPLICATE of bug 385766
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: 2017-10-31 20:30 UTC by steffko
Modified: 2017-11-15 21:21 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 steffko 2017-10-31 20:30:18 UTC
Application: ktorrent (5.1.0)

Qt Version: 5.9.2
Frameworks Version: 5.39.0
Operating System: Linux 4.13.9-1-default x86_64
Distribution: "openSUSE Tumbleweed"

-- Information about the crash:
- What I was doing when the application crashed:

Closing KTorrent with Ctrl+Q results in crash. The goal is achieved, but not as intended.

The crash can be reproduced sometimes.

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

Thread 6 (Thread 0x7fb8e753d700 (LWP 11004)):
#0  0x00007fb91f7267e8 in __GI___libc_read (fd=fd@entry=64, buf=buf@entry=0x7fb8e753caee, nbytes=nbytes@entry=10) at ../sysdeps/unix/sysv/linux/read.c:26
#1  0x00007fb914a82751 in read (__nbytes=10, __buf=0x7fb8e753caee, __fd=64) at /usr/include/bits/unistd.h:44
#2  pa_read (fd=64, buf=buf@entry=0x7fb8e753caee, count=count@entry=10, type=type@entry=0x55dc9cbaafa8) at pulsecore/core-util.c:434
#3  0x00007fb9174bfdde in clear_wakeup (m=<optimized out>) at pulse/mainloop.c:781
#4  pa_mainloop_prepare (m=m@entry=0x55dc9cbaaed0, timeout=-1) at pulse/mainloop.c:789
#5  0x00007fb9174c0850 in pa_mainloop_iterate (m=0x55dc9cbaaed0, block=<optimized out>, retval=0x0) at pulse/mainloop.c:923
#6  0x00007fb9174c0910 in pa_mainloop_run (m=0x55dc9cbaaed0, retval=retval@entry=0x0) at pulse/mainloop.c:944
#7  0x00007fb9174ce779 in thread (userdata=0x55dc9cae60d0) at pulse/thread-mainloop.c:100
#8  0x00007fb914ab1438 in internal_thread_func (userdata=0x55dc9d141a20) at pulsecore/thread-posix.c:81
#9  0x00007fb91b3fe558 in start_thread (arg=0x7fb8e753d700) at pthread_create.c:465
#10 0x00007fb91f73543f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7fb8e5b34700 (LWP 1695)):
#0  0x00007fb91b40482d in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7fb9080068c4) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x7fb908006870, cond=0x7fb908006898) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x7fb908006898, mutex=0x7fb908006870) at pthread_cond_wait.c:655
#3  0x00007fb920393f2b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQt5Core.so.5
#4  0x00007fb924db2b33 in net::ReverseResolverThread::run (this=0x55dc9cb81dd0) at /usr/src/debug/libktorrent-2.1/src/net/reverseresolver.cpp:124
#5  0x00007fb920392c0e in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#6  0x00007fb91b3fe558 in start_thread (arg=0x7fb8e5b34700) at pthread_create.c:465
#7  0x00007fb91f73543f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fb8f093e700 (LWP 1678)):
#0  0x00007fb91b40482d in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55dc9c888c04) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55dc9c888bb0, cond=0x55dc9c888bd8) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55dc9c888bd8, mutex=0x55dc9c888bb0) at pthread_cond_wait.c:655
#3  0x00007fb920393f2b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQt5Core.so.5
#4  0x00007fb92038cd8b in QSemaphore::acquire(int) () from /usr/lib64/libQt5Core.so.5
#5  0x00007fb922737974 in QLibProxyWrapper::run() () from /usr/lib64/libQt5Network.so.5
#6  0x00007fb920392c0e in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#7  0x00007fb91b3fe558 in start_thread (arg=0x7fb8f093e700) at pthread_create.c:465
#8  0x00007fb91f73543f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fb906be4700 (LWP 1676)):
#0  0x00007fb9190546f9 in g_mutex_lock (mutex=mutex@entry=0x7fb8f4000be0) at gthread-posix.c:1336
#1  0x00007fb91900e4f5 in g_main_context_prepare (context=context@entry=0x7fb8f4000be0, priority=priority@entry=0x7fb906be3ba0) at gmain.c:3384
#2  0x00007fb91900f07b in g_main_context_iterate (context=context@entry=0x7fb8f4000be0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3866
#3  0x00007fb91900f25c in g_main_context_iteration (context=0x7fb8f4000be0, may_block=1) at gmain.c:3947
#4  0x00007fb9205b625b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007fb92055e73a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#6  0x00007fb92038e1fa in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#7  0x00007fb920392c0e in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#8  0x00007fb91b3fe558 in start_thread (arg=0x7fb906be4700) at pthread_create.c:465
#9  0x00007fb91f73543f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fb90cc55700 (LWP 1674)):
#0  0x00007fb91f72ac8b in __GI___poll (fds=0x7fb90001d230, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fb91900f149 in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x7fb90001d230, timeout=<optimized out>, context=0x7fb900000be0) at gmain.c:4187
#2  g_main_context_iterate (context=context@entry=0x7fb900000be0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3881
#3  0x00007fb91900f25c in g_main_context_iteration (context=0x7fb900000be0, may_block=1) at gmain.c:3947
#4  0x00007fb9205b625b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007fb92055e73a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#6  0x00007fb92038e1fa in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#7  0x00007fb9219c2a45 in QDBusConnectionManager::run() () from /usr/lib64/libQt5DBus.so.5
#8  0x00007fb920392c0e in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#9  0x00007fb91b3fe558 in start_thread (arg=0x7fb90cc55700) at pthread_create.c:465
#10 0x00007fb91f73543f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fb925575900 (LWP 1672)):
[KCrash Handler]
#6  0x00007fb920405e83 in findChar(QChar const*, int, QChar, int, Qt::CaseSensitivity) () from /usr/lib64/libQt5Core.so.5
#7  0x00007fb92040b1c7 in QString::replace(QChar, QChar, Qt::CaseSensitivity) () from /usr/lib64/libQt5Core.so.5
#8  0x00007fb92152716d in QAbstractItemDelegatePrivate::textForRole(Qt::ItemDataRole, QVariant const&, QLocale const&, int) const () from /usr/lib64/libQt5Widgets.so.5
#9  0x00007fb92152e08b in QStyledItemDelegate::displayText(QVariant const&, QLocale const&) const () from /usr/lib64/libQt5Widgets.so.5
#10 0x00007fb92152fb6e in QStyledItemDelegate::initStyleOption(QStyleOptionViewItem*, QModelIndex const&) const () from /usr/lib64/libQt5Widgets.so.5
#11 0x00007fb92152ecd9 in QStyledItemDelegate::sizeHint(QStyleOptionViewItem const&, QModelIndex const&) const () from /usr/lib64/libQt5Widgets.so.5
#12 0x00007fb92156f2ca in QTreeView::indexRowSizeHint(QModelIndex const&) const () from /usr/lib64/libQt5Widgets.so.5
#13 0x00007fb92156fbfe in QTreeViewPrivate::layout(int, bool, bool) () from /usr/lib64/libQt5Widgets.so.5
#14 0x00007fb9215776fa in QTreeView::doItemsLayout() () from /usr/lib64/libQt5Widgets.so.5
#15 0x00007fb9215722e5 in QTreeViewPrivate::updateScrollBars() () from /usr/lib64/libQt5Widgets.so.5
#16 0x00007fb921579108 in QTreeView::updateGeometries() () from /usr/lib64/libQt5Widgets.so.5
#17 0x00007fb9213182f2 in QWidget::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#18 0x00007fb9213b57fe in QFrame::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#19 0x00007fb921514d9c in QAbstractItemView::viewportEvent(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#20 0x00007fb921577f0c in QTreeView::viewportEvent(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#21 0x00007fb92055fe34 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#22 0x00007fb9212dbad5 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#23 0x00007fb9212e2eb4 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#24 0x00007fb920560128 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#25 0x00007fb921310ccb in QWidgetPrivate::sendPendingMoveAndResizeEvents(bool, bool) () from /usr/lib64/libQt5Widgets.so.5
#26 0x00007fb921314853 in QWidgetPrivate::show_helper() () from /usr/lib64/libQt5Widgets.so.5
#27 0x00007fb92131738b in QWidget::setVisible(bool) () from /usr/lib64/libQt5Widgets.so.5
#28 0x00007fb9213147d0 in QWidgetPrivate::showChildren(bool) () from /usr/lib64/libQt5Widgets.so.5
#29 0x00007fb92131486f in QWidgetPrivate::show_helper() () from /usr/lib64/libQt5Widgets.so.5
#30 0x00007fb92131738b in QWidget::setVisible(bool) () from /usr/lib64/libQt5Widgets.so.5
#31 0x00007fb9213147d0 in QWidgetPrivate::showChildren(bool) () from /usr/lib64/libQt5Widgets.so.5
#32 0x00007fb92131486f in QWidgetPrivate::show_helper() () from /usr/lib64/libQt5Widgets.so.5
#33 0x00007fb92131478e in QWidgetPrivate::showChildren(bool) () from /usr/lib64/libQt5Widgets.so.5
#34 0x00007fb92131486f in QWidgetPrivate::show_helper() () from /usr/lib64/libQt5Widgets.so.5
#35 0x00007fb92131738b in QWidget::setVisible(bool) () from /usr/lib64/libQt5Widgets.so.5
#36 0x00007fb9251690ad in kt::TabBarWidget::unshrink (this=0x55dc9c28f240) at /usr/src/debug/ktorrent-5.1.0/libktcore/gui/tabbarwidget.cpp:178
#37 0x00007fb92058d73c in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#38 0x00007fb925172cff in kt::ActionGroup::actionTriggered (this=<optimized out>, _t1=<optimized out>) at /usr/src/debug/ktorrent-5.1.0/build/libktcore/ktcore_autogen/DMHXEJ42XS/moc_tabbarwidget.cpp:264
#39 0x00007fb92058d73c in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#40 0x00007fb9212d59e2 in QAction::toggled(bool) () from /usr/lib64/libQt5Widgets.so.5
#41 0x00007fb9212d7d0c in QAction::setChecked(bool) () from /usr/lib64/libQt5Widgets.so.5
#42 0x00007fb8f0b6e7b8 in kt::InfoWidgetPlugin::unload (this=0x55dc9c66c4b0) at /usr/src/debug/ktorrent-5.1.0/plugins/infowidget/infowidgetplugin.cpp:117
#43 0x00007fb92516a9b6 in kt::PluginManager::unloadAll (this=0x55dc9c01f270) at /usr/src/debug/ktorrent-5.1.0/libktcore/plugin/pluginmanager.cpp:207
#44 0x000055dc9a8e0c4d in kt::Core::onExit (this=0x55dc9bfee370) at /usr/src/debug/ktorrent-5.1.0/ktorrent/core.cpp:878
#45 0x00007fb92058d73c in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#46 0x00007fb92055eef7 in QCoreApplication::aboutToQuit(QCoreApplication::QPrivateSignal) () from /usr/lib64/libQt5Core.so.5
#47 0x00007fb920562ccb in QCoreApplicationPrivate::execCleanup() () from /usr/lib64/libQt5Core.so.5
#48 0x00007fb920566fdd in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5
#49 0x000055dc9a8ddc8a in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/ktorrent-5.1.0/ktorrent/main.cpp:243

Reported using DrKonqi
Comment 1 Christoph Feck 2017-11-15 21:21:24 UTC
Different backtrace, but same cause: The data referenced by the item delegate is no longer valid.

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