Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42467 - dev-php/php-4.3.4-r4 segfaults in make target 'install-pear-installer'
Summary: dev-php/php-4.3.4-r4 segfaults in make target 'install-pear-installer'
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-22 04:49 UTC by Ulrich Rhein
Modified: 2004-02-23 05:33 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 Ulrich Rhein 2004-02-22 04:49:25 UTC
dev-php/php-4.3.4-r4 segfaults in make target 'install-pear-installer'. 

Reproducible: Always
Steps to Reproduce:
1. USE="-java" emerge mod_php (or emerge php)

Actual Results:  
[...]

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


>>> Install php-4.3.4-r4 into /var/tmp/portage/php-4.3.4-r4/image/ category dev-php
Installing shared extensions:    
/var/tmp/portage/php-4.3.4-r4/image//usr/lib/php/extensions/no-debug-non-zts-20020429/
Installing helper programs:       /var/tmp/portage/php-4.3.4-r4/image//usr/bin/
  program: phpize
  program: php-config
  program: phpextdist
make: `install-modules' is up to date.
make: `install-programs' is up to date.
make: `install-modules' is up to date.
make: `install-programs' is up to date.
make: `install-modules' is up to date.
make: `install-programs' is up to date.
Installing PHP CLI binary:        /var/tmp/portage/php-4.3.4-r4/image//usr/bin/
Installing PHP CLI man page:     
/var/tmp/portage/php-4.3.4-r4/image//usr/share/man/man1/
make: `install-programs' is up to date.
Installing PEAR environment:      /var/tmp/portage/php-4.3.4-r4/image//usr/lib/php/
make[1]: *** [install-pear-installer] Segmentation fault (core dumped)
make: *** [install-pear] Error 2

!!! ERROR: dev-php/php-4.3.4-r4 failed.
!!! Function php-sapi_src_install, Line 462, Exitcode 2
!!! (no error message)


Expected Results:  
Install itself.

Stack backtrace:
paradigmshift php-4.3.4 # gdb sapi/cli/php core 
GNU gdb 5.3
Copyright 2002 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"...
Core was generated by `/var/tmp/portage/php-4.3.4-r4/work/php-4.3.4/sapi/cli/php
-n -dshort_open_tag=0'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libsandbox.so...done.
Loaded symbols for /lib/libsandbox.so
Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /usr/lib/libsablot.so.0...done.
Loaded symbols for /usr/lib/libsablot.so.0
Reading symbols from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/libstdc++.so.5...done.
Loaded symbols for /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/libstdc++.so.5
Reading symbols from /usr/lib/libexpat.so.0...done.
Loaded symbols for /usr/lib/libexpat.so.0
Reading symbols from /lib/libhistory.so.4...done.
Loaded symbols for /lib/libhistory.so.4
Reading symbols from /lib/libreadline.so.4...done.
Loaded symbols for /lib/libreadline.so.4
Reading symbols from /lib/libncurses.so.5...done.
Loaded symbols for /lib/libncurses.so.5
Reading symbols from /usr/qt/3/lib/libqt-mt.so.3...done.
Loaded symbols for /usr/qt/3/lib/libqt-mt.so.3
Reading symbols from /usr/lib/libpspell.so.15...done.
Loaded symbols for /usr/lib/libpspell.so.15
Reading symbols from /usr/lib/libaspell.so.15...done.
Loaded symbols for /usr/lib/libaspell.so.15
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/libgcc_s.so.1...done.
Loaded symbols for /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/libgcc_s.so.1
Reading symbols from /usr/lib/libpdf.so.2...done.
Loaded symbols for /usr/lib/libpdf.so.2
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /usr/lib/libtiff.so.3...done.
Loaded symbols for /usr/lib/libtiff.so.3
Reading symbols from /usr/lib/libpng.so.3...done.
Loaded symbols for /usr/lib/libpng.so.3
Reading symbols from /usr/lib/libjpeg.so.62...done.
Loaded symbols for /usr/lib/libjpeg.so.62
Reading symbols from /usr/lib/libpanel.so.5...done.
Loaded symbols for /usr/lib/libpanel.so.5
Reading symbols from /usr/lib/libmysqlclient.so.12...done.
Loaded symbols for /usr/lib/libmysqlclient.so.12
Reading symbols from /usr/lib/libmhash.so.2...done.
Loaded symbols for /usr/lib/libmhash.so.2
Reading symbols from /usr/lib/libmcrypt.so.4...done.
Loaded symbols for /usr/lib/libmcrypt.so.4
Reading symbols from /usr/lib/libltdl.so.3...done.
Loaded symbols for /usr/lib/libltdl.so.3
Reading symbols from /usr/lib/libexslt.so.0...done.
Loaded symbols for /usr/lib/libexslt.so.0
Reading symbols from /usr/lib/libxslt.so.1...done.
Loaded symbols for /usr/lib/libxslt.so.1
Reading symbols from /usr/lib/libdb-4.0.so...done.
Loaded symbols for /usr/lib/libdb-4.0.so
Reading symbols from /usr/lib/libdb.so.2...done.
Loaded symbols for /usr/lib/libdb.so.2
Reading symbols from /usr/lib/libgdbm.so.2...done.
Loaded symbols for /usr/lib/libgdbm.so.2
Reading symbols from /usr/lib/libcrack.so.2...done.
Loaded symbols for /usr/lib/libcrack.so.2
Reading symbols from /usr/lib/libbz2.so.1.0...done.
Loaded symbols for /usr/lib/libbz2.so.1.0
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /usr/lib/libxmlparse.so.0...done.
Loaded symbols for /usr/lib/libxmlparse.so.0
Reading symbols from /usr/lib/libxmltok.so.0...done.
Loaded symbols for /usr/lib/libxmltok.so.0
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /usr/lib/libssl.so.0.9.6...done.
Loaded symbols for /usr/lib/libssl.so.0.9.6
Reading symbols from /usr/lib/libcrypto.so.0.9.6...done.
Loaded symbols for /usr/lib/libcrypto.so.0.9.6
Reading symbols from /usr/lib/libxml2.so.2...done.
Loaded symbols for /usr/lib/libxml2.so.2
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /usr/lib/libmng.so.1...done.
Loaded symbols for /usr/lib/libmng.so.1
Reading symbols from /usr/lib/libGL.so.1...done.
Loaded symbols for /usr/lib/libGL.so.1
Reading symbols from /usr/X11R6/lib/libXmu.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXmu.so.6
Reading symbols from /usr/X11R6/lib/libSM.so.6...done.
Loaded symbols for /usr/X11R6/lib/libSM.so.6
Reading symbols from /usr/X11R6/lib/libICE.so.6...done.
Loaded symbols for /usr/X11R6/lib/libICE.so.6
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXext.so.6
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Loaded symbols for /usr/X11R6/lib/libX11.so.6
Reading symbols from /usr/X11R6/lib/libXrender.so.1...done.
Loaded symbols for /usr/X11R6/lib/libXrender.so.1
Reading symbols from /usr/X11R6/lib/libXft.so.1...done.
Loaded symbols for /usr/X11R6/lib/libXft.so.1
Reading symbols from /usr/lib/libfreetype.so.6...done.
Loaded symbols for /usr/lib/libfreetype.so.6
Reading symbols from /usr/X11R6/lib/libXi.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXi.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/libGLcore.so.1...done.
Loaded symbols for /usr/lib/libGLcore.so.1
Reading symbols from /usr/X11R6/lib/libXt.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXt.so.6
Reading symbols from /usr/lib/libfontconfig.so.1...done.
Loaded symbols for /usr/lib/libfontconfig.so.1
#0  0x40dfa2ec in _dlerror_run () from /lib/libdl.so.2
(gdb) bt
#0  0x40dfa2ec in _dlerror_run () from /lib/libdl.so.2
#1  0x40dfa044 in dlsym () from /lib/libdl.so.2
#2  0x40015485 in init_wrappers () from /lib/libsandbox.so
#3  0x40017afa in check_syscall () from /lib/libsandbox.so
#4  0x400181b7 in before_syscall () from /lib/libsandbox.so
#5  0x4001829d in before_syscall_open_int () from /lib/libsandbox.so
#6  0x400160c8 in open () from /lib/libsandbox.so
#7  0x40aab479 in __guard_setup () at
/var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc/libgcc2.c:2081
#8  0x40aafa65 in __do_global_ctors_aux () from
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/libgcc_s.so.1
#9  0x40aaa485 in _init () from
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/libgcc_s.so.1
#10 0x4000ad8c in call_init () from /lib/ld-linux.so.2
#11 0x4000ae84 in _dl_init_internal () from /lib/ld-linux.so.2

emerge info:
Portage 2.0.50 (default-x86-1.4, gcc-3.2.3, glibc-2.3.1-r2, 2.6.3)
=================================================================
System uname: 2.6.3 i686 AMD Duron(tm) Processor
Gentoo Base System version 1.4.3.12
Autoconf: sys-devel/autoconf-2.58
Automake: sys-devel/automake-1.7.5-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon -O2 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=athlon -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo
http://gentoo.linux.no http://www.ibiblio.org/pub/Linux/distributions/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb crypt cups encode esd foomaticdb gdbm gif gpm
gtk gtk2 imlib ipv6 java jpeg kde libg++ libwww mad mikmod motif mozilla mpeg
mysql ncurses nls oggvorbis opengl oss pam pdflib perl png qt quicktime readline
sdl slang spell ssl svga tcltk tetex truetype x86 xml2 xmms xv zlib"

gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r2, propolice)
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-02-22 06:26:38 UTC
revdep-rebuild, rm /etc/pear.conf
and try it again.
Comment 2 Ulrich Rhein 2004-02-22 09:59:55 UTC
Done that (/etc/pear.conf didn't exist). The problem remains.
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-02-22 16:07:17 UTC
hardended:
i'm wondering if some of the gcc security stuff is responsible:
#7  0x40aab479 in __guard_setup () at
/var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc/libgcc2.c:2081
#8  0x40aafa65 in __do_global_ctors_aux () from
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/libgcc_s.so.1
#9  0x40aaa485 in _init () from
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/libgcc_s.so.1

?
Comment 4 solar (RETIRED) gentoo-dev 2004-02-22 18:25:14 UTC
you have gcc-3.2.3-r2 and you need atleast -r5 to make this bug go away, when you update it probably involve a required update to glibc as well.
Comment 5 Ulrich Rhein 2004-02-23 01:28:20 UTC
A glibc update fixed this bug (a gcc update was not necessary). Thanks for your help, guys.
Comment 6 Tal Peer (RETIRED) gentoo-dev 2004-02-23 05:33:23 UTC
Not a php bug then.