Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 257205 - building eix[doc] triggers sandbox violation as dev-python/docutils has out of date .py/.pyc files
Summary: building eix[doc] triggers sandbox violation as dev-python/docutils has out o...
Status: RESOLVED DUPLICATE of bug 256953
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
: 257362 257479 (view as bug list)
Depends on: 256953
Blocks:
  Show dependency tree
 
Reported: 2009-02-01 12:15 UTC by Helmut Jarausch
Modified: 2009-02-07 12:03 UTC (History)
9 users (show)

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


Attachments
~amd64 build.log (build.log,28.01 KB, text/plain)
2009-02-01 13:29 UTC, Jeremy Murphy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2009-02-01 12:15:44 UTC
emerging app-portage/eix-0.15.4 gives
P: /usr/lib/python2.5/site-packages/docutils/utils.pyc
A: /usr/lib/python2.5/site-packages/docutils/utils.pyc
R: /usr/lib/python2.5/site-packages/docutils/utils.pyc


Reproducible: Always




emerge --info
Portage 2.2_rc23 (default/linux/x86/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r1, 2.6.28-gentoo i686)
=================================================================
System uname: Linux-2.6.28-gentoo-i686-Pentium_III_-Coppermine-with-glibc2.0
Timestamp of tree: Sun, 01 Feb 2009 10:15:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7, 2.1.7
dev-lang/python:     2.5.4-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.2
sys-apps/sandbox:    1.3.3
sys-devel/autoconf:  2.13, 2.63
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.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo "
LC_ALL="POSIX"
LDFLAGS="-Wl,-O1"
LINGUAS="en de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage/layman/java-overlay"
SYNC="rsync://rsync.informatik.RWTH-Aachen.de/gentoo-portage"
USE="X acl alsa atm avahi berkdb bzip2 cairo cdr cli cracklib crypt cups dbus doc dri dvd fortran gdbm gif gimp gnome gpm gtk iconv ipv6 isdnlog jpeg kde lcms midi mmx mudflap ncurses nls nptl nptlonly opengl openmp pam pcre pdf perl png pppd python qt qt4 readline reflection session spl sqlite sqlite3 sse ssl svg sysfs tcl tcpd tetex tiff tk unicode x86 xorg xulrunner zlib" ALSA_CARDS="ens1371" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse wacom evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" USERLAND="GNU" VIDEO_CARDS="nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeremy Murphy 2009-02-01 13:29:05 UTC
Confirmed on ~amd64.

Portage 2.1.6.7 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r1, 2.6.28-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-r1-x86_64-Intel-R-_Core-TM-2_CPU_6300_@_1.86GHz-with-glibc2.2.5
Timestamp of tree: Sun, 01 Feb 2009 05:15:02 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.4-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.2
sys-apps/sandbox:    1.3.3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=core2"
DISTDIR="/home/portage/distfiles"
FEATURES="collision-protect distlocks fixpackages parallel-fetch prelink protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.iinet.net.au/pub/Gentoo "
LANG="en_AU.UTF-8"
LC_ALL="en_AU.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en_AU.UTF-8 en_AU en_GB.UTF-8 en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/home"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acpi alsa amd64 ao bash-completion berkdb blas bluetooth branding bzip2 cairo cddb cdr cli cracklib crypt curl dbus dia djvu doc dvd dvdr dvdread emboss encode exif expat fam ffmpeg fftw firefox flac fontconfig fortran gd gdbm gif gnome gnutls gpm graphviz gsl gstreamer gtk hal iconv icq imagemagick imlib ipod ipv6 isdnlog java javascript jpeg jpeg2k kde lapack ldap libnotify lm_sensors lzo mad matroska midi mikmod mmap mmx mng mp3 mpeg mplayer msn mudflap multilib mysql mysqli ncurses nls nptl nptlonly nsplugin ntfs offensive ogg openal opengl openmp pam pch pcre pdf png ppds pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl session sharedmem speex spell spl sqlite sqlite3 sse sse2 ssl startup-notification subversion svg sysfs syslog tcpd theora threads tiff timidity truetype unicode usb vcd vorbis wavpack wxwindows xcomposite xml xorg xpm xscreensaver xulrunner xv xvid xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_AU.UTF-8 en_AU en_GB.UTF-8 en_GB" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Jeremy Murphy 2009-02-01 13:29:57 UTC
Created attachment 180540 [details]
~amd64 build.log
Comment 3 Martin Väth 2009-02-01 19:57:50 UTC
Changing the subject as I am rather sure that this is not a bug of eix but
of sandbox-1.3.3: bash just crashes during a normal command.
Downgrading to sys-apps/sandbox-1.2.18.1-r2 fixes the problem.
Comment 4 Martin von Gagern 2009-02-02 10:47:48 UTC
(In reply to comment #3)
> Downgrading to sys-apps/sandbox-1.2.18.1-r2 fixes the problem.

Even downgrading to sandbox-1.3.2 by masking 1.3.3 fixed the problem for me.
Comment 5 Serkan Kaba (RETIRED) gentoo-dev 2009-02-02 12:24:00 UTC
*** Bug 257362 has been marked as a duplicate of this bug. ***
Comment 6 Martin von Gagern 2009-02-02 13:30:57 UTC
Doing a git bisect for this, it turned out that the access issue was introduced here: http://git.overlays.gentoo.org/gitweb/?p=proj/sandbox.git;a=commitdiff;h=a0d188683e1dd95a53856b418fa5a6aa24bf3cd7

Looks like sandbox had predicts in place that should have been moved to packages by now. Probably eix had no such predicts in place as without bug 256953 they would not be needed.

As for the SIGSEGV which both my build log and the log from comment #2 mention, I used the following command to debug this:

$ gdb --args sandbox rst2html.py
(gdb) set follow-fork-mode child
(gdb) break libsandbox.c:429
(gdb) run

It looks like the call "free(cmdline)" in libsandbox.c breaks things. Probably the reason is that the cmdline is allocated using unmodified strndup but freed using the sandbox wrapper to free. This whole issue should be an instance of bug 257179 and therefore fixed by http://git.overlays.gentoo.org/gitweb/?p=proj/sandbox.git;a=commitdiff;h=6b0d80b98ba7da7facd9b4be901905fe25516d11 though I haven't re-tried that with a current git snapshot.
Comment 7 Serkan Kaba (RETIRED) gentoo-dev 2009-02-03 11:14:32 UTC
*** Bug 257479 has been marked as a duplicate of this bug. ***
Comment 8 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-02-04 15:06:53 UTC
@sandbox team: Can you advise wrt this regression in sandbox?
Comment 9 SpanKY gentoo-dev 2009-02-04 15:53:07 UTC
packages that install .py files should be compiling them with the helper eclasses.  so in this case, docutils needs fixing.

sandbox itself isnt broken.  but i think i'll add another class ("warn") where we get a notice but otherwise things work.  that way we can see these bad packages with missing .pyc but the emerge continues.
Comment 10 Billy DeVincentis 2009-02-06 03:43:19 UTC
I have been hit by this too, for now I masked the new version of eix. How do we get around this?
Comment 11 SpanKY gentoo-dev 2009-02-07 12:03:39 UTC
for now, we'll assume it's the same problem as Bug 256953

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