Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 699776 - =www-client/chromium-79.0.3945.16 USE=pulseaudio - Failed to create secure directory (/var/run/user/1000/pulse): Operation not permitted ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.1.9/work/alsa-lib-1.1.9/src/dlmisc.c:285:(snd1_dlobj_cache_get) ...
Summary: =www-client/chromium-79.0.3945.16 USE=pulseaudio - Failed to create secure di...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Chromium Project
URL: https://chromium-review.googlesource....
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks:
 
Reported: 2019-11-10 19:52 UTC by Greg Turner
Modified: 2019-11-22 20:09 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
pa-run-var-run-whatever.patch (pa-run-var-run-whatever.patch,949 bytes, patch)
2019-11-11 01:42 UTC, Greg Turner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Turner 2019-11-10 19:52:10 UTC
Running chromium as normal I get the following awesome stderr feedback:

Failed to create secure directory (/var/run/user/1000/pulse): Operation not permitted
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.1.9/work/alsa-lib-1.1.9/src/dlmisc.c:285:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib64/alsa-lib/libasound_module_pcm_pulse.so ((null): /usr/lib64/alsa-lib/libasound_module_pcm_pulse.so: cannot open shared object file: Operation not permitted)
[28908:28908:1110/112026.374936:ERROR:alsa_util.cc(204)] PcmOpen: default,No such device or address

Obvious culprit is sandbox and indeed chromium --no-sandbox resolves the problem.  It appears upstream already has a solution at https://chromium-review.googlesource.com/c/chromium/src/+/1827296 but this does not apply cleanly to ~amd64 chromium (unless someone beat me to it since I treesync'ed).

I will take a look at backporting the patch but for now I'm chicken-and-egg'ed as I'm using the affected browser to post my bug :) (thinking ahead!  I should try it sometime!)
Comment 1 Greg Turner 2019-11-10 19:59:08 UTC
(In reply to Greg Turner from comment #0)
> Running chromium as normal I get 

I should have mentioned here, I do not get any audio.

> the following awesome stderr feedback:

TBC, above "awesome" is not sarcasm, I really did like it :)
Comment 2 Greg Turner 2019-11-10 20:06:42 UTC
Hmm, OK those patches don't apply because they are already in there.  So... ¯\_(ツ)_/¯
Comment 3 Stephan Hartmann (RETIRED) gentoo-dev 2019-11-10 20:17:09 UTC
The upstream change allows /run/user/<userid>/pulse, but your chromium build tries to access /var/run/user/<userid>/pulse. You could try to patch this and see if it helps.
Comment 4 Greg Turner 2019-11-10 20:29:21 UTC
(In reply to Stephan Hartmann from comment #3)
> The upstream change allows /run/user/<userid>/pulse, but your chromium build
> tries to access /var/run/user/<userid>/pulse. You could try to patch this
> and see if it helps.

A keen observation, thank you!  I guess this makes it a pa bug?  Gentoo is fully on board with the /var/run -> /run thing, no?
Comment 5 Greg Turner 2019-11-11 01:42:18 UTC
Created attachment 595694 [details, diff]
pa-run-var-run-whatever.patch

(In reply to Greg Turner from comment #4)
> (In reply to Stephan Hartmann from comment #3)
> > The upstream change allows /run/user/<userid>/pulse, but your chromium build
> > tries to access /var/run/user/<userid>/pulse. You could try to patch this
> > and see if it helps.
> 
> A keen observation, thank you!  I guess this makes it a pa bug?  Gentoo is
> fully on board with the /var/run -> /run thing, no?

While such philosophical questions are being considered, the attached work-around worked for me.
Comment 6 Stephan Hartmann (RETIRED) gentoo-dev 2019-11-13 15:13:47 UTC
This should be the fix for M79 and should be included in next beta channel:

https://chromium.googlesource.com/chromium/src/+/986ceaa29203bd7e0ed6a7a32ee3ec4da4941c9c
Comment 7 Mike Gilbert gentoo-dev 2019-11-13 15:23:19 UTC
*** Bug 699978 has been marked as a duplicate of this bug. ***
Comment 8 Larry the Git Cow gentoo-dev 2019-11-17 20:16:07 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70261a3a702bc629e84cf563f7d752d4da5049be

commit 70261a3a702bc629e84cf563f7d752d4da5049be
Author:     Stephan Hartmann <stha09@googlemail.com>
AuthorDate: 2019-11-14 14:19:17 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2019-11-17 20:15:16 +0000

    www-client/chromium: beta channel bump to 79.0.3945.36
    
    Bug: https://bugs.gentoo.org/699776
    Package-Manager: Portage-2.3.76, Repoman-2.3.16
    Signed-off-by: Stephan Hartmann <stha09@googlemail.com>
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>
    Closes: https://github.com/gentoo/gentoo/pull/13653

 www-client/chromium/Manifest                                            | 2 +-
 .../{chromium-79.0.3945.29.ebuild => chromium-79.0.3945.36.ebuild}      | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)
Comment 9 Stephan Hartmann (RETIRED) gentoo-dev 2019-11-21 09:13:02 UTC
Can someone confirm that it works again with current beta channel?
Comment 10 Ostashevskyi Viktor 2019-11-22 06:01:36 UTC
Works with 79.0.3945.36
Comment 11 Larry the Git Cow gentoo-dev 2019-11-22 20:09:16 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63e5fbd254535ca8902ae4456b733f782e8cde73

commit 63e5fbd254535ca8902ae4456b733f782e8cde73
Author:     Stephan Hartmann <stha09@googlemail.com>
AuthorDate: 2019-11-20 20:24:39 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2019-11-22 20:08:50 +0000

    www-client/chromium: dev channel bump to 80.0.3970.5
    
    Closes: https://bugs.gentoo.org/699776
    Closes: https://bugs.gentoo.org/699978
    Package-Manager: Portage-2.3.76, Repoman-2.3.16
    Signed-off-by: Stephan Hartmann <stha09@googlemail.com>
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 www-client/chromium/Manifest                       |  2 +-
 ...0.3962.2.ebuild => chromium-80.0.3970.5.ebuild} |  4 +++
 .../chromium/files/chromium-80-gcc-blink.patch     | 27 +++++++++++++++++++
 .../chromium/files/chromium-80-gcc-quiche.patch    | 30 ++++++++++++++++++++++
 .../chromium/files/chromium-80-include.patch       | 13 ++++++++++
 5 files changed, 75 insertions(+), 1 deletion(-)