Bug 483035 - macOS DMG codesigned segfault on opening new tab
Summary: macOS DMG codesigned segfault on opening new tab
Status: RESOLVED DUPLICATE of bug 487819
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: master
Platform: macOS (DMG) macOS
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-09 20:26 UTC by leo
Modified: 2024-06-06 22:06 UTC (History)
1 user (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 leo 2024-03-09 20:26:31 UTC
SUMMARY
Opening a new tab (either via the shortcut, button, or global menubar) results in a segfault. Backtrace:

frame #0: 0x00000001007ec358 libkonsoleprivate.24.04.70.dylib`Konsole::SessionController::userTitle() const + 28
frame #1: 0x00000001007f790c libkonsoleprivate.24.04.70.dylib`___lldb_unnamed_symbol6020 + 40
frame #2: 0x00000001033c3270 QtGui`QAccessible::queryAccessibleInterface(QObject*) + 408
frame #3: 0x00000001025258a8 QtWidgets`QStyleHelper::hasAncestor(QObject*, QAccessible::Role) + 48
frame #4: 0x000000010645c91c libqmacstyle.dylib`___lldb_unnamed_symbol609 + 1496
frame #5: 0x000000010264ac34 QtWidgets`___lldb_unnamed_symbol15062 + 112
frame #6: 0x000000010264aa0c QtWidgets`QScrollBar::QScrollBar(QWidget*) + 120
frame #7: 0x00000001007b6e14 libkonsoleprivate.24.04.70.dylib`Konsole::TerminalScrollBar::TerminalScrollBar(QWidget*) + 28
frame #8: 0x00000001007a53d0 libkonsoleprivate.24.04.70.dylib`Konsole::TerminalDisplay::TerminalDisplay(QWidget*) + 1020
frame #9: 0x000000010074f31c libkonsoleprivate.24.04.70.dylib`Konsole::ViewManager::createView(Konsole::Session*) + 180
frame #10: 0x00000001004f5e54 libkonsoleapp.24.04.70.dylib`Konsole::MainWindow::createSession(QExplicitlySharedDataPointer<Konsole::Profile>, QString const&) + 240
frame #11: 0x00000001004f2e48 libkonsoleapp.24.04.70.dylib`Konsole::MainWindow::newTab() + 84

STEPS TO REPRODUCE
1. Open a new tab.

OBSERVED RESULT
Konsole crashes.

EXPECTED RESULT
A new tab is opened.

SOFTWARE/OS VERSIONS
macOS: 14.4 (23E214)
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
Gatekeeper seems to be rejecting arm64 CI artifacts for some reason. This can be worked around by running `codesign --force --deep -s - konsole.app` to replace the signature, then bypassing the warning about an unsigned application.
Comment 1 deadite66 2024-03-13 19:38:31 UTC
had the issue twice the last few days on Arch plasma 6.0.1 when opening a tab.

running konsole (24.02.0) under gdb hopefully i can get a backtrace.
Comment 2 Kurt Hindenburg 2024-03-22 23:04:04 UTC
confirmed on the macos-x86_64 dmg

```
0   libkonsoleprivate.24.04.70.dylib	       0x10220d6b3 Konsole::SessionController::userTitle() const + 19
1   libkonsoleprivate.24.04.70.dylib	       0x1022194ba 0x10211b000 + 1041594
2   libkonsoleprivate.24.04.70.dylib	       0x1021c1d73 0x10211b000 + 683379
3   QtGui                         	       0x104f9d981 QAccessible::queryAccessibleInterface(QObject*) + 433
4   QtWidgets                     	       0x103fcdfd8 QStyleHelper::hasAncestor(QObject*, QAccessible::Role) + 56
5   libqmacstyle.dylib            	       0x105a87a11 0x105a79000 + 59921
6   QtWidgets                     	       0x1041128a7 0x103f2a000 + 2001063
7   libkonsoleprivate.24.04.70.dylib	       0x1021d6503 Konsole::TerminalScrollBar::TerminalScrollBar(QWidget*) + 19
8   libkonsoleprivate.24.04.70.dylib	       0x1021c24a7 Konsole::TerminalDisplay::TerminalDisplay(QWidget*) + 1831
9   libkonsoleprivate.24.04.70.dylib	       0x102165ac9 Konsole::ViewManager::createView(Konsole::Session*) + 201
10  libkonsoleapp.24.04.70.dylib  	       0x101e891ce Konsole::MainWindow::createSession(QExplicitlySharedDataPointer<Konsole::Profile>, QString const&) + 206
```
Comment 3 Kurt Hindenburg 2024-03-22 23:09:17 UTC
Once I removed the signature it works.  Also note that konsole that I build on macos has always worked.

codesign --remove-signature konsole.app
Comment 4 deadite66 2024-03-23 04:17:23 UTC
(In reply to deadite66 from comment #1)
> had the issue twice the last few days on Arch plasma 6.0.1 when opening a
> tab.
> 
> running konsole (24.02.0) under gdb hopefully i can get a backtrace.

haven't had the issue happen again since 6.0.2 so perhaps unrelated to the mac problem.
Comment 5 Christoph Cullmann 2024-06-06 22:06:11 UTC
Fixed in master.

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