Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 356283 - media-libs/gst-plugins-base-0.10.32: ACCESS VIOLATION while emerging
Summary: media-libs/gst-plugins-base-0.10.32: ACCESS VIOLATION while emerging
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: GStreamer package maintainers
URL:
Whiteboard:
Keywords: InVCS
: 357419 359423 364389 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-02-24 10:08 UTC by Flo Gravo
Modified: 2016-01-02 16:41 UTC (History)
11 users (show)

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


Attachments
patch to fix sandbox violation (gst-plugins-base-0.10.32-addprefix.patch,396 bytes, patch)
2011-03-08 18:40 UTC, Guillaume ZITTA
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Flo Gravo 2011-02-24 10:08:29 UTC
When emerging whith introspection USE flag enabled an access violation occurs while installing

Reproducible: Always

Steps to Reproduce:
1. enable introspection USE flag
2. emerge -uDN world

Actual Results:  
make[1]: Leaving directory `/var/tmp/portage/media-libs/gst-plugins-base-0.10.32/work/gst-plugins-base-0.10.32'
>>> Source compiled.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-15313.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: open_wr
S: deny
P: /root/.gstreamer-0.10/registry.x86_64.bin.tmpKTHLRV
A: /root/.gstreamer-0.10/registry.x86_64.bin.tmpKTHLRV
R: /root/.gstreamer-0.10/registry.x86_64.bin.tmpKTHLRV
C: /var/tmp/portage/media-libs/gst-plugins-base-0.10.32/work/gst-plugins-base-0.10.32/gst-libs/gst/pbutils/tmp-introspectQPt6te/.libs/GstPbutils-0.10 --introspect-dump=/var/tmp/portage/media-libs/gst-plugins-base-0.10.32/work/gst-plugins-base-0.10.32/gst-libs/gst/pbutils/tmp-introspectQPt6te/types.txt,/var/tmp/portage/media-libs/gst-plugins-base-0.10.32/work/gst-plugins-base-0.10.32/gst-libs/gst/pbutils/tmp-introspectQPt6te/dump.xml 

F: open_wr
S: deny
P: /root/.gstreamer-0.10/registry.x86_64.bin.tmp7LHLRV
A: /root/.gstreamer-0.10/registry.x86_64.bin.tmp7LHLRV
R: /root/.gstreamer-0.10/registry.x86_64.bin.tmp7LHLRV
C: /var/tmp/portage/media-libs/gst-plugins-base-0.10.32/work/gst-plugins-base-0.10.32/gst-libs/gst/pbutils/tmp-introspectQPt6te/.libs/GstPbutils-0.10 --introspect-dump=/var/tmp/portage/media-libs/gst-plugins-base-0.10.32/work/gst-plugins-base-0.10.32/gst-libs/gst/pbutils/tmp-introspectQPt6te/types.txt,/var/tmp/portage/media-libs/gst-plugins-base-0.10.32/work/gst-plugins-base-0.10.32/gst-libs/gst/pbutils/tmp-introspectQPt6te/dump.xml 
--------------------------------------------------------------------------------
Comment 1 Jordan Yelloz 2011-02-26 22:51:39 UTC
I just looked into this and it should work if you set GST_REGISTRY_UPDATE=no while emerging.
This should probably be added to the introspection eclass because I also experienced this with clutter-gst.
Comment 2 Jordan Yelloz 2011-02-26 22:57:34 UTC
I just wrongly assumed there was an eclass for GObject Introspection.  I guess it should be somewhere in the gnome2 eclass.
Comment 3 Jordan Yelloz 2011-02-26 23:39:19 UTC
Also, things that use introspection should probably also unset DISPLAY because it can lead to /dev/dri/cardX access violations.
Comment 4 Nirbheek Chauhan (RETIRED) gentoo-dev 2011-03-04 19:47:57 UTC
*** Bug 357419 has been marked as a duplicate of this bug. ***
Comment 5 Ralf Mayer 2011-03-04 20:50:26 UTC
Hey there!

Could you please add the patch / the additional workaround?

I've tried export GST_REGISTRY_UPDATE=no && emerge gnome, but it fails with the error above.

Best wishes,

Ralf
Comment 6 Olivier Crete (RETIRED) gentoo-dev 2011-03-04 21:00:32 UTC
or we could do GST_REGISTRY=${T}/gst-registry
Comment 7 Jordan Yelloz 2011-03-05 01:46:01 UTC
(In reply to comment #5)
> I've tried export GST_REGISTRY_UPDATE=no && emerge gnome, but it fails with the
> error above.

That's not expected to work, the && will not set GST_REGISTRY_UPDATE for the emerge task, it will set it for the current shell, not any subprocesses.  If you did "export GST_REGISTRY_UPDATE=no && emerge gnome" it would probably work.

Try these two lines in your shell and see which one works the way you'd want it to:
A=blah && sh -c 'echo $A'
A=blah sh -c 'echo $A'   

The preferred way is:
GST_REGISTRY_UPDATE=no emerge -1av gst-plugins-base


(In reply to comment #6)
> or we could do GST_REGISTRY=${T}/gst-registry

It should probably do both.  Updating a fake registry can only waste build time but it can still be a good deterrent for unexpected file access.
Comment 8 Guillaume ZITTA 2011-03-08 18:40:57 UTC
Created attachment 265187 [details, diff]
patch to fix sandbox violation
Comment 9 Laurento Frittella (mrfree) 2011-03-09 13:37:50 UTC
I need to add

   addpredict $(unset HOME; echo ~)/.gstreamer-0.10
   addpredict $(unset HOME; echo ~)/.gconfd

to get it works
Comment 10 tman 2011-03-17 14:17:38 UTC
well me maybe some can put it in portage. seems to be a reasonable solution
Comment 11 Gilles Dartiguelongue (RETIRED) gentoo-dev 2011-03-18 21:58:49 UTC
+  18 Mar 2011; Gilles Dartiguelongue <eva@gentoo.org>
+  gst-plugins-base-0.10.32.ebuild:
+  Set GST_REGISTRY to avoid sandbox access violation, bug #356283. With
+  approval of leio.

Checking the sources, there's a couple of place where upstream already sets
GST_REGISTRY to a location inside build tree in order to avoid this kind of
problem, maybe forwarding with them would be good.
Comment 12 Angelo Arrifano (RETIRED) gentoo-dev 2011-03-18 23:47:49 UTC
*** Bug 359423 has been marked as a duplicate of this bug. ***
Comment 13 Jeroen Roovers (RETIRED) gentoo-dev 2011-04-22 02:24:13 UTC
*** Bug 364389 has been marked as a duplicate of this bug. ***
Comment 14 Jeroen Roovers (RETIRED) gentoo-dev 2011-04-22 02:26:26 UTC
(In reply to comment #1)
> I just looked into this and it should work if you set GST_REGISTRY_UPDATE=no
> while emerging.
> This should probably be added to the introspection eclass because I also
> experienced this with clutter-gst.

Nothing happened? You could reopen bug #364389 to handle it specially. :)
Comment 15 Alex Bennee 2011-05-30 10:52:35 UTC
This is still failing with USE="introspection" despite the ebuild attempting to work around it.
Comment 16 Pacho Ramos gentoo-dev 2015-01-19 10:55:07 UTC
Are you still hitting this with 0.10.36-r1?