Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65321 - php-5.0.2 install problem
Summary: php-5.0.2 install problem
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-25 08:14 UTC by Patrizio Bassi
Modified: 2005-01-13 04:58 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 Patrizio Bassi 2004-09-25 08:14:13 UTC
no problem during compilation...
i tried twice, same error

>>> Test phase [not enabled]: dev-php/php-5.0.2

>>> Install php-5.0.2 into /var/tmp/portage/php-5.0.2/image/ category dev-php
Installing PHP SAPI module:       embed
Installing PHP CLI binary:        /var/tmp/portage/php-5.0.2/image//usr/bin/
Installing PHP CLI man page:      /var/tmp/portage/php-5.0.2/image//usr/share/man/man1/
Installing PEAR environment:      /var/tmp/portage/php-5.0.2/image//usr/lib/php/
[PEAR] Archive_Tar    - installed: 1.1
[PEAR] Console_Getopt - installed: 1.2
[PEAR] PEAR           - installed: 1.3.2
Wrote PEAR system config file at: /var/tmp/portage/php-5.0.2/image///etc/pear.conf
You may want to add: /usr/lib/php to your php.ini include_path
make[1]: *** [install-pear-installer] Segmentation fault
make: *** [install-pear] Error 2

!!! ERROR: dev-php/php-5.0.2 failed.
!!! Function php5-sapi_src_install, Line 439, Exitcode 2
!!! install failed
!!! If you need support, post the topmost build error, NOT this status message.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-09-26 21:41:02 UTC
please post your 'emerge info' output
Comment 2 Patrizio Bassi 2004-09-26 23:53:57 UTC
same problem with kernel 2.6.9rc1 and rc2.
and -sandbox

emerge info
Portage 2.0.51_rc1 (default-x86-1.4, gcc-3.4.2, glibc-2.3.4.20040808-r0, 2.6.9-rc2-bk12 i686)
=================================================================
System uname: 2.6.9-rc2-bk12 i686 Pentium II (Deschutes)
Gentoo Base System version 1.5.3
distcc 2.17 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.3-r1,sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -mtune=pentium2 -march=pentium2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /opt/openjms/config /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/fenris /etc/gconf /etc/mail/dspam /etc/mail/dspam/config /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -mtune=pentium2 -march=pentium2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.tiscali.nl/gentoo/ http://ftp.iasi.roedu.net/mirrors/gentoo.org/ http://sunsite.cnlab-switch.ch/mirror/gentoo/ http://gentoo.math.bme.hu"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X Xaw3d aalib acl acpi adns alsa apache2 apm arts audiofile avi berkdb bidi bitmap-fonts bonobo caps cdparanoia cdr crypt cups curl directfb dvd encode esd ethereal faad fam fbcon fdftk flac flash foomaticdb freetds gd gdbm ggi gif gnome gphoto2 gpm gtk gtk2 gtkhtml guile imagemagick imlib innodb java joystick jpeg kde kerberos ldap libcaca libg++ libgda libusb libwww lzo mad matroska mikmod mmx motif mozilla mpeg mysql nas ncurses nls nntp odbc oggvorbis opengl oss pam pda pdflib perl pngpostgres ppds python qt quicktime readline ruby samba scanner sdl slang slp snortsam spell ssl svg svga tcltk tcpd tetex theora tiff truetype usb x86 xinerama xml xml2 xmms xprint xv xvid zlib linguas_it"
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-09-27 00:48:04 UTC
CFLAGS="-g" emerge php
then when it fails again, go into the directory where it was
and manually try to reproduce it, then use gdb to trace the problem.
Comment 4 Patrizio Bassi 2004-09-27 02:59:19 UTC
sorry i can't recompile with debug now, but!
after tweaking the makefile i saw the proble is with "php" binary

i'll try with gcc 3.3.x to see if something change.

make install
Installing PHP SAPI module:       embed
Installing PHP CLI binary:        /usr/bin/
Installing PHP CLI man page:      /usr/share/man/man1/
Installing PEAR environment:      /usr/lib/php/
GNU gdb 6.2.1
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /mnt/Dati/Gentoo/tmp/portage/php-5.0.2/work/php-5.0.2/sapi/cli/php -n -dshort_open_tag=0 -dsafe_mode=0 /var/tmp/portage/php-5.0.2/work/php-5.0.2/pear/install-pear.php -d /usr/lib/php -b /usr/bin /var/tmp/portage/php-5.0.2/work/php-5.0.2/pear/package-Archive_Tar.xml /var/tmp/portage/php-5.0.2/work/php-5.0.2/pear/package-Console_Getopt.xml /var/tmp/portage/php-5.0.2/work/php-5.0.2/pear/package-PEAR.xml
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 16467)]
[PEAR] Archive_Tar    - already installed: 1.1
[PEAR] Console_Getopt - already installed: 1.2
[PEAR] PEAR           - already installed: 1.3.2
Wrote PEAR system config file at: /etc/pear.conf
You may want to add: /usr/lib/php to your php.ini include_path

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 16467)]
0x4023edc9 in __gnu_cxx::__exchange_and_add () from /usr/lib/gcc/i686-pc-linux-gnu/3.4.2/libstdc++.so.6
(gdb) bt full
#0  0x4023edc9 in __gnu_cxx::__exchange_and_add () from /usr/lib/gcc/i686-pc-linux-gnu/3.4.2/libstdc++.so.6
No symbol table info available.
#1  0x401e0e9d in std::locale::~locale () from /usr/lib/gcc/i686-pc-linux-gnu/3.4.2/libstdc++.so.6
No symbol table info available.
#2  0x4076a3da in ~stdio_filebuf (this=0x407d8710)
    at /user/cwang/gnu/gcc-3.2/linux7.2/i686-pc-linux-gnu/libstdc++-v3/include/streambuf:246
No locals.
#3  0x40748bf2 in std::ios_base::Init::_S_ios_destroy () at ../../../../libstdc++-v3/src/ios.cc:188
No locals.
#4  0x40c793dc in std::ios_base::width () from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.so.5
No symbol table info available.
#5  0x40b1d662 in __cxa_finalize () from /lib/libc.so.6
No symbol table info available.
#6  0x40c67e40 in ?? () from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.so.5
No symbol table info available.
#7  0x40ce8da0 in ?? () from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.so.5
No symbol table info available.
#8  0x40ce7d38 in ?? () from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.so.5
No symbol table info available.
#9  0xbfffe5c8 in ?? ()
No symbol table info available.
#10 0x40ccf3a7 in ?? () from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.so.5
No symbol table info available.
#11 0x407e2000 in ?? ()
No symbol table info available.
#12 0x40019354 in ?? () from /lib/ld-linux.so.2
No symbol table info available.
#13 0xbfffe6e8 in ?? ()
No symbol table info available.
#14 0x4000e781 in _dl_rtld_di_serinfo () from /lib/ld-linux.so.2
No symbol table info available.
Previous frame inner to this frame (corrupt stack?)
Comment 5 Patrizio Bassi 2004-09-27 04:42:26 UTC
same problem with gcc 3.3.4
Comment 6 Patrizio Bassi 2004-09-27 08:16:08 UTC
i changed CFLAGS to -O2...nothing...


similar bug:
http://bugs.php.net/bug.php?id=28365
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-09-27 14:24:44 UTC
Try
USE="-berkdb" emerge php
USE="-berkdb" ebuild /usr/portage/dev-php/mod_php/mod_php-5.0.2.ebuild package

The mod_php one is there as it does --without-pear as suggested by the upstream bug.
Comment 8 Patrizio Bassi 2004-09-28 04:12:27 UTC
just the same error.

:(((((
Comment 9 Howard B. Golden 2004-12-18 18:54:32 UTC
I'm getting the same problems and error messages using php-5.0.3 and gcc (GCC) 3.4.3 20041125 (Gentoo Linux 3.4.3-r1, ssp-3.4.3-0, pie-8.7.7)

>>> Test phase [not enabled]: dev-php/php-5.0.3

>>> Install php-5.0.3 into /var/tmp/portage/php-5.0.3/image/ category dev-php
Installing PHP SAPI module:       embed
Installing PHP CLI binary:        /var/tmp/portage/php-5.0.3/image//usr/bin/
Installing PHP CLI man page:      /var/tmp/portage/php-5.0.3/image//usr/share/man/man1/
Installing PEAR environment:      /var/tmp/portage/php-5.0.3/image//usr/lib/php/
[PEAR] Archive_Tar    - installed: 1.1
[PEAR] Console_Getopt - installed: 1.2
[PEAR] PEAR           - installed: 1.3.3
Wrote PEAR system config file at: /var/tmp/portage/php-5.0.3/image///etc/pear.conf
You may want to add: /usr/lib/php to your php.ini include_path
make[1]: *** [install-pear-installer] Segmentation fault
make: *** [install-pear] Error 2

Portage 2.0.51-r8 (default-linux/x86/2004.2, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r4 i686)
=================================================================
System uname: 2.6.9-gentoo-r4 i686 AMD Athlon(tm) XP 2200+
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.1.3-r1,dev-lang/python-2.2.3-r5,dev-lang/python-2.3.4[2.3.4 (#1, Jul 30 2004, 15:19:44)]
ccache version 2.3 [enabled]
dev-lang/python:     2.1.3-r1, 2.2.3-r5, 2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.3
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe -fstack-protector"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/fax /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/alias /var/qmail/control /var/spool/fax/etc /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fstack-protector"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.binarycompass.org ftp://gentoo.ccccom.com http://128.213.5.34/gentoo/ http://gentoo.seren.com/gentoo http://gentoo.ccccom.com"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex X Xaw3d acl acpi acpi4linux alsa amd antlr apache2 apm ared aredmem arts artswrappersuid artworkextra avi b bcmath berkdb bitmap-fonts bonobo bzlib calendar caps cdb cdr chroot clamav cln crypt ctype cups curl curlwrappers dba dbase dbx dio directfb dnd doc droproot dv dvd dvdr emacs encode erandom esd ethereal evo exif expat f77 fam fastcgi fbcon fdftk flac flatfile foomaticdb foreign-package foreign-sysvinit fortran freetds ftp gb gcj gcl gd gd-external gdbm gif ginac glep gmp gnome gnomedb gnuplot gpm graphviz gstreamer gtk gtk2 gtkhtml guile iconv idea idl imagemagick imap imlib inifile innodb insecure-drivers ipv6 jabber jack java javamail jce jdepend jpeg jsch junit jython kde kerberos latex ldap leim lesstiflibclamav libg++ libgda libwww lids live log4j ltsp lua lzw-tiff mad maildir mailwrapper matroska mbox mcal mdb memlimit mha mikmod mime ming mmap mmx motif mozilla moznoirc moznomail mpeg mysql nas native ncurses nls nptl nptlonly oav objc ocaml odbc ofx oggvorbis ooo-kde opengl opens oss pam parse-clocks pcntl pcre pda pdflib pear-db perl pg-hier php pic pie plotutils png posix postgres postgresql ppds python qt quicktime radeon readline ruby ruby18 samba sasl sdk sdl session simplexml skey slang slp snmp soap sockets speex spell spl sqlite sse ssl svga tcltk tcpd tetex theora tidy tiff tokenizer truetype type1 unicode usb utf8 wddx wmf wxwin wxwindows x86 xalan xemacs xerces xine xml xml2 xmlrpc xmms xpm xv yahoo yv12 zeo zlib video_cards_radeon"
Comment 10 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-12-18 19:35:52 UTC
ok, lets get back to tracing this down.

Please see bug #74414, comment #9 for instructions on getting full straces and backtraces. change the PV variable to version 5.0.3. 

for getting the backtraces, run the commands without strace, and then apply gdb to the php binary and the coredump.
Comment 11 Patrizio Bassi 2005-01-13 04:58:16 UTC
upgrading to 5.0.3_rc1 and 5.0.3 too it works.

looking on google seems a very strange bug...seems pretty random
even in 4.x versions.

however 5.0.3 fixed the problem for me, so i think bug can be closed.