nqgateway ~ # emerge -uD portage !!! SELinux not loaded: SELinux is not enabled. Calculating dependencies ...done! >>> emerge (1 of 1) sys-apps/portage-2.0.51.19 to / >>> md5 files ;-) ChangeLog >>> md5 files ;-) metadata.xml >>> md5 files ;-) portage-2.0.51-r15.ebuild >>> md5 files ;-) portage-2.0.51.18.ebuild >>> md5 files ;-) portage-2.0.51.19.ebuild >>> md5 files ;-) files/README.RESCUE >>> md5 files ;-) files/gcc-2.95-libsandbox.patch >>> md5 files ;-) files/digest-portage-2.0.51-r15 >>> md5 files ;-) files/digest-portage-2.0.51.18 >>> md5 files ;-) files/digest-portage-2.0.51.19 >>> md5 src_uri ;-) portage-2.0.51.19.tar.bz2 /usr/lib/portage/bin/ebuild.sh: line 646: 2402 Segmentation fault install -m0700 -d "${WORKDIR}" !!! ERROR: sys-apps/portage-2.0.51.19 failed. !!! Function dyn_unpack, Line 678, Exitcode 139 !!! Failed to create dir '/var/tmp/portage/portage-2.0.51.19/work' !!! If you need support, post the topmost build error, NOT this status message. --- selinux is in the profile, but not enabled in the kernel... this is not a nfs-mounted /var/tmp/portage-dir-thing... it happens wether i mount a greater harddisk or not.... merging wget works... Reproducible: Always Steps to Reproduce: 1.emerge -uD portage 2. 3. Actual Results: segfaults on unpacking... Expected Results: should unpack, compile, and install... nqgateway ~ # emerge info !!! SELinux not loaded: SELinux is not enabled. Portage 2.0.51-r15 (selinux/2004.1/x86, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.4.26-gentoo-r9 i686) ================================================================= System uname: 2.4.26-gentoo-r9 i686 Pentium II (Klamath) Gentoo Base System version 1.6.10 Python: dev-lang/python-2.3.4-r1,dev-lang/python-2.2.3-r5 [2.3.4 (#1, Feb 7 2005, 21:30:02)] dev-lang/python: 2.3.4-r1, 2.2.3-r5 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.5, 1.6.3, 1.8.5-r3, 1.7.9-r1, 1.4_p6, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.4.19-r1, 2.4.22-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig candy ccache distlocks loadpolicy sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://gentoo-distfiles.local.nil.nul/gentoo-portage" USE="acpi berkdb crypt gd gdbm gif ipv6 mysql ncurses nls oav pam perl png python readline selinux slang snmp ssl tcpd x86 zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
What libselinux do you have installed? I started seeing something like this on all ebuilds with libselinux 1.22, and sandbox enabled. Commands likd chmod and chown are segfaulting. I turned off sandbox, and everything was fine.
bingo... libselinux 1.22 same phenomenon, turning sandbox off solved the segfaults...
please see if this helps you http://marc.theaimsgroup.com/?l=gentoo-hardened&m=111534784232280&w=2
closing