Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 192389 - subversion-1.4.4-r3 and rrdtool-1.2.23-r1 - paludis sandbox violations with perl USE flags enabled
Summary: subversion-1.4.4-r3 and rrdtool-1.2.23-r1 - paludis sandbox violations with p...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Paul de Vrieze (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-13 07:03 UTC by Dirk Heinrichs
Modified: 2008-01-14 00:09 UTC (History)
4 users (show)

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


Attachments
Patch to fix rrdtool perl sandbox violation (rrdtool-1.2.23-r1.ebuild.patch,319 bytes, patch)
2007-09-14 17:18 UTC, Dirk Heinrichs
Details | Diff
build.log of failed rrdtool build with portage (build.log,173.09 KB, text/plain)
2007-09-17 06:51 UTC, Dirk Heinrichs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Heinrichs 2007-09-13 07:03:42 UTC
I get sandbox violation when I recompile subversion-1.4.4-r3 or rrdtool-1.2.23-r1 with the perl USE flag enabled:

subversion:

# cat sandbox-29350.log
chmod:     /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/SVN/_Client/_Client.so
unlink:    /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/SVN/_Client/_Client.so

rrdtool:

# less sandbox-30110.log
chmod:     /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/RRDs/RRDs.so
unlink:    /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/RRDs/RRDs.so
chmod:     /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/RRDs/RRDs.so
unlink:    /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/RRDs/RRDs.so

The problem goes away when perl USE flag is not set.

Reproducible: Always

Steps to Reproduce:
1. Enable perl USE flag for said packages
2. rebuild them: paludis -i1 subversion rrdtool
Actual Results:  
See above.

Expected Results:  
No sandbox violation.

# paludis --info
paludis 0.24.6

Built by paludisbuild@louisa on 2007-08-17T08:19:37+0200
CXX:         i686-pc-linux-gnu-g++ 4.2.0 (Gentoo 4.2.0 p1.4)
CXXFLAGS:    -O2 -march=pentium4 -fomit-frame-pointer -pipe
LDFLAGS:
DATADIR:     /usr/share
LIBDIR:      /usr/lib
LIBEXECDIR:  /usr/libexec
SYSCONFDIR:  /etc
stdlib:      GNU libstdc++ 20070514
libebt:      1.3.0
libwrapiter: 1.2.0
sandbox:     enabled

    Package information:
        app-admin/eselect-compiler: (none)
        app-shells/bash:       3.2_p17
        dev-java/java-config:  (none)
        dev-lang/python:       2.5.1-r2
        dev-python/pycrypto:   2.0.1-r6
        dev-util/ccache:       (none)
        dev-util/confcache:    (none)
        sys-apps/baselayout:   1.12.10-r4
        sys-apps/sandbox:      1.2.18.1
        sys-devel/autoconf:    2.13, 2.61-r1
        sys-devel/automake:    1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
        sys-devel/binutils:    2.18.50.0.1
        sys-devel/gcc-config:  1.4.0-r2
        sys-devel/libtool:     1.5.24
        virtual/os-headers:    2.6.22-r2
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-09-14 07:26:03 UTC
I asked multiple people to reproduce this, and noone could. Neither with portage, nor with paludis, nor with pkgcore. Neither can I.

Closing.
Comment 2 Dirk Heinrichs 2007-09-14 08:20:49 UTC
Did some further investigations (with rrdtool, subversion still compiling):

If the package was first installed with -perl (or not at all), then the _first_ rebuild with the perl Use flag set succeeds, but the second one will fail (which was the case for me, because it failed during a revdep-rebuild) with said sandbox violation.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-09-14 08:24:52 UTC
I recompiled subversion at least 30 times in past month due to apr testing, and still can't reproduce any such thing. Sorry, the above still doesn't reproduce the issue.
Comment 4 Dirk Heinrichs 2007-09-14 08:38:34 UTC
(In reply to comment #3)
> I recompiled subversion at least 30 times in past month due to apr testing, and
> still can't reproduce any such thing. Sorry, the above still doesn't reproduce
> the issue.

I can:

1) USE="-perl" paludis -i1 subversion (or rrdtool) -> succeeds
2) paludis -i1 subversion (perl set by default) -> succeeds
3) again: paludis -i1 subversion (perl set by default) -> fails.

More complete error msg:

make[1]: Entering directory `/gentoo/build/dev-util/subversion-1.4.4-r3/work/subversion-1.4.4/subversion/bindings/swig/perl/native'
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing /gentoo/build/dev-util/subversion-1.4.4-r3/image/usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/SVN/_Client/_Client.so
ACCESS DENIED  chmod:     /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/SVN/_Client/_Client.so
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WARNING: WARNING: Failed chmod(438, /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/SVN/_Client/_Client.so): Permission denied

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ACCESS DENIED  unlink:    /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/SVN/_Client/_Client.so
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Cannot unlink '/usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/SVN/_Client/_Client.so': Permission denied
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 at -e line 1
make[1]: *** [pure_vendor_install] Error 13
make[1]: Leaving directory `/gentoo/build/dev-util/subversion-1.4.4-r3/work/subversion-1.4.4/subversion/bindings/swig/perl/native'
make: *** [install-swig-pl] Error 2

!!! ERROR in dev-util/subversion-1.4.4-r3:
!!! In src_install at line 6291
!!! Installation of subversion Perl bindings failed

!!! Call stack:
!!!    * src_install (/gentoo/build/dev-util/subversion-1.4.4-r3/temp/loadsaveenv:6291)
!!!    * ebuild_f_install (/usr/libexec/paludis/src_install.bash:48)
!!!    * ebuild_main (/usr/libexec/paludis/ebuild.bash:363)
!!!    * main (/usr/libexec/paludis/ebuild.bash:381)

die trap: exiting with error.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-7868.log"

chmod:     /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/SVN/_Client/_Client.so
unlink:    /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/SVN/_Client/_Client.so
--------------------------------------------------------------------------------

Install error:
  * In program paludis -i1 subversion:
  * When performing install action from command line:
  * When executing install task:
  * When installing 'dev-util/subversion-1.4.4-r3':
  * Install error: Install failed for 'dev-util/subversion-1.4.4-r3::gentoo'

However, as a workaround, rebuilding with "-perl" once is OK for me.
Comment 5 Dirk Heinrichs 2007-09-14 08:41:39 UTC
> 1) USE="-perl" paludis -i1 subversion (or rrdtool) -> succeeds

Oops, this doesn't work with paludis, should be

1) paludis -i1 subversion (with perl unset) -> succeeds
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-09-14 08:43:44 UTC
Then take this to paludis folks.
Comment 7 Bo Ørsted Andresen (RETIRED) gentoo-dev 2007-09-14 11:04:18 UTC
Dirk,

can you reproduce this with Portage?
Comment 8 Dirk Heinrichs 2007-09-14 12:01:13 UTC
(In reply to comment #7)

> can you reproduce this with Portage?

Now that you ask, yes. So it doesn't seem to be a paludis issue.
Comment 9 Dirk Heinrichs 2007-09-14 12:12:02 UTC
And it gives another hint:

 * ERROR: net-analyzer/rrdtool-1.2.23-r1 failed.
 * Call stack:
 *   ebuild.sh, line 1654:   Called dyn_install
 *   ebuild.sh, line 1089:   Called qa_call 'src_install'
 *   ebuild.sh, line 44:   Called src_install
 *   rrdtool-1.2.23-r1.ebuild, line 75:   Called perl-module_src_install
 *   perl-module.eclass, line 167:   Called die
 *
Comment 10 Bo Ørsted Andresen (RETIRED) gentoo-dev 2007-09-14 14:35:52 UTC
(In reply to comment #8)
> > can you reproduce this with Portage?
> 
> Now that you ask, yes. So it doesn't seem to be a paludis issue.

Then provide emerge --info and a full build.log...
Comment 11 Dirk Heinrichs 2007-09-14 17:18:26 UTC
Created attachment 130930 [details, diff]
Patch to fix rrdtool perl sandbox violation
Comment 12 Dirk Heinrichs 2007-09-17 06:44:43 UTC
(In reply to comment #11)
> Created an attachment (id=130930) [edit]
> Patch to fix rrdtool perl sandbox violation

Seems the patch doesn't make any difference. The problem didn't show up on my home laptop after doing the change, so I had the (false) impression that it would fix it, but it seems that it wasn't even affected by the problem in the first place. Looks like the problem shows up on my office box only. 
Comment 13 Dirk Heinrichs 2007-09-17 06:50:10 UTC
(In reply to comment #11)
> Created an attachment (id=130930) [edit]
> Patch to fix rrdtool perl sandbox violation
> 

(In reply to comment #10)
> (In reply to comment #8)
> > > can you reproduce this with Portage?
> > 
> > Now that you ask, yes. So it doesn't seem to be a paludis issue.
> 
> Then provide emerge --info and a full build.log...

build.log will be attached, here's emerge --info:

# emerge --info
Portage 2.1.3.9 (default-linux/x86/2007.0, gcc-4.2.0, glibc-2.6.1-r0, 2.6.22.5 i686)
=================================================================
System uname: 2.6.22.5 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz
Timestamp of tree: Sat, 15 Sep 2007 01:48:01 +0000
app-shells/bash:     3.2_p17
dev-lang/python:     2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r4
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18
sys-devel/gcc-config: 1.4.0-r2
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/gentoo/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.osuosl.org"
LANG="de_DE.UTF-8"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/gentoo/build"
PORTDIR="/gentoo/overlays/portage"
PORTDIR_OVERLAY="/gentoo/overlays/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl acpi activefilter ada addbookmarks akode alias alsa aotuv arts audiofile avahi bash-completion berkdb bitmap-fonts bogofilter boost bzip2 cairo caps cdda cddb cdio cdparanoia chipcard cli connectionstatus contrarius cpudetection cracklib cran crypt cups curl dbus deprecated directfb doc dri dtaus dts dvd dvdread dynamic edl emacs examples fam fbcon ffmpeg firefox flac font-server foomaticdb fuse gd-external gdbm geldkarte gif glibc-omitfp glsa glut gnutls gpg2-experimental gpm gsl gsnd gstreamer hal hbci hddtemp highlight history httpd i8x0 iconv icq idn imagemagick imap imlib ipppd irmc isdnlog jpeg jpeg2k kcal kde kdehiddenvisibility latex lcms ldap ldapsam lm_sensors lzo mad madwifi maildir mbox midi mime mjpeg mmx mmxext mng motif mozsvg mp3 mp4 mpeg mplayer mudflap mule musicbrainz ncurses network-cron nls no-old-linux noantlr nobcel nobeanutils nobsh nocommonslogging nocommonsnet nojdepend nojsch nojython nolog4j nooro noregexp norhino noxalan noxerces nptl nptlonly nsplugin objc objc++ objc-gc ofx ogg oggvorbis openexr opengl openmp pam pam_console pcre pdf perl perlsuid pg-intdatetime pic png postgres ppds pppd pwdb python qa qt3 qt4 quicktime rdesktop readline real reflection rtc samba sametime savedconfig session slang slp speedo speex spell spl sql sqlite sqlite3 sse ssl stream subversion svg symlink sysfs tcpd tetex theora threads tiff toolbar truetype truetype-fonts type1-fonts unicode userlocales vcd vidix vim-pager vim-syntax vim-with-x vlm vorbis webdav win32codecs wmf wxwindows x86 xim xine xml xorg xosd xprint xscreensaver xv xvid xvmc zeroconf zlib zsh-completion" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Comment 14 Dirk Heinrichs 2007-09-17 06:51:23 UTC
Created attachment 131121 [details]
build.log of failed rrdtool build with portage
Comment 15 Dirk Heinrichs 2007-09-17 16:26:40 UTC
Comment on attachment 130930 [details, diff]
Patch to fix rrdtool perl sandbox violation

Obsoleted patch because it doesn't have any effect.
Comment 16 Benedikt Böhm (RETIRED) gentoo-dev 2008-01-14 00:09:58 UTC
please reopen if this is still an issue with 1.4.6