pip-7.1.2 fails to build here with the following message: writing manifest file '/var/tmp/portage/dev-python/pip-7.1.2/work/pip-7.1.2-python2_7/pip.egg-info/SOURCES.txt' Copying /var/tmp/portage/dev-python/pip-7.1.2/work/pip-7.1.2-python2_7/pip.egg-info to /var/tmp/portage/dev-python/pip-7.1.2/image//_python2.7/usr/lib64/python2.7/site-packages/pip-7.1.2-py2.7.egg-info running install_scripts Installing pip script to /var/tmp/portage/dev-python/pip-7.1.2/image//_python2.7/usr/lib/python-exec/python2.7 Installing pip2.7 script to /var/tmp/portage/dev-python/pip-7.1.2/image//_python2.7/usr/lib/python-exec/python2.7 Installing pip2 script to /var/tmp/portage/dev-python/pip-7.1.2/image//_python2.7/usr/lib/python-exec/python2.7 * python2_7: running distutils-r1_run_phase python_install_all /var/tmp/portage/dev-python/pip-7.1.2/temp/environment: line 3307: 655 Segmentation fault ${EPYTHON} pip/__init__.py completion --bash > "${COMPLETION}" * ERROR: dev-python/pip-7.1.2::gentoo failed (install phase): * (no error message) * * Call stack: * ebuild.sh, line 93: Called src_install * environment, line 3620: Called distutils-r1_src_install * environment, line 984: Called _distutils-r1_run_common_phase 'python_install_all' * environment, line 351: Called _distutils-r1_run_foreach_impl 'python_install_all' * environment, line 364: Called python_foreach_impl 'distutils-r1_run_phase' 'python_install_all' * environment, line 3170: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_install_all' * environment, line 2287: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_install_all' * environment, line 2285: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_install_all' * environment, line 630: Called distutils-r1_run_phase 'python_install_all' * environment, line 949: Called python_install_all * environment, line 3311: Called die * The specific snippet of code: * ${EPYTHON} pip/__init__.py completion --bash > "${COMPLETION}" || die; * * If you need support, post the output of `emerge --info '=dev-python/pip-7.1.2::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-python/pip-7.1.2::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-python/pip-7.1.2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/pip-7.1.2/temp/environment'. * Working directory: '/var/tmp/portage/dev-python/pip-7.1.2/work/pip-7.1.2' * S: '/var/tmp/portage/dev-python/pip-7.1.2/work/pip-7.1.2' Reproducible: Always # emerge --info =dev-python/pip-7.1.2 Portage 2.2.20.1 (python 2.7.10-final-0, hardened/linux/amd64/no-multilib, gcc-4.9.3, glibc-2.21-r1, 4.1.7-hardened-r1 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.1.7-hardened-r1-x86_64-Intel-R-_Core-TM-_i5-4570S_CPU_@_2.90GHz-with-gentoo-2.2 KiB Mem: 16365712 total, 2213196 free KiB Swap: 4891788 total, 4802268 free Timestamp of repository gentoo: Thu, 05 Nov 2015 13:30:01 +0000 sh bash 4.3_p39 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 app-shells/bash: 4.3_p39::gentoo dev-java/java-config: 2.2.0::gentoo dev-lang/perl: 5.20.2::gentoo dev-lang/python: 2.7.10::gentoo, 3.4.3::gentoo dev-util/cmake: 3.3.1-r1::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.17::gentoo sys-apps/sandbox: 2.6-r1::gentoo sys-devel/autoconf: 2.69::gentoo sys-devel/automake: 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.25.1-r1::gentoo sys-devel/gcc: 4.8.5::gentoo, 4.9.3::gentoo sys-devel/gcc-config: 1.7.3::gentoo sys-devel/libtool: 2.4.6::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers) sys-libs/glibc: 2.21-r1::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 local_overlay location: /usr/local/portage masters: gentoo priority: 100 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -fforce-addr" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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 -fforce-addr" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps=y --autounmask-write --jobs=4 --load-average=5.0" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.UTF-8" 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" PORTAGE_TMPDIR="/var/tmp" USE="acl aes amd64 avx avx2 bash-completion berkdb bzip2 cli cracklib crypt cups cxx dri fma3 gdbm glib glibc hardened iconv ieee1394 ipv4 ipv6 justify mmx mmxext modules ncurses nfsv4 nls nptl openmp opensslcrypt pam pax_kernel pcre pie popcnt readline samba seccomp session sse sse2 sse3 sse4_1 sse4_2 ssl ssp ssse3 syslog tcpd threads unicode urandom vim-syntax xattr xtpax zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident 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 flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Created attachment 416112 [details] build.log
Created attachment 416114 [details] environment
Could you please try to catch the segf using abrt?
From which pip version are you upgrading?
Same error here, dmesg snippet: [ 3384.197364] grsec: denied RWX mmap of <anonymous mapping> by /usr/bin/python2.7[python2.7:12899] uid/euid:0/0 gid/egid:0/ 0, parent /usr/lib64/portage/python3.4/ebuild.sh[ebuild.sh:10775] uid/euid:0/0 gid/egid:0/0 [ 3384.197374] python2.7[12899]: segfault at 0 ip 0000039788be94c1 sp 000003ff5c37ee70 error 6 in libffi.so.6.0.1[39788be300 0+8000] [ 3384.197388] grsec: Segmentation fault occurred at (nil) in /usr/bin/python2.7[python2.7:12899] uid/euid:0/0 gid/egid:0/0, parent /usr/lib64/portage/python3.4/ebuild.sh[ebuild.sh:10775] uid/euid:0/0 gid/egid:0/0 [ 3384.197401] grsec: denied resource overstep by requesting 4096 for RLIMIT_CORE against limit 0 for /usr/bin/python2.7[python2.7:12899] uid/euid:0/0 gid/egid:0/0, parent /usr/lib64/portage/python3.4/ebuild.sh[ebuild.sh:10775] uid/euid:0/0 gid/egid:0/0 Not upgrading, fist install.
do you mean app-admin/abrt? it seem to need an xserver and i cannot see any useflag to change this. This is a server which has no graphical interface. pip was not installed before. it is pushed in by this dependency: # equery d dev-python/pip-7.1.2::gentoo * These packages depend on dev-python/pip-7.1.2: dev-python/pbr-1.8.1 (dev-python/pip[python_targets_python2_7(-)?,python_targets_python3_3(-)?,python_targets_python3_4(-)?,python_targets_python3_5(-)?,python_targets_pypy(-)?,python_targets_pypy3(-)?,-python_single_target_python2_7(-),-python_single_target_python3_3(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-),-python_single_target_pypy(-),-python_single_target_pypy3(-)])
after you have mentioned it: maybe this is related to hardened. [56025.699688] grsec: From 172.16.0.47: Segmentation fault occurred at 000000000000000c in /usr/bin/python2.7[python2.7:27042] uid/euid:0/0 gid/egid:0/0, parent /usr/lib64/portage/python2.7/ebuild.sh[ebuild.sh:26641] uid/euid:0/0 gid/egid:0/0 [56025.699697] grsec: From 172.16.0.47: denied resource overstep by requesting 4096 for RLIMIT_CORE against limit 0 for /usr/bin/python2.7[python2.7:27042] uid/euid:0/0 gid/egid:0/0, parent /usr/lib64/portage/python2.7/ebuild.sh[ebuild.sh:26641] uid/euid:0/0 gid/egid:0/0
however, i do not have the "denied RWX mmap" in my dmesg.
@hardened any help here?
Check that you have emutramp enable in the kernel and E is set as pax mark on the python bins.
Indeed, enabling emutramp fixed it for me. Thank you! First time I had any problems with emutramp disabled.
So we can close this bug. Hardened, do you have documented somewhere that this feature is needed for Python?
(In reply to Justin Lecher from comment #12) > So we can close this bug. Hardened, do you have documented somewhere that > this feature is needed for Python? https://wiki.gentoo.org/wiki/Hardened/PaX_Quickstart https://gitweb.gentoo.org/proj/hardened-patchset.git/tree/4.2.5/4475_emutramp_default_on.patch
Thank you Magnus, closing it now
*** Bug 565614 has been marked as a duplicate of this bug. ***