#1128672 /etc/apparmor.d/usr.bin.thunderbird: causes crash when trying to attach a file

Package:
thunderbird
Source:
thunderbird
Description:
mail/news client with RSS, chat and integrated spam filter support
Submitter:
Marc Haber
Date:
2026-06-22 20:45:02 UTC
Severity:
normal
#1128672#5
Date:
2026-02-22 12:20:16 UTC
From:
To:
Justification for "Severity: serious": Impossible to create mail with
attachments.

Hi,

this applies to both thunderbird 144.0 from experimental and to
1:140.7.1esr-1.

Starting thunderbird gives the following console messsages:

$ thunderbird
[3875175] Sandbox: CanCreateUserNamespace() clone() failure: EACCES
[3875175] Wayland Proxy [0x7fa18e788cf0] Error: StartProxyServer(): bind() error : Permission denied
[GFX1-]: FireTestProcess failed: Failed to spawn child process “/usr/lib/thunderbird/glxtest” (Permission denied)

[GFX1-]: glxtest: ManageChildProcess failed

[GFX1-]: No GPUs detected via PCI

WARNING: Glycin running without sandbox.
[Parent 3875175, Main Thread] WARNING: Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.: 'glib warning', file toolkit/xre/nsSigHandlers.cpp:201

(thunderbird:3875175): Gtk-WARNING **: 13:10:32.427: Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.
WARNING: Glycin running without sandbox.
WARNING: Glycin running without sandbox.
WARNING: Glycin running without sandbox.
WARNING: Glycin running without sandbox.
WARNING: Glycin running without sandbox.
(continues, tens of times as second)

I then open a new message and click on "attach". Thunderbird crashes
reliably,

WARNING: Glycin running without sandbox.
WARNING: Glycin running without sandbox.
**
Gtk:ERROR:../../../gtk/gtkiconhelper.c:495:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/breeze-dark/status/16/image-missing.svg: Could not spawn `env -i XDG_RUNTIME_DIR="/run/user/1001" "/usr/libexec/glycin-loaders/2+/glycin-svg" "--dbus-fd" "122"`: Permission denied (os error 13) (gdk-pixbuf-error-quark, 0)
Bail out! Gtk:ERROR:../../../gtk/gtkiconhelper.c:495:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/breeze-dark/status/16/image-missing.svg: Could not spawn `env -i XDG_RUNTIME_DIR="/run/user/1001" "/usr/libexec/glycin-loaders/2+/glycin-svg" "--dbus-fd" "122"`: Permission denied (os error 13) (gdk-pixbuf-error-quark, 0)
Redirecting call to abort() to mozalloc_abort

ExceptionHandler::GenerateDump attempting to generate:/home/mh/.thunderbird/xqucmwop.default/minidumps/773a2760-f9f2-a32f-9ba4-8f17fea77e77.dmp
ExceptionHandler::GenerateDump cloned child 3875999
ExceptionHandler::SendContinueSignalToChild sent continue signal to child
ExceptionHandler::WaitForContinueSignal waiting for continue signal...
ExceptionHandler::GenerateDump minidump generation succeeded
Exiting due to channel error.
Exiting due to channel error.

Greetings
Mar

#1128672#10
Date:
2026-02-22 12:30:58 UTC
From:
To:
Hello Marc

Am 22.02.26 um 14:20 schrieb Marc Haber:

this souds like you have the AppArmore profile enabled.

There is an other bug report filed about issues related to an outdated
AA profile for Thunderbird. Can you please check if the issue ist still
existing with an disabled AA Thunderbird profile?

https://bugs.debian.org/1127710

#1128672#15
Date:
2026-02-22 12:41:26 UTC
From:
To:
Control: retitle -1 /etc/apparmor.d/usr.bin.thunderbird: causes crash when trying to attach a file
Control: affects -1 + src:apparmor
...

This is another symptom of the same root cause as
<https://bugs.debian.org/1127710>: thunderbird's AppArmor profile
prevents gdk-pixbuf / glycin / bwrap from working as designed, by
denying permission to do operations that they need. A workaround is to
put thunderbird's AppArmor profile in "complain" (non-enforcing) mode,
making it no longer a security boundary:

     aa-complain /etc/apparmor.d/usr.bin.thunderbird

or disable it completely.

Thunderbird's AppArmor profile is already disabled by default (see
https://salsa.debian.org/mozilla-team/thunderbird/-/blob/debian/sid/debian/README.apparmor)
"because it has to break a number of common use cases in order to
provide meaningful application confinement". Now that gdk-pixbuf uses
glycin, that list of common use cases is much longer than it used to be.

Based on discussion in https://bugs.debian.org/1127710 it seems that the
most likely resolution for this issue will be to remove the AppArmor
profile completely.

     smcv

#1128672#24
Date:
2026-02-22 13:06:29 UTC
From:
To:
Downgrading as workaround available.

Yes, I confirm that this helps. What also helps is GTK_USE_PORTAL=1 (the
KDE launcher does that).

Greetings
Marc

#1128672#29
Date:
2026-02-22 13:06:29 UTC
From:
To:
Downgrading as workaround available.

Yes, I confirm that this helps. What also helps is GTK_USE_PORTAL=1 (the
KDE launcher does that).

Greetings
Marc

#1128672#34
Date:
2026-06-22 20:43:26 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
thunderbird, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1128672@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Carsten Schoenert <c.schoenert@t-online.de> (supplier of updated thunderbird package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 22 Jun 2026 21:41:06 +0200
Source: thunderbird
Architecture: source
Version: 1:152.0-1
Distribution: experimental
Urgency: medium
Maintainer: Carsten Schoenert <c.schoenert@t-online.de>
Changed-By: Carsten Schoenert <c.schoenert@t-online.de>
Closes: 880424 882218 883245 900210 909281 914403 917613 928178 949450 949649 955380 961269 1127710 1128672 1128876 1138513
Changes:
 thunderbird (1:152.0-1) experimental; urgency=medium
 .
   [ Carsten Schoenert ]
   * [5097e09] d/control: Bump B-D for libnss3-dev
   * [5350030] New upstream version 152.0
     (Closes: #1138513)
   * [92962df] Rebuild patch queue from patch-queue branch
     Removed patch (included upstream):
     fixes/Fix-conflicting-types-for-once_flag-and-call_once-with-gl.patch
     fixes/Fix-math_private.h-for-i386-FTBFS.patch
     fixes/Fix-sandbox-to-build-with-glibc-2.43.patch
   * [46de392] d/mozconfig.default: Remove option --enable-av1
 .
   [ Christoph Goehre ]
   * [5308430] rebuild patch queue from patch-queue branch (Closes: #1128876)
 .
   [ intrigeri ]
   * [77d16c3] Don't install AppArmor policy anymore
     (Closes: #1128672, #1127710, #928178, #909281, #955380, #882218, #900210,
      #914403, #917613, #949450, #880424, #883245, #961269, #949649)
Checksums-Sha1:
 1e9bca601d3dab684f2c1e34bbd107712eb17f8e 8402 thunderbird_152.0-1.dsc
 5ed145d0f72ee7e539f3f0d40cea83ed62b1499f 12403192 thunderbird_152.0.orig-thunderbird-l10n.tar.xz
 dbef2f6a94cec7b667931b222bdd6f0aaf9a4810 931861244 thunderbird_152.0.orig.tar.xz
 6fc9531bd0e3c27e7908228227a542966eb827f8 537512 thunderbird_152.0-1.debian.tar.xz
 41476b21bed4090bcf2c148b0178ef52d0e2f2e7 40158 thunderbird_152.0-1_amd64.buildinfo
Checksums-Sha256:
 8d348b506605fc73d56722d5a55ed9dae8af623989312e5c039786edfbe4f0f2 8402 thunderbird_152.0-1.dsc
 f4afa9846377239357e485da027035fe53762cc8100ced5cf5abca87fca7a1f8 12403192 thunderbird_152.0.orig-thunderbird-l10n.tar.xz
 64f02562f1f4a18e39c67b07255feb5828acde86327f55b1ebe45e3ac63963ea 931861244 thunderbird_152.0.orig.tar.xz
 52abff98afbeb3859791f46e5602bbbf6982f38876f7e223d0ff1ac7bb77c778 537512 thunderbird_152.0-1.debian.tar.xz
 38ab10bf14449c38f7233f8d883b1a6ffbe412606232763f9bcaa5dcda320c03 40158 thunderbird_152.0-1_amd64.buildinfo
Files:
 cddc168c5e8bdb4c051a11b4e56831b8 8402 mail optional thunderbird_152.0-1.dsc
 27c69983d0063061996fc52794377743 12403192 mail optional thunderbird_152.0.orig-thunderbird-l10n.tar.xz
 f49e9b967f1a1fdceec316060aef4959 931861244 mail optional thunderbird_152.0.orig.tar.xz
 d435a5b441fa39456dfa21b01881fdf3 537512 mail optional thunderbird_152.0-1.debian.tar.xz
 20c10b422095bf9f1d461c01e152c30e 40158 mail optional thunderbird_152.0-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEtw38bxNP7PwBHmKqgwFgFCUdHbAFAmo5mL4ACgkQgwFgFCUd
HbCPqw/+LEBi5TrBqIfSUOoosSHHufs3R4FzJrZ6vNsK4ur6EVNNhR1u0Gc4VtEG
JIaiGg7fCDf3mgAowEIKSQpVHnqMPKpqZemfIWHNT0exdKp1RXlh9OuwGdOqg0Og
5MWrhKzrDVr7p9LmB7ilQ2V0I+xHx1zh/cG58Ar2Pp9Wn8YDlpIQmO0vp6sX2ex5
GTUYHvVrssW4L/hOAsbMu9YUnGPRiHPvj94JF7XT2JFC6mndXtiqvEOH5Oo1UluK
FcM8Xz1GsANmwB4gR7/g0f06RWEjAsOMXPU98ESaY85kRTJ4VlVvGWOknGa0Sptv
frrEG893xRFXFmnrDR7dLH8Ux1cnsGy5wpNCZeLVViuT6Pv4OIm83jijKqaGHvp3
jdD8OWx7YGbYdm+INBBnff5Y/IEEni7EIuX17/S3ZNqlLYJGPbL6OWG+pMK52+xZ
0dMFXCrSMc+xMMUHBQ/aUw3up5t4B5de51tX9kWTFv3W/qIiLdA+PpH2EGiJJJIF
Jgm9q0sAlXLC2GZW55MTbk2/jhewQOcShIRrEKFJUPzpPgeXZAAN/I47uKAzoUAW
0x/Hb0+b72NKBlK8jurZfKYBDPyxLnHSUcCbVCPj8SyzxcCHBZ12jsVhIEjUwMEH
cyFP/Ep5MDC7yo9XX+Xt4na47jktwLRJ5jRpySaIV9RfhvBHPNQ=
=jjF1
-----END PGP SIGNATURE-----