From: schmeic at yahoo dot com
Operating system: Linux
PHP version: 5.1.0b1
PHP Bug Type: *Compile Issues
Bug description: make install segfaults in php cli
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
--
Edit bug report at http://bugs.php.net/?id=33342&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33342&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=33342&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=33342&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33342&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33342&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33342&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33342&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33342&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33342&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33342&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=33342&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=33342&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33342&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33342&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33342&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33342&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33342&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33342&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33342&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33342&r=mysqlcfg