Bug 479407 - Konsole crashes often
Summary: Konsole crashes often
Status: CONFIRMED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 24.01.85
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords: drkonqi, qt6
: 436400 466775 481208 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-01-04 19:29 UTC by Oded Arbel
Modified: 2024-06-07 17:38 UTC (History)
5 users (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 Oded Arbel 2024-01-04 19:29:10 UTC
Application: konsole (24.01.85)

Qt Version: 6.6.1
Frameworks Version: 5.248.0
Operating System: Linux 6.2.0-39-generic x86_64
Windowing System: Wayland
Distribution: KDE neon Unstable Edition
DrKonqi: 5.91.90 [CoredumpBackend]

-- Information about the crash:
This crash specifically happened when (or very soon after) I connected an external display, that is in portrait mode.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Konsole (konsole), signal: Aborted

[New LWP 1122631]
[New LWP 1122634]
[New LWP 1130240]
[New LWP 1130241]

This GDB supports auto-downloading debuginfo from the following URLs:
https://debuginfod.neon.kde.org/:
Enable debuginfod for this session? (y or [n]) [answered N; input not from terminal]
Debuginfod has been disabled.
To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/bin/konsole'.
Program terminated with signal SIGABRT, Aborted.
#0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140181022164416) at ./nptl/pthread_kill.c:44
[Current thread is 1 (Thread 0x7f7e7007c5c0 (LWP 1122631))]
Cannot QML trace cores :(
[Current thread is 1 (Thread 0x7f7e7007c5c0 (LWP 1122631))]

Thread 4 (Thread 0x7f7e26ffd640 (LWP 1130241)):
#0  0x00007f7e753189df in __GI___poll (fds=0x7f7e26ffca10, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f7e73a2e361 in ?? () from /lib/x86_64-linux-gnu/libQt6WaylandClient.so.6
#2  0x00007f7e75d5f6ed in operator() (__closure=<optimized out>) at ./src/corelib/thread/qthread_unix.cpp:324
#3  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=...) at ./src/corelib/thread/qthread_unix.cpp:260
#4  QThreadPrivate::start (arg=0x55f6621ff290) at ./src/corelib/thread/qthread_unix.cpp:283
#5  0x00007f7e75294ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#6  0x00007f7e75326660 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 3 (Thread 0x7f7e6ccbe640 (LWP 1130240)):
#0  0x00007f7e753189df in __GI___poll (fds=0x7f7e6ccbda10, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f7e73a2e361 in ?? () from /lib/x86_64-linux-gnu/libQt6WaylandClient.so.6
#2  0x00007f7e75d5f6ed in operator() (__closure=<optimized out>) at ./src/corelib/thread/qthread_unix.cpp:324
#3  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=...) at ./src/corelib/thread/qthread_unix.cpp:260
#4  QThreadPrivate::start (arg=0x55f66218a010) at ./src/corelib/thread/qthread_unix.cpp:283
#5  0x00007f7e75294ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#6  0x00007f7e75326660 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 2 (Thread 0x7f7e6f7ff640 (LWP 1122634)):
#0  0x00007f7e753189df in __GI___poll (fds=0x55f66217a9e0, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f7e744851f6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f7e7442d3e3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f7e75d05790 in QEventDispatcherGlib::processEvents (this=0x7f7e68000b70, flags=...) at ./src/corelib/kernel/qeventdispatcher_glib.cpp:393
#4  0x00007f7e75e61fbb in QEventLoop::exec (this=0x7f7e6f7fe9d0, flags=...) at ./src/corelib/global/qflags.h:34
#5  0x00007f7e75d9ce38 in QThread::exec (this=this@entry=0x7f7e748b5340 <_ZZN13QGlobalStaticIN14QtGlobalStatic6HolderIN12_GLOBAL__N_116Q_QGS__q_managerEEEE8instanceEvE6holder.lto_priv.0>) at ./src/corelib/global/qflags.h:74
#6  0x00007f7e7483de6e in QDBusConnectionManager::run (this=0x7f7e748b5340 <_ZZN13QGlobalStaticIN14QtGlobalStatic6HolderIN12_GLOBAL__N_116Q_QGS__q_managerEEEE8instanceEvE6holder.lto_priv.0>) at ./src/dbus/qdbusconnection.cpp:131
#7  0x00007f7e75d5f6ed in operator() (__closure=<optimized out>) at ./src/corelib/thread/qthread_unix.cpp:324
#8  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=...) at ./src/corelib/thread/qthread_unix.cpp:260
#9  QThreadPrivate::start (arg=0x7f7e748b5340 <_ZZN13QGlobalStaticIN14QtGlobalStatic6HolderIN12_GLOBAL__N_116Q_QGS__q_managerEEEE8instanceEvE6holder.lto_priv.0>) at ./src/corelib/thread/qthread_unix.cpp:283
#10 0x00007f7e75294ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#11 0x00007f7e75326660 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 1 (Thread 0x7f7e7007c5c0 (LWP 1122631)):
[KCrash Handler]
#6  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140181022164416) at ./nptl/pthread_kill.c:44
#7  __pthread_kill_internal (signo=6, threadid=140181022164416) at ./nptl/pthread_kill.c:78
#8  __GI___pthread_kill (threadid=140181022164416, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#9  0x00007f7e75242476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#10 0x00007f7e752287f3 in __GI_abort () at ./stdlib/abort.c:79
#11 0x00007f7e75ed8417 in qAbort () at ./src/corelib/global/qglobal.cpp:161
#12 0x00007f7e75ed38c5 in qt_message_fatal<QString&> (message=..., context=...) at ./src/corelib/global/qlogging.cpp:2003
#13 qt_message(QtMsgType, const QMessageLogContext &, const char *, typedef __va_list_tag __va_list_tag *) (msgType=msgType@entry=QtFatalMsg, context=..., msg=<optimized out>, ap=ap@entry=0x7ffd0963cf70) at ./src/corelib/global/qlogging.cpp:378
#14 0x00007f7e75ed8e43 in QMessageLogger::fatal (this=<optimized out>, msg=<optimized out>) at ./src/corelib/global/qlogging.cpp:901
#15 0x00007f7e75ea6f14 in qt_assert (assertion=<optimized out>, file=<optimized out>, line=<optimized out>) at ./src/corelib/global/qassert.cpp:68
#16 0x00007f7e77487597 in ?? () from /lib/x86_64-linux-gnu/libkonsoleprivate.so.24.01.85
#17 0x00007f7e77487437 in ?? () from /lib/x86_64-linux-gnu/libkonsoleprivate.so.24.01.85
#18 0x00007f7e774a5324 in ?? () from /lib/x86_64-linux-gnu/libkonsoleprivate.so.24.01.85
#19 0x00007f7e75e2767e in QtPrivate::QSlotObjectBase::call (a=<optimized out>, r=<optimized out>, this=<optimized out>, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ./src/corelib/kernel/qobjectdefs_impl.h:433
#20 doActivate<false> (sender=0x55f662e48230, signal_index=11, argv=0x7ffd0963d2d0) at ./src/corelib/kernel/qobject.cpp:4021
#21 0x00007f7e77546733 in Konsole::TerminalDisplay::changedContentSizeSignal(int, int) () from /lib/x86_64-linux-gnu/libkonsoleprivate.so.24.01.85
#22 0x00007f7e77539059 in Konsole::TerminalDisplay::updateImageSize() () from /lib/x86_64-linux-gnu/libkonsoleprivate.so.24.01.85
#23 0x00007f7e7753c028 in Konsole::TerminalDisplay::resizeEvent(QResizeEvent*) () from /lib/x86_64-linux-gnu/libkonsoleprivate.so.24.01.85
#24 0x00007f7e7702c3d8 in QWidget::event (this=0x55f662e48230, event=0x7ffd0963d540) at ./src/widgets/kernel/qwidget.cpp:9153
#25 0x00007f7e76ff1bcb in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55f662e48230, e=0x7ffd0963d540) at ./src/widgets/kernel/qapplication.cpp:3296
#26 0x00007f7e75e5fd88 in QCoreApplication::notifyInternal2 (receiver=receiver@entry=0x55f662e48230, event=event@entry=0x7ffd0963d540) at ./src/corelib/kernel/qcoreapplication.cpp:1121
#27 0x00007f7e75e5fdcd in QCoreApplication::sendEvent (receiver=receiver@entry=0x55f662e48230, event=event@entry=0x7ffd0963d540) at ./src/corelib/kernel/qcoreapplication.cpp:1539
#28 0x00007f7e77029e78 in QWidgetPrivate::setGeometry_sys (this=this@entry=0x55f662e55720, x=0, y=0, w=<optimized out>, h=1830, isMove=<optimized out>, isMove@entry=true) at ./src/widgets/kernel/qwidget.cpp:7408
#29 0x00007f7e7702a878 in QWidget::setGeometry (this=0x55f662e48230, r=...) at ./src/widgets/kernel/qwidget.cpp:7296
#30 0x00007f7e76f1cc23 in QSplitterPrivate::setGeo (this=this@entry=0x55f662e5eab0, sls=sls@entry=0x55f662ff3850, p=0, s=1200, allowCollapse=allowCollapse@entry=false) at ./src/widgets/widgets/qsplitter.cpp:741
#31 0x00007f7e76f1cf87 in QSplitterPrivate::doResize (this=0x55f662e5eab0) at ./src/widgets/widgets/qsplitter.cpp:529
#32 0x00007f7e7702c3d8 in QWidget::event (this=0x55f662ff3620, event=0x7ffd0963d980) at ./src/widgets/kernel/qwidget.cpp:9153
#33 0x00007f7e76f67056 in QFrame::event (this=0x55f662ff3620, e=0x7ffd0963d980) at ./src/widgets/widgets/qframe.cpp:515
#34 0x00007f7e76ff1bcb in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55f662ff3620, e=0x7ffd0963d980) at ./src/widgets/kernel/qapplication.cpp:3296
#35 0x00007f7e75e5fd88 in QCoreApplication::notifyInternal2 (receiver=receiver@entry=0x55f662ff3620, event=event@entry=0x7ffd0963d980) at ./src/corelib/kernel/qcoreapplication.cpp:1121
#36 0x00007f7e75e5fdcd in QCoreApplication::sendEvent (receiver=receiver@entry=0x55f662ff3620, event=event@entry=0x7ffd0963d980) at ./src/corelib/kernel/qcoreapplication.cpp:1539
#37 0x00007f7e77029e78 in QWidgetPrivate::setGeometry_sys (this=this@entry=0x55f662e5eab0, x=0, y=0, w=<optimized out>, h=1830, isMove=<optimized out>, isMove@entry=true) at ./src/widgets/kernel/qwidget.cpp:7408
#38 0x00007f7e7702a878 in QWidget::setGeometry (this=0x55f662ff3620, r=...) at ./src/widgets/kernel/qwidget.cpp:7296
#39 0x00007f7e7700bb59 in QLayoutPrivate::doResize (this=0x55f662430080) at ./src/widgets/kernel/qlayout.cpp:506
#40 0x00007f7e76ff1c57 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55f6624353b0, e=0x7ffd0963db90) at ./src/widgets/kernel/qapplication.cpp:3285
#41 0x00007f7e75e5fd88 in QCoreApplication::notifyInternal2 (receiver=receiver@entry=0x55f6624353b0, event=event@entry=0x7ffd0963db90) at ./src/corelib/kernel/qcoreapplication.cpp:1121
#42 0x00007f7e75e5fdcd in QCoreApplication::sendEvent (receiver=receiver@entry=0x55f6624353b0, event=event@entry=0x7ffd0963db90) at ./src/corelib/kernel/qcoreapplication.cpp:1539
#43 0x00007f7e77029e78 in QWidgetPrivate::setGeometry_sys (this=this@entry=0x55f66223a930, x=0, y=0, w=<optimized out>, h=1830, isMove=<optimized out>, isMove@entry=true) at ./src/widgets/kernel/qwidget.cpp:7408
#44 0x00007f7e7702a878 in QWidget::setGeometry (this=0x55f6624353b0, r=...) at ./src/widgets/kernel/qwidget.cpp:7296
#45 0x00007f7e76f476f2 in QTabWidget::setUpLayout (this=0x55f662430160, onlyCheck=<optimized out>) at ./src/widgets/widgets/qtabwidget.cpp:810
#46 0x00007f7e7702c3d8 in QWidget::event (this=0x55f662430160, event=0x7ffd0963df30) at ./src/widgets/kernel/qwidget.cpp:9153
#47 0x00007f7e76ff1bcb in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55f662430160, e=0x7ffd0963df30) at ./src/widgets/kernel/qapplication.cpp:3296
#48 0x00007f7e75e5fd88 in QCoreApplication::notifyInternal2 (receiver=receiver@entry=0x55f662430160, event=event@entry=0x7ffd0963df30) at ./src/corelib/kernel/qcoreapplication.cpp:1121
#49 0x00007f7e75e5fdcd in QCoreApplication::sendEvent (receiver=receiver@entry=0x55f662430160, event=event@entry=0x7ffd0963df30) at ./src/corelib/kernel/qcoreapplication.cpp:1539
#50 0x00007f7e77029e78 in QWidgetPrivate::setGeometry_sys (this=this@entry=0x55f662358d80, x=0, y=30, w=<optimized out>, h=1862, isMove=<optimized out>, isMove@entry=true) at ./src/widgets/kernel/qwidget.cpp:7408
#51 0x00007f7e7702a878 in QWidget::setGeometry (this=0x55f662430160, r=...) at ./src/widgets/kernel/qwidget.cpp:7296
#52 0x00007f7e77035cdb in QWidget::qt_metacall (this=0x55f662430160, _c=QMetaObject::WriteProperty, _id=3, _a=0x7ffd0963e0a0) at ./obj-x86_64-linux-gnu/src/widgets/Widgets_autogen/include/moc_qwidget.cpp:1038
#53 0x00007f7e76f48669 in QTabWidget::qt_metacall (this=0x55f662430160, _c=QMetaObject::WriteProperty, _id=<optimized out>, _a=0x7ffd0963e0a0) at ./obj-x86_64-linux-gnu/src/widgets/Widgets_autogen/include/moc_qtabwidget.cpp:439
#54 0x00007f7e7759ab99 in Konsole::TabbedViewContainer::qt_metacall(QMetaObject::Call, int, void**) () from /lib/x86_64-linux-gnu/libkonsoleprivate.so.24.01.85
#55 0x00007f7e75d44b2e in QPropertyAnimationPrivate::updateProperty (newValue=..., this=<optimized out>) at ./src/corelib/animation/qpropertyanimation.cpp:105
#56 QPropertyAnimationPrivate::updateProperty (newValue=..., this=0x55f662c97a70) at ./src/corelib/animation/qpropertyanimation.cpp:91
#57 QPropertyAnimation::updateCurrentValue (this=<optimized out>, value=...) at ./src/corelib/animation/qpropertyanimation.cpp:237
#58 0x00007f7e75d532a2 in QVariantAnimationPrivate::setCurrentValueForProgress (progress=<optimized out>, this=0x55f662c97a70) at ./src/corelib/animation/qvariantanimation.cpp:253
#59 QVariantAnimationPrivate::recalculateCurrentInterval (this=0x55f662c97a70, force=<optimized out>) at ./src/corelib/animation/qvariantanimation.cpp:236
#60 0x00007f7e75d4cc40 in QVariantAnimationPrivate::setDefaultStartEndValue (value=..., this=0x55f662c97a70) at ./src/corelib/animation/qvariantanimation.cpp:300
#61 QPropertyAnimation::updateState (this=0x55f6621bc170, newState=<optimized out>, oldState=<optimized out>) at ./src/corelib/animation/qpropertyanimation.cpp:284
#62 0x00007f7e75d4571a in QAbstractAnimationPrivate::setState (this=0x55f662c97a70, newState=newState@entry=QAbstractAnimation::Running) at ./src/corelib/animation/qabstractanimation.cpp:943
#63 0x00007f7e75d45be1 in QAbstractAnimation::start (this=this@entry=0x55f6621bc170, policy=policy@entry=QAbstractAnimation::DeleteWhenStopped) at ./src/corelib/animation/qabstractanimation.cpp:1385
#64 0x00007f7e76f64eb4 in QWidgetAnimator::animate (this=<optimized out>, widget=<optimized out>, _final_geometry=..., animate=<optimized out>) at ./src/widgets/widgets/qwidgetanimator.cpp:77
#65 0x00007f7e76fc5200 in QDockAreaLayout::apply (this=0x55f662374a60, animate=<optimized out>) at ./src/widgets/widgets/qdockarealayout.cpp:3212
#66 0x00007f7e76f56309 in QMainWindowLayoutState::apply (animated=<optimized out>, this=0x55f662374948) at ./src/widgets/widgets/qmainwindowlayout.cpp:708
#67 QMainWindowLayout::applyState (this=<optimized out>, newState=..., animate=<optimized out>) at ./src/widgets/widgets/qmainwindowlayout.cpp:2981
#68 0x00007f7e7700bb59 in QLayoutPrivate::doResize (this=0x55f662374500) at ./src/widgets/kernel/qlayout.cpp:506
#69 0x00007f7e76ff1c57 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55f6623ecb70, e=0x7ffd0963e9a0) at ./src/widgets/kernel/qapplication.cpp:3285
#70 0x00007f7e75e5fd88 in QCoreApplication::notifyInternal2 (receiver=0x55f6623ecb70, event=0x7ffd0963e9a0) at ./src/corelib/kernel/qcoreapplication.cpp:1121
#71 0x00007f7e75e5fdba in QCoreApplication::forwardEvent (receiver=<optimized out>, event=event@entry=0x7ffd0963e9a0, originatingEvent=originatingEvent@entry=0x0) at ./src/corelib/kernel/qcoreapplication.cpp:1136
#72 0x00007f7e77039d60 in QWidgetWindow::handleResizeEvent (event=0x7ffd0963e9a0, this=0x55f6625242e0) at ./src/widgets/kernel/qwidgetwindow.cpp:794
#73 QWidgetWindow::event (this=0x55f6625242e0, event=0x7ffd0963e9a0) at ./src/widgets/kernel/qwidgetwindow.cpp:263
#74 0x00007f7e76ff1bcb in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55f6625242e0, e=0x7ffd0963e9a0) at ./src/widgets/kernel/qapplication.cpp:3296
#75 0x00007f7e75e5fd88 in QCoreApplication::notifyInternal2 (receiver=receiver@entry=0x55f6625242e0, event=event@entry=0x7ffd0963e9a0) at ./src/corelib/kernel/qcoreapplication.cpp:1121
#76 0x00007f7e75e5fddd in QCoreApplication::sendSpontaneousEvent (receiver=receiver@entry=0x55f6625242e0, event=event@entry=0x7ffd0963e9a0) at ./src/corelib/kernel/qcoreapplication.cpp:1553
#77 0x00007f7e762f08d4 in QGuiApplicationPrivate::processGeometryChangeEvent (e=<optimized out>) at ./src/gui/kernel/qguiapplication.cpp:2707
#78 0x00007f7e7635569c in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at ./src/gui/kernel/qwindowsysteminterface.cpp:1109
#79 0x00007f7e76355837 in QWindowSystemInterface::flushWindowSystemEvents (flags=...) at ./src/gui/kernel/qwindowsysteminterface.cpp:1078
#80 0x00007f7e75dc8782 in QObject::event (this=0x55f6622bcd40, e=0x55f663079540) at ./src/corelib/kernel/qobject.cpp:1437
#81 0x00007f7e76ff1bcb in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55f6622bcd40, e=0x55f663079540) at ./src/widgets/kernel/qapplication.cpp:3296
#82 0x00007f7e75e5fd88 in QCoreApplication::notifyInternal2 (receiver=0x55f6622bcd40, event=event@entry=0x55f663079540) at ./src/corelib/kernel/qcoreapplication.cpp:1121
#83 0x00007f7e75e5fdcd in QCoreApplication::sendEvent (receiver=<optimized out>, event=event@entry=0x55f663079540) at ./src/corelib/kernel/qcoreapplication.cpp:1539
#84 0x00007f7e75e604a0 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x55f662170880) at ./src/corelib/kernel/qcoreapplication.cpp:1901
#85 0x00007f7e75d079f7 in postEventSourceDispatch (s=0x55f6621a09c0) at ./src/corelib/kernel/qeventdispatcher_glib.cpp:243
#86 0x00007f7e7442fd3b in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#87 0x00007f7e74485258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#88 0x00007f7e7442d3e3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#89 0x00007f7e75d05790 in QEventDispatcherGlib::processEvents (this=0x55f662177b20, flags=...) at ./src/corelib/kernel/qeventdispatcher_glib.cpp:393
#90 0x00007f7e75e61fbb in QEventLoop::exec (this=this@entry=0x7ffd0963ee80, flags=..., flags@entry=...) at ./src/corelib/global/qflags.h:34
#91 0x00007f7e75e63bec in QCoreApplication::exec () at ./src/corelib/global/qflags.h:74
#92 0x00007f7e762ea1a0 in QGuiApplication::exec () at ./src/gui/kernel/qguiapplication.cpp:1925
#93 0x00007f7e76fef139 in QApplication::exec () at ./src/widgets/kernel/qapplication.cpp:2574
#94 0x000055f660830951 in main (argc=<optimized out>, argv=<optimized out>) at ./src/main.cpp:233

Reported using DrKonqi
Comment 1 Oded Arbel 2024-01-04 19:40:38 UTC
This stack trace was generated with konsole-dbgsym from Neon installed (and the correct version). I don't know why the libkonsoleprivate debug symbols are missing.
Comment 2 fanzhuyifan 2024-01-05 06:35:34 UTC
Humm so konsole crashes, but not plasmashell? There were a couple of reports on plasmashell crashing upon display configuration changes.
Comment 3 Oded Arbel 2024-01-05 09:33:08 UTC
(In reply to fanzhuyifan from comment #2)
> Humm so konsole crashes, but not plasmashell? There were a couple of reports
> on plasmashell crashing upon display configuration changes.

That is correct. I actually don't think it is related to the display configuration changes - I've had a couple of more crashes after that, which looks to be the same stack trace, where display configuration was stable.

I also had many crashes earlier in the same day, when the display configuration was not changed during a long session - but that was with an earlier build and I couldn't get debug symbols for that.

Konsole has been surprisingly not as stable as I learned to expect in the last few days since I started running Plasma 6.0 beta 2.

I will try to shake things up a bit more and get more crashes - though as Konsole is my main work tool (not kidding - I don't even use a browser as much), any such crash can be really troublesome...

Any idea what to do about the libkonsoleprivate.so debug symbols?
Comment 4 fanzhuyifan 2024-01-05 16:48:35 UTC
(In reply to Oded Arbel from comment #3)
> Any idea what to do about the libkonsoleprivate.so debug symbols?

You could try this: https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl
Comment 5 Oded Arbel 2024-01-05 17:58:07 UTC
(In reply to fanzhuyifan from comment #4)
> (In reply to Oded Arbel from comment #3)
> > Any idea what to do about the libkonsoleprivate.so debug symbols?
> 
> You could try this:
> https://community.kde.org/Guidelines_and_HOWTOs/Debugging/
> How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl

Yea, this gives the same result as the Dr Konqi graphical reporting tool - the interesting part looks like this:

---8<---
#15 0x00007fec862a6f14 in qt_assert (assertion=<optimized out>, file=<optimized out>, line=<optimized out>) at ./src/corelib/global/qassert.cpp:68
#16 0x00007fec87887597 in ?? () from /lib/x86_64-linux-gnu/libkonsoleprivate.so.24.01.85
#17 0x00007fec87887437 in ?? () from /lib/x86_64-linux-gnu/libkonsoleprivate.so.24.01.85
#18 0x00007fec878a5324 in ?? () from /lib/x86_64-linux-gnu/libkonsoleprivate.so.24.01.85
#19 0x00007fec8622767e in QtPrivate::QSlotObjectBase::call (a=<optimized out>, r=<optimized out>, this=<optimized out>, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ./src/corelib/kernel/qobjectdefs_impl.h:433
#20 doActivate<false> (sender=0x55886c861c20, signal_index=11, argv=0x7fff3faa5280) at ./src/corelib/kernel/qobject.cpp:4021
#21 0x00007fec87946733 in Konsole::TerminalDisplay::changedContentSizeSignal(int, int) () from /lib/x86_64-linux-gnu/libkonsoleprivate.so.24.01.85
#22 0x00007fec87939059 in Konsole::TerminalDisplay::updateImageSize() () from /lib/x86_64-linux-gnu/libkonsoleprivate.so.24.01.85
#23 0x00007fec8793c028 in Konsole::TerminalDisplay::resizeEvent(QResizeEvent*) () from /lib/x86_64-linux-gnu/libkonsoleprivate.so.24.01.85
#24 0x00007fec8742c3d8 in QWidget::event (this=0x55886c861c20, event=0x7fff3faa54b0) at ./src/widgets/kernel/qwidget.cpp:9153
---8<---

so some code in libkonsoleprivate.so.24.01.85 causes an assert, but even though I have Konsole debug symbols installed - it shows up as "?? ()" while some other stuff from libkonsoleprivate.so.24.01.85 does get parsed... so... IDK.
Comment 6 fanzhuyifan 2024-01-05 18:37:58 UTC
(In reply to Oded Arbel from comment #5)
> (In reply to fanzhuyifan from comment #4)
> > (In reply to Oded Arbel from comment #3)
> > > Any idea what to do about the libkonsoleprivate.so debug symbols?
> > 
> > You could try this:
> > https://community.kde.org/Guidelines_and_HOWTOs/Debugging/
> > How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl
> 
> Yea, this gives the same result as the Dr Konqi graphical reporting tool -
> the interesting part looks like this:
> 
> ---8<---
> #15 0x00007fec862a6f14 in qt_assert (assertion=<optimized out>,
> file=<optimized out>, line=<optimized out>) at
> ./src/corelib/global/qassert.cpp:68
> #16 0x00007fec87887597 in ?? () from
> /lib/x86_64-linux-gnu/libkonsoleprivate.so.24.01.85
> #17 0x00007fec87887437 in ?? () from
> /lib/x86_64-linux-gnu/libkonsoleprivate.so.24.01.85
> #18 0x00007fec878a5324 in ?? () from
> /lib/x86_64-linux-gnu/libkonsoleprivate.so.24.01.85
> #19 0x00007fec8622767e in QtPrivate::QSlotObjectBase::call (a=<optimized
> out>, r=<optimized out>, this=<optimized out>, this=<optimized out>,
> r=<optimized out>, a=<optimized out>) at
> ./src/corelib/kernel/qobjectdefs_impl.h:433
> #20 doActivate<false> (sender=0x55886c861c20, signal_index=11,
> argv=0x7fff3faa5280) at ./src/corelib/kernel/qobject.cpp:4021
> #21 0x00007fec87946733 in
> Konsole::TerminalDisplay::changedContentSizeSignal(int, int) () from
> /lib/x86_64-linux-gnu/libkonsoleprivate.so.24.01.85
> #22 0x00007fec87939059 in Konsole::TerminalDisplay::updateImageSize() ()
> from /lib/x86_64-linux-gnu/libkonsoleprivate.so.24.01.85
> #23 0x00007fec8793c028 in
> Konsole::TerminalDisplay::resizeEvent(QResizeEvent*) () from
> /lib/x86_64-linux-gnu/libkonsoleprivate.so.24.01.85
> #24 0x00007fec8742c3d8 in QWidget::event (this=0x55886c861c20,
> event=0x7fff3faa54b0) at ./src/widgets/kernel/qwidget.cpp:9153
> ---8<---
> 
> so some code in libkonsoleprivate.so.24.01.85 causes an assert, but even
> though I have Konsole debug symbols installed - it shows up as "?? ()" while
> some other stuff from libkonsoleprivate.so.24.01.85 does get parsed... so...
> IDK.

If you have set DEBUGINFOD_URLS="https://debuginfod.ubuntu.com", and answer Y when gdb asks to enable debuginfod, the debug symbols should be downloaded automatically..
Comment 7 Oded Arbel 2024-01-05 18:55:20 UTC
(In reply to fanzhuyifan from comment #6)
> If you have set DEBUGINFOD_URLS="https://debuginfod.ubuntu.com", and answer
> Y when gdb asks to enable debuginfod, the debug symbols should be downloaded
> automatically..

My DEBUGINFOD_URLS are set to "https://debuginfod.neon.kde.org/:https://debuginfod.ubuntu.com", and it did ask and I did answer, but I think it used the local debug symbols anyway.

I don't think it matters though, because I looked again at the raw (non-demangled) core parsed dump, and the problematic libkonsoleprivate.so lines look like this:

                #11 0x00007fec87887597 n/a (libkonsoleprivate.so.24.01.85 + 0x87597)
                #12 0x00007fec87887437 n/a (libkonsoleprivate.so.24.01.85 + 0x87437)
                #13 0x00007fec878a5324 n/a (libkonsoleprivate.so.24.01.85 + 0xa5324)

where the "n/a" part is where I'd expect the mangled names to appear.
Comment 8 fanzhuyifan 2024-01-05 18:58:04 UTC
(In reply to Oded Arbel from comment #7)
> My DEBUGINFOD_URLS are set to
> "https://debuginfod.neon.kde.org/:https://debuginfod.ubuntu.com", and it did
> ask and I did answer, but I think it used the local debug symbols anyway.


It needs to be space separated, instead of colon separated

https://sourceware.org/elfutils/Debuginfod.html
Comment 9 Oded Arbel 2024-01-05 19:02:25 UTC
Hmmm... I'm sure it tries to download missing files because I did see a download error:

---8<---
#0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140653741082048) at ./nptl/pthread_kill.c:44
Download failed: Invalid argument.  Continuing without source file ./nptl/./nptl/pthread_kill.c.
44      ./nptl/pthread_kill.c: No such file or directory.
---8<---

which is unrelated to the Konsole debug symbols.

I tried to remove the konsole-dbgsym package and ran the coredumpctl gdb command again, and it took a bit more time but showed all the expected debug symbols (and still didn't show the symbols that weren't showing before) - so I believe that works and isn't the problem.

I also tried with space separating the URLs and that did not change anything.
Comment 10 Oded Arbel 2024-01-15 18:05:27 UTC
Konsole keep crashing for me, after updates, but now it won't even let me report - Dr Konqi says there is no stack trace.

Running Konsole from another terminal, I can see this output during the crash:

---8<---
org.kde.konsole: Controller changed to Konsole::SessionController(0x55a4734e3390)
org.kde.konsole: HistoryFile: /proc/1686434/fd/62
ASSERT: "rc <= 0xffff" in file /usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h, line 79
KCrash: Application 'konsole' crashing... crashRecursionCounter = 2
Aborted (core dumped)
---8<---

Also, I found a reliable repro - Konsole always crashes when it is full screen and the screen it is on disconnects so it is moved to one of the existing screens. Sometimes it crashes when  disconnected screen returns and I move it to the new screen.

This could be related to the fact that my external screens (that disconnect and reconnect) are vertical (portrait orientation).
Comment 11 fanzhuyifan 2024-01-15 18:23:56 UTC
(In reply to Oded Arbel from comment #10)
> Konsole keep crashing for me, after updates, but now it won't even let me
> report - Dr Konqi says there is no stack trace.

If Dr. Konqi doesn't work, could you try using coredumpctl to generate a backtrace with debug symbols?

> Also, I found a reliable repro - Konsole always crashes when it is full
> screen and the screen it is on disconnects so it is moved to one of the
> existing screens. Sometimes it crashes when  disconnected screen returns and
> I move it to the new screen.
> 
> This could be related to the fact that my external screens (that disconnect
> and reconnect) are vertical (portrait orientation).

Thanks for your investigation! Unfortunately I cannot reproduce on master. I maximize konsole on my external monitor, and disconnect and reconnect it. I tried both setting the external display to portrait mode and landscape mode, but in neither case does konsole crash..
Comment 12 fanzhuyifan 2024-01-15 18:27:31 UTC
It would be great if you could help narrow down the cause of the issue further -- here are some possible ideas:
- does this only happen for certain display resolutions/scaling factors? 
- Are panels on the external monitor a necessary ingredient?
- maybe the display arrangement also matters?

Thanks again!
Comment 13 Oded Arbel 2024-01-16 13:26:34 UTC
(In reply to fanzhuyifan from comment #11)
> If Dr. Konqi doesn't work, could you try using coredumpctl to generate a
> backtrace with debug symbols?

Unfortunately `coredumpctl list` does not show a Konsole core dump.

(In reply to fanzhuyifan from comment #12)
> It would be great if you could help narrow down the cause of the issue
> further -- here are some possible ideas:
> - does this only happen for certain display resolutions/scaling factors? 

I have two different setups - one with a 1920x1200 external vertical monitor at 100% scaling, the other having two UHD vertical monitors at 125% scaling. It happened in both.

> - Are panels on the external monitor a necessary ingredient?

There are no panels on either external monitor.

> - maybe the display arrangement also matters?

Possibly - in both setups the vertical screens are to the left of the horizontal screen (that is set as the primary with the single default panel) - which is a configuration Plasma appears to think is non-intuitive.
Comment 14 Christoph Cullmann 2024-06-07 17:35:59 UTC
*** Bug 466775 has been marked as a duplicate of this bug. ***
Comment 15 Christoph Cullmann 2024-06-07 17:36:16 UTC
*** Bug 481208 has been marked as a duplicate of this bug. ***
Comment 16 Christoph Cullmann 2024-06-07 17:36:25 UTC
*** Bug 436400 has been marked as a duplicate of this bug. ***
Comment 17 Christoph Cullmann 2024-06-07 17:38:12 UTC
Thread 1 (Thread 0x7f9e4cbf3280 (LWP 27236)):
[KCrash Handler]
#4  0x00007f9de3dd2af4 in Konsole::CompactHistoryLine::CompactHistoryLine (this=0x7f9dcfd90ea0, line=..., bList=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qarraydata.h:147
#5  0x00007f9de3dd378a in Konsole::CompactHistoryScroll::setCellsVectorAt (this=0x5600a5ce9750, position=2772, cells=...) at ./src/history/compact/CompactHistoryScroll.cpp:132
#6  0x00007f9de3dd2f15 in Konsole::CompactHistoryScroll::setCellsAt (this=0x5600a5ce9750, position=2772, a=0x7f9dcfb10028, count=65610) at ./src/history/compact/CompactHistoryScroll.cpp:127
#7  0x00007f9de3dd3367 in Konsole::CompactHistoryScroll::reflowLines (this=0x5600a5ce9750, columns=167) at ./src/history/compact/CompactHistoryScroll.cpp:181
#8  0x00007f9de3daaf39 in Konsole::Screen::resizeImage (this=0x5600a5a3a930, new_lines=new_lines@entry=25, new_columns=new_columns@entry=167) at ./src/Screen.cpp:451
#9  0x00007f9de3d97b30 in Konsole::Emulation::setImageSize (this=0x5600a5ce0440, lines=25, columns=167) at ./src/Emulation.cpp:317
#10 0x00007f9e5140c6fe in QtPrivate::QSlotObjectBase::call (a=0x7ffcf6b45920, r=0x5600a5cdfaf0, this=0x5600a5d73730) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#11 doActivate<false> (sender=0x5600a5c380e0, signal_index=11, argv=0x7ffcf6b45920) at kernel/qobject.cpp:3886
#12 0x00007f9e51405ac7 in QMetaObject::activate (sender=sender@entry=0x5600a5c380e0, m=m@entry=0x7f9de3ec4d00 <Konsole::TerminalDisplay::staticMetaObject>, local_signal_index=local_signal_index@entry=4, argv=argv@entry=0x7ffcf6b45920) at kernel/qobject.cpp:3946
#13 0x00007f9de3d87603 in Konsole::TerminalDisplay::changedContentSizeSignal (this=this@entry=0x5600a5c380e0, _t1=<optimized out>, _t2=<optimized out>) at ./obj-x86_64-linux-gnu/src/konsoleprivate_autogen/DRAQINE3W2/moc_TerminalDisplay.cpp:574
#14 0x00007f9de3df9f22 in Konsole::TerminalDisplay::updateImageSize (this=this@entry=0x5600a5c380e0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qrect.h:269
#15 0x00007f9de3e01f18 in Konsole::TerminalDisplay::resizeEvent (this=0x5600a5c380e0, event=<optimized out>) at ./src/terminalDisplay/TerminalDisplay.cpp:962
#16 0x00007f9e51ef028f in QWidget::event (this=0x5600a5c380e0, event=0x7ffcf6b45d00) at kernel/qwidget.cpp:8804
#17 0x00007f9e51eacdc3 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x5600a5c380e0, e=0x7ffcf6b45d00) at kernel/qapplication.cpp:3632
#18 0x00007f9e51eb5bb8 in QApplication::notify(QObject*, QEvent*) () at kernel/qapplication.cpp:3156

from bug 436400 looks interesting as hint