Bug 393512 - SEGFAULT on context menu display
Summary: SEGFAULT on context menu display
Status: RESOLVED WORKSFORME
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-25 16:09 UTC by Alexander Trufanov
Modified: 2018-05-18 03:45 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 Alexander Trufanov 2018-04-25 16:09:22 UTC
I've broke my keyboard and a few days was forced to use context menu commands to copy/paste text in Konsole app instead of Ctrl+Shift+C/V hotkeys that I used to. And, unfortunately, I'm faced with annoying Konsole app crashes.

Launch Konsole, make sure it's not maximized. Launch some commands in it to get output that can't be displayed on single screen. Now you have vertical scroll bar in your window. Scroll it back to the top. Select some text with mouse then press right mouse button to get a context menu. The app will crash before context menu is displayed with SEGFAULT message.

System info:

$ konsole -v
konsole 17.07.70
$ uname -a
Linux t-laptop 4.13.0-22-generic #25-Ubuntu SMP Tue Dec 19 11:13:36 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
$ sudo dpkg -l 'libkf5kiowidgets5'
ii  libkf5kiowidgets5:amd64             5.44.0-0ubuntu1~ubuntu amd64



The gdb backtrace output is:
[code]
(gdb) continue
Continuing.

Thread 1 "konsole" received signal SIGSEGV, Segmentation fault.
0x00007fca1d102682 in int QAtomicOps<int>::load<int>(std::atomic<int> const&) () from /usr/local/lib/x86_64-linux-gnu/libKF5KIOWidgets.so.5
(gdb) backtrace
#0  0x00007fca1d102682 in int QAtomicOps<int>::load<int>(std::atomic<int> const&) () from /usr/local/lib/x86_64-linux-gnu/libKF5KIOWidgets.so.5
#1  0x00007fca1d10122e in QBasicAtomicInteger<int>::load() const () from /usr/local/lib/x86_64-linux-gnu/libKF5KIOWidgets.so.5
#2  0x00007fca1d10013c in QtPrivate::RefCount::ref() () from /usr/local/lib/x86_64-linux-gnu/libKF5KIOWidgets.so.5
#3  0x00007fca1d100667 in QString::QString(QString const&) () from /usr/local/lib/x86_64-linux-gnu/libKF5KIOWidgets.so.5
#4  0x00007fca1d180c8d in KUriFilterSearchProvider::name() const () from /usr/local/lib/x86_64-linux-gnu/libKF5KIOWidgets.so.5
#5  0x00007fca1d181d0b in KUriFilterPlugin::setSearchProviders(KUriFilterData&, QList<KUriFilterSearchProvider*> const&) const ()
   from /usr/local/lib/x86_64-linux-gnu/libKF5KIOWidgets.so.5
#6  0x00007fc9f5829e20 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/urifilters/kuriikwsfilter.so
#7  0x00007fca1d18214d in KUriFilter::filterUri(KUriFilterData&, QStringList const&) () from /usr/local/lib/x86_64-linux-gnu/libKF5KIOWidgets.so.5
#8  0x00007fca1d182666 in KUriFilter::filterSearchUri(KUriFilterData&, QFlags<KUriFilter::SearchFilterType>) ()
   from /usr/local/lib/x86_64-linux-gnu/libKF5KIOWidgets.so.5
#9  0x00007fca1dc41bc7 in Konsole::SessionController::updateWebSearchMenu() () from /usr/local/lib/x86_64-linux-gnu/libkonsoleprivate.so.17
#10 0x00007fca1dc498a6 in Konsole::SessionController::showDisplayContextMenu(QPoint const&) () from /usr/local/lib/x86_64-linux-gnu/libkonsoleprivate.so.17
#11 0x00007fca1dc5410e in QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<QPoint const&>, void, void (Konsole::SessionController::*)(QPoint const&)>::call(void (Konsole::SessionController::*)(QPoint const&), Konsole::SessionController*, void**) () from /usr/local/lib/x86_64-linux-gnu/libkonsoleprivate.so.17
#12 0x00007fca1dc53322 in void QtPrivate::FunctionPointer<void (Konsole::SessionController::*)(QPoint const&)>::call<QtPrivate::List<QPoint const&>, void>(void (Konsole::SessionController::*)(QPoint const&), Konsole::SessionController*, void**) () from /usr/local/lib/x86_64-linux-gnu/libkonsoleprivate.so.17
#13 0x00007fca1dc5154f in QtPrivate::QSlotObject<void (Konsole::SessionController::*)(QPoint const&), QtPrivate::List<QPoint const&>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) () from /usr/local/lib/x86_64-linux-gnu/libkonsoleprivate.so.17
#14 0x00007fca1a35e9ff in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x00007fca1dca2356 in Konsole::TerminalDisplay::configureRequest(QPoint const&) () from /usr/local/lib/x86_64-linux-gnu/libkonsoleprivate.so.17
#16 0x00007fca1dc675f3 in Konsole::TerminalDisplay::mousePressEvent(QMouseEvent*) () from /usr/local/lib/x86_64-linux-gnu/libkonsoleprivate.so.17
#17 0x00007fca1b3a171f in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007fca1dc6c9f2 in Konsole::TerminalDisplay::event(QEvent*) () from /usr/local/lib/x86_64-linux-gnu/libkonsoleprivate.so.17
#19 0x00007fca1b36046c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007fca1b36828f in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007fca1a32fde8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007fca1b367262 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#23 0x00007fca1b3bb94b in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#24 0x00007fca1b3bdfba in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#25 0x00007fca1b36046c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#26 0x00007fca1b367d34 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#27 0x00007fca1a32fde8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#28 0x00007fca1aba4f43 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#29 0x00007fca1aba6a25 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
---Type <return> to continue, or q <return> to quit---q
Quit
[/code]
Comment 1 Alexander Trufanov 2018-04-25 16:12:11 UTC
Kubuntu 17.10
Plasma 5.12.4
KDE Frameworks 5.44.0
Qt 5.9.1
Comment 2 Kurt Hindenburg 2018-05-17 14:35:23 UTC
It looks like this is crashing on the web search feature.  I can't get it to crash and there's doesn't appear to be any recent commits dealing w/ this in Konsole.
Comment 3 Kurt Hindenburg 2018-05-17 14:38:16 UTC
konsole 17.07.70 - this is an odd version to be running - basically pre 17.08 release - is there any reason you can't update to at least 17.08 (if not 18.04)?
Comment 4 Alexander Trufanov 2018-05-17 20:05:14 UTC
I've updated to Kubuntu 18.04 and got konsole 17.12.3. As for now I can't reproduce the problem too.
Comment 5 Kurt Hindenburg 2018-05-18 03:45:42 UTC
OK thanks for the report; I'll close for now