Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 638204 - sys-apps/openrc-0.34.8 with sys-apps/sandbox-2.12 ISE:do_peekstr:process_vm_readv(12746, 0x00007ffd37a80020{0x00007f8e2712e010, 0x3dd}, 1, 0x00007ffd37a80030{0x00007fe4c1b6dc23, 0x3dd}, 1, 0) failed: Operation not permitted
Summary: sys-apps/openrc-0.34.8 with sys-apps/sandbox-2.12 ISE:do_peekstr:process_vm_r...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Sandbox Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-20 09:26 UTC by Dmitry Suloev
Modified: 2017-12-29 07:35 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,2.06 KB, text/x-log)
2017-11-20 09:30 UTC, Dmitry Suloev
Details
environment (environment,101.92 KB, text/plain)
2017-11-20 09:31 UTC, Dmitry Suloev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Suloev 2017-11-20 09:26:48 UTC
openrc installation failed on compile phase

Reproducible: Always

Steps to Reproduce:
1. emerge openrc
Comment 1 Dmitry Suloev 2017-11-20 09:28:42 UTC
Portage 2.3.14 (python 2.7.14-final-0, default/linux/amd64/13.0, gcc-7.2.0, glibc-2.26-r3, 4.14.0 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.14.0-x86_64-AMD_A10-5800K_APU_with_Radeon-tm-_HD_Graphics-with-gentoo-2.4.1
KiB Mem:     8193108 total,   5584704 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Mon, 20 Nov 2017 09:00:01 +0000
Head commit of repository gentoo: ddbbeb1b57c0b08c06d36a36a5adb639c2c42367
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p2) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.26.1-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.4-r1::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.6::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            7.2.0::gentoo
sys-devel/gcc-config:     1.9.0::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r3::gentoo
Repositories:

gentoo
    location: /var/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts:
    sync-rsync-vcs-ignore: true

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
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="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersand
box usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
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"
USE="10bit 3dnow 3dnowext X aac acl acpi adobe-cff alsa amd64 apng bash-completion berkdb bzip2 cairo clang cli consolekit corefonts cpudetection cracklib cxx d3d9 dbus dga djvu dri drm enca encode exif fontconfig fortran gbm gdbm gegl geo git glamor gtk gtk3 gtkstyle gudev
 iconv icu ipv6 jpeg jpeg2k kdrive libsamplerate mad mmx mmxext modules mp3 mpg123 multilib ncurses nls nptl ogg opencl opengl openmp openvg openxml pam pcre png policykit rar readline savedconfig seccomp session smp sqlite sse sse2 sse3 ssl svg threads tiff truetype udev u
nicode upnp usb uvm vdpau vim-syntax vorbis vulkan x264 x265 xattr xcb xinerama xvfb xvid xvmc zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 triden
t usb-audio via82xx via82xx-modem ymfpci" 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="kexi words fl
ow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 3dnow 3dnowext smp" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gp
sclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" L10N="ru en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb
216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres10" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5
" RUBY_TARGETS="ruby20" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="amdgpu radeon radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Dmitry Suloev 2017-11-20 09:29:25 UTC
dos ~ # emerge -pqv '=sys-apps/openrc-0.34.8::gentoo'
[ebuild     U ] sys-apps/openrc-0.34.8 [0.34.6] USE="ncurses netifrc pam unicode -audit -debug -newnet (-prefix) (-selinux) -static-libs"
Comment 3 Dmitry Suloev 2017-11-20 09:30:41 UTC
Created attachment 505058 [details]
build.log
Comment 4 Dmitry Suloev 2017-11-20 09:31:04 UTC
Created attachment 505060 [details]
environment
Comment 5 dwfreed 2017-11-20 18:17:36 UTC
Could you provide the output of 'sysctl kernel.yama.ptrace_scope' ?
Comment 6 Dmitry Suloev 2017-11-21 08:21:04 UTC
dos ~ # LANG=C sysctl kernel.yama.ptrace_scope
sysctl: cannot stat /proc/sys/kernel/yama/ptrace_scope: No such file or directory
Comment 7 Dmitry Suloev 2017-12-01 09:13:27 UTC
process_vm_readv system call should not require ptrace at all as I know.
Comment 8 Dmitry Suloev 2017-12-01 09:37:12 UTC
(In reply to Dmitry Suloev from comment #6)
> dos ~ # LANG=C sysctl kernel.yama.ptrace_scope
> sysctl: cannot stat /proc/sys/kernel/yama/ptrace_scope: No such file or
> directory

I rebuild kernel with CONFIG_SECURITY_YAMA=y and get this:
dos ~ # sysctl kernel.yama.ptrace_scope
kernel.yama.ptrace_scope = 1

And openrc installation still fails on compile phase.
Comment 9 Mike Gilbert gentoo-dev 2017-12-28 15:48:45 UTC
Changing to NEEDINFO since we still don't really know the cause of this problem. If you manage to figure it out, please let us know.
Comment 10 Dmitry Suloev 2017-12-29 07:35:37 UTC
(In reply to Mike Gilbert from comment #9)
> Changing to NEEDINFO since we still don't really know the cause of this
> problem. If you manage to figure it out, please let us know.

I do not think I can help much. The problem disappeared after the rebuilding of the entire system with a new profile.