>From chrome/browser/process_singleton_posix.cc:

// When the second process sends the current directory and command line flags to
// the first process, it waits for an ACK message back from the first process
// for a certain time. If there is no ACK message back in time, then the first
// process will be considered as hung for some reason. The second process then
// retrieves the process id from the symbol link and kills it by sending
// SIGKILL. Then the second process starts as normal.

The "read() failed" error message suggests that reading from the socket
fails for some reason, so the second process considers the first one
hung, and it kills it. The timeout isn't reached, because the default
built-in value is 20 seconds, and the problem happens much sooner than
that.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to chromium-browser in Ubuntu.
https://bugs.launchpad.net/bugs/1838508

Title:
  [snap] chromium crashes when opening a URL from an external
  application

Status in chromium-browser package in Ubuntu:
  Triaged

Bug description:
  This appears to be a rather recent regression. I started observing
  this about a month ago (beginning of July 2019), and it was recently
  reported by another user (https://discourse.ubuntu.com/t/call-for-
  testing-chromium-browser-deb-to-snap-transition/11179/95).

  Steps to reproduce:

  0) Make sure the chromium snap is your default browser
  1) Open the chromium snap, and do your usual browsing activities
  2) Open a terminal, and execute `xdg-open https://example.org`
  2b) Repeat step 2 a few times until you get a notification that chromium 
crashed, offering to restore the previous session

  When the crash happens, I'm seeing this relevant error:

  [ERROR:process_singleton_posix.cc(207)] read() failed: Permission
  denied (13)

  and the corresponding entries in journalctl:

  juil. 31 09:53:07 bribon audit[25535]: AVC apparmor="DENIED" 
operation="file_perm" profile="snap.chromium.chromium" 
name="/run/user/1000/snap.chromium/.org.chromium.Chromium.LWcyoF/SingletonSocket"
 pid=25535 comm="chrome" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
  juil. 31 09:53:07 bribon audit[25535]: AVC apparmor="DENIED" 
operation="file_perm" profile="snap.chromium.chromium" 
name="/run/user/1000/snap.chromium/.org.chromium.Chromium.LWcyoF/SingletonSocket"
 pid=25535 comm="chrome" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1838508/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to