Bug 379946 - KTorrent crashes when disabling Plugins -> Scan folder
Summary: KTorrent crashes when disabling Plugins -> Scan folder
Status: RESOLVED FIXED
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2017-05-17 15:17 UTC by Denis M. (Phr33d0m)
Modified: 2017-06-29 00:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Denis M. (Phr33d0m) 2017-05-17 15:17:10 UTC
Application: ktorrent (5.0.1)

Qt Version: 5.8.0
Frameworks Version: 5.34.0
Operating System: Linux 4.10.13-1-ARCH x86_64
Distribution: "Arch Linux"

-- Information about the crash:
- What I was doing when the application crashed:
I went to Plugins and then clicked the already enabled Scan folder checkbox to disable Scan folder. KTorrent crashes every time doing this and does not disable Scan folder.

The crash can be reproduced every time.

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

Thread 11 (Thread 0x7f8839dc0700 (LWP 526)):
#0  0x00007f88cd8be3dd in utp::UTPSocket::ok() const () at /usr/lib/libKF5Torrent.so.6
#1  0x00007f88cd7e0c9f in  () at /usr/lib/libKF5Torrent.so.6
#2  0x00007f88cd7e14b9 in  () at /usr/lib/libKF5Torrent.so.6
#3  0x00007f88c8b456d8 in  () at /usr/lib/libQt5Core.so.5
#4  0x00007f88c2e3a2e7 in start_thread () at /usr/lib/libpthread.so.0
#5  0x00007f88c7f2e54f in clone () at /usr/lib/libc.so.6

Thread 10 (Thread 0x7f883a5c1700 (LWP 525)):
#0  0x00007f88c7f29889 in syscall () at /usr/lib/libc.so.6
#1  0x00007f88c8b3c865 in QBasicMutex::lockInternal() () at /usr/lib/libQt5Core.so.5
#2  0x00007f88c8b3c922 in QMutex::lock() () at /usr/lib/libQt5Core.so.5
#3  0x00007f88cd7e129c in  () at /usr/lib/libKF5Torrent.so.6
#4  0x00007f88cd7e14b9 in  () at /usr/lib/libKF5Torrent.so.6
#5  0x00007f88c8b456d8 in  () at /usr/lib/libQt5Core.so.5
#6  0x00007f88c2e3a2e7 in start_thread () at /usr/lib/libpthread.so.0
#7  0x00007f88c7f2e54f in clone () at /usr/lib/libc.so.6

Thread 9 (Thread 0x7f887dbf4700 (LWP 521)):
#0  0x00007f88c2e40756 in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007f8882e4edcb in  () at /usr/lib/libQt5WebKit.so.5
#2  0x00007f8882e4ee09 in  () at /usr/lib/libQt5WebKit.so.5
#3  0x00007f88c2e3a2e7 in start_thread () at /usr/lib/libpthread.so.0
#4  0x00007f88c7f2e54f in clone () at /usr/lib/libc.so.6

Thread 8 (Thread 0x7f88acbac700 (LWP 519)):
#0  0x00007f88c2e40b63 in pthread_cond_timedwait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007f88c8b464c6 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib/libQt5Core.so.5
#2  0x00007f88c8b41bc4 in  () at /usr/lib/libQt5Core.so.5
#3  0x00007f88c8b456d8 in  () at /usr/lib/libQt5Core.so.5
#4  0x00007f88c2e3a2e7 in start_thread () at /usr/lib/libpthread.so.0
#5  0x00007f88c7f2e54f in clone () at /usr/lib/libc.so.6

Thread 7 (Thread 0x7f88ad3ad700 (LWP 518)):
#0  0x00007f88c2e40b63 in pthread_cond_timedwait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007f88c8b464c6 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib/libQt5Core.so.5
#2  0x00007f88c8b41bc4 in  () at /usr/lib/libQt5Core.so.5
#3  0x00007f88c8b456d8 in  () at /usr/lib/libQt5Core.so.5
#4  0x00007f88c2e3a2e7 in start_thread () at /usr/lib/libpthread.so.0
#5  0x00007f88c7f2e54f in clone () at /usr/lib/libc.so.6

Thread 6 (Thread 0x7f88adbae700 (LWP 517)):
#0  0x00007f88c2e40b63 in pthread_cond_timedwait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007f88c8b464c6 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib/libQt5Core.so.5
#2  0x00007f88c8b41bc4 in  () at /usr/lib/libQt5Core.so.5
#3  0x00007f88c8b456d8 in  () at /usr/lib/libQt5Core.so.5
#4  0x00007f88c2e3a2e7 in start_thread () at /usr/lib/libpthread.so.0
#5  0x00007f88c7f2e54f in clone () at /usr/lib/libc.so.6

Thread 5 (Thread 0x7f88ae3af700 (LWP 516)):
#0  0x00007f88c2e40b63 in pthread_cond_timedwait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007f88c8b464c6 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib/libQt5Core.so.5
#2  0x00007f88c8b41bc4 in  () at /usr/lib/libQt5Core.so.5
#3  0x00007f88c8b456d8 in  () at /usr/lib/libQt5Core.so.5
#4  0x00007f88c2e3a2e7 in start_thread () at /usr/lib/libpthread.so.0
#5  0x00007f88c7f2e54f in clone () at /usr/lib/libc.so.6

Thread 4 (Thread 0x7f88aebb0700 (LWP 515)):
#0  0x00007f88c7f2467d in poll () at /usr/lib/libc.so.6
#1  0x00007f88c084e9b6 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007f88c084eacc in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x00007f88c8d7509b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007f88c8d1e8ca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007f88c8b40a73 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x00007f88c8b456d8 in  () at /usr/lib/libQt5Core.so.5
#7  0x00007f88c2e3a2e7 in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007f88c7f2e54f in clone () at /usr/lib/libc.so.6

Thread 3 (Thread 0x7f88af5ef700 (LWP 514)):
#0  0x00007f88c7f2467d in poll () at /usr/lib/libc.so.6
#1  0x00007f88c084e9b6 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007f88c084eacc in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x00007f88c8d7509b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007f88c8d1e8ca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007f88c8b40a73 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x00007f88c8b456d8 in  () at /usr/lib/libQt5Core.so.5
#7  0x00007f88c2e3a2e7 in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007f88c7f2e54f in clone () at /usr/lib/libc.so.6

Thread 2 (Thread 0x7f88b4c5d700 (LWP 512)):
#0  0x00007f88c7f2467d in poll () at /usr/lib/libc.so.6
#1  0x00007f88c084e9b6 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007f88c084eacc in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x00007f88c8d7509b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007f88c8d1e8ca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007f88c8b40a73 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x00007f88c7496125 in  () at /usr/lib/libQt5DBus.so.5
#7  0x00007f88c8b456d8 in  () at /usr/lib/libQt5Core.so.5
#8  0x00007f88c2e3a2e7 in start_thread () at /usr/lib/libpthread.so.0
#9  0x00007f88c7f2e54f in clone () at /usr/lib/libc.so.6

Thread 1 (Thread 0x7f88cdefc640 (LWP 510)):
[KCrash Handler]
#6  0x00007f88c8bade35 in QMapDataBase::freeNodeAndRebalance(QMapNodeBase*) () at /usr/lib/libQt5Core.so.5
#7  0x00007f88caba99f3 in  () at /usr/lib/libKF5CoreAddons.so.5
#8  0x00007f88cabaa8ef in  () at /usr/lib/libKF5CoreAddons.so.5
#9  0x00007f88cabaa913 in  () at /usr/lib/libKF5CoreAddons.so.5
#10 0x00007f88cabaa913 in  () at /usr/lib/libKF5CoreAddons.so.5
#11 0x00007f88cabaa913 in  () at /usr/lib/libKF5CoreAddons.so.5
#12 0x00007f88cabaa913 in  () at /usr/lib/libKF5CoreAddons.so.5
#13 0x00007f88cabaa9be in  () at /usr/lib/libKF5CoreAddons.so.5
#14 0x00007f88caba61ee in  () at /usr/lib/libKF5CoreAddons.so.5
#15 0x00007f88caba646f in KDirWatch::~KDirWatch() () at /usr/lib/libKF5CoreAddons.so.5
#16 0x00007f88caba64b9 in KDirWatch::~KDirWatch() () at /usr/lib/libKF5CoreAddons.so.5
#17 0x00007f88c8d4a441 in QObjectPrivate::deleteChildren() () at /usr/lib/libQt5Core.so.5
#18 0x00007f88c8d53d9f in QObject::~QObject() () at /usr/lib/libQt5Core.so.5
#19 0x00007f88891e24c4 in  () at /usr/lib/qt/plugins/ktorrent/ktorrent_scanfolder.so
#20 0x00007f88891dee5f in  () at /usr/lib/qt/plugins/ktorrent/ktorrent_scanfolder.so
#21 0x00007f88891e2f5b in  () at /usr/lib/qt/plugins/ktorrent/ktorrent_scanfolder.so
#22 0x00007f88cdbc4857 in kt::PluginManager::unload(KPluginInfo const&, int) () at /usr/lib/libktcore.so.16
#23 0x00007f88cdbc561d in kt::PluginManager::loadPlugins() () at /usr/lib/libktcore.so.16
#24 0x00007f88c8d4bd79 in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib/libQt5Core.so.5
#25 0x00007f88c7c12bcf in KPluginSelector::changed(bool) () at /usr/lib/libKF5KCMUtils.so.5
#26 0x00007f88c8d4c0ee in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib/libQt5Core.so.5
#27 0x00007f88c7c12b0f in KPluginSelector::Private::PluginDelegate::changed(bool) () at /usr/lib/libKF5KCMUtils.so.5
#28 0x00007f88c8d4c0ee in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib/libQt5Core.so.5
#29 0x00007f88ca301d02 in QAbstractButton::clicked(bool) () at /usr/lib/libQt5Widgets.so.5
#30 0x00007f88ca301f54 in  () at /usr/lib/libQt5Widgets.so.5
#31 0x00007f88ca303347 in  () at /usr/lib/libQt5Widgets.so.5
#32 0x00007f88ca303524 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () at /usr/lib/libQt5Widgets.so.5
#33 0x00007f88ca260cd8 in QWidget::event(QEvent*) () at /usr/lib/libQt5Widgets.so.5
#34 0x00007f88ca21934c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#35 0x00007f88ca2218c5 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#36 0x00007f88c8d20470 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#37 0x00007f88ca2200cd in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () at /usr/lib/libQt5Widgets.so.5
#38 0x00007f88ca27b3e6 in  () at /usr/lib/libQt5Widgets.so.5
#39 0x00007f88ca27de03 in  () at /usr/lib/libQt5Widgets.so.5
#40 0x00007f88ca21934c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#41 0x00007f88ca220b61 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#42 0x00007f88c8d20470 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#43 0x00007f88c9a84d53 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /usr/lib/libQt5Gui.so.5
#44 0x00007f88c9a868c5 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /usr/lib/libQt5Gui.so.5
#45 0x00007f88c9a6244b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Gui.so.5
#46 0x00007f88b92309e0 in  () at /usr/lib/libQt5XcbQpa.so.5
#47 0x00007f88c084e7b7 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#48 0x00007f88c084ea20 in  () at /usr/lib/libglib-2.0.so.0
#49 0x00007f88c084eacc in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#50 0x00007f88c8d7507f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#51 0x00007f88c8d1e8ca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#52 0x00007f88c8d26e14 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#53 0x000000000043305b in  ()
#54 0x00007f88c7e62511 in __libc_start_main () at /usr/lib/libc.so.6
#55 0x0000000000433a8a in _start ()

Reported using DrKonqi
Comment 1 Andrius Štikonas 2017-06-29 00:21:54 UTC
Work on master branch here but not with 5.0.1. I assume it got fixed at some point.