New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.
Starred by 5 users
Status: WontFix
Owner: ----
Closed: Mar 2011
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug

Restricted
  • Only users with Commit permission may comment.



Sign in to add a comment
Permission denied. Chromium does not start
Reported by stefano....@gmail.com, Mar 13 2011 Back to list
Chrome Version       : Chromium	12.0.703.0 (Developer Build 77953) Ubuntu 10.10
WebKit	534.24 (trunk@80725)
V8	3.2.1.1
User Agent	Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.24 (KHTML, like Gecko) Ubuntu/10.10 Chromium/12.0.703.0 Chrome/12.0.703.0 Safari/534.24

What steps will reproduce the problem?

[2283:2293:538306973:ERROR:shared_memory_posix.cc(154)] Creating shared memory in /dev/shm/.org.chromium.oKh056 failed: Permission denied
pcilib: Cannot open /sys/bus/pci/devices/0000:00:00.0/resource: Permission denied

What is the expected result?
Chromium doesn't start
 
Comment 1 by temp01...@gmail.com, Mar 13 2011
Labels: -Area-Undefined Area-Internals Crash OS-Linux
Please get a crash dump: http://dev.chromium.org/for-testers/bug-reporting-guidelines/reporting-crash-bug
# Env:
#     LD_LIBRARY_PATH=/usr/lib/chromium-browser
#                PATH=/usr/lib/chromium-browser:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
#            GTK_PATH=
# CHROMIUM_USER_FLAGS=
#      CHROMIUM_FLAGS=
/usr/bin/gdb /usr/lib/chromium-browser/chromium-browser -x /tmp/chromiumargs.I7TerA
GNU gdb (GDB) 7.2-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/lib/chromium-browser/chromium-browser...(no debugging symbols found)...done.
(gdb) handle SIG33 pass nostop noprint
Signal        Stop	Print	Pass to program	Description
SIG33         No	No	Yes		Real-time event 33
(gdb) set pagination 0
(gdb) backtrace
No stack.
(gdb) thread apply all backtrace
(gdb) quit
You forgot to type 'run' before 'backtrace'
Sorry! :)

# Env:
#     LD_LIBRARY_PATH=/usr/lib/chromium-browser
#                PATH=/usr/lib/chromium-browser:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
#            GTK_PATH=
# CHROMIUM_USER_FLAGS=
#      CHROMIUM_FLAGS=
/usr/bin/gdb /usr/lib/chromium-browser/chromium-browser -x /tmp/chromiumargs.wlMUGa
GNU gdb (GDB) 7.2-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/lib/chromium-browser/chromium-browser...(no debugging symbols found)...done.
(gdb) handle SIG33 pass nostop noprint
Signal        Stop	Print	Pass to program	Description
SIG33         No	No	Yes		Real-time event 33
(gdb) set pagination 0
(gdb) run
Starting program: /usr/lib/chromium-browser/chromium-browser 
[Thread debugging using libthread_db enabled]
[8829:8840:18521020650:ERROR:shared_memory_posix.cc(154)] Creating shared memory in /dev/shm/.org.chromium.jJojTa failed: Permission denied
[New Thread 0x7f4d7bc37700 (LWP 8838)]
[New Thread 0x7f4d7b436700 (LWP 8839)]
[New Thread 0x7f4d7ac35700 (LWP 8840)]
[New Thread 0x7f4d7a140700 (LWP 8842)]
[New Thread 0x7f4d7993f700 (LWP 8844)]
[New Thread 0x7f4d7913e700 (LWP 8845)]
[New Thread 0x7f4d7893d700 (LWP 8846)]
[New Thread 0x7f4d7813c700 (LWP 8847)]
[New Thread 0x7f4d7793b700 (LWP 8848)]
[New Thread 0x7f4d88534700 (LWP 8849)]
[New Thread 0x7f4d7713a700 (LWP 8850)]
[New Thread 0x7f4d76939700 (LWP 8851)]
[New Thread 0x7f4d76138700 (LWP 8852)]
[New Thread 0x7f4d75937700 (LWP 8853)]
pcilib: Cannot open /sys/bus/pci/devices/0000:00:00.0/resource: Permission denied
[Thread 0x7f4d75937700 (LWP 8853) exited]
[Thread 0x7f4d76138700 (LWP 8852) exited]
[Thread 0x7f4d76939700 (LWP 8851) exited]
[Thread 0x7f4d7713a700 (LWP 8850) exited]
[Thread 0x7f4d88534700 (LWP 8849) exited]
[Thread 0x7f4d7793b700 (LWP 8848) exited]
[Thread 0x7f4d7813c700 (LWP 8847) exited]
[Thread 0x7f4d7893d700 (LWP 8846) exited]
[Thread 0x7f4d7913e700 (LWP 8845) exited]
[Thread 0x7f4d7993f700 (LWP 8844) exited]
[Thread 0x7f4d7a140700 (LWP 8842) exited]
[Thread 0x7f4d7ac35700 (LWP 8840) exited]
[Thread 0x7f4d7b436700 (LWP 8839) exited]
[Thread 0x7f4d7bc37700 (LWP 8838) exited]

Program exited with code 01.
(gdb) backtrace
No stack.
(gdb) thread apply all backtrace
(gdb) quit



I don't have directory ~/.config/google-chrome

Maybe I have accidentally deleted.

Maybe this is the trouble?

I have already reinstalled chromium-browser, but nothing...


chromium stores stuff in ~/.config/chromium not google-chrome .. that doesn't seem to be the issue here though.

Having actually read the original error message properly now which I should have done originally, I see that chromium will exit when it can't create the shared memory stuff:

    PLOG(ERROR) << "Creating shared memory in " << path.value() << " failed";
    FilePath dir = path.DirName();
    if (access(dir.value().c_str(), W_OK | X_OK) < 0) {
      PLOG(ERROR) << "Unable to access(W_OK|X_OK) " << dir.value();
      if (dir.value() == "/dev/shm") {
        LOG(FATAL) << "This is frequently caused by incorrect permissions on "
        << "/dev/shm.  Try 'sudo chmod 1777 /dev/shm' to fix.";
      }
    }

So I'd suggest trying

sudo chmod 1777 /dev/shm


I tried, but nothing:

[9500:9509:20403665241:ERROR:shared_memory_posix.cc(154)] Creating shared memory in /dev/shm/.org.chromium.z00qJ0 failed: Permission denied
pcilib: Cannot open /sys/bus/pci/devices/0000:00:00.0/resource: Permission denied
what does
mount | grep shm
say?

(haven't looked what the pcilib thing is ... let's sort out the first thing first)
and throw in a
ls -ld /dev/shm
too please
none on /dev/shm type tmpfs (rw,nosuid,nodev)
ls -ld /dev/shm
drwxrwxrwt 2 root root 300 2011-03-13 16:06 /dev/shm

mount | grep shm
none on /dev/shm type tmpfs (rw,nosuid,nodev)
Hmmm ... my shm mount looks a bit different (but I'm on Fedora):

tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")

I'd expect there to be a difference wrt. the selinux stuff but the fact that yours says 'none' initially is a bit strange. Did you alter /etc/fstab at all? Can you paste the shm line from fstab here please?

This upstream bug looks like it might be related:

https://bugs.launchpad.net/ubuntu/+source/mountall/+bug/566788
I never altered the fstab file.

This is my fstab file:

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sdb1 during installation
UUID=9408e730-ac64-44a6-86ad-f4751fd2215b /               ext4    errors=remount-ro 0       1
# swap was on /dev/sdb5 during installation
UUID=b87ffb2e-91e8-4e5c-b42d-18ae78476b57 none            swap    sw              0       0
grep shm /lib/init/fstab
none            /dev/shm                  tmpfs           nosuid,nodev                      0 0
I have another PC with Ubuntu 10.10. /etc/fstab file and /lib/init/fstab file are identical. On this pc, chromium works...
Hmmmm ... that's really strange. The permissions look ok on /dev/shm on your machine plus it's mounted read-write so I'm at a bit of a loss as to why you're getting issues.

Wild guessing time:

The ubuntu bug (which seems to have a couple of different issues lumped in one) suggests it might have something to do with the mountall package. Do you have the same version of that on each machine?

What is the output of cat /proc/self/mountinfo ? That should show the same sort of thing as mount (i.e. that /dev/shm is writable) but maybe there's something else strange going on...
Same version of chromium-browser e same Ubuntu 10.10, but different processor. Work 32bit, doesn't work amd 64bit. 

cat /proc/self/mountinfo
14 19 0:14 / /sys rw,nosuid,nodev,noexec,relatime - sysfs none rw
15 19 0:3 / /proc rw,nosuid,nodev,noexec,relatime - proc none rw
16 19 0:5 / /dev rw,relatime - devtmpfs none rw,size=1211476k,nr_inodes=302869,mode=755
17 16 0:11 / /dev/pts rw,nosuid,noexec,relatime - devpts none rw,gid=5,mode=620,ptmxmode=000
18 14 0:15 / /sys/fs/fuse/connections rw,relatime - fusectl fusectl rw
19 1 8:1 / / rw,relatime - ext4 /dev/disk/by-uuid/9408e730-ac64-44a6-86ad-f4751fd2215b rw,errors=remount-ro,barrier=1,data=ordered
20 14 0:7 / /sys/kernel/debug rw,relatime - debugfs none rw
21 14 0:10 / /sys/kernel/security rw,relatime - securityfs none rw
22 16 0:16 / /dev/shm rw,nosuid,nodev,relatime - tmpfs none rw
23 19 0:17 / /var/run rw,nosuid,relatime - tmpfs none rw,mode=755
24 19 0:18 / /var/lock rw,nosuid,nodev,noexec,relatime - tmpfs none rw
25 15 0:19 / /proc/sys/fs/binfmt_misc rw,nosuid,nodev,noexec,relatime - binfmt_misc binfmt_misc rw
27 19 0:20 / /home/alessandra/.gvfs rw,nosuid,nodev,relatime - fuse.gvfs-fuse-daemon gvfs-fuse-daemon rw,user_id=1000,group_id=1000

If I install google-chrome, this work, but chromium still doesn't work.
What's the google-chrome version please? At least as far as the shm stuff is concerned, the only real difference is the filenames used - /dev/shm/.org.chromium.XXXXXX versus /dev/shm/.com.google.chrome.XXXXXX which shouldn't make a difference at all.

The other thing that is rather strange is that you don't seem to see the "Unable to access(W_OK|X_OK)" line being printed which means that you can actually access /dev/shm so I'm not sure why it would fail with permission denied then especially given that the permissions etc. all look ok too. Are you running apparmor or something that could possibly be getting in the way of creating the file?

Things like running out of space in /dev/shm (you can run df to check) or if the file already exists should have resulted in different errors to "permission denied" so it's unlikely to be that either :(

I'll mull it over a bit more with a cup of coffee ...
Hi Craig, I tried to install chromium-browser (12.0.703.0~svn20110314r77999-0ubuntu1~ucd1~maverick) on a virtual machine in VirtualBox and I have the same problem.

Chromium makes me select the search engine and stop.

chromium-browser 
[2048:2057:1763182151:ERROR:shared_memory_posix.cc(154)] Creating shared memory in /dev/shm/.org.chromium.SlGhHj failed: Permission denied
pcilib: Cannot open /sys/bus/pci/devices/0000:00:00.0/resource: Permission denied

chromium-browser 
[2070:2080:1987108177:ERROR:shared_memory_posix.cc(154)] Creating shared memory in /dev/shm/.org.chromium.WLV9ZR failed: Permission denied
pcilib: Cannot open /sys/bus/pci/devices/0000:00:00.0/resource: Permission denied

.org.chromium.xxxxx changes every time 
Yes, I run apparmor, and I have try to:
sudo aa-enforce /etc/apparmor.d/*
sudo /etc/init.d/apparmor restart

but nothing...
125): apparmor="DENIED" operation="open" parent=1 profile="/usr/lib/chromium-browser/chromium-browser" name="/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq" pid=3224 comm="chromium-browse" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Mar 14 20:46:37 linux-ale kernel: [ 1968.925667] type=1400 audit(1300131997.920:126): apparmor="DENIED" operation="exec" parent=3229 profile="/usr/lib/chromium-browser/chromium-browser" name="/usr/bin/lsb_release" pid=3231 comm="chromium-browse" requested_mask="x" denied_mask="x" fsuid=1000 ouid=0
Mar 14 20:46:37 linux-ale kernel: [ 1968.961781] type=1400 audit(1300131997.960:127): apparmor="DENIED" operation="mknod" parent=3155 profile="/usr/lib/chromium-browser/chromium-browser" name="/dev/shm/.org.chromium.ljbMpy" pid=3229 comm="chromium-browse" requested_mask="c" denied_mask="c" fsuid=1000 ouid=1000
Mar 14 20:46:38 linux-ale kernel: [ 1969.003297] type=1400 audit(1300131998.000:128): apparmor="DENIED" operation="open" parent=3155 profile="/usr/lib/chromium-browser/chromium-browser" name="/sys/devices/pci0000:00/0000:00:00.0/resource" pid=3220 comm="chromium-browse" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0

I think the problem is just related to "apparmor", but how do I fix this?


apparmor module is loaded.
37 profiles are loaded.
37 profiles are in enforce mode.
   /bin/ping
   /sbin/dhclient3
   /sbin/klogd
   /sbin/syslog-ng
   /sbin/syslogd
   /usr/bin/evince
   /usr/bin/evince-previewer
   /usr/bin/evince-thumbnailer
   /usr/lib/NetworkManager/nm-dhcp-client.action
   /usr/lib/chromium-browser/chromium-browser
   /usr/lib/chromium-browser/chromium-browser//browser_java
   /usr/lib/chromium-browser/chromium-browser//browser_openjdk
   /usr/lib/chromium-browser/chromium-browser//chromium_browser_sandbox
   /usr/lib/connman/scripts/dhclient-script
   /usr/lib/cups/backend/cups-pdf
   /usr/lib/dovecot/deliver
   /usr/lib/dovecot/dovecot-auth
   /usr/lib/dovecot/imap
   /usr/lib/dovecot/imap-login
   /usr/lib/dovecot/managesieve-login
   /usr/lib/dovecot/pop3
   /usr/lib/dovecot/pop3-login
   /usr/lib/firefox-3.6.15/firefox-*bin
   /usr/lib/firefox-3.6.15/firefox-*bin//browser_java
   /usr/lib/firefox-3.6.15/firefox-*bin//browser_openjdk
   /usr/sbin/avahi-daemon
   /usr/sbin/cupsd
   /usr/sbin/dnsmasq
   /usr/sbin/dovecot
   /usr/sbin/identd
   /usr/sbin/mdnsd
   /usr/sbin/nmbd
   /usr/sbin/nscd
   /usr/sbin/smbd
   /usr/sbin/tcpdump
   /usr/sbin/traceroute
   /usr/share/gdm/guest-session/Xsession
0 profiles are in complain mode.
5 processes have profiles defined.
5 processes are in enforce mode :
   /usr/lib/firefox-3.6.15/firefox-*bin (1811) 
   /usr/lib/firefox-3.6.15/firefox-*bin (3883) 
   /usr/sbin/avahi-daemon (1092) 
   /usr/sbin/avahi-daemon (1096) 
   /usr/sbin/cupsd (1181) 
0 processes are in complain mode.
0 processes are unconfined but have a profile defined.
So it works if you turn off Apparmor? If so, perhaps you should be filing a bug with Ubuntu about Apparmor blocking Chromium from accessing /dev/shm.
Comment 27 by f...@sofaraway.org, Mar 14 2011
Not a bug in my package, but in apparmor-profiles.

apparmor-profiles is opt-in only, with profiles in complain mode, not in enforce mode. At least not yet for chromium.
So for now, it only blocks those who really insist.

apparmor-profiles needs to be updated, the maintainer is already aware of this bug.
Comment 28 by f...@sofaraway.org, Mar 14 2011
It's https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/692866
Fixed in Natty, but needs a SRU for Maverick and Lucid.

I removed apparmor and Chromium works!
I reinstalled apparmor and Chromium keep on working!
Is it right?
Comment 30 by f...@sofaraway.org, Mar 14 2011
No, you must keep "apparmor". Only "apparmor-profiles" is problematic *iif* you enforce its (optional) policies. This one you can drop safely.

Package: apparmor-profiles
Priority: extra
Section: universe/admin
Description: Profiles for AppArmor Security policies
 This provides various AppArmor profiles that have not been shipped by
 the packages they provide confinement for. By default, they ship in
 complain mode so that users can test and choose which are desired.

Thanks all!
Comment 32 by mmoss@chromium.org, Mar 17 2011
Status: WontFix
Labels: -Crash bulkmove Stability-Crash
Chrome Version       : Chromium	12.0.703.0 (Developer Build 77953) Ubuntu 10.10
WebKit	534.24 (trunk@80725)
V8	3.2.1.1
User Agent	Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.24 (KHTML, like Gecko) Ubuntu/10.10 Chromium/12.0.703.0 Chrome/12.0.703.0 Safari/534.24

What steps will reproduce the problem?

[2283:2293:538306973:ERROR:shared_memory_posix.cc(154)] Creating shared memory in /dev/shm/.org.chromium.oKh056 failed: Permission denied
pcilib: Cannot open /sys/bus/pci/devices/0000:00:00.0/resource: Permission denied

What is the expected result?
Chromium doesn't start
Project Member Comment 34 by bugdroid1@chromium.org, Oct 13 2012
Labels: Restrict-AddIssueComment-Commit
This issue has been closed for some time. No one will pay attention to new comments.
If you are seeing this bug or have new data, please click New Issue to start a new bug.
Project Member Comment 35 by bugdroid1@chromium.org, Mar 10 2013
Labels: -Area-Internals Cr-Internals
Sign in to add a comment