torproject / torbrowser-launcher

Securely and easily download, verify, install, and launch Tor Browser in Linux. This repository is a mirror of https://gitlab.torproject.org/tpo/applications/torbrowser-launcher
MIT License
780 stars 183 forks source link

GSettings schema crash (possibly permissions?) #79

Closed pde closed 10 years ago

pde commented 10 years ago

torbrowser-launcher

(torbrowser-launcher:14570): GLib-GIO-ERROR **: No GSettings schemas are installed on the system
Trace/breakpoint trap (core dumped

strace torbrowser-launcher 2>&1 | tail -20

poll([{fd=4, events=POLLIN|POLLOUT}], 1, 4294967295) = 1 ([{fd=4, revents=POLLOUT}])
writev(4, [{"\20\0\t\0\32\0\0\0_UNITY_NET_WORKAREA_REGI"..., 36}, {NULL, 0}, {"", 0}], 3) = 36
poll([{fd=4, events=POLLIN}], 1, 4294967295) = 1 ([{fd=4, revents=POLLIN}])
recvfrom(4, "\1\0~\0\0\0\0\0\245\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 4096, 0, NULL, NULL) = 32
recvfrom(4, 0x34ca6d4, 4096, 0, 0, 0)   = -1 EAGAIN (Resource temporarily unavailable)
recvfrom(4, 0x34ca6d4, 4096, 0, 0, 0)   = -1 EAGAIN (Resource temporarily unavailable)
open("/usr/share/locale/en_US/LC_MESSAGES/glib20.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/glib20.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en_US/LC_MESSAGES/glib20.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en/LC_MESSAGES/glib20.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/glib-2.0/schemas/gschemas.compiled", O_RDONLY) = -1 EACCES (Permission denied)
open("/usr/lib/x86_64-linux-gnu/charset.alias", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/share/glib-2.0/schemas/gschemas.compiled", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/gnome/glib-2.0/schemas/gschemas.compiled", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/ubuntu/glib-2.0/schemas/gschemas.compiled", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "\n(torbrowser-launcher:14690): GL"..., 98
(torbrowser-launcher:14690): GLib-GIO-ERROR **: No GSettings schemas are installed on the system
) = 98
--- SIGTRAP {si_signo=SIGTRAP, si_code=SI_KERNEL} ---
+++ killed by SIGTRAP (core dumped) +++

dpkg -l gsettings* | grep ^ii

ii  gsettings-desktop-schemas                 3.8.0-1ubuntu1                                all          GSettings deskop-wide schemas

ls -l /usr/share/glib-2.0/schemas/*compiled

-rw-r--r-- 1 root root 281129 Feb 18 11:42 /usr/share/glib-2.0/schemas/gschemas.compiled
pde commented 10 years ago

Looks like it might be an apparmor issue. From dmesg:

[190606.207340] type=1400 audit(1393632807.431:101): apparmor="DENIED" operation="open" parent=25252 profile="/usr/bin/torbrowser-launcher" name="/usr/share/glib-2.0/schemas/gschemas.compiled" pid=32647 comm="torbrowser-laun" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [190606.207510] traps: torbrowser-laun[32647] trap int3 ip:7fa1c68aa3d9 sp:7fffbe3e6760 error:0

grrrrr commented 10 years ago

Seeing this on Ubuntu 12.04.4 as well following an apt-get upgrade which upgraded LibreOffice. Previously this had been working fine.

[  630.134557] type=1400 audit(1394042886.271:47): apparmor="DENIED" operation="open" parent=2383 profile="/usr/bin/torbrowser-launcher" name="/usr/share/glib-2.0/schemas/gschemas.compiled" pid=2878 comm="torbrowser-laun" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[  630.134581] type=1400 audit(1394042886.271:48): apparmor="DENIED" operation="open" parent=2383 profile="/usr/bin/torbrowser-launcher" name="/usr/local/share/glib-2.0/schemas/gschemas.compiled" pid=2878 comm="torbrowser-laun" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0

Packages installed with the upgrade

Upgrade: libreoffice-help-en-gb:amd64 (4.2.1-0ubuntu1~precise1, 4.2.2~rc1-0ubuntu1~precise1), libreoffice-style-galaxy:amd64 (4.2.1-0ubuntu1~precise1, 4.2.2~rc1-0ubuntu 1~precise1), libreoffice-gnome:amd64 (4.2.1-0ubuntu1~precise1, 4.2.2~rc1-0ubuntu1~precise1), libreoffice-draw:amd64 (4.2.1-0ubuntu1~precise1, 4.2.2~rc1-0ubuntu1~precise 1), libreoffice-avmedia-backend-gstreamer:amd64 (4.2.1-0ubuntu1~precise1, 4.2.2~rc1-0ubuntu1~precise1), libreoffice-impress:amd64 (4.2.1-0ubuntu1~precise1, 4.2.2~rc1-0u buntu1~precise1), fonts-opensymbol:amd64 (102.6+LibO4.2.1-0ubuntu1~precise1, 102.6+LibO4.2.2~rc1-0ubuntu1~precise1), gnome-settings-daemon:amd64 (3.4.2-0ubuntu0.6.4, 3. 4.2-0ubuntu0.6.5), libreoffice-style-sifr:amd64 (4.2.1-0ubuntu1~precise1, 4.2.2~rc1-0ubuntu1~precise1), libreoffice-report-builder-bin:amd64 (4.2.1-0ubuntu1~precise1, 4 .2.2~rc1-0ubuntu1~precise1), libreoffice-math:amd64 (4.2.1-0ubuntu1~precise1, 4.2.2~rc1-0ubuntu1~precise1), libreoffice-gtk:amd64 (4.2.1-0ubuntu1~precise1, 4.2.2~rc1-0u buntu1~precise1), libreoffice-common:amd64 (4.2.1-0ubuntu1~precise1, 4.2.2~rc1-0ubuntu1~precise1), uno-libs3:amd64 (4.2.1-0ubuntu1~precise1, 4.2.2~rc1-0ubuntu1~precise1 ), python-uno:amd64 (4.2.1-0ubuntu1~precise1, 4.2.2~rc1-0ubuntu1~precise1), libreoffice-pdfimport:amd64 (4.2.1-0ubuntu1~precise1, 4.2.2~rc1-0ubuntu1~precise1), libreoff ice-base-drivers:amd64 (4.2.1-0ubuntu1~precise1, 4.2.2~rc1-0ubuntu1~precise1), libreoffice-style-human:amd64 (4.2.1-0ubuntu1~precise1, 4.2.2~rc1-0ubuntu1~precise1), ure :amd64 (4.2.1-0ubuntu1~precise1, 4.2.2~rc1-0ubuntu1~precise1), libreoffice-base-core:amd64 (4.2.1-0ubuntu1~precise1, 4.2.2~rc1-0ubuntu1~precise1), libreoffice-base:amd6 4 (4.2.1-0ubuntu1~precise1, 4.2.2~rc1-0ubuntu1~precise1), libreoffice:amd64 (4.2.1-0ubuntu1~precise1, 4.2.2~rc1-0ubuntu1~precise1), libreoffice-calc:amd64 (4.2.1-0ubunt u1~precise1, 4.2.2~rc1-0ubuntu1~precise1), libreoffice-java-common:amd64 (4.2.1-0ubuntu1~precise1, 4.2.2~rc1-0ubuntu1~precise1), libreoffice-sdbc-firebird:amd64 (4.2.1- 0ubuntu1~precise1, 4.2.2~rc1-0ubuntu1~precise1), libreoffice-l10n-en-gb:amd64 (4.2.1-0ubuntu1~precise1, 4.2.2~rc1-0ubuntu1~precise1), libreoffice-sdbc-hsqldb:amd64 (4.2 .1-0ubuntu1~precise1, 4.2.2~rc1-0ubuntu1~precise1), libreoffice-core:amd64 (4.2.1-0ubuntu1~precise1, 4.2.2~rc1-0ubuntu1~precise1), libreoffice-writer:amd64 (4.2.1-0ubun tu1~precise1, 4.2.2~rc1-0ubuntu1~precise1), libreoffice-l10n-en-za:amd64 (4.2.1-0ubuntu1~precise1, 4.2.2~rc1-0ubuntu1~precise1), libreoffice-l10n-fa:amd64 (4.2.1-0ubunt u1~precise1, 4.2.2~rc1-0ubuntu1~precise1)

micahflee commented 10 years ago

This is a duplicate of #73, though it still contains some good info