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

Bug 105351

Summary: Sandbox access violation for mod_php-4.4.0-r1
Product: Gentoo Linux Reporter: Matteo Settenvini <matteo-ml>
Component: [OLD] ServerAssignee: PHP Bugs <php-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: alin, sean
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Matteo Settenvini 2005-09-09 02:10:04 UTC
When emerging mod_php-4.4.0-r1: 
 
/bin/sh /var/tmp/portage/mod_php-4.4.0-r1/work/php-4.4.0/libtool --silent 
--pres 
erve-dup-deps --mode=link gcc -DPHP_ATOM_INC 
-I/var/tmp/portage/mod_php-4.4.0-r1 
/work/php-4.4.0/include 
-I/var/tmp/portage/mod_php-4.4.0-r1/work/php-4.4.0/main 
-I/var/tmp/portage/mod_php-4.4.0-r1/work/php-4.4.0 -I/usr/include/libxml2 
-I/usr 
/X11R6/include -I/usr/include/freetype2 -I/usr/include/imap 
-I/var/tmp/portage/m 
od_php-4.4.0-r1/work/php-4.4.0/ext/mbstring/mbregex 
-I/var/tmp/portage/mod_php-4 
.4.0-r1/work/php-4.4.0/ext/mbstring/libmbfl 
-I/var/tmp/portage/mod_php-4.4.0-r1/ 
work/php-4.4.0/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql 
-I/usr/include/psp 
ell -I/var/tmp/portage/mod_php-4.4.0-r1/work/php-4.4.0/ext/xml/expat 
-I/var/tmp/ 
portage/mod_php-4.4.0-r1/work/php-4.4.0/TSRM 
-I/var/tmp/portage/mod_php-4.4.0-r1 
/work/php-4.4.0/Zend    -O3 -march=pentium4 -pipe -DLINUX=2 -D_REENTRANT 
-D_XOPE 
N_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -D_LARGEFILE64_SOURCE 
-p 
thread   -o ext/java/java.la -export-dynamic -avoid-version -prefer-pic 
-module 
-rpath /var/tmp/portage/mod_php-4.4.0-r1/work/php-4.4.0/modules 
-export-symbols 
/var/tmp/portage/mod_php-4.4.0-r1/work/php-4.4.0/sapi/apache2handler/php.sym 
-av 
oid-version -module -L/usr/X11R6/lib 
-L/opt/blackdown-jdk-1.4.2.02/jre/lib/i386/ 
server -L/opt/blackdown-jdk-1.4.2.02/jre/lib/i386/native_threads 
-L/opt/blackdow 
n-jdk-1.4.2.02/jre/lib/i386 ext/java/java.lo 
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld: 
warni 
ng: creating a DT_TEXTREL in object. 
/bin/sh /var/tmp/portage/mod_php-4.4.0-r1/work/php-4.4.0/libtool --silent 
--pres 
erve-dup-deps --mode=install cp 
ext/java/java.la /var/tmp/portage/mod_php-4.4.0- 
r1/work/php-4.4.0/modules 
PATH="$PATH:/sbin" ldconfig 
-n /var/tmp/portage/mod_php-4.4.0-r1/work/php-4.4.0/ 
modules 
---------------------------------------------------------------------- 
Libraries have been installed in: 
   /var/tmp/portage/mod_php-4.4.0-r1/work/php-4.4.0/modules 
 
If you ever happen to want to link against installed libraries 
in a given directory, LIBDIR, you must either use libtool, and 
specify the full pathname of the library, or use the `-LLIBDIR' 
flag during linking and do at least one of the following: 
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable 
     during execution 
   - add LIBDIR to the `LD_RUN_PATH' environment variable 
     during linking 
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag 
   - have your system administrator add LIBDIR to `/etc/ld.so.conf' 
 
See any operating system documentation about shared libraries for 
more information, such as the ld(1) and ld.so(8) manual pages. 
---------------------------------------------------------------------- 
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld: 
warni 
ng: creating a DT_TEXTREL in object. 
 
Build complete. 
(It is safe to ignore warnings about tempnam and tmpnam). 
 
--------------------------- ACCESS VIOLATION SUMMARY 
--------------------------- 
LOG FILE = "/var/log/sandbox/sandbox-dev-php_-_mod_php-4.4.0-r1-12084.log" 
 
symlink:   /usr/lib/libc-client.a (symlink to /usr/lib/c-client.a) 
-------------------------------------------------------------------------------- 
 
 
 
 
The log file says: 
symlink:   /usr/lib/libc-client.a (symlink to /usr/lib/c-client.a) 
 
 
 
Emerge info says: 
 
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 
2.6.13-gentoo i686) 
================================================================= 
System uname: 2.6.13-gentoo i686 Intel(R) Pentium(R) 4 CPU 2.40GHz 
Gentoo Base System version 1.12.0_pre8 
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled] 
dev-lang/python:     2.4.1-r1 
sys-apps/sandbox:    1.2.11 
sys-devel/autoconf:  2.13, 2.59-r7 
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 
sys-devel/binutils:  2.16.1 
sys-devel/libtool:   1.5.20 
virtual/os-headers:  2.6.11-r2 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CBUILD="i686-pc-linux-gnu" 
CFLAGS="-O3 -march=pentium4 -pipe" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/bind /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d" 
CXXFLAGS="-O3 -march=pentium4 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoconfig distlocks sandbox sfperms strict" 
GENTOO_MIRRORS="http://ftp.gentoo.or.kr/ http://gentoo.netnitco.net 
ftp://ftp.ecc.u-tokyo.ac.jp/GENTOO http://gentoo.gg3.net/ 
http://mirror.gentoo.gr.jp" 
LC_ALL="it_IT.UTF-8" 
LINGUAS="it" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="x86 X aalib alsa apache2 apm arts avi bash-completion berkdb bitmap-fonts 
bonobo cdr crypt cups curl dga directfb doc dvd eds emacs emboss encode fam 
fbcon flac foomaticdb fortran gd gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml 
guile imagemagick imap imlib ipv6 jack java jpeg junit kde ldap libg++ libwww 
mad maildir mbox mikmod mmx motif mp3 mpeg mysql nas ncurses nls nptl odbc ogg 
oggvorbis opengl oss pam pcmcia pdflib perl png python qt quicktime readline 
samba sasl sdl slang speex spell sse sse2 ssl svga tcltk tcpd tetex tiff 
truetype truetype-fonts type1-fonts unicode vorbis xine xml xml2 xmms xv zlib 
video_cards_i915 linguas_it userland_GNU kernel_linux elibc_glibc" 
Unset:  ASFLAGS, CTARGET, LANG, LDFLAGS
Comment 1 Luca Longinotti (RETIRED) gentoo-dev 2005-09-09 09:27:47 UTC
This is known and is fixed in the new PHP packages, please use them.
dev-lang/php-4.4.0 with USE flag "apache2" is probably what you search, please
check http://svn.gnqs.org/projects/gentoo-php-overlay/ and the upgrade docs [1]
on how-to upgrade to the new PHP packages.

[1]
http://svn.gnqs.org/projects/gentoo-php-overlay/file/docs/php-upgrading.html?rev=175&format=raw
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-09-09 09:34:28 UTC
Fixed in dev-lang/php-4.4.0, closing.
Comment 3 Alin Dobre (RETIRED) gentoo-dev 2005-09-14 07:23:23 UTC
the error persists, here. mod_php-4.4.0-r1. synced portage today:

foo / # emerge --info
Portage 2.0.52-r1 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r1,
2.6.13-gentoo i686)
=================================================================
System uname: 2.6.13-gentoo i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.12.0_pre8
ccache version 2.4 [disabled]
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.roedu.net/pub/mirrors/gentoo.org
ftp://ftp.lug.ro/gentoo ftp://ftp.linux.ro/pub/linux/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/opt/axigen/portage-axigen"
SYNC="rsync://rsync.ro.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts avi berkdb bitmap-fonts bonobo cdr crypt cups curl eds
emboss encode esd fam flac foomaticdb fortran gcj gdbm gif gnome gpm gstreamer
gtk gtk2 imagemagick imlib ipv6 java jpeg junit libg++ libwww mad mikmod motif
mozilla mp3 mpeg mysql ncurses nls nptl ntplonly ogg oggvorbis opengl oss pam
pdflib perl png postgres python quicktime readline samba sdl spell sqlite ssl
svga tcltk tcpd tiff truetype truetype-fonts type1-fonts vorbis xine xml xml2
xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

foo / # emerge mod_php -v
...
/bin/sh /var/tmp/portage/mod_php-4.4.0-r1/work/php-4.4.0/libtool --silent
--preserve-dup-deps --mode=link gcc -DPHP_ATOM_INC
-I/var/tmp/portage/mod_php-4.4.0-r1/work/php-4.4.0/include
-I/var/tmp/portage/mod_php-4.4.0-r1/work/php-4.4.0/main
-I/var/tmp/portage/mod_php-4.4.0-r1/work/php-4.4.0 -I/usr/include/libxml2
-I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/imap
-I/var/tmp/portage/mod_php-4.4.0-r1/work/php-4.4.0/ext/mbstring/mbregex
-I/var/tmp/portage/mod_php-4.4.0-r1/work/php-4.4.0/ext/mbstring/libmbfl
-I/var/tmp/portage/mod_php-4.4.0-r1/work/php-4.4.0/ext/mbstring/libmbfl/mbfl
-I/usr/include/mysql -I/usr/include/pspell
-I/var/tmp/portage/mod_php-4.4.0-r1/work/php-4.4.0/ext/xml/expat
-I/var/tmp/portage/mod_php-4.4.0-r1/work/php-4.4.0/TSRM
-I/var/tmp/portage/mod_php-4.4.0-r1/work/php-4.4.0/Zend  -D_REENTRANT 
-march=pentium4 -O3 -pipe -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500
-D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -pthread -DZTS   -o ext/java/java.la
-export-dynamic -avoid-version -prefer-pic -module -rpath
/var/tmp/portage/mod_php-4.4.0-r1/work/php-4.4.0/modules -export-symbols
/var/tmp/portage/mod_php-4.4.0-r1/work/php-4.4.0/sapi/apache2handler/php.sym
-avoid-version -module -L/usr/X11R6/lib
-L/opt/blackdown-jdk-1.4.2.02/jre/lib/i386/server
-L/opt/blackdown-jdk-1.4.2.02/jre/lib/i386/native_threads
-L/opt/blackdown-jdk-1.4.2.02/jre/lib/i386 ext/java/java.lo
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../../i686-pc-linux-gnu/bin/ld:
warning: creating a DT_TEXTREL in object.
/bin/sh /var/tmp/portage/mod_php-4.4.0-r1/work/php-4.4.0/libtool --silent
--preserve-dup-deps --mode=install cp ext/java/java.la
/var/tmp/portage/mod_php-4.4.0-r1/work/php-4.4.0/modules
PATH="$PATH:/sbin" ldconfig -n
/var/tmp/portage/mod_php-4.4.0-r1/work/php-4.4.0/modules
----------------------------------------------------------------------
Libraries have been installed in:
   /var/tmp/portage/mod_php-4.4.0-r1/work/php-4.4.0/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../../i686-pc-linux-gnu/bin/ld:
warning: creating a DT_TEXTREL in object.

Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-dev-php_-_mod_php-4.4.0-r1-18665.log"

symlink:   /usr/lib/libc-client.a (symlink to /usr/lib/c-client.a)
--------------------------------------------------------------------------------
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-09-14 07:29:24 UTC
(In reply to comment #2)
> Fixed in dev-lang/php-4.4.0, closing.

^^^ Not mod_php, and no plans to fix that one. Closing WONTFIX if that's more
appropriate. Please, use dev-lang/php.

Comment 5 Alin Dobre (RETIRED) gentoo-dev 2005-09-14 07:36:19 UTC
ooooh, now i get it. dev-lang/php includes mod_php if appropiate USE flags are set.
ok, thanks for the explaination.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2005-09-14 07:40:42 UTC
(In reply to comment #5)
> ooooh, now i get it. dev-lang/php includes mod_php if appropiate USE flags are
set.
> ok, thanks for the explaination.

Yeah... :) Upgrading guide available here:
http://svn.gnqs.org/projects/gentoo-php-overlay/file/docs/php-upgrading.html?format=raw
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2005-09-18 02:50:19 UTC
*** Bug 106333 has been marked as a duplicate of this bug. ***
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2005-09-18 03:22:40 UTC
Seems like we could get the fix in w/ security bump for Bug 102373, so I'll
reopen this, should be in portage shortly.
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2005-09-18 07:42:24 UTC
*** Bug 106365 has been marked as a duplicate of this bug. ***
Comment 10 Luca Longinotti (RETIRED) gentoo-dev 2005-09-18 15:19:51 UTC
Fix for this is in Portage, along with the security fix, please emerge sync and
then reemerge the newest version of PHP, thanks.
Best regards, CHTEKK.

@jakub: please close this one, thanks.
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2005-09-18 16:08:08 UTC
In CVS, closing.