[konsole] [Bug 479983] Konsole crashes when selecting unicode glyphs (emoji)

Akseli Lahtinen bugzilla_noreply at kde.org
Thu Jan 18 11:35:15 GMT 2024


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

Akseli Lahtinen <akselmo at akselmo.dev> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REPORTED                    |CONFIRMED
                 CC|                            |akselmo at akselmo.dev
     Ever confirmed|0                           |1

--- Comment #5 from Akseli Lahtinen <akselmo at akselmo.dev> ---
Can reproduce

#0  __pthread_kill_implementation (threadid=<optimized out>,
signo=signo at entry=6, no_tid=no_tid at entry=0)
    at pthread_kill.c:44
#1  0x00007fc2d40ae8a3 in __pthread_kill_internal (signo=6, threadid=<optimized
out>) at pthread_kill.c:78
#2  0x00007fc2d405c8ee in __GI_raise (sig=6) at ../sysdeps/posix/raise.c:26
#3  0x00007fc2d800ef44 in KCrash::defaultCrashHandler (sig=6)
    at /home/akseli/Repositories/kde/src/kcrash/src/kcrash.cpp:586
#4  0x00007fc2d405c9a0 in <signal handler called> () at /lib64/libc.so.6
#5  __pthread_kill_implementation (threadid=<optimized out>,
signo=signo at entry=6, no_tid=no_tid at entry=0)
    at pthread_kill.c:44
#6  0x00007fc2d40ae8a3 in __pthread_kill_internal (signo=6, threadid=<optimized
out>) at pthread_kill.c:78
#7  0x00007fc2d405c8ee in __GI_raise (sig=sig at entry=6) at
../sysdeps/posix/raise.c:26
#8  0x00007fc2d40448ff in __GI_abort () at abort.c:79
#9  0x00007fc2d46e3563 in qAbort ()
    at
/usr/src/debug/qt6-qtbase-6.6.0-6.fc39.x86_64/src/corelib/global/qglobal.cpp:161
#10 0x00007fc2d4728be0 in qt_message_fatal<QString&> (message=...,
context=<optimized out>)
    at
/usr/src/debug/qt6-qtbase-6.6.0-6.fc39.x86_64/src/corelib/global/qlogging.cpp:2003
#11 qt_message(QtMsgType, const QMessageLogContext &, const char *, typedef
__va_list_tag __va_list_tag *)
    (msgType=msgType at entry=QtFatalMsg, context=...,
msg=msg at entry=0x7fc2d4a79db8 "ASSERT: \"%s\" in file %s, line %d",
ap=ap at entry=0x7ffefd52eb00)
    at
/usr/src/debug/qt6-qtbase-6.6.0-6.fc39.x86_64/src/corelib/global/qlogging.cpp:378
#12 0x00007fc2d46e44f9 in QMessageLogger::fatal
    (this=this at entry=0x7ffefd52ebe8, msg=msg at entry=0x7fc2d4a79db8 "ASSERT:
\"%s\" in file %s, line %d")
    at
/usr/src/debug/qt6-qtbase-6.6.0-6.fc39.x86_64/src/corelib/global/qlogging.cpp:901
#13 0x00007fc2d46e34b8 in qt_assert (assertion=<optimized out>, file=<optimized
out>, line=<optimized out>)
    at
/usr/src/debug/qt6-qtbase-6.6.0-6.fc39.x86_64/src/corelib/global/qassert.cpp:68
#14 0x00007fc2d86a735a in QChar::QChar (this=0x7ffefd52ec6c, rc=128514) at
/usr/include/qt6/QtCore/qchar.h:79
#15 0x00007fc2d86a6f93 in Konsole::HTMLDecoder::decodeLine
--Type <RET> for more, q to quit, c to continue without paging--c
    (this=0x7ffefd52f0c0, characters=0x27d9120, count=2)
    at
/home/akseli/Repositories/kde/src/konsole/src/decoders/HTMLDecoder.cpp:133
#16 0x00007fc2d870dcfb in Konsole::Screen::copyLineToStream
    (this=0x23107f0, line=2, start=6, count=2, decoder=0x7ffefd52f0c0,
appendNewLine=false, isBlockSelectionMode=false, options=...) at
/home/akseli/Repositories/kde/src/konsole/src/Screen.cpp:2242
#17 0x00007fc2d870cf6c in Konsole::Screen::writeToStream
    (this=0x23107f0, decoder=0x7ffefd52f0c0, startIndex=226, endIndex=227,
options=...)
    at /home/akseli/Repositories/kde/src/konsole/src/Screen.cpp:2051
#18 0x00007fc2d870cdc0 in Konsole::Screen::text (this=0x23107f0,
startIndex=226, endIndex=227, options=...)
    at /home/akseli/Repositories/kde/src/konsole/src/Screen.cpp:2018
#19 0x00007fc2d870cc6a in Konsole::Screen::selectedText (this=0x23107f0,
options=...)
    at /home/akseli/Repositories/kde/src/konsole/src/Screen.cpp:1999
#20 0x00007fc2d871fd9f in Konsole::ScreenWindow::selectedText (this=0x1df9d50,
options=...)
    at /home/akseli/Repositories/kde/src/konsole/src/ScreenWindow.cpp:120
#21 0x00007fc2d87ea748 in Konsole::TerminalDisplay::copyToX11Selection
(this=0x2571980, useSavedText=false)
    at
/home/akseli/Repositories/kde/src/konsole/src/terminalDisplay/TerminalDisplay.cpp:2387
#22 0x00007fc2d87e5f26 in Konsole::TerminalDisplay::mouseReleaseEvent
(this=0x2571980, ev=0x7ffefd52faa0)
    at
/home/akseli/Repositories/kde/src/konsole/src/terminalDisplay/TerminalDisplay.cpp:1527
#23 0x00007fc2d5c1e478 in QWidget::event (this=0x2571980, event=0x7ffefd52faa0)
    at
/usr/src/debug/qt6-qtbase-6.6.0-6.fc39.x86_64/src/widgets/kernel/qwidget.cpp:9368
#24 0x00007fc2d87ecf3c in Konsole::TerminalDisplay::event (this=0x2571980,
event=0x7ffefd52faa0)
    at
/home/akseli/Repositories/kde/src/konsole/src/terminalDisplay/TerminalDisplay.cpp:2922
#25 0x00007fc2d5bc2b38 in QApplicationPrivate::notify_helper
    (this=this at entry=0x1e13410, receiver=receiver at entry=0x2571980,
e=e at entry=0x7ffefd52faa0)
    at
/usr/src/debug/qt6-qtbase-6.6.0-6.fc39.x86_64/src/widgets/kernel/qapplication.cpp:3290
#26 0x00007fc2d5bcca6b in QApplication::notify (this=<optimized out>,
receiver=0x2571980, e=<optimized out>)
    at
/usr/src/debug/qt6-qtbase-6.6.0-6.fc39.x86_64/src/widgets/kernel/qapplication.cpp:2777
#27 0x00007fc2d47a0ba8 in QCoreApplication::notifyInternal2
(receiver=0x2571980, event=0x7ffefd52faa0)
    at
/usr/src/debug/qt6-qtbase-6.6.0-6.fc39.x86_64/src/corelib/kernel/qcoreapplication.cpp:1118
#28 0x00007fc2d47a0dbd in QCoreApplication::sendSpontaneousEvent
    (receiver=<optimized out>, event=<optimized out>)
    at
/usr/src/debug/qt6-qtbase-6.6.0-6.fc39.x86_64/src/corelib/kernel/qcoreapplication.cpp:1550
#29 0x00007fc2d5bcb253 in QApplicationPrivate::sendMouseEvent
    (receiver=receiver at entry=0x2571980, event=event at entry=0x7ffefd52faa0,
alienWidget=<optimized out>, nativeWidget=0x22608d0,
buttonDown=buttonDown at entry=0x7fc2d61b26e0 <qt_button_down>,
lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false)
    at
/usr/src/debug/qt6-qtbase-6.6.0-6.fc39.x86_64/src/widgets/kernel/qapplication.cpp:2361
#30 0x00007fc2d5c32006 in QWidgetWindow::handleMouseEvent (this=0x2187760,
event=event at entry=0x7ffefd52fd60)
    at
/usr/src/debug/qt6-qtbase-6.6.0-6.fc39.x86_64/src/widgets/kernel/qwidgetwindow.cpp:627
#31 0x00007fc2d5c34f30 in QWidgetWindow::event (this=0x2187760,
event=0x7ffefd52fd60)
    at
/usr/src/debug/qt6-qtbase-6.6.0-6.fc39.x86_64/src/widgets/kernel/qwidgetwindow.cpp:241
#32 0x00007fc2d5bc2b38 in QApplicationPrivate::notify_helper
    (this=<optimized out>, receiver=0x2187760, e=0x7ffefd52fd60)
    at
/usr/src/debug/qt6-qtbase-6.6.0-6.fc39.x86_64/src/widgets/kernel/qapplication.cpp:3290
#33 0x00007fc2d47a0ba8 in QCoreApplication::notifyInternal2
(receiver=0x2187760, event=0x7ffefd52fd60)
    at
/usr/src/debug/qt6-qtbase-6.6.0-6.fc39.x86_64/src/corelib/kernel/qcoreapplication.cpp:1118
#34 0x00007fc2d47a0dbd in QCoreApplication::sendSpontaneousEvent
    (receiver=<optimized out>, event=<optimized out>)
    at
/usr/src/debug/qt6-qtbase-6.6.0-6.fc39.x86_64/src/corelib/kernel/qcoreapplication.cpp:1550
#35 0x00007fc2d5209127 in QGuiApplicationPrivate::processMouseEvent
(e=0x7fc2b4001550)
    at
/usr/src/debug/qt6-qtbase-6.6.0-6.fc39.x86_64/src/gui/kernel/qguiapplication.cpp:2315
#36 0x00007fc2d5267c1c in QWindowSystemInterface::sendWindowSystemEvents
(flags=...)
    at
/usr/src/debug/qt6-qtbase-6.6.0-6.fc39.x86_64/src/gui/kernel/qwindowsysteminterface.cpp:1109
#37 0x00007fc2d573ff14 in userEventSourceDispatch (source=<optimized out>)
    at
/usr/src/debug/qt6-qtbase-6.6.0-6.fc39.x86_64/src/gui/platform/unix/qeventdispatcher_glib.cpp:38
#38 0x00007fc2d07c2e5c in g_main_dispatch (context=0x7fc2bc000ef0) at
../glib/gmain.c:3476
#39 g_main_context_dispatch_unlocked (context=0x7fc2bc000ef0) at
../glib/gmain.c:4284
#40 0x00007fc2d081df18 in g_main_context_iterate_unlocked.isra.0
    (context=context at entry=0x7fc2bc000ef0, block=block at entry=1,
dispatch=dispatch at entry=1, self=<optimized out>) at ../glib/gmain.c:4349
#41 0x00007fc2d07c0ad3 in g_main_context_iteration (context=0x7fc2bc000ef0,
may_block=1)
    at ../glib/gmain.c:4414
#42 0x00007fc2d4a4096f in QEventDispatcherGlib::processEvents (this=0x1e25180,
flags=...)
    at
/usr/src/debug/qt6-qtbase-6.6.0-6.fc39.x86_64/src/corelib/kernel/qeventdispatcher_glib.cpp:393
#43 0x00007fc2d47ad9bb in QEventLoop::exec (this=this at entry=0x7ffefd530190,
flags=..., flags at entry=...)
    at
/usr/src/debug/qt6-qtbase-6.6.0-6.fc39.x86_64/src/corelib/global/qflags.h:34
#44 0x00007fc2d47a97bd in QCoreApplication::exec ()
    at
/usr/src/debug/qt6-qtbase-6.6.0-6.fc39.x86_64/src/corelib/global/qflags.h:74
#45 0x00000000004053eb in main (argc=1, argv=0x7ffefd5306b8)
    at /home/akseli/Repositories/kde/src/konsole/src/main.cpp:233

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list