Bug 440619 - paste in Konsole tab failed, then crash
Summary: paste in Konsole tab failed, then crash
Status: RESOLVED WORKSFORME
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 21.04.2
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2021-08-05 02:15 UTC by skierpage
Modified: 2023-03-05 03:45 UTC (History)
4 users (show)

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 skierpage 2021-08-05 02:15:33 UTC
Application: konsole (21.04.2)

Qt Version: 5.15.2
Frameworks Version: 5.83.0
Operating System: Linux 5.13.5-200.fc34.x86_64 x86_64
Windowing System: Wayland
Drkonqi Version: 5.22.4
Distribution: "Fedora release 34 (Thirty Four)"

-- Information about the crash:
- What I was doing when the application crashed:
I have two Konsole tabs. I selected a line of text in one and middle-clicked, didn't get anything. So I copied the line of text and tried paste (Ctrl+Shift+V), got wrong text "Q)" or something. I repeated the copy and still failed. Then Konsole crashed!

- Unusual behavior I noticed:
Primary selection (middle-click) failed, and copy-paste failed.

The reporter is unsure if this crash is reproducible.

-- Backtrace:
Application: Konsole (konsole), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f692d1c17e4 in QMainWindow::toolBarArea(QToolBar*) const () from /lib64/libQt5Widgets.so.5
#5  0x00007f692dad2ab7 in KToolBar::saveState(QDomElement&) const () from /lib64/libKF5XmlGui.so.5
#6  0x00007f692dadb197 in KXMLGUIBuilder::removeContainer(QWidget*, QWidget*, QDomElement&, QAction*) () from /lib64/libKF5XmlGui.so.5
#7  0x00007f692dae6df7 in KXMLGUI::ContainerNode::destruct(QDomElement, KXMLGUI::BuildState&) () from /lib64/libKF5XmlGui.so.5
#8  0x00007f692dae6893 in KXMLGUI::ContainerNode::destruct(QDomElement, KXMLGUI::BuildState&) () from /lib64/libKF5XmlGui.so.5
#9  0x00007f692dae72a3 in KXMLGUIFactory::removeClient(KXMLGUIClient*) () from /lib64/libKF5XmlGui.so.5
#10 0x00007f692dae224e in KXMLGUIFactory::addClient(KXMLGUIClient*) () from /lib64/libKF5XmlGui.so.5
#11 0x00007f692e4df23b in Konsole::MainWindow::activeViewChanged(Konsole::SessionController*) () from /lib64/libkdeinit5_konsole.so
#12 0x00007f692e178c99 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#13 0x00007f692dbb1096 in Konsole::ViewManager::activeViewChanged(Konsole::SessionController*) () from /lib64/libkonsoleprivate.so.21
#14 0x00007f692e178c99 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#15 0x00007f692dc33ae3 in Konsole::SessionController::viewFocused(Konsole::SessionController*) () from /lib64/libkonsoleprivate.so.21
#16 0x00007f692dc41d40 in Konsole::SessionController::viewFocusChangeHandler(bool) () from /lib64/libkonsoleprivate.so.21
#17 0x00007f692e178c99 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#18 0x00007f692dbb1956 in Konsole::TerminalDisplay::compositeFocusChanged(bool) () from /lib64/libkonsoleprivate.so.21
#19 0x00007f692e178c99 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#20 0x00007f692dc0e551 in Konsole::CompositeWidgetFocusWatcher::eventFilter(QObject*, QEvent*) () from /lib64/libkonsoleprivate.so.21
#21 0x00007f692e144e4d in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#22 0x00007f692d067412 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#23 0x00007f692e145098 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#24 0x00007f692d06b929 in QApplicationPrivate::setFocusWidget(QWidget*, Qt::FocusReason) () from /lib64/libQt5Widgets.so.5
#25 0x00007f692d0a3bf6 in QWidget::setFocus(Qt::FocusReason) () from /lib64/libQt5Widgets.so.5
#26 0x00007f692d06bdf5 in QApplication::setActiveWindow(QWidget*) () from /lib64/libQt5Widgets.so.5
#27 0x00007f692d06be73 in QApplicationPrivate::notifyActiveWindowChange(QWindow*) () from /lib64/libQt5Widgets.so.5
#28 0x00007f692c9dfb15 in QGuiApplicationPrivate::processActivatedEvent(QWindowSystemInterfacePrivate::ActivatedWindowEvent*) () from /lib64/libQt5Gui.so.5
#29 0x00007f692c9c2d0c in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Gui.so.5
#30 0x00007f6928b598a4 in userEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5WaylandClient.so.5
#31 0x00007f692bd934cf in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#32 0x00007f692bde74e8 in g_main_context_iterate.constprop () from /lib64/libglib-2.0.so.0
#33 0x00007f692bd90c03 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#34 0x00007f692e196698 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#35 0x00007f692e143ab2 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#36 0x00007f692e14bfe4 in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#37 0x00007f692e4f066d in kdemain () from /lib64/libkdeinit5_konsole.so
#38 0x00007f692dcf7b75 in __libc_start_main () from /lib64/libc.so.6
#39 0x000055a9e254814e in _start ()
[Inferior 1 (process 3481) detached]

Possible duplicates by query: bug 408999, bug 389942, bug 261776, bug 238864, bug 202934.

Reported using DrKonqi
Comment 1 Ahmad Samir 2021-08-05 10:22:19 UTC
Could you install the debuginfo packages and provide a backtrace again?
Comment 2 Ömer Fadıl USTA 2021-08-16 00:15:50 UTC
not sure if it is same bug or not but just 1 minutes ago i hit this bug
(on my recent kdesrc-build 's build)

Here is the backtrace (for my bug ) 

Application: Konsole (konsole), signal: Aborted
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = 0x0}
[KCrash Handler]
#5  0x00007fe011346d22 in raise () from /usr/lib/libc.so.6
#6  0x00007fe011330862 in abort () from /usr/lib/libc.so.6
#7  0x00007fe0118db94e in QMessageLogger::fatal(char const*, ...) const () from /usr/lib/libQt5Core.so.5
#8  0x00007fe0118dacd1 in qt_assert(char const*, char const*, int) () from /usr/lib/libQt5Core.so.5
#9  0x00007fe01443a0a1 in Konsole::Screen::copyLineToStream (this=0x5633703e5980, line=1042, start=0, count=236, decoder=0x7fffe8eb0a60, appendNewLine=false, isBlockSelectionMode=false, options=...) at /home/kde-dev/kde/src/utilities/konsole/src/Screen.cpp:1547
#10 0x00007fe014439c08 in Konsole::Screen::writeToStream (this=0x5633703e5980, decoder=0x7fffe8eb0a60, startIndex=245440, endIndex=246147, options=...) at /home/kde-dev/kde/src/utilities/konsole/src/Screen.cpp:1450
#11 0x00007fe01443a509 in Konsole::Screen::writeLinesToStream (this=0x5633703e5980, decoder=0x7fffe8eb0a60, fromLine=1040, toLine=1042) at /home/kde-dev/kde/src/utilities/konsole/src/Screen.cpp:1613
#12 0x00007fe01441c17e in Konsole::Emulation::writeToStream (this=0x5633705c4ff0, decoder=0x7fffe8eb0a60, startLine=1040, endLine=1042) at /home/kde-dev/kde/src/utilities/konsole/src/Emulation.cpp:262
#13 0x00007fe01444587f in Konsole::SearchHistoryTask::executeOnScreenWindow (this=0x563370908930, session=..., window=...) at /home/kde-dev/kde/src/utilities/konsole/src/SearchHistoryTask.cpp:115
#14 0x00007fe01444546b in Konsole::SearchHistoryTask::execute (this=0x563370908930) at /home/kde-dev/kde/src/utilities/konsole/src/SearchHistoryTask.cpp:29
#15 0x00007fe014509e7b in Konsole::SessionController::beginSearch (this=0x563370381130, text=..., direction=Konsole::Enum::ForwardsSearch) at /home/kde-dev/kde/src/utilities/konsole/src/session/SessionController.cpp:1491
#16 0x00007fe01450a3c5 in Konsole::SessionController::findPreviousInHistory (this=0x563370381130) at /home/kde-dev/kde/src/utilities/konsole/src/session/SessionController.cpp:1540
#17 0x00007fe0144d3738 in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (Konsole::SessionController::*)()>::call(void (Konsole::SessionController::*)(), Konsole::SessionController*, void**) (f=(void (Konsole::SessionController::*)(Konsole::SessionController * const)) 0x7fe01450a2dc <Konsole::SessionController::findPreviousInHistory()>, o=0x563370381130, arg=0x7fffe8eb0d40) at /usr/include/qt/QtCore/qobjectdefs_impl.h:152
#18 0x00007fe0144d348b in QtPrivate::FunctionPointer<void (Konsole::SessionController::*)()>::call<QtPrivate::List<>, void>(void (Konsole::SessionController::*)(), Konsole::SessionController*, void**) (f=(void (Konsole::SessionController::*)(Konsole::SessionController * const)) 0x7fe01450a2dc <Konsole::SessionController::findPreviousInHistory()>, o=0x563370381130, arg=0x7fffe8eb0d40) at /usr/include/qt/QtCore/qobjectdefs_impl.h:185
#19 0x00007fe0144d3327 in QtPrivate::QSlotObject<void (Konsole::SessionController::*)(), QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (which=1, this_=0x5633705f3de0, r=0x563370381130, a=0x7fffe8eb0d40, ret=0x0) at /usr/include/qt/QtCore/qobjectdefs_impl.h:418
#20 0x00007fe011b458b5 in ?? () from /usr/lib/libQt5Core.so.5
#21 0x00007fe01440cc93 in Konsole::IncrementalSearchBar::findPreviousClicked (this=0x5633703d1270) at /home/kde-dev/kde/build/utilities/konsole/src/konsoleprivate_autogen/IMAN36LHMA/moc_IncrementalSearchBar.cpp:280
#22 0x00007fe0144ab10c in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (Konsole::IncrementalSearchBar::*)()>::call(void (Konsole::IncrementalSearchBar::*)(), Konsole::IncrementalSearchBar*, void**) (f=(void (Konsole::IncrementalSearchBar::*)(Konsole::IncrementalSearchBar * const)) 0x7fe01440cc6a <Konsole::IncrementalSearchBar::findPreviousClicked()>, o=0x5633703d1270, arg=0x7fffe8eb0f50) at /usr/include/qt/QtCore/qobjectdefs_impl.h:152
#23 0x00007fe0144aada6 in QtPrivate::FunctionPointer<void (Konsole::IncrementalSearchBar::*)()>::call<QtPrivate::List<>, void>(void (Konsole::IncrementalSearchBar::*)(), Konsole::IncrementalSearchBar*, void**) (f=(void (Konsole::IncrementalSearchBar::*)(Konsole::IncrementalSearchBar * const)) 0x7fe01440cc6a <Konsole::IncrementalSearchBar::findPreviousClicked()>, o=0x5633703d1270, arg=0x7fffe8eb0f50) at /usr/include/qt/QtCore/qobjectdefs_impl.h:185
#24 0x00007fe0144aa9d9 in QtPrivate::QSlotObject<void (Konsole::IncrementalSearchBar::*)(), QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (which=1, this_=0x563370416e90, r=0x5633703d1270, a=0x7fffe8eb0f50, ret=0x0) at /usr/include/qt/QtCore/qobjectdefs_impl.h:418
#25 0x00007fe011b458b5 in ?? () from /usr/lib/libQt5Core.so.5
#26 0x00007fe012949817 in QAbstractButton::clicked(bool) () from /usr/lib/libQt5Widgets.so.5
#27 0x00007fe012949ac0 in ?? () from /usr/lib/libQt5Widgets.so.5
#28 0x00007fe01294b758 in ?? () from /usr/lib/libQt5Widgets.so.5
#29 0x00007fe01294b989 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQt5Widgets.so.5
#30 0x00007fe012a4d5af in QToolButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQt5Widgets.so.5
#31 0x00007fe012893fce in QWidget::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#32 0x00007fe01284fff6 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#33 0x00007fe012857e59 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#34 0x00007fe011b0e1aa in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#35 0x00007fe0128568ff in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () from /usr/lib/libQt5Widgets.so.5
#36 0x00007fe0128ade98 in ?? () from /usr/lib/libQt5Widgets.so.5
#37 0x00007fe0128b1215 in ?? () from /usr/lib/libQt5Widgets.so.5
#38 0x00007fe01284fff6 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#39 0x00007fe011b0e1aa in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#40 0x00007fe011fe0c60 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib/libQt5Gui.so.5
#41 0x00007fe011fb5b15 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Gui.so.5
#42 0x00007fe00c4ab800 in ?? () from /usr/lib/libQt5XcbQpa.so.5
#43 0x00007fe00f43610c in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#44 0x00007fe00f489b99 in ?? () from /usr/lib/libglib-2.0.so.0
#45 0x00007fe00f433871 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#46 0x00007fe011b67aca in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#47 0x00007fe011b0ca5b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#48 0x00007fe011b15248 in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#49 0x000056336eb6f694 in main (argc=1, argv=0x7fffe8eb1df8) at /home/kde-dev/kde/src/utilities/konsole/src/main.cpp:220
[Inferior 1 (process 2514) detached]


In screen.cpp it was hitting this assert line :
Q_ASSERT(screenLine <= _screenLinesSize);
Comment 3 Martin Sandsmark 2021-12-24 15:46:23 UTC
(In reply to Ömer Fadıl USTA from comment #2)
> In screen.cpp it was hitting this assert line :
> Q_ASSERT(screenLine <= _screenLinesSize);

Different bug, happened here as well.
Comment 4 Justin Zobel 2023-02-03 05:59:16 UTC
Thank you for the report. If this is still happening, in order to debug this further the developers will need a crash report with all debug symbols. For information on how to obtain this please see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
Comment 5 Bug Janitor Service 2023-02-18 03:47:06 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2023-03-05 03:45:45 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!