Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 194146

Summary: media-gfx/imagemagick-6.3.5.9 sandbox violation
Product: Gentoo Linux Reporter: Alex Efros <powerman-asdf>
Component: Current packagesAssignee: Gentoo Graphics Project <graphics+disabled>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: jakub
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alex Efros 2007-09-28 22:22:55 UTC
While upgrading imagemagick:
  [ebuild     U ] media-gfx/imagemagick-6.3.5.9 [6.3.4-r1]
it failed because sandbox doesn't allow it to update
  /usr/lib/perl5/site_perl/5.8.8/i686-linux/auto/Image/Magick/Magick.so
(see below).

I've used
  FEATURES="-sandbox -usersandbox" emerge --resume
to work around this issue.

This issue happens on all my servers which was installed in last month, and doesn't happens on old servers, which was installed many years ago (all servers is up-to-date and has same configuration).

Reproducible: Always

Actual Results:  
cd PerlMagick && make CC='i686-pc-linux-gnu-gcc' install
make[2]: Entering directory `/var/tmp/portage/media-gfx/imagemagick-6.3.5.9/work
/ImageMagick-6.3.5/PerlMagick'
Files found in blib/arch: installing files in blib/lib into architecture depende
nt library tree
Installing /var/tmp/portage/media-gfx/imagemagick-6.3.5.9/image/usr/lib/perl5/si
te_perl/5.8.8/i686-linux/auto/Image/Magick/Magick.bs
Installing /var/tmp/portage/media-gfx/imagemagick-6.3.5.9/image/usr/lib/perl5/si
te_perl/5.8.8/i686-linux/auto/Image/Magick/Magick.so
ACCESS DENIED  chmod:     /usr/lib/perl5/site_perl/5.8.8/i686-linux/auto/Image/M
agick/Magick.so
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WARNING: WARNING: Failed chmod(438, /usr/lib/perl5/site_perl/5.8.8/i686-linux/au
to/Image/Magick/Magick.so): Permission denied

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ACCESS DENIED  unlink:    /usr/lib/perl5/site_perl/5.8.8/i686-linux/auto/Image/M
agick/Magick.so
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Cannot unlink '/usr/lib/perl5/site_perl/5.8.8/i686-linux/auto/Image/Magic
k/Magick.so': Permission denied
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 at -e line 1
make[2]: *** [pure_site_install] Error 13
make[2]: Leaving directory `/var/tmp/portage/media-gfx/imagemagick-6.3.5.9/work/
ImageMagick-6.3.5/PerlMagick'
make[1]: *** [install-exec-perl] Error 2
make[1]: Leaving directory `/var/tmp/portage/media-gfx/imagemagick-6.3.5.9/work/ImageMagick-6.3.5'
make: *** [install-am] Error 2
 *
 * ERROR: media-gfx/imagemagick-6.3.5.9 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
 *   imagemagick-6.3.5.9.ebuild, line 101:   Called die
 *
 * (no error message)
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/media-gfx:imagemagick-6.3.5.9:20070928-115352.log'.
 *
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-media-gfx_-_imagemagick-6.3.5.9-32727.log"

chmod:     /usr/lib/perl5/site_perl/5.8.8/i686-linux/auto/Image/Magick/Magick.so
unlink:    /usr/lib/perl5/site_perl/5.8.8/i686-linux/auto/Image/Magick/Magick.so
--------------------------------------------------------------------------------



Portage 2.1.3.9 (hardened/x86/2.6, gcc-3.4.6, glibc-2.5-r4, 2.6.20-hardened-r6 i686)
=================================================================
System uname: 2.6.20-hardened-r6 i686 AMD Athlon(tm) 64 Processor 3500+
Timestamp of tree: Wed, 26 Sep 2007 21:30:09 +0000
app-shells/bash:     3.2_p17
dev-lang/python:     2.4.4-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -fforce-addr"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /service /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe -fforce-addr"
DISTDIR="/usr/portage-distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LINGUAS="en"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage-power"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext acpi apache2 berkdb bitmap-fonts bzip2 cracklib crypt curl gd gdbm gif gnutls hardened imagemagick imap imlib javascript jpeg lm_sensors mailbox mbox midi mmx mmxext mng mysql ncurses nls nptl nptlonly pam pcre perl pic png pwdb readline slang sse sse2 ssl svg sysfs tcpd tiff truetype truetype-fonts type1-fonts urandom x86 xinetd xorg zlib" 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="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-09-28 22:28:05 UTC
Shrug; works just fine here w/ sandbox-1.2.18.1 (also use 6.3.5.10 as the previous version is broken).
Comment 2 Alex Efros 2007-10-06 14:47:42 UTC
Same bug with 6.3.5.10:

cd PerlMagick && make CC='i686-pc-linux-gnu-gcc' install
make[2]: Entering directory `/var/tmp/portage/media-gfx/imagemagick-6.3.5.10/work/ImageMagick-6.3.5/PerlMagick'
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing /var/tmp/portage/media-gfx/imagemagick-6.3.5.10/image/usr/lib/perl5/site_perl/5.8.8/i686-linux/auto/Image/Magick/Magick.bs
Installing /var/tmp/portage/media-gfx/imagemagick-6.3.5.10/image/usr/lib/perl5/site_perl/5.8.8/i686-linux/auto/Image/Magick/Magick.so
ACCESS DENIED  chmod:     /usr/lib/perl5/site_perl/5.8.8/i686-linux/auto/Image/Magick/Magick.so
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WARNING: WARNING: Failed chmod(438, /usr/lib/perl5/site_perl/5.8.8/i686-linux/auto/Image/Magick/Magick.so): Permission denied

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ACCESS DENIED  unlink:    /usr/lib/perl5/site_perl/5.8.8/i686-linux/auto/Image/Magick/Magick.so
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Cannot unlink '/usr/lib/perl5/site_perl/5.8.8/i686-linux/auto/Image/Magick/Magick.so': Permission denied
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 at -e line 1
make[2]: *** [pure_site_install] Error 13
make[2]: Leaving directory `/var/tmp/portage/media-gfx/imagemagick-6.3.5.10/work/ImageMagick-6.3.5/PerlMagick'
make[1]: *** [install-exec-perl] Error 2
make[1]: Leaving directory `/var/tmp/portage/media-gfx/imagemagick-6.3.5.10/work/ImageMagick-6.3.5'
make: *** [install-am] Error 2
 * 
 * ERROR: media-gfx/imagemagick-6.3.5.10 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
 *   imagemagick-6.3.5.10.ebuild, line 101:   Called die
 * 
 * Installation of files into image failed
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/media-gfx:imagemagick-6.3.5.10:20071006-062432.log'.
 * 
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-media-gfx_-_imagemagick-6.3.5.10-22606.log"

chmod:     /usr/lib/perl5/site_perl/5.8.8/i686-linux/auto/Image/Magick/Magick.so
unlink:    /usr/lib/perl5/site_perl/5.8.8/i686-linux/auto/Image/Magick/Magick.so
--------------------------------------------------------------------------------
 * Regenerating GNU info directory index...
 * Processed 118 info files.
Comment 3 Markus Meier gentoo-dev 2007-12-28 22:37:57 UTC
I have no idea what's wrong here. can you please try to unmerge imagemagick and emerge it?
emerge -C imagemagick && emerge -1 imagemagick
Comment 4 Markus Meier gentoo-dev 2007-12-30 13:36:21 UTC
and/or try media-gfx/imagemagick-6.3.7.8.