Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 85239 - (selinux) update portage-2.0.51-r15 to portage-2.0.51.19 segfaults with /usr/lib/portage/bin/ebuild.sh: line 646: 2402 Segmentation fault install -m0700 -d "${WORKDIR}"
Summary: (selinux) update portage-2.0.51-r15 to portage-2.0.51.19 segfaults with /usr/...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Sandbox (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Chris PeBenito (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-14 11:09 UTC by Nicolas Vilz
Modified: 2005-06-23 05:20 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Vilz 2005-03-14 11:09:11 UTC
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
Comment 1 Chris PeBenito (RETIRED) gentoo-dev 2005-03-16 14:56:40 UTC
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.
Comment 2 Nicolas Vilz 2005-03-16 15:07:20 UTC
bingo... libselinux 1.22 same phenomenon, turning sandbox off solved the segfaults... 
Comment 3 Chris PeBenito (RETIRED) gentoo-dev 2005-05-19 20:47:01 UTC
please see if this helps you

http://marc.theaimsgroup.com/?l=gentoo-hardened&m=111534784232280&w=2
Comment 4 Chris PeBenito (RETIRED) gentoo-dev 2005-06-23 05:20:26 UTC
closing