Bug#902235: thunderbird: Freezes X on startup reproducibly
Hi again, Axel Beckert wrote: > Will try. It at least prevent the freezes, but now I get "Your > Thunderbird profile cannot be loaded. It may be missing or > inaccessible." Might stem from hard rebooting the machine when it > happened the first time. > > And I still get that "Error: Access was denied while trying to open > files in your profile directory." This is #882218. Because as author of unburden-home-dir, I of course use it. :-) *sigh* This helped: ~ # aa-disable =thunderbird Disabling /usr/bin/thunderbird. Regards, Axel -- ,''`. | Axel Beckert , https://people.debian.org/~abe/ : :' : | Debian Developer, ftp.ch.debian.org Admin `. `' | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5 `-| 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE
Bug#902235: thunderbird: Freezes X on startup reproducibly
Control: forcemerge 900840 -1 Hi Carsten, Carsten Schoenert wrote: > this at all is #900840. Yes, sorry for the duplicate. I was too lazy to scroll further down than "severity minor" bug reports in text mode and forgot that there might have been pending bug reports further down. > You should be able to fix this behavior by modify the AppArmor profile > for Thunderbird. Will try. It at least prevent the freezes, but now I get "Your Thunderbird profile cannot be loaded. It may be missing or inaccessible." Might stem from hard rebooting the machine when it happened the first time. And I still get that "Error: Access was denied while trying to open files in your profile directory." BTW, why does X freeze just because Thunderbird is not allowed to access some files? This sounds like a horribly design flaw somewhere, probably in X. > https://salsa.debian.org/mozilla-team/thunderbird/commit/cb643970b166e46b07fe38a67ae85dec5c9e3d1a And why does Thunderbird need to poke around that deep under /sys/ anyways? It's an application and it should be hardware-independent... Regards, Axel -- ,''`. | Axel Beckert , https://people.debian.org/~abe/ : :' : | Debian Developer, ftp.ch.debian.org Admin `. `' | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5 `-| 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE
Bug#902235: thunderbird: Freezes X on startup reproducibly
Hello Axel, On Sat, Jun 23, 2018 at 07:05:14PM +0200, Axel Beckert wrote: ... > Error: Access was denied while trying to open files in your profile > directory. > > I though couldn't find any such file using e.g. "find ~ -not -readable" > or "find ~ -not -user `id -un`". But I do have apparmor active, so it > might be related to that. > > Actually I found some related messages in the dmesg output > > [ 111.046491] audit: type=1400 audit(1529769721.595:112): apparmor="DENIED" > operation="open" profile="thunderbird" > name="/sys/devices/pci:00/:00:02.0/vendor" pid=5346 > comm="thunderbird" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 > [ 111.046520] audit: type=1400 audit(1529769721.595:113): apparmor="DENIED" > operation="open" profile="thunderbird" > name="/sys/devices/pci:00/:00:02.0/vendor" pid=5346 > comm="thunderbird" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 > [ 111.046578] audit: type=1400 audit(1529769721.595:114): apparmor="DENIED" > operation="open" profile="thunderbird" > name="/sys/devices/pci:00/:00:02.0/vendor" pid=5346 > comm="thunderbird" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 > [ 111.046608] audit: type=1400 audit(1529769721.595:115): apparmor="DENIED" > operation="open" profile="thunderbird" > name="/sys/devices/pci:00/:00:02.0/vendor" pid=5346 > comm="thunderbird" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 > [ 111.050583] audit: type=1400 audit(1529769721.599:116): apparmor="DENIED" > operation="open" profile="thunderbird" > name="/sys/devices/pci:00/:00:02.0/vendor" pid=5346 > comm="thunderbird" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 > [ 111.050672] audit: type=1400 audit(1529769721.599:117): apparmor="DENIED" > operation="open" profile="thunderbird" > name="/sys/devices/pci:00/:00:02.0/vendor" pid=5346 > comm="thunderbird" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 > [ 111.071629] audit: type=1400 audit(1529769721.619:118): apparmor="DENIED" > operation="mkdir" profile="thunderbird" > name="/run/user/1000/.unburden-abe/cache/thunderbird/" pid=5299 > comm="thunderbird" requested_mask="c" denied_mask="c" fsuid=1000 ouid=1000 > [ 111.517719] audit: type=1400 audit(1529769722.067:119): apparmor="DENIED" > operation="mknod" profile="thunderbird" > name="/run/user/1000/.unburden-abe/cache/fontconfig/2e755eb509a594ba7adde982574983b5-le64.cache-7.TMP-yAAa7a" > pid=5299 comm="thunderbird" requested_mask="c" denied_mask="c" fsuid=1000 > ouid=1000 > [ 2214.053670] audit: type=1400 audit(1529771824.595:124): apparmor="DENIED" > operation="open" profile="thunderbird" > name="/sys/devices/pci:00/:00:02.0/vendor" pid=9409 > comm="thunderbird" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 > [ 2214.053707] audit: type=1400 audit(1529771824.595:125): apparmor="DENIED" > operation="open" profile="thunderbird" > name="/sys/devices/pci:00/:00:02.0/vendor" pid=9409 > comm="thunderbird" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 > [ 2214.053768] audit: type=1400 audit(1529771824.595:126): apparmor="DENIED" > operation="open" profile="thunderbird" > name="/sys/devices/pci:00/:00:02.0/vendor" pid=9409 > comm="thunderbird" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 > [ 2214.053804] audit: type=1400 audit(1529771824.595:127): apparmor="DENIED" > operation="open" profile="thunderbird" > name="/sys/devices/pci:00/:00:02.0/vendor" pid=9409 > comm="thunderbird" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 > [ 2214.056597] audit: type=1400 audit(1529771824.595:128): apparmor="DENIED" > operation="open" profile="thunderbird" > name="/sys/devices/pci:00/:00:02.0/vendor" pid=9409 > comm="thunderbird" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 > [ 2214.057319] audit: type=1400 audit(1529771824.595:129): apparmor="DENIED" > operation="open" profile="thunderbird" > name="/sys/devices/pci:00/:00:02.0/vendor" pid=9409 > comm="thunderbird" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 > [ 2214.059413] audit: type=1400 audit(1529771824.599:130): apparmor="DENIED" > operation="mkdir" profile="thunderbird" > name="/run/user/1000/.unburden-abe/cache/thunderbird/" pid=9394 > comm="thunderbird" requested_mask="c" denied_mask="c" fsuid=1000 ouid=1000 > [ 2214.245650] audit: type=1400 audit(1529771824.787:131): apparmor="DENIED" > operation="mknod" profile="thunderbird" > name="/run/user/1000/.unburden-abe/cache/fontconfig/2e755eb509a594ba7adde982574983b5-le64.cache-7.TMP-tid84T" > pid=9394 comm="thunderbird" requested_mask="c" denied_mask="c" fsuid=1000 > ouid=1000 > > This is likely from two tries to start thunderbird. > > I also checked /var/log/Xorg.0.log as well as ~/.xsession-errors, but I > found nothing which seems related or in the relevant time frame. this at all is #900840. intrigeri has added a updated AppArmor profile for Thunderbird, unfor
Bug#902235: thunderbird: Freezes X on startup reproducibly
Package: thunderbird Version: 1:52.8.0-1 Severity: important Hi, I use thunderbird seldomly (i.e. I got the popup about migrating icedove profiles only today), so I have no idea with which this started to happen. But when I now start thunderbird on my Thinkpad X250, X freezes immediately. The mouse and Ctrl-Alt-F1 still works, but I can't control my window manager (i3) anymore nor does the currently focussed shell (where I started thunderbird) react to any keypress. For example the clock in my i3bar which is updating every second, stopped, too. I have to kill X to get back into a usable state. This is reproducible. I tried it about four times. (The first time I even rebooted the laptop hard by powering it off as I didn't notice that I can still switch to a text console.) I have no idea why this happens. The only thing I saw before the freeze was that thunderbird emitted this error message in the shell where I started it: Error: Access was denied while trying to open files in your profile directory. I though couldn't find any such file using e.g. "find ~ -not -readable" or "find ~ -not -user `id -un`". But I do have apparmor active, so it might be related to that. Actually I found some related messages in the dmesg output [ 111.046491] audit: type=1400 audit(1529769721.595:112): apparmor="DENIED" operation="open" profile="thunderbird" name="/sys/devices/pci:00/:00:02.0/vendor" pid=5346 comm="thunderbird" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [ 111.046520] audit: type=1400 audit(1529769721.595:113): apparmor="DENIED" operation="open" profile="thunderbird" name="/sys/devices/pci:00/:00:02.0/vendor" pid=5346 comm="thunderbird" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [ 111.046578] audit: type=1400 audit(1529769721.595:114): apparmor="DENIED" operation="open" profile="thunderbird" name="/sys/devices/pci:00/:00:02.0/vendor" pid=5346 comm="thunderbird" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [ 111.046608] audit: type=1400 audit(1529769721.595:115): apparmor="DENIED" operation="open" profile="thunderbird" name="/sys/devices/pci:00/:00:02.0/vendor" pid=5346 comm="thunderbird" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [ 111.050583] audit: type=1400 audit(1529769721.599:116): apparmor="DENIED" operation="open" profile="thunderbird" name="/sys/devices/pci:00/:00:02.0/vendor" pid=5346 comm="thunderbird" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [ 111.050672] audit: type=1400 audit(1529769721.599:117): apparmor="DENIED" operation="open" profile="thunderbird" name="/sys/devices/pci:00/:00:02.0/vendor" pid=5346 comm="thunderbird" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [ 111.071629] audit: type=1400 audit(1529769721.619:118): apparmor="DENIED" operation="mkdir" profile="thunderbird" name="/run/user/1000/.unburden-abe/cache/thunderbird/" pid=5299 comm="thunderbird" requested_mask="c" denied_mask="c" fsuid=1000 ouid=1000 [ 111.517719] audit: type=1400 audit(1529769722.067:119): apparmor="DENIED" operation="mknod" profile="thunderbird" name="/run/user/1000/.unburden-abe/cache/fontconfig/2e755eb509a594ba7adde982574983b5-le64.cache-7.TMP-yAAa7a" pid=5299 comm="thunderbird" requested_mask="c" denied_mask="c" fsuid=1000 ouid=1000 [ 2214.053670] audit: type=1400 audit(1529771824.595:124): apparmor="DENIED" operation="open" profile="thunderbird" name="/sys/devices/pci:00/:00:02.0/vendor" pid=9409 comm="thunderbird" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [ 2214.053707] audit: type=1400 audit(1529771824.595:125): apparmor="DENIED" operation="open" profile="thunderbird" name="/sys/devices/pci:00/:00:02.0/vendor" pid=9409 comm="thunderbird" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [ 2214.053768] audit: type=1400 audit(1529771824.595:126): apparmor="DENIED" operation="open" profile="thunderbird" name="/sys/devices/pci:00/:00:02.0/vendor" pid=9409 comm="thunderbird" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [ 2214.053804] audit: type=1400 audit(1529771824.595:127): apparmor="DENIED" operation="open" profile="thunderbird" name="/sys/devices/pci:00/:00:02.0/vendor" pid=9409 comm="thunderbird" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [ 2214.056597] audit: type=1400 audit(1529771824.595:128): apparmor="DENIED" operation="open" profile="thunderbird" name="/sys/devices/pci:00/:00:02.0/vendor" pid=9409 comm="thunderbird" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [ 2214.057319] audit: type=1400 audit(1529771824.595:129): apparmor="DENIED" operation="open" profile="thunderbird" name="/sys/devices/pci:00/:00:02.0/vendor" pid=9409 comm="thunderbird" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [ 2214.059413] audit: type=1400 audit(1529771824.599:130): apparmor="DENIED" operation="mkdir" profile="thunderbird" name="/run/user/1000/.unburden-abe/cache