php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33342 make install segfaults in php cli
Submitted: 2005-06-14 23:41 UTC Modified: 2005-06-14 23:50 UTC
From: schmeic at yahoo dot com Assigned:
Status: Not a bug Package: *Compile Issues
PHP Version: 5.1.0b1 OS: 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: schmeic at yahoo dot com
New email:
PHP Version: OS:

 

 [2005-06-14 23:41 UTC] schmeic at yahoo dot com
Description:
------------
make install fails because the php cli segfaults.  I'm using Ubuntu Linux, 5.04, kernel 2.6.10-5-386.

Reproduce code:
---------------
A pretty basic configure:
./configure --with-apxs2=/usr/local/apache2/bin/apxs

(No warnings/problems)

then, make install...

Expected result:
----------------
everything should get installed, no problem.

Actual result:
--------------
make install:

Installing PHP SAPI module:       apache2handler
/usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/apache2/build/libtool' libphp5.la /usr/local/apache2/modules
/usr/local/apache2/build/libtool --mode=install cp libphp5.la /usr/local/apache2/modules/
cp .libs/libphp5.so /usr/local/apache2/modules/libphp5.so
cp .libs/libphp5.lai /usr/local/apache2/modules/libphp5.la
libtool: install: warning: remember to run `libtool --finish /usr/local/src/apache/php-5.1.0b1/libs'
chmod 755 /usr/local/apache2/modules/libphp5.so
[activating module `php5' in /usr/local/apache2/conf/httpd.conf]
Installing PHP CLI binary:        /usr/local/bin/
Installing PHP CLI man page:      /usr/local/man/man1/
Installing PEAR environment:      /usr/local/lib/php/
make[1]: *** [install-pear-installer] Segmentation fault (core dumped)
make: *** [install-pear] Error 2

The gdb bt:
gdb sapi/cli/php core

(gdb) bt
#0  zend_hash_merge_ex (target=0x830cee8, source=0x98, pCopyConstructor=0x81daea0 <zval_add_ref>, size=4, pMergeSource=0x81ccf90 <do_inherit_constant_check>,
    pParam=0x0) at /usr/local/src/apache/php-5.1.0b1/Zend/zend_hash.c:818
#1  0x081cd049 in zend_do_implement_interface (ce=0x830ce50, iface=0x0) at /usr/local/src/apache/php-5.1.0b1/Zend/zend_compile.c:2149
#2  0x081e01d9 in zend_class_implements (class_entry=0x830ce50, num_interfaces=2) at /usr/local/src/apache/php-5.1.0b1/Zend/zend_API.c:1665
#3  0x080f9665 in zm_startup_sqlite (type=1, module_number=4) at /usr/local/src/apache/php-5.1.0b1/ext/sqlite/sqlite.c:1028
#4  0x081df168 in zend_register_module_ex (module=0x830a1d8) at /usr/local/src/apache/php-5.1.0b1/Zend/zend_API.c:1246
#5  0x081a4af0 in php_startup_extensions (ptr=0x82c1ccc, count=152) at /usr/local/src/apache/php-5.1.0b1/main/main.c:1298
#6  0x0824dfcb in php_startup_internal_extensions () at main/internal_functions_cli.c:71
#7  0x081a511a in php_module_startup (sf=0x828ce54, additional_modules=0x0, num_additional_modules=152) at /usr/local/src/apache/php-5.1.0b1/main/main.c:1483
#8  0x0824cf3e in main (argc=12, argv=0xbffff4c4) at /usr/local/src/apache/php-5.1.0b1/sapi/cli/php_cli.c:653

Any ideas?

Thanks,
Kevin Schmeichel

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-14 23:50 UTC] tony2001@php.net
Search bug DB before submitting new reports.
See bug #32850.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 16:01:29 2024 UTC