Bug 390315 - Ktorrent crashes when removing last torrent
Summary: Ktorrent crashes when removing last torrent
Status: RESOLVED DUPLICATE of bug 388803
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: 2018-02-12 14:06 UTC by Lubomir Krajcovic
Modified: 2018-02-22 01:31 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 Lubomir Krajcovic 2018-02-12 14:06:41 UTC
Application: ktorrent (5.1.0)

Qt Version: 5.10.0
Frameworks Version: 5.42.0
Operating System: Linux 4.15.2-2-ARCH x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
Open torrent, download, remove it (using <Del>) leads to immediate crash.

This started to happen after I enabled Syndication/RSS plugin and added one feed there. It does not matter from where the torrent is added to queue (direct File->Open, or from feed).

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 0x7f2ffaba3380 (LWP 11261))]

Thread 8 (Thread 0x7f2f71764700 (LWP 18934)):
#0  0x00007f2ff4c20b10 in nanosleep () at /usr/lib/libc.so.6
#1  0x00007f2ff5af666f in  () at /usr/lib/libQt5Core.so.5
#2  0x00007f2ffa3d5d69 in  () at /usr/lib/libKF5Torrent.so.6
#3  0x00007f2ffa3d6449 in  () at /usr/lib/libKF5Torrent.so.6
#4  0x00007f2ff58adb2d in  () at /usr/lib/libQt5Core.so.5
#5  0x00007f2ff04ae08c in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007f2ff4c52e7f in clone () at /usr/lib/libc.so.6

Thread 7 (Thread 0x7f2f71f65700 (LWP 18933)):
#0  0x00007f2ff4c20b10 in nanosleep () at /usr/lib/libc.so.6
#1  0x00007f2ff5af666f in  () at /usr/lib/libQt5Core.so.5
#2  0x00007f2ffa3d6409 in  () at /usr/lib/libKF5Torrent.so.6
#3  0x00007f2ffa3d6449 in  () at /usr/lib/libKF5Torrent.so.6
#4  0x00007f2ff58adb2d in  () at /usr/lib/libQt5Core.so.5
#5  0x00007f2ff04ae08c in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007f2ff4c52e7f in clone () at /usr/lib/libc.so.6

Thread 6 (Thread 0x7f2fbfd82700 (LWP 11283)):
#0  0x00007f2ff04b43bd in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007f2ff552a5bd in __gthread_cond_wait (__mutex=<optimized out>, __cond=<optimized out>) at /build/gcc/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/gthr-default.h:864
#2  0x00007f2ff552a5bd in std::condition_variable::wait(std::unique_lock<std::mutex>&) (this=<optimized out>, __lock=...) at /build/gcc/src/gcc/libstdc++-v3/src/c++11/condition_variable.cc:53
#3  0x00007f2fc5d17aa9 in  () at /usr/lib/libQt5WebKit.so.5
#4  0x00007f2fc5d17bf9 in  () at /usr/lib/libQt5WebKit.so.5
#5  0x00007f2ff5530b9f in std::execute_native_thread_routine(void*) (__p=0x55f9d655ded0) at /build/gcc/src/gcc/libstdc++-v3/src/c++11/thread.cc:83
#6  0x00007f2ff04ae08c in start_thread () at /usr/lib/libpthread.so.0
#7  0x00007f2ff4c52e7f in clone () at /usr/lib/libc.so.6

Thread 5 (Thread 0x7f2fdbfff700 (LWP 11266)):
#0  0x00007f2ff4c5ffdb in __lll_lock_wait_private () at /usr/lib/libc.so.6
#1  0x00007f2ff4bdfcbe in realloc () at /usr/lib/libc.so.6
#2  0x00007f2ff58af3fb in QArrayData::reallocateUnaligned(QArrayData*, unsigned long, unsigned long, QFlags<QArrayData::AllocationOption>) () at /usr/lib/libQt5Core.so.5
#3  0x00007f2ff592865b in QString::reallocData(unsigned int, bool) () at /usr/lib/libQt5Core.so.5
#4  0x00007f2ff5928e2a in QString::append(QString const&) () at /usr/lib/libQt5Core.so.5
#5  0x00007f2ffa3bdb82 in bt::Log::operator<<(QString const&) () at /usr/lib/libKF5Torrent.so.6
#6  0x00007f2ffa3be132 in  () at /usr/lib/libKF5Torrent.so.6
#7  0x00007f2ff5895937 in  () at /usr/lib/libQt5Core.so.5
#8  0x00007f2ff5896774 in QMessageLogger::warning(char const*, ...) const () at /usr/lib/libQt5Core.so.5
#9  0x00007f2ff5af6b99 in  () at /usr/lib/libQt5Core.so.5
#10 0x00007f2feddb69fa in g_main_context_check () at /usr/lib/libglib-2.0.so.0
#11 0x00007f2feddb6f96 in  () at /usr/lib/libglib-2.0.so.0
#12 0x00007f2feddb710e in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#13 0x00007f2ff5af6d24 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#14 0x00007f2ff5a98e9b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#15 0x00007f2ff58a878e in QThread::exec() () at /usr/lib/libQt5Core.so.5
#16 0x00007f2ff58adb2d in  () at /usr/lib/libQt5Core.so.5
#17 0x00007f2ff04ae08c in start_thread () at /usr/lib/libpthread.so.0
#18 0x00007f2ff4c52e7f in clone () at /usr/lib/libc.so.6

Thread 4 (Thread 0x7f2fdb7fe700 (LWP 11265)):
#0  0x00007f2ff4c4897b in poll () at /usr/lib/libc.so.6
#1  0x00007f2feddb6ff3 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007f2feddb710e in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x00007f2ff5af6d24 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007f2ff5a98e9b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007f2ff58a878e in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x00007f2ff58adb2d in  () at /usr/lib/libQt5Core.so.5
#7  0x00007f2ff04ae08c in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007f2ff4c52e7f in clone () at /usr/lib/libc.so.6

Thread 3 (Thread 0x7f2fe15e3700 (LWP 11263)):
#0  0x00007f2ff4c5ffdb in __lll_lock_wait_private () at /usr/lib/libc.so.6
#1  0x00007f2ff4bdfcbe in realloc () at /usr/lib/libc.so.6
#2  0x00007f2ff58af3fb in QArrayData::reallocateUnaligned(QArrayData*, unsigned long, unsigned long, QFlags<QArrayData::AllocationOption>) () at /usr/lib/libQt5Core.so.5
#3  0x00007f2ff592865b in QString::reallocData(unsigned int, bool) () at /usr/lib/libQt5Core.so.5
#4  0x00007f2ff59286e6 in QString::resize(int) () at /usr/lib/libQt5Core.so.5
#5  0x00007f2ff592e2eb in QString::vasprintf(char const*, __va_list_tag*) () at /usr/lib/libQt5Core.so.5
#6  0x00007f2ff58957ff in  () at /usr/lib/libQt5Core.so.5
#7  0x00007f2ff5896774 in QMessageLogger::warning(char const*, ...) const () at /usr/lib/libQt5Core.so.5
#8  0x00007f2ff5af6b99 in  () at /usr/lib/libQt5Core.so.5
#9  0x00007f2feddb69fa in g_main_context_check () at /usr/lib/libglib-2.0.so.0
#10 0x00007f2feddb6f96 in  () at /usr/lib/libglib-2.0.so.0
#11 0x00007f2feddb710e in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#12 0x00007f2ff5af6d01 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#13 0x00007f2ff5a98e9b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#14 0x00007f2ff58a878e in QThread::exec() () at /usr/lib/libQt5Core.so.5
#15 0x00007f2ff6f30416 in  () at /usr/lib/libQt5DBus.so.5
#16 0x00007f2ff58adb2d in  () at /usr/lib/libQt5Core.so.5
#17 0x00007f2ff04ae08c in start_thread () at /usr/lib/libpthread.so.0
#18 0x00007f2ff4c52e7f in clone () at /usr/lib/libc.so.6

Thread 2 (Thread 0x7f2fe3b63700 (LWP 11262)):
#0  0x00007f2ff4c5ffdb in __lll_lock_wait_private () at /usr/lib/libc.so.6
#1  0x00007f2ff4bdc6fc in _int_free () at /usr/lib/libc.so.6
#2  0x00007f2ffaa0e54f in _dl_deallocate_tls () at /lib64/ld-linux-x86-64.so.2
#3  0x00007f2ff04ad307 in __free_stacks () at /usr/lib/libpthread.so.0
#4  0x00007f2ff04ad45a in __deallocate_stack () at /usr/lib/libpthread.so.0
#5  0x00007f2ff04ae35f in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007f2ff4c52e7f in clone () at /usr/lib/libc.so.6

Thread 1 (Thread 0x7f2ffaba3380 (LWP 11261)):
[KCrash Handler]
#5  0x00007f2ff4bdaddd in malloc_consolidate () at /usr/lib/libc.so.6
#6  0x00007f2ff4bdda58 in _int_malloc () at /usr/lib/libc.so.6
#7  0x00007f2ff4bdf47a in malloc () at /usr/lib/libc.so.6
#8  0x00007f2ff58af344 in QArrayData::allocate(unsigned long, unsigned long, unsigned long, QFlags<QArrayData::AllocationOption>) () at /usr/lib/libQt5Core.so.5
#9  0x00007f2ff59285c5 in QString::reallocData(unsigned int, bool) () at /usr/lib/libQt5Core.so.5
#10 0x00007f2ff592add9 in QString::replace(QChar, QChar, Qt::CaseSensitivity) () at /usr/lib/libQt5Core.so.5
#11 0x00007f2ff6a8abe7 in  () at /usr/lib/libQt5Widgets.so.5
#12 0x00007f2ff6a92250 in QStyledItemDelegate::displayText(QVariant const&, QLocale const&) const () at /usr/lib/libQt5Widgets.so.5
#13 0x00007f2ff6a93f0f in QStyledItemDelegate::initStyleOption(QStyleOptionViewItem*, QModelIndex const&) const () at /usr/lib/libQt5Widgets.so.5
#14 0x00007f2ff6a92907 in QStyledItemDelegate::paint(QPainter*, QStyleOptionViewItem const&, QModelIndex const&) const () at /usr/lib/libQt5Widgets.so.5
#15 0x00007f2ff6ad60da in QTreeView::drawRow(QPainter*, QStyleOptionViewItem const&, QModelIndex const&) const () at /usr/lib/libQt5Widgets.so.5
#16 0x00007f2ff6adb7ae in QTreeView::drawTree(QPainter*, QRegion const&) const () at /usr/lib/libQt5Widgets.so.5
#17 0x00007f2ff6ae03c8 in QTreeView::paintEvent(QPaintEvent*) () at /usr/lib/libQt5Widgets.so.5
#18 0x00007f2ff6854fc8 in QWidget::event(QEvent*) () at /usr/lib/libQt5Widgets.so.5
#19 0x00007f2ff68f8ccf in QFrame::event(QEvent*) () at /usr/lib/libQt5Widgets.so.5
#20 0x00007f2ff6a77764 in QAbstractItemView::viewportEvent(QEvent*) () at /usr/lib/libQt5Widgets.so.5
#21 0x00007f2ff6ae132d in QTreeView::viewportEvent(QEvent*) () at /usr/lib/libQt5Widgets.so.5
#22 0x00007f2ff5a9a51c in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#23 0x00007f2ff6814ea8 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#24 0x00007f2ff681c8a6 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#25 0x00007f2ff5a9a850 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#26 0x00007f2ff684d8ac in QWidgetPrivate::sendPaintEvent(QRegion const&) () at /usr/lib/libQt5Widgets.so.5
#27 0x00007f2ff684df63 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#28 0x00007f2ff684ec85 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#29 0x00007f2ff684ee16 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#30 0x00007f2ff684da8f in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#31 0x00007f2ff684ec85 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#32 0x00007f2ff684da8f in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#33 0x00007f2ff684ec85 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#34 0x00007f2ff684da8f in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#35 0x00007f2ff684ec85 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#36 0x00007f2ff684ee16 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#37 0x00007f2ff684ee16 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#38 0x00007f2ff684da8f in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#39 0x00007f2ff684ec85 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#40 0x00007f2ff684da8f in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#41 0x00007f2ff684ec85 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#42 0x00007f2ff684da8f in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#43 0x00007f2ff684ec85 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#44 0x00007f2ff684ee16 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#45 0x00007f2ff684ee16 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#46 0x00007f2ff684ee16 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#47 0x00007f2ff684da8f in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#48 0x00007f2ff68247eb in  () at /usr/lib/libQt5Widgets.so.5
#49 0x00007f2ff6824a35 in  () at /usr/lib/libQt5Widgets.so.5
#50 0x00007f2ff683c722 in QWidgetPrivate::syncBackingStore() () at /usr/lib/libQt5Widgets.so.5
#51 0x00007f2ff6855149 in QWidget::event(QEvent*) () at /usr/lib/libQt5Widgets.so.5
#52 0x00007f2ff696db41 in QMainWindow::event(QEvent*) () at /usr/lib/libQt5Widgets.so.5
#53 0x00007f2ff94e845b in KMainWindow::event(QEvent*) () at /usr/lib/libKF5XmlGui.so.5
#54 0x00007f2ff95399d6 in KXmlGuiWindow::event(QEvent*) () at /usr/lib/libKF5XmlGui.so.5
#55 0x00007f2ff6814ecc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#56 0x00007f2ff681c8a6 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#57 0x00007f2ff5a9a850 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#58 0x00007f2ff5a9d4b6 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/libQt5Core.so.5
#59 0x00007f2ff5af7714 in  () at /usr/lib/libQt5Core.so.5
#60 0x00007f2feddb6e38 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#61 0x00007f2feddb7081 in  () at /usr/lib/libglib-2.0.so.0
#62 0x00007f2feddb710e in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#63 0x00007f2ff5af6d01 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#64 0x00007f2fe67872e2 in  () at /usr/lib/libQt5XcbQpa.so.5
#65 0x00007f2ff5a98e9b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#66 0x00007f2ff5aa2188 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#67 0x000055f9d4103b6d in  ()
#68 0x00007f2ff4b7df4a in __libc_start_main () at /usr/lib/libc.so.6
#69 0x000055f9d410459a in _start ()

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

Possible duplicates by query: bug 389454, bug 388803, bug 387754.

Reported using DrKonqi
Comment 1 Christoph Feck 2018-02-22 01:31:14 UTC

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