Closed ivoruetsche closed 11 months ago
Are you sure it's due to apparmor? It looks like a use-after-free crash.
Well, i would say yes, because the bash output from the tdesktop is at the same moment like the syslog messages (in my post with different time stamp, sorry, but it is):
It looks also that the bash crash message is related to the apparmor messages: "Error creating IO channel for /proc/self/mountinfo: Permission denied" vs: apparmor="DENIED" operation="open" class="file" profile="snap.telegram-desktop.telegram-desktop" to /proc/144321/mountinfo /etc/fstab /proc/144321/mounts
Well, the fact it's at the same time doesn't really mean it's the cause. Maybe it ignores the failure and then use-after-free happens due to an unrelated reason. Anyway you should try to reproduce this on the static binary and if you can't then it's unfixable because snaps are undebuggable due to https://bugs.launchpad.net/snapcraft/+bug/1995424
Yes, that's true. I added
/proc/self/mountinfo r,
/proc/@{pid}/mountinfo r,
/proc/@{pid}/mountinfo r,
/run/mount/utab r,
/etc/fstab r,
to /var/lib/snapd/apparmor/profiles/snap.telegram-desktop.telegram-desktop and the apparmor message are no longer reportet, but the app still crashes with:
Scudo ERROR: invalid chunk state when deallocating address 0x7f163caacad0
Aborted (core dumped)
and the syslog is more silent:
Dec 21 23:37:58 dbus-daemon[3620]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.210' (uid=1000 pid=167200 comm="/snap/telegram-desktop/5305/usr/bin/telegram-deskt" label="snap.telegram-desktop.telegram-desktop (enforce)")
Dec 21 23:37:58 systemd[1]: Starting Hostname Service...
With the static binary it works as expected.
I can't suggest any other than using static binary
Yes, I see your point.
Thanks for the hints.
I can't suggest any other than using static binary
Steps to reproduce
Open or save files
Expected behaviour
File chooser dialog should open to select file or save a file.
Actual behaviour
tdesktop crash with an error:
syslog reports:
Operating system
Ubuntu 22.04.3
Version of Telegram Desktop
4.12.2 / 2023-12-01 (5305)
Installation source
Snap
Crash ID
Can't find this option (settings/advanced/ ... I haven't any "beta" switch)
Logs