php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37956 Failure on make install-pear (Illegal Operation)
Submitted: 2006-06-29 04:46 UTC Modified: 2006-07-07 01:00 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: nikolai dot lusan at hitwise dot com Assigned:
Status: No Feedback Package: *Compile Issues
PHP Version: 5.1.4 OS: GNU/Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: nikolai dot lusan at hitwise dot com
New email:
PHP Version: OS:

 

 [2006-06-29 04:46 UTC] nikolai dot lusan at hitwise dot com
Description:
------------
Post compile installation of pear fails during "make install-pear" while executing the "install-pear-nozlib.phar" script in the "install-pear-installer" section of the Makefile. Similar to [now marked bogus] <a href="http://bugs.php.net/bug.php?id=37803">bug #37803</a>.

I have tried using the binary that is being run to execute a few test scripts (in case I screwed the build proccess) and it excutes them with no problems at all, it just seems to dislike the pear installer.

Reproduce code:
---------------
Configure:
" ../configure \
  --prefix=/usr --enable-force-cgi-redirect --enable-fastcgi \
  --with-config-file-path=/etc/php5/cgi --enable-debug \
  --disable-static --enable-memory-limit --enable-inline-optimization --enable-sysvsem \
  --enable-sysvshm --enable-sysvmsg --enable-track-vars --enable-trans-sid \
  --enable-ftp --enable-pdo --enable-shmop --enable-soap \
  --enable-simplexml --enable-yp --with-curl --with-cdb \
  --with-gd \
    --enable-gd-native-ttf --with-jpeg-dir --with-xpm-dir --with-png-dir --with-freetype-dir \
  --with-regex=system --with-layout=GNU --with-pear=/usr/share/php --with-libxml-dir=/usr \
  --with-dom=/usr --with-xsl=/usr --with-sqlite --with-xml-reader --with-xmlrpc \
  --with-zlib --with-pgsql --with-pdo-pgsql --with-openssl=/usr \
  --with-mime-magic=/usr/share/misc/file/magic.mime --with-exec-dir=/usr/lib/php5/libexec --with-kerberos \ --without-mysql --without-sybase \
  --without-sybase-ct --without-mm --without-tlib


Compile:

make


Install (installing to a temporary directory for packagin reasons):

make install-pear PHP_PEAR_PHP_BIN=php5 PHP_PEAR_INSTALL_DIR=/usr/share/php PHP_PEAR_SYSCONF_DIR=/etc/pear INSTALL_ROOT=/path/to/temp/installdir

Expected result:
----------------
Installing PEAR environment:      /path/to/temp/installdir/usr/share/php/
make[2]: Entering directory `/path/to/builddir'
make[2]: *** [install-pear-installer] Illegal instruction
make[2]: Leaving directory `/path/to/builddir'
make[1]: *** [install-pear] Error 2
make[1]: Leaving directory `/path/to/builddir'
make: *** [install] Error 2


Actual result:
--------------
Backtrace from core dump:

#0  div_function (result=0xaf96a908, op1=0x895e1fc, op2=0x200) at /usr/src/hitwise-packaging/php/php5/5.1.4/php-5.1.4/Zend/zend_operators.c:874
874                             result->value.dval = ((double) op1->value.lval) / op2->value.lval;

(gdb) bt
#0  div_function (result=0xaf96a908, op1=0x895e1fc, op2=0x200) at /usr/src/hitwise-packaging/php/php5/5.1.4/php-5.1.4/Zend/zend_operators.c:874
#1  0x08322774 in ZEND_DIV_SPEC_VAR_CONST_HANDLER (execute_data=0xaf96aa80) at zend_vm_execute.h:7924
#2  0x083111b7 in execute (op_array=0x89ea20c) at zend_vm_execute.h:92
#3  0x08311e3e in zend_do_fcall_common_helper_SPEC (execute_data=0xaf96ac30) at zend_vm_execute.h:234
#4  0x083111b7 in execute (op_array=0x89a30d0) at zend_vm_execute.h:92
#5  0x08311e3e in zend_do_fcall_common_helper_SPEC (execute_data=0xaf96b3f0) at zend_vm_execute.h:234
#6  0x083111b7 in execute (op_array=0x889d514) at zend_vm_execute.h:92
#7  0x08311e3e in zend_do_fcall_common_helper_SPEC (execute_data=0xaf96b800) at zend_vm_execute.h:234
#8  0x083111b7 in execute (op_array=0x88a4d48) at zend_vm_execute.h:92
#9  0x08311e3e in zend_do_fcall_common_helper_SPEC (execute_data=0xaf96d2a0) at zend_vm_execute.h:234
#10 0x083111b7 in execute (op_array=0x85ad204) at zend_vm_execute.h:92
#11 0x08315814 in ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER (execute_data=0xaf96d620) at zend_vm_execute.h:1971
#12 0x083111b7 in execute (op_array=0x858c888) at zend_vm_execute.h:92
#13 0x082f237e in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/src/hitwise-packaging/php/php5/5.1.4/php-5.1.4/Zend/zend.c:1109
#14 0x082adfee in php_execute_script (primary_file=0xaf96fac0) at /usr/src/hitwise-packaging/php/php5/5.1.4/php-5.1.4/main/main.c:1732
#15 0x08360875 in main (argc=12, argv=0xaf96fb94) at /usr/src/hitwise-packaging/php/php5/5.1.4/php-5.1.4/sapi/cli/php_cli.c:1092

(gdb) frame 2
#2  0x083111b7 in execute (op_array=0x89ea20c) at zend_vm_execute.h:92
92                      if (EX(opline)->handler(&execute_data TSRMLS_CC) > 0) {


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-29 07:58 UTC] tony2001@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip


 [2006-07-07 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Dec 07 06:03:35 2021 UTC