Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 855281 - media-sound/kid3-3.9.1 with media-libs/chromaprint[-tools]: sandbox access violation running gst-plugin-scanner on emerge
Summary: media-sound/kid3-3.9.1 with media-libs/chromaprint[-tools]: sandbox access vi...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 911813 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-06-30 08:00 UTC by doesnotcompete
Modified: 2023-09-16 22:12 UTC (History)
4 users (show)

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


Attachments
Build Log (media-sound:kid3-3.9.1:20220630-074308.log,648.44 KB, text/x-log)
2022-06-30 08:02 UTC, doesnotcompete
Details
Build log from kid3-3.9.4 (build.tar.gz,22.20 KB, application/gzip)
2023-08-04 21:06 UTC, Eduardo Coutinho Scalabrin
Details
Sandbox log from kid3-3.9.4 (sandbox.tar.gz,336 bytes, application/gzip)
2023-08-04 21:06 UTC, Eduardo Coutinho Scalabrin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description doesnotcompete 2022-06-30 08:00:42 UTC
While trying to emerge kid3, a sandbox access violation occurs with `gst-plugin-scanner` trying to access video devices. I'm using Sway (Wayland) on an AMD Ryzen Pro 3500U.

Reproducible: Always

Steps to Reproduce:
1. Run `emerge media-sound/kid3-3.9.1` (USE flags: `acoustid flac mp3 mp4 mpris taglib vorbis -kde -test`).
Actual Results:  
The emerge fails with a sandbox access violation.

Expected Results:  
kid3 should emerge correctly

Portage 3.0.30 (python 3.9.13-final-0, default/linux/amd64/17.1/desktop/systemd, gcc-11.3.0, gl
ibc-2.34-r13, 5.15.41-gentoo x86_64)
=================================================================
System uname: Linux-5.15.41-gentoo-x86_64-AMD_Ryzen_5_PRO_3500U_w-_Radeon_Vega_Mobile_Gfx-with-
glibc2.34
KiB Mem:    14291148 total,   6987440 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 27 Jun 2022 10:00:01 +0000
Head commit of repository gentoo: 41798e1fba9efb52cef0cb42f8b5642c73c7e8c8
Timestamp of repository guru: Sat, 25 Jun 2022 00:47:39 +0000
Head commit of repository guru: 4be19bbedfc28ab8927fde158ca46f12f47f7e14

Head commit of repository brother-overlay: 843fdeb30008cbbe6361ef47a127d3489a0e66a7

sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
ccache version 4.5.1 [disabled]
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.1-r3::gentoo
dev-lang/python:           2.7.18_p15::gentoo, 3.9.13::gentoo, 3.10.5::gentoo
dev-util/ccache:           4.5.1::gentoo
dev-util/cmake:            3.22.4::gentoo
dev-util/meson:            0.61.4-r2::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          250.7::gentoo
sys-devel/autoconf:        2.13-r2::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.37_p1-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/gcc:             11.3.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/llvm:            14.0.4::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r13::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts:
    sync-rsync-verify-jobs: 1

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo

eclipse
    location: /var/lib/layman/eclipse
    sync-type: laymansync
    sync-uri: https://github.com/gentoo/eclipse-overlay.git
    masters: gentoo
    priority: 50

brother-overlay
    location: /usr/local/portage/brother-overlay
    sync-type: git
    sync-uri: https://github.com/stefan-langenmaier/brother-overlay.git
    masters: gentoo
    priority: 9999

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc
/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=9 --load-average=8"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFI
X PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG
_RUNTIME_DIR"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-prot
ect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict networ
k-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps
 sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv u
sersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="https://ftp.halifax.rwth-aachen.de/gentoo/"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9 -l8"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 aqbanking bash-completion bluetooth branding bzip2 cairo cdda cddb cdr cli crypt cryptsetup cups dbus device-mapper dns-over-tls dri dts dvd dvdr encode exif experimental flac fontconfig fortran gdbm gif gles2 gpm gtk gui iconv icu ipv6 jack jpeg lcms libglvnd libnotify libtirpc mad mng mp3 mp4 mpeg mtp multilib ncurses networkmanager nls nptl ogg opengl openh264 openmp opus pam pango pcre pdf png policykit ppds pulseaudio readline screencast sdl seccomp smartcard spell split-usr ssl startup-notification svg systemd sysv-utils taglib tiff truetype udev udisks unicode upower usb vaapi vorbis wayland wg-quick wxwidgets x264 xattr xcb xml xv xvid zlib zsh-completion" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 doesnotcompete 2022-06-30 08:02:06 UTC
Created attachment 788912 [details]
Build Log
Comment 2 acidrums4 2022-08-12 12:07:26 UTC
This is happening to me just now when trying to update to 3.9.2 from 3.9.1 (USE="acoustid flac kde mp3 mpris taglib vorbis -mp4 -test").
Comment 3 davech 2022-08-16 10:27:04 UTC
Same problem here.

A workaround is to disable the acoustid use-flag.
Comment 4 Andreas Sturmlechner gentoo-dev 2022-10-10 16:15:34 UTC
(In reply to davech from comment #3)
> Same problem here.
> 
> A workaround is to disable the acoustid use-flag.
Are you sure? Is it reproducible that way? The problem is coming from qmlplugindump in src/plugins/kid3qml where they should be using ECMGenerateQmlTypes instead, but I don't know why we have never got a report about ECMGenerateQmlTypes yet which is also using qmlplugindump.
Comment 5 Larry the Git Cow gentoo-dev 2023-07-31 16:08:05 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76227a67676268ef6650ba71954b0dffd5b5e8c8

commit 76227a67676268ef6650ba71954b0dffd5b5e8c8
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2023-07-31 16:02:16 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2023-07-31 16:07:49 +0000

    media-sound/kid3: Set -DWITH_QAUDIODECODER to circumvent detection
    
    If none of (WITH_FFMPEG,WITH_GSTREAMER,WITH_QAUDIODECODER) is set, build
    system will perform some kind of detection on chromaprint via CMake's
    GetPrerequisites macro. That, for some reason, will end up in a sandbox
    violation against media-libs/chromaprint[-tools].
    
    Set to -DWITH_QAUDIODECODER since we already depend on dev-qt/qtmultimedia.
    
    Closes: https://bugs.gentoo.org/855281
    Bug: https://bugs.gentoo.org/911185
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 media-sound/kid3/kid3-3.9.4.ebuild | 1 +
 1 file changed, 1 insertion(+)
Comment 6 Eduardo Coutinho Scalabrin 2023-08-04 20:21:24 UTC
Hello everybody!

I have this same problem with version 3.9.4 plus a strange component which is:

 * ACCESS DENIED:  open_wr:            /dev/video0
 * ACCESS DENIED:  open_wr:            /dev/video1
Comment 7 Eduardo Coutinho Scalabrin 2023-08-04 21:00:54 UTC
The biggest error I get when building kid3-3.9.4 with the 'acoustid flac kde mp3 mp4 mpris taglib vorbis -test' flags is:

>>> Source compiled.
 * ----------------------- SANDBOX ACCESS VIOLATION SUMMARY -----------------------
 * LOG FILE: "/var/tmp/portage/media-sound/kid3-3.9.4/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/video0
A: /dev/video0
R: /dev/video0
C: /usr/libexec/gstreamer-1.0/gst-plugin-scanner -l /usr/lib64/qt5/bin/qmlplugindump 

F: open_wr
S: deny
P: /dev/video1
A: /dev/video1
R: /dev/video1
C: /usr/libexec/gstreamer-1.0/gst-plugin-scanner -l /usr/lib64/qt5/bin/qmlplugindump 
 * --------------------------------------------------------------------------------
Comment 8 Eduardo Coutinho Scalabrin 2023-08-04 21:06:15 UTC
Created attachment 867069 [details]
Build log from kid3-3.9.4
Comment 9 Eduardo Coutinho Scalabrin 2023-08-04 21:06:58 UTC
Created attachment 867070 [details]
Sandbox log from kid3-3.9.4
Comment 10 Larry the Git Cow gentoo-dev 2023-08-19 07:30:50 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/kde.git/commit/?id=fae3250658bd5150dcb472279452069e36b18fee

commit fae3250658bd5150dcb472279452069e36b18fee
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2023-07-31 16:02:16 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2023-08-19 07:30:11 +0000

    media-sound/kid3: Set -DWITH_QAUDIODECODER to circumvent detection
    
    If none of (WITH_FFMPEG,WITH_GSTREAMER,WITH_QAUDIODECODER) is set, build
    system will perform some kind of detection on chromaprint via CMake's
    GetPrerequisites macro. That, for some reason, will end up in a sandbox
    violation against media-libs/chromaprint[-tools].
    
    Set to -DWITH_QAUDIODECODER since we already depend on dev-qt/qtmultimedia.
    
    Closes: https://bugs.gentoo.org/855281
    Bug: https://bugs.gentoo.org/911185
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 media-sound/kid3/kid3-9999.ebuild | 1 +
 1 file changed, 1 insertion(+)
Comment 11 Andreas Sturmlechner gentoo-dev 2023-08-24 10:02:10 UTC
*** Bug 911813 has been marked as a duplicate of this bug. ***
Comment 12 Andreas Sturmlechner gentoo-dev 2023-08-24 10:02:58 UTC
Apparently not fixed.