Bug 476498 - Snap Kate 23.08.2 systematically crashes on startup
Summary: Snap Kate 23.08.2 systematically crashes on startup
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: unspecified
Platform: Snap Linux
: NOR crash
Target Milestone: ---
Assignee: Scarlett Moore
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-03 09:18 UTC by Mickou06
Modified: 2023-11-08 10:03 UTC (History)
2 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 Mickou06 2023-11-03 09:18:46 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. On Ubuntu 20.04.6 LTS, install kate snap using sudo snap install kate --classic
2. launch kate

OBSERVED RESULT
Systematic crash:
>$ kate
Segmentation fault (core dumped)
>$ dmesg
[ 6816.680004] kate[12392]: segfault at ffffffffffffffff ip ffffffffffffffff sp 00007fff06d77518 error 15
[ 6816.680010] Code: Unable to access opcode bytes at RIP 0xffffffffffffffd5.



EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Mickou06 2023-11-03 09:24:56 UTC
After installing snap kate 23.08.2 on Ubuntu 20.04.6 LTS, kate is always crashing at startupt:

$> sudo snap install kate --classic
$> kate
Segmentation fault (core dumped)
$> dmesg
[ 6994.694505] kate[12720]: segfault at ffffffffffffffff ip ffffffffffffffff sp 00007ffd6f656218 error 15
[ 6994.694511] Code: Unable to access opcode bytes at RIP 0xffffffffffffffd5.

the coredump file is available here:
https://e.pcloud.link/publink/show?code=XZHlCsZqzdEsjNy2yV3EyM4R07NGRIAGyGy
Comment 2 Scarlett Moore 2023-11-03 09:34:01 UTC
Looking into it. Are you on X11 or wayland?
Comment 3 Mickou06 2023-11-07 07:23:02 UTC
(In reply to Scarlett Moore from comment #2)
> Looking into it. Are you on X11 or wayland?

I'm on X11:
$> echo "$XDG_SESSION_TYPE"
x11
Comment 4 Bug Janitor Service 2023-11-07 10:06:41 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kate/-/merge_requests/1338
Comment 5 Scarlett Moore 2023-11-07 11:23:53 UTC
Git commit b65e058b066991d1b8bb2a322fd3fe821553d146 by Scarlett Moore.
Committed on 07/11/2023 at 11:06.
Pushed by scarlettmoore into branch 'release/23.08'.

snapcraft: Don't bundle c++ libs.

M  +2    -3    snapcraft.yaml

https://invent.kde.org/utilities/kate/-/commit/b65e058b066991d1b8bb2a322fd3fe821553d146
Comment 6 Mickou06 2023-11-08 07:23:13 UTC
Just installed kate snap using
snap install kate --candidate --classic

Everything works fine!
Thx for your speed/help ;)
Comment 7 Mickou06 2023-11-08 07:24:19 UTC
(In reply to Mickou06 from comment #6)
> Just installed kate snap using
> snap install kate --candidate --classic
> 
> Everything works fine!
> Thx for your speed/help ;)

snap list
Name               Version           Rev    Tracking          Publisher   Notes
bare               1.0               5      latest/stable     canonical✓  base
core22             20230801          864    latest/stable     canonical✓  base
gnome-42-2204      0+git.ff35a85     141    latest/stable     canonical✓  -
gtk-common-themes  0.1-81-g442e511   1535   latest/stable     canonical✓  -
kate               23.08.3           168    latest/candidate  kde✓        classic
Comment 8 Scarlett Moore 2023-11-08 10:03:47 UTC
Wonderful. I have released it to stable.