Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 533664

Summary: media-libs/gst-plugins-base-1.4.5 sandbox violation, cannot mkstemp in /run/user/1000 with >dev-lang/orc-0.4.19
Product: Gentoo Linux Reporter: Yuriy <yurg27>
Component: [OLD] GNOMEAssignee: GStreamer package maintainers <gstreamer>
Status: RESOLVED FIXED    
Severity: normal CC: alexandref75, andrzej.kardas, jakuhrlinux, jrmalaq, neil, rliaonau
Priority: Normal Keywords: InVCS
Version: unspecified   
Hardware: AMD64   
OS: Linux   
URL: https://bugzilla.gnome.org/show_bug.cgi?id=735871
See Also: https://bugs.gentoo.org/show_bug.cgi?id=534582
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 523688    
Attachments: emerge --info

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.