Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 533664 - media-libs/gst-plugins-base-1.4.5 sandbox violation, cannot mkstemp in /run/user/1000 with >dev-lang/orc-0.4.19
Summary: media-libs/gst-plugins-base-1.4.5 sandbox violation, cannot mkstemp in /run/u...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: GStreamer package maintainers
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: gnome-3.14
  Show dependency tree
 
Reported: 2014-12-27 07:26 UTC by Yuriy
Modified: 2015-01-06 19:03 UTC (History)
6 users (show)

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


Attachments
emerge --info (emerge.log,4.66 KB, text/x-log)
2014-12-27 07:29 UTC, Yuriy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yuriy 2014-12-27 07:26:01 UTC
make[2]: Leaving directory '/var/tmp/portage/media-libs/gst-plugins-base-1.4.5/work/gst-plugins-base-1.4.5-abi_x86_64.amd64'
make[1]: Leaving directory '/var/tmp/portage/media-libs/gst-plugins-base-1.4.5/work/gst-plugins-base-1.4.5-abi_x86_64.amd64'
>>> Source compiled.
 * --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
 * LOG FILE: "/var/log/sandbox/sandbox-6550.log"
 * 
VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: mkstemp
S: deny
P: /run/user/1000/orcexec.XXXXXX
A: /run/user/1000/orcexec.XXXXXX
R: /run/user/1000/orcexec.XXXXXX
C: /usr/bin/orcc --compat 0.4.18 --implementation --include glib.h -o tmp-orc.c /var/tmp/portage/media-libs/gst-plugins-base-1.4.5/work/gst-plugins-base-1.4.5/gst-libs/gst/video/video-orc.orc 

F: mkstemp
S: deny
P: /run/user/1000/orcexec.XXXXXX
A: /run/user/1000/orcexec.XXXXXX
R: /run/user/1000/orcexec.XXXXXX
C: /usr/bin/orcc --compat 0.4.18 --implementation --include glib.h -o tmp-orc.c /var/tmp/portage/media-libs/gst-plugins-base-1.4.5/work/gst-plugins-base-1.4.5/gst-libs/gst/audio/gstaudiopack.orc 

F: mkstemp
S: deny
P: /run/user/1000/orcexec.XXXXXX
A: /run/user/1000/orcexec.XXXXXX
R: /run/user/1000/orcexec.XXXXXX
C: /usr/bin/orcc --compat 0.4.18 --implementation --include glib.h -o tmp-orc.c /var/tmp/portage/media-libs/gst-plugins-base-1.4.5/work/gst-plugins-base-1.4.5/gst/adder/gstadderorc.orc 

F: mkstemp
S: deny
P: /run/user/1000/orcexec.XXXXXX
A: /run/user/1000/orcexec.XXXXXX
R: /run/user/1000/orcexec.XXXXXX
C: /usr/bin/orcc --compat 0.4.18 --implementation --include glib.h -o tmp-orc.c /var/tmp/portage/media-libs/gst-plugins-base-1.4.5/work/gst-plugins-base-1.4.5/gst/audioconvert/gstaudioconvertorc.orc 

F: mkstemp
S: deny
P: /run/user/1000/orcexec.XXXXXX
A: /run/user/1000/orcexec.XXXXXX
R: /run/user/1000/orcexec.XXXXXX
C: /usr/bin/orcc --compat 0.4.18 --implementation --include glib.h -o tmp-orc.c /var/tmp/portage/media-libs/gst-plugins-base-1.4.5/work/gst-plugins-base-1.4.5/gst/videoconvert/gstvideoconvertorc.orc 

F: mkstemp
S: deny
P: /run/user/1000/orcexec.XXXXXX
A: /run/user/1000/orcexec.XXXXXX
R: /run/user/1000/orcexec.XXXXXX
C: /usr/bin/orcc --compat 0.4.18 --implementation --include glib.h -o tmp-orc.c /var/tmp/portage/media-libs/gst-plugins-base-1.4.5/work/gst-plugins-base-1.4.5/gst/videotestsrc/gstvideotestsrcorc.orc 

F: mkstemp
S: deny
P: /run/user/1000/orcexec.XXXXXX
A: /run/user/1000/orcexec.XXXXXX
R: /run/user/1000/orcexec.XXXXXX
C: /usr/bin/orcc --compat 0.4.18 --implementation --include glib.h -o tmp-orc.c /var/tmp/portage/media-libs/gst-plugins-base-1.4.5/work/gst-plugins-base-1.4.5/gst/videoscale/gstvideoscaleorc.orc 

F: mkstemp
S: deny
P: /run/user/1000/orcexec.XXXXXX
A: /run/user/1000/orcexec.XXXXXX
R: /run/user/1000/orcexec.XXXXXX
C: /usr/bin/orcc --compat 0.4.18 --implementation --include glib.h -o tmp-orc.c /var/tmp/portage/media-libs/gst-plugins-base-1.4.5/work/gst-plugins-base-1.4.5/gst/volume/gstvolumeorc.orc 
 * --------------------------------------------------------------------------------


Reproducible: Always
Comment 1 Yuriy 2014-12-27 07:29:47 UTC
Created attachment 392494 [details]
emerge --info
Comment 2 Andrzej Kardas 2014-12-27 12:54:56 UTC
I hit the same problem
Comment 3 Roman Leonov 2014-12-27 21:37:21 UTC
I have this problem too. With exactly the same log.
Comment 4 Roman Leonov 2014-12-27 21:58:20 UTC
No problems to build gts-plugins-base with dev-lang/orc-0.4.19.

Building pulseaudio with orc-0.4.23 also failes with «access violation» error.
Comment 5 tman 2014-12-28 09:01:24 UTC
>>> Emerging (2 of 6) media-libs/gst-plugins-base-1.4.5::gentoo
 (null)*(null) (null)ACCESS DENIED(null):  mkstemp:      /run/user/1000/orcexec.XXXXXX
 (null)*(null) (null)ACCESS DENIED(null):  mkstemp:      /run/user/1000/orcexec.XXXXXX
 (null)*(null) (null)ACCESS DENIED(null):  mkstemp:      /run/user/1000/orcexec.XXXXXX
 (null)*(null) (null)ACCESS DENIED(null):  mkstemp:      /run/user/1000/orcexec.XXXXXX
 (null)*(null) (null)ACCESS DENIED(null):  mkstemp:      /run/user/1000/orcexec.XXXXXX
 (null)*(null) (null)ACCESS DENIED(null):  mkstemp:      /run/user/1000/orcexec.XXXXXX
 (null)*(null) (null)ACCESS DENIED(null):  mkstemp:      /run/user/1000/orcexec.XXXXXX
 (null)*(null) (null)ACCESS DENIED(null):  mkstemp:      /run/user/1000/orcexec.XXXXXX
 (null)*(null) (null)ACCESS DENIED(null):  mkstemp:      /run/user/1000/orcexec.XXXXXX
 (null)*(null) (null)ACCESS DENIED(null):  mkstemp:      /run/user/1000/orcexec.XXXXXX
 (null)*(null) (null)ACCESS DENIED(null):  mkstemp:      /run/user/1000/orcexec.XXXXXX
  (null)*(null) (null)ACCESS DENIED(null):  mkstemp:      (null)/run/user/1000/orcexec.XXXXXX
*(null) (null)ACCESS DENIED(null):  mkstemp:      /run/user/1000/orcexec.XXXXXX
 (null)*(null) (null)ACCESS DENIED(null):  mkstemp:      /run/user/1000/orcexec.XXXXXX
 (null)*(null) (null)ACCESS DENIED(null):  mkstemp:      /run/user/1000/orcexec.XXXXXX
 (null)*(null) (null)ACCESS DENIED(null):  mkstemp:      /run/user/1000/orcexec.XXXXXX
>>> Failed to emerge media-libs/gst-plugins-base-1.4.5, Log file:
>>>  '/var/tmp/portage/media-libs/gst-plugins-base-1.4.5/temp/build.log'
Comment 6 Gilles Dartiguelongue (RETIRED) gentoo-dev 2014-12-28 22:59:08 UTC
orc 0.4.23 now looks for various places where to put files that it can mmap. One such place is XDG_RUNTIME_DIR which is might be preserved by the way you get access to the account allowing portage to install anything.

I added a function to clean XDG_RUNTIME_DIR from the environment in gstreamer.eclass so this should fix most of the gstreamer ebuilds.

The fix should hit the mirrors in a few hours so wait at least 4 hours if you still have failures before reopening this ticket.
Comment 7 Pacho Ramos gentoo-dev 2015-01-04 10:44:12 UTC
@Gilles, why not make gstreamer.eclass inherit gnome2-utils.eclass and call gnome2_environment_reset ? (to not duplicate similar code in multiple eclasses that could end up on people choosing a random one from either eclass?)
Comment 8 Gilles Dartiguelongue (RETIRED) gentoo-dev 2015-01-04 22:50:28 UTC
1. to avoid inherit loops, this is not for now but for the future.
2. I believe that eclasses should mind their business only, that means XDG should go into an xdg.eclass but this has not materialized yet so this is duplicated for now and will be cleaned up when I get around to fix bug #208047 properly.