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

Bug 830123

Summary: media-video/pitivi-0.999-r4 sandbox violation
Product: Gentoo Linux Reporter: Juan Pablo <jp>
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal CC: gstreamer, jstein, sam
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=804945
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 830133    
Bug Blocks:    
Attachments: emerge --info if someone needs it
build.log

Description Juan Pablo 2021-12-27 18:43:31 UTC
Cant emerge media-video/pitivi-0.999-r4, it fails with an ACCESS VIOLATION SUMMARY message.

Reproducible: Always

Steps to Reproduce:
1.emerge media-video/pitivi
2.
3.
Actual Results:  
 * --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
 * LOG FILE: "/var/tmp/portage/media-video/pitivi-0.999-r4/temp/sandbox.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: /dev/dri/renderD128
A: /dev/dri/renderD128
R: /dev/dri/renderD128
C: /usr/libexec/gstreamer-1.0/gst-plugin-scanner -l /var/tmp/portage/media-video/pitivi-0.999-r4/work/pitivi-0.999-build/tmp-introspect2glo2my7/GstTranscoder-1.0

F: open_wr
S: deny
P: /dev/dri/card0
A: /dev/dri/card0
R: /dev/dri/card0
C: /usr/libexec/gstreamer-1.0/gst-plugin-scanner -l /var/tmp/portage/media-video/pitivi-0.999-r4/work/pitivi-0.999-build/tmp-introspect2glo2my7/GstTranscoder-1.0
 * 

Expected Results:  
emerge success

Minimal DE, wayland oriented
Amd Ryzen 5900x, 64 GB ram, x570 chipset motherboard
Comment 1 Juan Pablo 2021-12-27 18:47:20 UTC
Created attachment 760591 [details]
emerge --info if someone needs it

emerge --info if needed
Comment 2 Juan Pablo 2021-12-27 19:02:40 UTC
Created attachment 760592 [details]
build.log
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-27 23:40:03 UTC
Can't yet repro this bit. Can you show me qlist -IC | grep gst?
Comment 4 Larry the Git Cow gentoo-dev 2021-12-28 01:24:48 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ada748e8e0dff302c0f528e44915349e8d8a851

commit 9ada748e8e0dff302c0f528e44915349e8d8a851
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-28 01:20:35 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-28 01:24:39 +0000

    media-video/pitivi: allow building with newer GStreamer (1.18+)
    
    - Package bundled/bundles parts of gst-transcoder. We now
      forcefully disable building of that copy and remove
      the bundled version/subproject as a safety measure.
    
      (Not that it should be needed now; it shouldn't
      try to use that version anymore, because...)
    
    - ... patch the build system (upstream patch, long in a release)
      to allow gst 1.18+ / recognise the version of transcoder that
      gst 1.18 has (it's now in gst-plugins-bad).
    
    This actually fixes the sandbox failure too in addition to the
    collision with gst-plugins-bad because we're no longer building
    a copy of gst-transcoder w/o needed workarounds.
    
    (Wasn't able to reproduce the sandbox failure at first:
    ended up installing all gst-* packages, then temporarily
    restoring the bundled copy to hit it. leio did suggest
    gst-plugins-v4l2 may be enough but I only realised I needed
    the bundled copy of gst-transcoder to trigger the failure
    after I'd installed everything and it's irrelevant now anyway.)
    
    Closes: https://bugs.gentoo.org/804945
    Closes: https://bugs.gentoo.org/830123
    Signed-off-by: Sam James <sam@gentoo.org>

 .../pitivi/files/pitivi-0.999-gst-0.18.patch       |  39 +++++++
 media-video/pitivi/pitivi-0.999-r5.ebuild          | 121 +++++++++++++++++++++
 2 files changed, 160 insertions(+)