https://bugs.kde.org/show_bug.cgi?id=399330

            Bug ID: 399330
           Summary: crash on exit
           Product: ktorrent
           Version: unspecified
          Platform: Ubuntu Packages
                OS: Linux
            Status: REPORTED
          Keywords: drkonqi
          Severity: crash
          Priority: NOR
         Component: general
          Assignee: joris.guis...@gmail.com
          Reporter: l.bonn...@laposte.net
  Target Milestone: ---

Application: ktorrent (5.1.1)

Qt Version: 5.11.1
Frameworks Version: 5.50.0
Operating System: Linux 4.18.11-041811-generic x86_64
Distribution: Ubuntu Cosmic Cuttlefish (development branch)

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

I was trying to exit ktorrent cleanly.  This crash occurs every time.

The crash can be reproduced every time.

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

Thread 9 (Thread 0x7f72993d8700 (LWP 2577)):
#0  0x00007f72c15a42eb in futex_wait_cancelable (private=<optimized out>,
expected=0, futex_word=0x5622d953d280) at
../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007f72c15a42eb in __pthread_cond_wait_common (abstime=0x0,
mutex=0x5622d953d230, cond=0x5622d953d258) at pthread_cond_wait.c:502
#2  0x00007f72c15a42eb in __pthread_cond_wait (cond=0x5622d953d258,
mutex=0x5622d953d230) at pthread_cond_wait.c:655
#3  0x00007f72c35bd43b in QWaitConditionPrivate::wait(unsigned long)
(time=18446744073709551615, this=0x5622d953d230) at
thread/qwaitcondition_unix.cpp:143
#4  0x00007f72c35bd43b in QWaitCondition::wait(QMutex*, unsigned long)
(this=this@entry=0x7f72a800c428, mutex=mutex@entry=0x7f72a800c420,
time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:215
#5  0x00007f72c52a9413 in net::ReverseResolverThread::run()
(this=0x7f72a800c410) at ./src/net/reverseresolver.cpp:124
#6  0x00007f72c35bcc87 in QThreadPrivate::start(void*) (arg=0x7f72a800c410) at
thread/qthread_unix.cpp:367
#7  0x00007f72c159e164 in start_thread (arg=<optimized out>) at
pthread_create.c:486
#8  0x00007f72c30f9def in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 8 (Thread 0x7f729b04f700 (LWP 2550)):
#0  0x00007f72c15a4846 in futex_reltimed_wait_cancelable (private=<optimized
out>, reltime=0x7f729b04ec50, expected=0, futex_word=0x5622d9421480) at
../sysdeps/unix/sysv/linux/futex-internal.h:142
#1  0x00007f72c15a4846 in __pthread_cond_wait_common (abstime=0x7f729b04ed10,
mutex=0x5622d9421430, cond=0x5622d9421458) at pthread_cond_wait.c:533
#2  0x00007f72c15a4846 in __pthread_cond_timedwait (cond=0x5622d9421458,
mutex=0x5622d9421430, abstime=0x7f729b04ed10) at pthread_cond_wait.c:667
#3  0x00007f72c35bd31c in QWaitConditionPrivate::wait_relative(unsigned long)
(time=30000, this=0x5622d9421430) at thread/qwaitcondition_unix.cpp:133
#4  0x00007f72c35bd31c in QWaitConditionPrivate::wait(unsigned long)
(time=30000, this=0x5622d9421430) at thread/qwaitcondition_unix.cpp:141
#5  0x00007f72c35bd31c in QWaitCondition::wait(QMutex*, unsigned long)
(this=this@entry=0x5622d9439320, mutex=mutex@entry=0x5622d943a1a0, time=30000)
at thread/qwaitcondition_unix.cpp:215
#6  0x00007f72c35b5182 in QThreadPoolThread::run() (this=0x5622d9439310) at
../../include/QtCore/../../src/corelib/thread/qmutex.h:240
#7  0x00007f72c35bcc87 in QThreadPrivate::start(void*) (arg=0x5622d9439310) at
thread/qthread_unix.cpp:367
#8  0x00007f72c159e164 in start_thread (arg=<optimized out>) at
pthread_create.c:486
#9  0x00007f72c30f9def in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7f729b850700 (LWP 2549)):
#0  0x00007f72c15a4846 in futex_reltimed_wait_cancelable (private=<optimized
out>, reltime=0x7f729b84fc50, expected=0, futex_word=0x5622d94360d0) at
../sysdeps/unix/sysv/linux/futex-internal.h:142
#1  0x00007f72c15a4846 in __pthread_cond_wait_common (abstime=0x7f729b84fd10,
mutex=0x5622d9436080, cond=0x5622d94360a8) at pthread_cond_wait.c:533
#2  0x00007f72c15a4846 in __pthread_cond_timedwait (cond=0x5622d94360a8,
mutex=0x5622d9436080, abstime=0x7f729b84fd10) at pthread_cond_wait.c:667
#3  0x00007f72c35bd31c in QWaitConditionPrivate::wait_relative(unsigned long)
(time=30000, this=0x5622d9436080) at thread/qwaitcondition_unix.cpp:133
#4  0x00007f72c35bd31c in QWaitConditionPrivate::wait(unsigned long)
(time=30000, this=0x5622d9436080) at thread/qwaitcondition_unix.cpp:141
#5  0x00007f72c35bd31c in QWaitCondition::wait(QMutex*, unsigned long)
(this=this@entry=0x5622d9430ef0, mutex=mutex@entry=0x5622d943a1a0, time=30000)
at thread/qwaitcondition_unix.cpp:215
#6  0x00007f72c35b5182 in QThreadPoolThread::run() (this=0x5622d9430ee0) at
../../include/QtCore/../../src/corelib/thread/qmutex.h:240
#7  0x00007f72c35bcc87 in QThreadPrivate::start(void*) (arg=0x5622d9430ee0) at
thread/qthread_unix.cpp:367
#8  0x00007f72c159e164 in start_thread (arg=<optimized out>) at
pthread_create.c:486
#9  0x00007f72c30f9def in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7f72b146a700 (LWP 2282)):
#0  0x00007f72c15a42eb in futex_wait_cancelable (private=<optimized out>,
expected=0, futex_word=0x5622d8b95748) at
../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007f72c15a42eb in __pthread_cond_wait_common (abstime=0x0,
mutex=0x5622d8b956f8, cond=0x5622d8b95720) at pthread_cond_wait.c:502
#2  0x00007f72c15a42eb in __pthread_cond_wait (cond=0x5622d8b95720,
mutex=0x5622d8b956f8) at pthread_cond_wait.c:655
#3  0x00007f72a049346b in cnd_wait (mtx=0x5622d8b956f8, cond=0x5622d8b95720) at
../../../include/c11/threads_posix.h:155
#4  0x00007f72a049346b in util_queue_thread_func
(input=input@entry=0x5622d9099950) at ../../../src/util/u_queue.c:256
#5  0x00007f72a04931d7 in impl_thrd_routine (p=<optimized out>) at
../../../include/c11/threads_posix.h:87
#6  0x00007f72c159e164 in start_thread (arg=<optimized out>) at
pthread_create.c:486
#7  0x00007f72c30f9def in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7f72b0c69700 (LWP 2257)):
#0  0x00007f72c0292509 in g_mutex_lock (mutex=mutex@entry=0x7f729c001b00) at
../../../../glib/gthread-posix.c:1343
#1  0x00007f72c024b385 in g_main_context_prepare
(context=context@entry=0x7f729c001b00, priority=priority@entry=0x7f72b0c68c50)
at ../../../../glib/gmain.c:3495
#2  0x00007f72c024bd7b in g_main_context_iterate
(context=context@entry=0x7f729c001b00, block=block@entry=1,
dispatch=dispatch@entry=1, self=<optimized out>) at
../../../../glib/gmain.c:3900
#3  0x00007f72c024bf6c in g_main_context_iteration (context=0x7f729c001b00,
may_block=may_block@entry=1) at ../../../../glib/gmain.c:3981
#4  0x00007f72c37b715b in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
(this=0x7f729c001f50, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007f72c376416b in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)
(this=this@entry=0x7f72b0c68da0, flags=..., flags@entry=...) at
../../include/QtCore/../../src/corelib/global/qflags.h:140
#6  0x00007f72c35b30b6 in QThread::exec() (this=<optimized out>) at
../../include/QtCore/../../src/corelib/global/qflags.h:120
#7  0x00007f72c35bcc87 in QThreadPrivate::start(void*) (arg=0x5622d8d92540) at
thread/qthread_unix.cpp:367
#8  0x00007f72c159e164 in start_thread (arg=<optimized out>) at
pthread_create.c:486
#9  0x00007f72c30f9def in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f72b1c6b700 (LWP 2254)):
#0  0x00007f72c30ed6d9 in __GI___poll (fds=0x7f72a801c800, nfds=1, timeout=-1)
at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f72c024be46 in g_main_context_poll (priority=<optimized out>,
n_fds=1, fds=0x7f72a801c800, timeout=<optimized out>, context=0x7f72a8000bf0)
at ../../../../glib/gmain.c:4221
#2  0x00007f72c024be46 in g_main_context_iterate
(context=context@entry=0x7f72a8000bf0, block=block@entry=1,
dispatch=dispatch@entry=1, self=<optimized out>) at
../../../../glib/gmain.c:3915
#3  0x00007f72c024bf6c in g_main_context_iteration (context=0x7f72a8000bf0,
may_block=may_block@entry=1) at ../../../../glib/gmain.c:3981
#4  0x00007f72c37b715b in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
(this=0x7f72a8000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007f72c376416b in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)
(this=this@entry=0x7f72b1c6ad70, flags=..., flags@entry=...) at
../../include/QtCore/../../src/corelib/global/qflags.h:140
#6  0x00007f72c35b30b6 in QThread::exec() (this=this@entry=0x7f72c46afd60
<(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at
../../include/QtCore/../../src/corelib/global/qflags.h:120
#7  0x00007f72c4635545 in QDBusConnectionManager::run() (this=0x7f72c46afd60
<(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at
qdbusconnection.cpp:178
#8  0x00007f72c35bcc87 in QThreadPrivate::start(void*) (arg=0x7f72c46afd60
<(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at
thread/qthread_unix.cpp:367
#9  0x00007f72c159e164 in start_thread (arg=<optimized out>) at
pthread_create.c:486
#10 0x00007f72c30f9def in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f72b246c700 (LWP 2229)):
#0  0x00007f72c30ed6d9 in __GI___poll (fds=0x5622d8b89dc0, nfds=1, timeout=-1)
at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f72c024be46 in g_main_context_poll (priority=<optimized out>,
n_fds=1, fds=0x5622d8b89dc0, timeout=<optimized out>, context=0x5622d8b880b0)
at ../../../../glib/gmain.c:4221
#2  0x00007f72c024be46 in g_main_context_iterate (context=0x5622d8b880b0,
block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at
../../../../glib/gmain.c:3915
#3  0x00007f72c024c1d2 in g_main_loop_run (loop=0x5622d8b881f0) at
../../../../glib/gmain.c:4116
#4  0x00007f72b82557b6 in gdbus_shared_thread_func (user_data=0x5622d8b88080)
at ../../../../gio/gdbusprivate.c:275
#5  0x00007f72c0274135 in g_thread_proxy (data=0x5622d8b51770) at
../../../../glib/gthread.c:784
#6  0x00007f72c159e164 in start_thread (arg=<optimized out>) at
pthread_create.c:486
#7  0x00007f72c30f9def in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f72b2c6d700 (LWP 2228)):
#0  0x00007f72c30ed6d9 in __GI___poll (fds=0x5622d8b78120, nfds=1, timeout=-1)
at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f72c024be46 in g_main_context_poll (priority=<optimized out>,
n_fds=1, fds=0x5622d8b78120, timeout=<optimized out>, context=0x5622d8b77e20)
at ../../../../glib/gmain.c:4221
#2  0x00007f72c024be46 in g_main_context_iterate
(context=context@entry=0x5622d8b77e20, block=block@entry=1,
dispatch=dispatch@entry=1, self=<optimized out>) at
../../../../glib/gmain.c:3915
#3  0x00007f72c024bf6c in g_main_context_iteration (context=0x5622d8b77e20,
may_block=may_block@entry=1) at ../../../../glib/gmain.c:3981
#4  0x00007f72c024bfb1 in glib_worker_main (data=<optimized out>) at
../../../../glib/gmain.c:5861
#5  0x00007f72c0274135 in g_thread_proxy (data=0x5622d8b51cf0) at
../../../../glib/gthread.c:784
#6  0x00007f72c159e164 in start_thread (arg=<optimized out>) at
pthread_create.c:486
#7  0x00007f72c30f9def in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f72bb82b800 (LWP 1954)):
[KCrash Handler]
#6  0x00005622d79a7dbf in bt::TorrentInterface::getDisplayName() const
(this=0x5622d8c35d90) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:937
#7  0x00005622d79a7dbf in kt::ViewModel::Item::data(int) const
(this=0x5622d8edce00, col=<optimized out>) at ./ktorrent/view/viewmodel.cpp:212
#8  0x00005622d79a9d65 in kt::ViewModel::data(QModelIndex const&, int) const
(this=<optimized out>, index=..., role=<optimized out>) at
/usr/include/x86_64-linux-gnu/qt5/QtCore/qabstractitemmodel.h:63
#9  0x00007f72c439518c in QModelIndex::data(int) const (arole=0,
this=0x7ffccca92840) at
../../include/QtCore/../../src/corelib/itemmodels/qabstractitemmodel.h:455
#10 0x00007f72c439518c in
QStyledItemDelegate::initStyleOption(QStyleOptionViewItem*, QModelIndex const&)
const (this=0x5622d8ee3f20, option=0x7ffccca926c0, index=...) at
itemviews/qstyleditemdelegate.cpp:345
#11 0x00007f72c439479e in QStyledItemDelegate::sizeHint(QStyleOptionViewItem
const&, QModelIndex const&) const (this=0x5622d8ee3f20, option=..., index=...)
at itemviews/qstyleditemdelegate.cpp:410
#12 0x00005622d79ad7d5 in kt::ViewDelegate::sizeHint(QStyleOptionViewItem
const&, QModelIndex const&) const (this=<optimized out>, option=..., index=...)
at ./ktorrent/view/viewdelegate.cpp:190
#13 0x00007f72c43d811b in QTreeView::indexRowSizeHint(QModelIndex const&) const
(this=<optimized out>, index=...) at /usr/include/c++/8/bits/atomic_base.h:390
#14 0x00007f72c43d8bbd in QTreeViewPrivate::layout(int, bool, bool)
(this=this@entry=0x5622d8ea1010, i=i@entry=-1,
recursiveExpanding=recursiveExpanding@entry=false,
afterIsUninitialized=afterIsUninitialized@entry=false) at
itemviews/qtreeview.cpp:3335
#15 0x00007f72c43e08a1 in QTreeView::doItemsLayout() (this=0x5622d8d979b0) at
itemviews/qtreeview.cpp:2120
#16 0x00007f72c43dae73 in QAbstractItemViewPrivate::executePostedLayout() const
(this=0x5622d8ea1010) at
../../include/QtWidgets/5.11.1/QtWidgets/private/../../../../../src/widgets/itemviews/qabstractitemview_p.h:94
#17 0x00007f72c43dae73 in QTreeViewPrivate::updateScrollBars()
(this=0x5622d8ea1010) at itemviews/qtreeview.cpp:3666
#18 0x00007f72c43e243e in QTreeView::updateGeometries() (this=0x5622d8d979b0)
at itemviews/qtreeview.cpp:2840
#19 0x00007f72c43719e9 in QAbstractItemView::qt_static_metacall(QObject*,
QMetaObject::Call, int, void**) (_o=<optimized out>, _c=<optimized out>,
_id=<optimized out>, _a=<optimized out>) at .moc/moc_qabstractitemview.cpp:419
#20 0x00007f72c378e6db in QMetaObject::activate(QObject*, int, int, void**)
(sender=0x5622d8eda830, signalOffset=<optimized out>,
local_signal_index=<optimized out>, argv=<optimized out>) at
kernel/qobject.cpp:3771
#21 0x00007f72c4388119 in QHeaderView::viewportEvent(QEvent*)
(this=0x5622d8eda830, e=0x7ffccca92fa0) at itemviews/qheaderview.cpp:2883
#22 0x00007f72c37651ab in
QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*)
(receiver=receiver@entry=0x5622d8edad40, event=event@entry=0x7ffccca92fa0) at
kernel/qcoreapplication.cpp:1174
#23 0x00007f72c4126491 in QApplicationPrivate::notify_helper(QObject*, QEvent*)
(this=this@entry=0x5622d8a6ffe0, receiver=receiver@entry=0x5622d8edad40,
e=e@entry=0x7ffccca92fa0) at kernel/qapplication.cpp:3723
#24 0x00007f72c412dae0 in QApplication::notify(QObject*, QEvent*)
(this=0x7ffccca93720, receiver=0x5622d8edad40, e=0x7ffccca92fa0) at
kernel/qapplication.cpp:3486
#25 0x00007f72c3765499 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
(receiver=receiver@entry=0x5622d8edad40, event=event@entry=0x7ffccca92fa0) at
../../include/QtCore/5.11.1/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:307
#26 0x00007f72c415f6c0 in QCoreApplication::sendEvent(QObject*, QEvent*)
(event=0x7ffccca92fa0, receiver=0x5622d8edad40) at
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:234
#27 0x00007f72c415f6c0 in QWidgetPrivate::hideChildren(bool) (this=<optimized
out>, spontaneous=false) at kernel/qwidget.cpp:8456
#28 0x00007f72c415f6a8 in QWidgetPrivate::hideChildren(bool) (this=<optimized
out>, spontaneous=false) at
../../include/QtCore/../../src/corelib/global/qglobal.h:1038
#29 0x00007f72c415f6a8 in QWidgetPrivate::hideChildren(bool) (this=<optimized
out>, spontaneous=false) at
../../include/QtCore/../../src/corelib/global/qglobal.h:1038
#30 0x00007f72c415f6a8 in QWidgetPrivate::hideChildren(bool) (this=<optimized
out>, spontaneous=false) at
../../include/QtCore/../../src/corelib/global/qglobal.h:1038
#31 0x00007f72c415f6a8 in QWidgetPrivate::hideChildren(bool) (this=<optimized
out>, spontaneous=false) at
../../include/QtCore/../../src/corelib/global/qglobal.h:1038
#32 0x00007f72c415f6a8 in QWidgetPrivate::hideChildren(bool) (this=<optimized
out>, spontaneous=false) at
../../include/QtCore/../../src/corelib/global/qglobal.h:1038
#33 0x00007f72c415f6a8 in QWidgetPrivate::hideChildren(bool) (this=<optimized
out>, spontaneous=false) at
../../include/QtCore/../../src/corelib/global/qglobal.h:1038
#34 0x00007f72c415f6a8 in QWidgetPrivate::hideChildren(bool)
(this=this@entry=0x5622d8bcb000, spontaneous=spontaneous@entry=false) at
../../include/QtCore/../../src/corelib/global/qglobal.h:1038
#35 0x00007f72c415f934 in QWidgetPrivate::hide_helper()
(this=this@entry=0x5622d8bcb000) at kernel/qwidget.cpp:8179
#36 0x00007f72c4164558 in QWidget::setVisible(bool) (this=0x7ffccca93790,
visible=<optimized out>) at kernel/qwidget.cpp:8370
#37 0x00007f72c415fb2a in
QWidgetPrivate::close_helper(QWidgetPrivate::CloseMode) (this=0x5622d8bcb000,
mode=<optimized out>) at kernel/qwidget.cpp:8499
#38 0x00007f72c4160299 in QWidget::~QWidget() (this=0x7ffccca93790,
__in_chrg=<optimized out>) at kernel/qwidget.cpp:1635
#39 0x00007f72c4fcb1a4 in KMainWindow::~KMainWindow() () at
/usr/lib/x86_64-linux-gnu/libKF5XmlGui.so.5
#40 0x00005622d7939367 in kt::GUI::~GUI() (this=0x7ffccca93790,
__in_chrg=<optimized out>, __vtt_parm=<optimized out>) at
./ktorrent/gui.cpp:130
#41 0x00005622d792a7be in main(int, char**) (argc=<optimized out>,
argv=<optimized out>) at ./ktorrent/main.cpp:244
[Inferior 1 (process 1954) detached]

Reported using DrKonqi

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to