[desktop] Crashes on startup
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Oxide |
Undecided
|
Unassigned | ||
| | apparmor-easyprof-ubuntu (Ubuntu) |
Low
|
Unassigned | ||
| | webbrowser-app (Ubuntu) |
Critical
|
Olivier Tilloy | ||
Bug Description
For a little while now on my development machine (which is a Frankenstein environment anyway), which is running wily+overlay, webbrowser-app has been crashing on startup. The console output is below. It looks like a permissions issue? It may have started around the time that webbrowser-app got AppArmor support...
I don't seem to have a file in /var/crash. I don't seem to have *any* files in /var/crash... But maybe this log is enough for now.
(webbrowser-
(webbrowser-
(webbrowser-
org.gtk.
shm_open() failed: Permission denied
file://
qml: Loaded 3 UA override(s) from file://
[1020/092321:
[1020/092321:
[1020/092321:
[1020/092321:
[1020/092321:
[1020/092321:
[1020/092321:
[1020/092321:
[1020/092321:
[1020/092321:
[1020/092321:
[1020/092321:
[1020/092321:
[1020/092321:
[1020/092321:
[1020/092321:
[1020/092321:
Aborted
Related branches
- Jamie Strandboge: Needs Fixing on 2015-10-22
-
Diff: 25 lines (+4/-4)1 file modifieddata/policygroups/ubuntu/1.1/webview (+4/-4)
- PS Jenkins bot: Approve (continuous-integration) on 2015-10-21
- Ubuntu Phablet Team: Pending requested 2015-10-21
-
Diff: 12 lines (+2/-1)1 file modifieddebian/rules (+2/-1)
| Olivier Tilloy (osomon) wrote : | #1 |
| Olivier Tilloy (osomon) wrote : | #2 |
And can you please check what the permissions of /run/user/
| Launchpad Janitor (janitor) wrote : | #3 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in webbrowser-app (Ubuntu): | |
| status: | New → Confirmed |
| Michael Terry (mterry) wrote : | #4 |
$ ls -ld /run/user/
drwx------ 2 mike mike 60 Oct 20 10:43 /run/user/
$ ls -l /run/user/
-rw------- 1 mike mike 2 Oct 20 10:46 user
Which is all correct. Everything else on my desktop (including other things that use dconf) work correctly.
| Michael Terry (mterry) wrote : | #5 |
The timing of this problem with webbrowser-app getting AppArmor support is suspicious to me.
| Olivier Tilloy (osomon) wrote : | #6 |
Allan (alesage) is reporting the same issue on vivid desktop.
| Olivier Tilloy (osomon) wrote : | #7 |
I’m seeing that on my vivid desktop too.
| Changed in webbrowser-app (Ubuntu): | |
| assignee: | nobody → Olivier Tilloy (osomon) |
| importance: | Undecided → Critical |
| Olivier Tilloy (osomon) wrote : | #8 |
The browser’s profile has the following rule:
deny /run/user/
It seems this was added as part of bug #1260101. At the time Jamie commented that oxide appeared to work ok even with dconf access being denied. This is still the case on touch devices, but apparently not on desktops.
| Olivier Tilloy (osomon) wrote : | #9 |
Actually, I just realized that the dconf error is most probably a red herring, what makes oxide unhappy is the following denials:
Creating shared memory in /dev/shm/
| Olivier Tilloy (osomon) wrote : | #10 |
I suppose oxide should be allowed to write to /dev/shm/
| Jamie Strandboge (jdstrand) wrote : | #11 |
That is fine to add and is almost certainly the cause of the issue.
| Chris Coulson (chrisccoulson) wrote : | #12 |
It needs to be able to map those files too
| summary: |
- [desktop] Crashes on startup with wily+overlay + [desktop] Crashes on startup |
| Changed in apparmor-easyprof-ubuntu (Ubuntu): | |
| assignee: | nobody → Olivier Tilloy (osomon) |
| status: | New → In Progress |
| Changed in webbrowser-app (Ubuntu): | |
| status: | Confirmed → Invalid |
| Changed in apparmor-easyprof-ubuntu (Ubuntu): | |
| importance: | Undecided → Critical |
| Changed in oxide: | |
| status: | New → Invalid |
| Jamie Strandboge (jdstrand) wrote : | #13 |
09:09 < jdstrand> oSoMoN: we can't fix that in apparmor easyprof
09:10 < jdstrand> oSoMoN: not in a stable update. it will regenerate all
09:10 < jdstrand> oSoMoN: which is a time consuming operation
09:10 < jdstrand> oSoMoN: it can be fixed in the 16.04 policy
09:10 < oSoMoN> jdstrand, how can we proceed then? other apps embedding a
09:10 < jdstrand> oSoMoN: it can be fixed in the 16.04 policy
09:11 < jdstrand> oSoMoN: the phone is fine
09:11 < oSoMoN> yes, the issue is desktop-specific
09:11 < jdstrand> oSoMoN: what other apps are you talking about?
09:11 < jdstrand> oSoMoN: personal will use the 16.04 policy, which can be fixed
09:12 < oSoMoN> jdstrand, I don’t have any specific example, I guess any app
09:12 < jdstrand> so, I think the path forward is fix webbrowser-app today (use
09:12 < jdstrand> oSoMoN: yes, but those things don't run on the desktop today
09:12 < jdstrand> they will in personal
09:13 < jdstrand> but personal isn't until 16.04 or later
| Changed in webbrowser-app (Ubuntu): | |
| status: | Invalid → In Progress |
| Changed in apparmor-easyprof-ubuntu (Ubuntu): | |
| importance: | Critical → Low |
| status: | In Progress → Triaged |
| assignee: | Olivier Tilloy (osomon) → nobody |
| tags: | added: application-confinement |
| Launchpad Janitor (janitor) wrote : | #14 |
This bug was fixed in the package webbrowser-app - 0.23+15.
---------------
webbrowser-app (0.23+15.
[ CI Train Bot ]
* New rebuild forced.
* Resync trunk.
[ Olivier Tilloy ]
* Add an exception to the generated apparmor profile to allow reading
HERE’s TOS in the browser. (LP: #1507667)
* Modify the generated apparmor profile to allow rw access to
/dev/
* Update translation template.
[ Ugo Riboni ]
* Fix inability to drag the map to pan in Google maps, on desktop.
(LP: #1503506)
* Implement support for allowing or denying access to media input
devices and for setting default media input devices. (LP: #1410996)
* Refactor the BookmarksModel to be a singleton.
-- Olivier Tilloy <email address hidden> Thu, 22 Oct 2015 15:07:49 +0000
| Changed in webbrowser-app (Ubuntu): | |
| status: | In Progress → Fix Released |
| Launchpad Janitor (janitor) wrote : | #15 |
This bug was fixed in the package apparmor-
---------------
apparmor-
* create policy version 16.04 for xenial
* adjust autopkgtests for policy version 15.10
* ubuntu/ubuntu-sdk, ubuntu/webview: allow /dev/shm in addition to /run/shm
(LP: #1508054)
-- Jamie Strandboge <email address hidden> Mon, 26 Oct 2015 15:52:48 -0500
| Changed in apparmor-easyprof-ubuntu (Ubuntu): | |
| status: | Triaged → Fix Released |


This looks similar to https:/ /bugzilla. redhat. com/show_ bug.cgi? id=753882. I wonder what got you into that state. Do other apps that use dconf work?