Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47165 - sandbox causes segfault where out-of-sandbox does not
Summary: sandbox causes segfault where out-of-sandbox does not
Status: RESOLVED DUPLICATE of bug 46945
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High critical
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-07 17:35 UTC by Katriska Evurunobi
Modified: 2005-07-17 13:06 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 Katriska Evurunobi 2004-04-07 17:35:42 UTC
When updating my box emerge fails on xmms-infopipe-1.3 with the following message:
Calculating world dependencies ...done!
>>> emerge (1 of 16) media-plugins/xmms-infopipe-1.3 to /
keeptemp
mv: cannot stat `/var/tmp/portage/xmms-infopipe-1.3/temp/environment': No such file or directory
keepwork
>>> md5 src_uri ;-) xmms-infopipe-1.3.tar.gz
>>> Checking xmms-infopipe-1.3.tar.gz's mtime...
>>> WORKDIR is up-to-date, keeping...
/usr/sbin/ebuild.sh: line 1427:  8971 Segmentation fault      ./configure --prefix=/usr --host=${CHOST} --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib ${EXTRA_ECONF} "$@"

!!! ERROR: media-plugins/xmms-infopipe-1.3 failed.
!!! Function econf, Line 365, Exitcode 139
!!! econf failed



Reproducible: Always
Steps to Reproduce:
1. emerge -u world
Actual Results:  
After I performed the steps above I get the following error:

Calculating world dependencies ...done!
>>> emerge (1 of 16) media-plugins/xmms-infopipe-1.3 to /
keeptemp
mv: cannot stat `/var/tmp/portage/xmms-infopipe-1.3/temp/environment': No such
file or directory
keepwork
>>> md5 src_uri ;-) xmms-infopipe-1.3.tar.gz
>>> Checking xmms-infopipe-1.3.tar.gz's mtime...
>>> WORKDIR is up-to-date, keeping...
/usr/sbin/ebuild.sh: line 1427:  8971 Segmentation fault      ./configure
--prefix=/usr --host=${CHOST} --mandir=/usr/share/man --infodir=/usr/share/info
--datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib ${EXTRA_ECONF} "$@"

!!! ERROR: media-plugins/xmms-infopipe-1.3 failed.
!!! Function econf, Line 365, Exitcode 139
!!! econf failed



Expected Results:  
The emerge script should have configured the package using the econf command
provided in the ebuild.

I have checked the forums and I've found that I'm not the only person with a
problem with this same ebuild.  From the forums and speaking with people in the
#gentoo irc channel, I think it has something to do with sandbox.  I would have
chosen Major as the severity level, but since I didn't know how true the sandbox
issue was, I didn't.
Comment 1 Boohbah 2004-04-07 22:31:15 UTC
I am having this problem too. Here's my emerge --info:
Portage 2.0.50-r3 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5)
=================================================================
System uname: 2.6.5 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.4.3.13p1
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow X acpi alsa apache2 apm avi berkdb cjk crypt cups dvd encode fbcon foomaticdb gdbm gif gnome gpm gstreamer gtk gtk2 imap imlib java joystick jpeg libg++ libwww maildir mmx motif mozilla moznocompose moznoirc moznomail mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime readline samba sdl slang spell sse ssl svga tiff truetype x86 xml xml2 xmms xv zlib"
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2004-04-08 04:10:33 UTC
is there any filesystem mounted read only ?
do you have enough free diskspace ?
rm -rf /var/tmp/portage/*
Comment 3 Katriska Evurunobi 2004-04-08 07:58:09 UTC
I have space on my HDD, I checked that before submitting the bug, sorry should have stated that. 
Comment 4 Jeremy Huddleston (RETIRED) gentoo-dev 2004-04-08 09:20:04 UTC
did you do /var/tmp/portage/*?
Comment 5 Katriska Evurunobi 2004-04-08 11:01:49 UTC
I actually went into the /var/tmp/portage directory and deleted everything, I know there's nothing in there.. I've checked my space and I have ample space.  There is nothing in portage as of now and I still get the same error.
Comment 6 Jeremy Huddleston (RETIRED) gentoo-dev 2004-04-08 11:42:17 UTC
and can you emerge other things?
Comment 7 Boohbah 2004-04-08 12:13:26 UTC
I have free diskspace, no filesystems mounted readonly, cleared out /var/tmp/portage, can emerge other ebuilds fine, and I can confirm that this error is still occurring.
Comment 8 James Shuttleworth 2004-04-08 12:36:28 UTC
Not sure if this helps, but I have exactly the same problem.  Plenty of disc space, permissions fine, etc, but it still segfaults.

James
Comment 9 Wm. F. Wheeler 2004-04-08 15:46:57 UTC
Ditto for me ... also, see 

http://forums.gentoo.org/viewtopic.php?p=1025948#1025948

thread for other folks experiencing the same exact problem.
Comment 10 Jeremy Huddleston (RETIRED) gentoo-dev 2004-04-08 18:56:34 UTC
(18:53:22 Thu Apr 08 2004 root@eradicator)
/var/tmp/portage/xmms-infopipe-1.3/work/xmms-infopipe-1.3 $ ./configure --prefix=/usr --host=${CHOST} --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib
creating cache ./config.cache
checking for a BSD compatible install... /bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... 
(18:53:32 Thu Apr 08 2004 root@eradicator)
/var/tmp/portage/xmms-infopipe-1.3/work/xmms-infopipe-1.3 $ /usr/lib/po 
portage     postgresql  powertweak  

(18:53:32 Thu Apr 08 2004 root@eradicator)
/var/tmp/portage/xmms-infopipe-1.3/work/xmms-infopipe-1.3 $ /usr/lib/portage/bin/sandbox 
========================== Gentoo linux path sandbox ===========================
Detection of the support files.
Verification of the required files.
Setting up the required environment variables.
The protected environment has been started.
--------------------------------------------------------------------------------
Shell being started in forked process.

(18:53:40 Thu Apr 08 2004 root@eradicator)
/var/tmp/portage/xmms-infopipe-1.3/work/xmms-infopipe-1.3 $ ./configure --prefix=/usr --host=${CHOST} --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib
Segmentation fault

(18:53:42 Thu Apr 08 2004 root@eradicator)
/var/tmp/portage/xmms-infopipe-1.3/work/xmms-infopipe-1.3 $ ./configure --help
Segmentation fault


Adding "#!/bin/sh" to the top of configure fixes the problem.
Comment 11 Jeremy Huddleston (RETIRED) gentoo-dev 2004-04-08 19:03:42 UTC
xmms-infopipe will not emerge using the workaround mentioned above.
Comment 12 Jeremy Huddleston (RETIRED) gentoo-dev 2004-04-08 19:11:42 UTC
hah... the "not" in the above statement should have read "now"

big difference =)
Comment 13 Boohbah 2004-04-10 16:58:21 UTC
Here are reports of a similar bug when emerging openoffice: http://forums.gentoo.org/viewtopic.php?p=1032347
Could these two be related?
Comment 14 Jason Stubbs (RETIRED) gentoo-dev 2004-04-11 07:55:43 UTC
The cause of these bugs has been found to be the same.

*** This bug has been marked as a duplicate of 46945 ***