php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31886 make install crashes
Submitted: 2005-02-08 17:04 UTC Modified: 2005-03-02 13:48 UTC
From: pieter dot donche at ua dot ac dot be Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4CVS-2005-02-17 OS: Solaris 2.9
Private report: No CVE-ID: None
 [2005-02-08 17:04 UTC] pieter dot donche at ua dot ac dot be
Description:
------------
Hi, 

I have SUN/Solaris 2.9, gcc 3.4.2, flex version 2.5.4, bison (GNU Bison) 1.75 and am trying to install PHP-4.3.10

# ./configure --with-apache=/home/wins/builds/src/other/apache_1.3.33 --with-gd --with-jpeg-dir=/usr/local --with-pngdir=/usr/local --with-zlib-dir=/usr/local --with-informix=/home/informix2000 --with-ldap=/usr/local --enable-yp
no problems

# make
no problems

# make install
Installing PHP SAPI module:          apache
Installing PHP CLI binary:           /usr/local/bin
Installing PHP CLI man page:         /usr/local/man/man1/
Installing PEAR environment:         /usr/local/lib/php/
Segmentation fault - core dumped

From a previous install of PHP-4.3.3 I remember there was a problem with standard sed (/bin/sed) and was advised to use the sed in /usr/xpg4/bin; So, I did
# PATH=/usr/xpg4/bin; export PATH

and did ./configure, make and make install again. Now
make install gives:
...
Installing PEAR environment:         /usr/local/lib/php/
**** Error code 139
The follozing command caused the error:
/home/wins/builds/src/other/php-4.3.10/sapi/cli/php -n -dshort_open_tag=0 -dsafe_mode=0 /home/wins/builds/src/other/php-4.3.10/pear/install-pear.php -d "/usr/local/lib/php" -b "/usr/local/bin" /home/wins/builds/src/other/php-4.3.10/pear/package-*.xml
make: Fatal error: Command failed for target `install-pear-installer?

How to solve this ?

Thanks in advance for any hints and help,

Pieter



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-17 15:43 UTC] pieter dot donche at ua dot ac dot be
Downlaod and installed GNU sed (/usr/local/bin). Retried. Same errors.
Went so far as to rename Solaris' /usr/bin/sed, 
/usr/ucb/sed and /usr/xpg4/bin/sed to different names so that they never are used. Retried.
Still exactly same errors ...
 [2005-02-28 10:41 UTC] pieter dot donche at ua dot ac dot be
Hi, sorry for the late response - I hadn't received an e-mail message when you posted your comment.

# pwd
/home/wins/builds/src/other/php4-STABLE-200502211130
# ulimit -c unlimited
# ./configure ... (as above, with added  --enable-debug
# make
(OK)
# make install
(the crash this bug report is all about, makes a core file,
745232 bytes)

# gdb /home/apache_1327/bin/httpd ./core
GNU gdb 6.1
...
This GDB was configured as "sparc-sun-solaris2.9"...(no debugging symbols found)...
warning: core file may not match specified executable file.
Core was generated by '/home/wins/builds/src/other/php4-STABLE-200502211130/sapi/cli/php -n dshort_op'.
Program terminated with signal 11, Segmentation fault.
#0 0xff026a00 in ?? ()
(gdb)

Pieter
 [2005-02-28 13:41 UTC] sniper@php.net
Yes, it might create a core file but it definately will NOT be  one created by httpd?! It's created by the PHP CLI binary when it runs the pear installer.


 [2005-02-28 18:23 UTC] pieter dot donche at ua dot ac dot be
gdb /home/wins/builds/src/other/php4-STABLE-200502211130/sapi/cli/php ./core
GNU gdb 6.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 "sparc-sun-solaris2.9"...
Core was generated by `/home/wins/builds/src/other/php4-STABLE-200502211130/sapi/cli/php -n -dshort_op'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /home/informix2000/lib/esql/libifsql.so...done.
Loaded symbols for /home/informix2000/lib/esql/libifsql.so
Reading symbols from /home/informix2000/lib/libifasf.so...done.
Loaded symbols for /home/informix2000/lib/libifasf.so
Reading symbols from /home/informix2000/lib/esql/libifgen.so...done.
Loaded symbols for /home/informix2000/lib/esql/libifgen.so
Reading symbols from /home/informix2000/lib/esql/libifos.so...done.
Loaded symbols for /home/informix2000/lib/esql/libifos.so
Reading symbols from /home/informix2000/lib/esql/libifgls.so...done.
Loaded symbols for /home/informix2000/lib/esql/libifgls.so
Reading symbols from /usr/lib/libnsl.so.1...done.
Loaded symbols for /usr/lib/libnsl.so.1
Reading symbols from /usr/lib/libsocket.so.1...done.
Loaded symbols for /usr/lib/libsocket.so.1
Reading symbols from /usr/lib/libaio.so.1...done.
Loaded symbols for /usr/lib/libaio.so.1
Reading symbols from /usr/lib/libdl.so.1...done.
Loaded symbols for /usr/lib/libdl.so.1
Reading symbols from /usr/lib/libelf.so.1...done.
Loaded symbols for /usr/lib/libelf.so.1
Reading symbols from /home/informix2000/lib/esql/libifglx.so...done.
Loaded symbols for /home/informix2000/lib/esql/libifglx.so
Reading symbols from /usr/local/lib/libldap.so.2...done.
Loaded symbols for /usr/local/lib/libldap.so.2
Reading symbols from /usr/local/lib/liblber.so.2...done.
Loaded symbols for /usr/local/lib/liblber.so.2
Reading symbols from /usr/lib/libresolv.so.2...done.
Loaded symbols for /usr/lib/libresolv.so.2
Reading symbols from /usr/lib/libm.so.1...done.
Loaded symbols for /usr/lib/libm.so.1
Reading symbols from /usr/lib/libc.so.1...done.
Loaded symbols for /usr/lib/libc.so.1
Reading symbols from /usr/local/lib/libgcc_s.so.1...done.
Loaded symbols for /usr/local/lib/libgcc_s.so.1
Reading symbols from /usr/lib/libmp.so.2...done.
Loaded symbols for /usr/lib/libmp.so.2
Reading symbols from /usr/lib/libgen.so.1...done.
Loaded symbols for /usr/lib/libgen.so.1
Reading symbols from /usr/platform/SUNW,Sun-Blade-1000/lib/libc_psr.so.1...done.
Loaded symbols for /usr/platform/SUNW,Sun-Blade-1000/lib/libc_psr.so.1
#0  0xff026a00 in __register_frame_info_bases (begin=0xfeee0000, 
    ob=0xfeee0000, tbase=0x0, dbase=0x0)
    at /home/wins/builds/src/gnu/gcc-3.4.2/gcc/unwind-dw2-fde.c:89
89        ob->s.b.encoding = DW_EH_PE_omit;
(gdb)
 [2005-02-28 19:38 UTC] sniper@php.net
Looks like same kind of crash has been experienced before, here's one example: 
    http://mail.python.org/pipermail/python-dev/2002-August/027952.html

This is not PHP bug but GCC / binutils bug. 

 [2005-03-02 13:48 UTC] pieter dot donche at ua dot ac dot be
I installed the latest binutils (2.15) and the latest gcc (3.4.3) -- still exactly the same crash at PEAR

# gdb /home/wins/builds/src/other/php4-STABLE-200502211130/sapi/cli/php ./core
also gives the same traceback, ending with:
...
Reading symbols from /usr/lib/libgen.so.1...done.
Loaded symbols for /usr/lib/libgen.so.1
Reading symbols from /usr/platform/SUNW,Sun-Blade-1000/lib/libc_psr.so.1...done.
Loaded symbols for /usr/platform/SUNW,Sun-Blade-1000/lib/libc_psr.so.1
#0  0xff0269d8 in __register_frame_info_bases (begin=0xfeee0000, 
    ob=0xfeee0000, tbase=0x0, dbase=0x0)
    at /home/wins/builds/src/gnu/gcc-3.4.3/gcc/unwind-dw2-fde.c:89
89        ob->s.b.encoding = DW_EH_PE_omit;
(gdb)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 17 19:01:28 2024 UTC