php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66969 make install was failing for pear environment
Submitted: 2014-03-27 13:28 UTC Modified: 2021-03-28 04:22 UTC
Votes:14
Avg. Score:4.2 ± 0.8
Reproduced:13 of 13 (100.0%)
Same Version:3 (23.1%)
Same OS:9 (69.2%)
From: skatta33 at hotmail dot com Assigned: cmb (profile)
Status: No Feedback Package: Unknown/Other Function
PHP Version: 5.5.10 OS: SunOS 5.10 Geeric
Private report: No CVE-ID: None
 [2014-03-27 13:28 UTC] skatta33 at hotmail dot com
Description:
------------
Hi,

I was using gcc 4.8.2 with following config options for to build the php 5.5.10 and make was successfull and make install was failing at PEAR environment.

Here is the os information;

SunOS 5.10 Generic_150400-05 sun4v sparc sun4v

Here is gcc version;
------------------------------------------------------------------
#> gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/gcc4/libexec/gcc/sparc-sun-solaris2.10/4.8.2/lto-wrapper
Target: sparc-sun-solaris2.10
Configured with: ./configure --without-gnu-as --with-as=/usr/ccs/bin/as --without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,fortran,objc --prefix=/usr/local/gcc4 --with-gmp=/usr/local --with-mpfr=/usr/local --with-mpc=/usr/local
Thread model: posix
gcc version 4.8.2 (GCC)
root@hq1-webdmz-s1
-------------------------------------------------------------------

Here is config options;

./configure --with-apxs2=/usr/local/apache/bin/apxs --with-curl=/usr/local/bin --with-openssl

Here is openssl version information;

OpenSSL 1.0.1f-fips 6 Jan 2014

openssl:        ELF 32-bit MSB executable SPARC32PLUS Version 1, V8+ Required, UltraSPARC1 Extensions Required, dynamically linked, not stripped, no debugging information available

Here is curl information;

$curl -V
curl 7.34.0 (sparc-sun-solaris2.10) libcurl/7.34.0 OpenSSL/1.0.1f zlib/1.2.3 libidn/1.28 libssh2/1.4.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP

Here is httpd information;

/usr/local/apache/bin/httpd -v
Server version: Apache/2.2.26 (Unix)
Server built:   Dec 20 2013 18:14:17

--------------------------------------------

Note:Configure was going good and make was done for php-5.5.10 without any problem.

Here is make version information;

$make --version
GNU Make 4.0
Built for sparc-sun-solaris2.10

Here is libtool information;


> ./libtool --version
ltmain.sh (GNU libtool) 1.5.26 (1.1220.2.492 2008/01/30 06:40:56)

Here is ld information;

/usr/ccs/bin/ld -V

ld -V
ld: Software Generation Utilities - Solaris Link Editors: 5.10-1.1518

I was getting following eror message,When I run make install;

---------------------------------------------------------------
Installing PEAR environment:      /usr/local/lib/php/
Makefile:377: recipe for target 'install-pear-installer' failed
make[1]: *** [install-pear-installer] Bus Error (core dumped)
Makefile:380: recipe for target 'install-pear' failed
make: *** [install-pear] Error 2
---------------------------------------------------------------

Note:If I given --without-pear as a configure option,make install was running good.

Please advice me,How I can fix the above make install problem.

Thanks,
Srinivas







Test script:
---------------
Installing PEAR environment:      /usr/local/lib/php/
*** Signal 10 - core dumped
The following command caused the error:
/var/tmp/php-5.5.10/sapi/cli/php -n -dshort_open_tag=0 -dopen_basedir= -derror_reporting=1803 -dmemory_limit=-1 -ddetect_unicode=0 pear/install-pear-nozlib.phar -d "/usr/local/lib/php" -b "/usr/local/bin" -dp a -ds a
make: Fatal error: Command failed for target `install-pear-installer'
Current working directory /var/tmp/php-5.5.10
*** Error code 1
The following command caused the error:
if test -f pear/install-pear-nozlib.phar && /var/tmp/php-5.5.10/build/shtool mkdir -p /usr/local/lib/php; then \
        /usr/ccs/bin/make -s install-pear-installer; \
else \
        cat /var/tmp/php-5.5.10/pear/install-pear.txt; \
fi
make: Fatal error: Command failed for target `install-pear'

Actual result:
--------------
#pstack core_hq1-webdmz-s1_php_0_0_1395918369_6720

pstack core_hq1-webdmz-s1_php_0_0_1395918369_6720
core 'core_hq1-webdmz-s1_php_0_0_1395918369_6720' of 6720:      /var/tmp/php-5.5.10/sapi/cli/php -dshort_open_tag=0 -dopen_basedir= -d
 0007c898 compare_opcodes (a6365d, 0, ffbfdb20, ffbfdb00, a63639, a63638) + 7e0
 000851bc php_pcre_compile2 (b8cc38, 407a90, 0, ffbfed0c, ffbfed10, a63617) + 1790
 0009d1f0 pcre_get_compiled_regex_cache (b8cc38, 2f, febad7ee, 77db2c, 7f9d6c, 0) + 400
 0009e210 php_do_pcre_match.isra.8 (3, c3ace0, 0, 0, 1, 2310) + 60
 00397b44 zend_do_fcall_common_helper_SPEC (3c, fffffff0, 77d488, 788028, 788038, 8fe820) + 6c4
 00301208 execute_ex (788038, 800000, 0, 77d488, ad33d8, 77d488) + 50
 00395c3c zend_execute (7a0328, 3011b8, 784cf0, 784d10, 784c70, 77d488) + 214
 002d8658 zend_execute_scripts (8, 0, 3, 1, 77d488, 77d488) + 128
 002721c8 php_execute_script (0, 79db30, 79db50, 1, 0, 0) + 1b0
 00399b44 do_cli   (0, 780428, 0, 18, a200b0, 1) + 1050
 003a97f0 main     (75d8f4, 0, 0, 57, 781ff8, 0) + 53c
 0002d410 _start   (0, 0, 0, 0, 0, 0) + 5c


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-03-27 20:08 UTC] nekotenshi0 at gmail dot com
This appears to be the same issue as in Bug ID #66934, but this case confirms it's not limited to Sun Studio, and is probably in some way connected to Solaris or the SPARC architecture.

Do you currently have a Solaris 10 AMD64 or Linux SPARC test environment to test this on? I don't, but results would be informative.
 [2014-03-28 07:05 UTC] skatta33 at hotmail dot com
Hi

Thanks for the information.

I can test it on Solaris AMD server and let you know the status soon.

Thanks,
Srinivas
 [2014-03-30 00:19 UTC] skatta33 at hotmail dot com
Hi,

As per your advice,I have tested php 5.5.10 on following Solaris 10 AMD server and make install went well.No problems.

SunOS hqd-unixjmp-s1 5.10 Generic_150401-05 i86pc i386 i86pc

Today,I have tested php-5.5.7 again on solaris 10 sparc zone server and make install went well.

make install was failing for php 5.5.10 on above solaris 10 sparc zone server for PEAR environment.

Please advice me.

Thanks,
Srinivas
 [2014-03-31 15:04 UTC] nekotenshi0 at gmail dot com
Smells a lot to me like the issue is an interaction between PHP 5.5.10 (probably something in the bundled PCRE, by the backtrace?) and Solaris 10 SPARC. I'd be interested to test it on a non-Solaris UNIX on SPARC, too - I'm looking to set up a Linux or OpenBSD test case machine.
 [2014-03-31 18:36 UTC] skatta33 at hotmail dot com
Hi,

I was getting core dump error,When I use following php cmd on Solaris 10 Sparc server;
--------------------------------------------------------------------------

#/var/tmp/new-project/php-5.5.10/sapi/cli/php -n -dshort_open_tag=0 -dopen_basedir= -derror_reporting=1803 -dmemory_limit=-1 -ddetect_unicode=0 pear/install-pear-nozlib.phar -d "/usr/local/lib/php" -b "/usr/local/bin" -dp a -ds a
Bus Error (core dumped)
-----------------------------------------------------------------------------

Following cmd was running fine on the same above server;

--------------------------------------------------------------------


#/var/tmp/new-project/php-5.5.7/sapi/cli/php -n -dshort_open_tag=0 -dopen_basedir= -derror_reporting=1803 -dmemory_limit=-1 -ddetect_unicode=0 pear/install-pear-nozlib.phar -d "/usr/local/lib/php" -b "/usr/local/bin" -dp a -ds a
-------------------------------------------------------------------

Here is php-5.5.7 binary size;

#> ls -la /var/tmp/new-project/php-5.5.7/sapi/cli/php
-rwx------   1 root     root     24906200 Mar 31 13:59 sapi/cli/php

--------------------------------------------------------------------

Here is php-5.5.10 binary size;
#> ls -la /var/tmp/new-project/php-5.5.10/sapi/cli/php
-rwx------   1 root     root     24944308 Mar 31 14:11 /var/tmp/new-project/php-5.5.10/sapi/cli/php
------------------------------------------------------------------

Please let me know,If You need any information.

Thanks,
Srinivas
 [2014-04-01 14:02 UTC] nekotenshi0 at gmail dot com
I'm testing now to see if 'gmake test' succeeds if I build it using --without-pear. I'm a bit concerned that whatever the PEAR installation bit is having php do makes it crash. Omitting PEAR avoids the crash during installation but does it result in runtime instability?
 [2014-04-01 14:15 UTC] nekotenshi0 at gmail dot com
Using --without-pear, make test still bombs. Can you confirm that this happens when building with gcc as well?
 [2014-04-01 16:10 UTC] skatta33 at hotmail dot com
Hi,

Thanks for the information.

I can test it and let you know the status soon.

Thanks,
Srinivas
 [2014-04-01 17:29 UTC] skatta33 at hotmail dot com
Hi,

I run following configure option without pear for to make php-5.5.10 on sparc solaris 10 server.make went well and i run make test and i saved all the make test information in the file.make install went well.
I sent you attached "make test" saved file through your email-id nekotenshi0@gmail.com.

Please let me know,If You have any questions or concerns.

Thanks,
Srinivas
 [2014-05-01 20:31 UTC] nicek at hotmail dot com
I get the same thing. Here's my info:

> head -1 /etc/release
Oracle Solaris 10 9/10 s10s_u9wos_14a SPARC
> uname -a 
SunOS buildbox 5.10 Generic_147440-19 sun4v sparc SUNW,T5140

php-5.5.11
gcc 4.8.2


> gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/local/build/bin/../libexec/gcc/sparc-sun-solaris2.10/4.8.2/lto-wrapper
Target: sparc-sun-solaris2.10
Configured with: ./configure --prefix=/local/build
Thread model: posix
gcc version 4.8.2 (GCC) 

./configure --prefix=/usr/nist --with-openssl=/usr/nist --with-gd --with-apxs2=/usr/nist/bin/apxs --with-mysql --with-mysqli --with-pdo-mysql
 [2014-05-01 20:33 UTC] nicek at hotmail dot com
I get the same thing. Here's my info:

> head -1 /etc/release
Oracle Solaris 10 9/10 s10s_u9wos_14a SPARC
> uname -a 
SunOS buildbox 5.10 Generic_147440-19 sun4v sparc SUNW,T5140

php-5.5.11
gcc 4.8.2


> gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/local/build/bin/../libexec/gcc/sparc-sun-solaris2.10/4.8.2/lto-wrapper
Target: sparc-sun-solaris2.10
Configured with: ./configure --prefix=/local/build
Thread model: posix
gcc version 4.8.2 (GCC) 

./configure --prefix=/usr/nist --with-openssl=/usr/nist --with-gd --with-apxs2=/usr/nist/bin/apxs --with-mysql --with-mysqli --with-pdo-mysql
 [2014-05-08 14:51 UTC] nekotenshi0 at gmail dot com
Problem is still occurring in 5.5.11. Has anyone tested under Linux or OpenBSD on SPARC?
 [2014-05-29 16:09 UTC] nekotenshi0 at gmail dot com
Fault is due to PCRE bug# 1427, misaligned memory access on SPARC.

https://lists.exim.org/lurker/message/20131231.005837.c62b68a4.en.html
 [2021-03-15 17:50 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-03-15 17:50 UTC] cmb@php.net
Is this still an issue with any of the actively supported PHP
versions[1]?

[1] <https://www.php.net/supported-versions.php>
 [2021-03-28 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC