#34894 [Opn->Fbk]: make install-pear-installer segfaults
| From: | tony2001@php.net | Date: | Mon, 17 Oct 2005 15:27:18 +0000 |
| Subject: | #34894 [Opn->Fbk]: make install-pear-installer segfaults | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-86653@lists.php.net to get a copy of this message | ||
ID: 34894
Updated by: tony2001@php.net
Reported By: colin at viebrock dot ca
-Status: Open
+Status: Feedback
Bug Type: CGI related
Operating System: Linux
PHP Version: 5.1.0RC1
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2005-10-17 17:25:36] colin at viebrock dot ca
Description:
------------
make install fails, and it's the install-pear-installer
section that causes it, but it seems to be due to a
segfault in the CLI.
Configure line is:
# ./configure --enable-cli --disable-cgi --prefix=/
home/cmv --enable-track-vars --disable-magic-quotes --
disable-debug --with-mysql=/usr/local --with-gettext --
with-xml --with-xmlrpc --with-dom-xslt --enable-xslt --
with-expat-dir=/usr --with-xslt-sablot --with-dom --
with-curl --with-zlib --with-mcrypt --enable-ftp
Reproduce code:
---------------
just running ./sapi/cli/php causes the segfault.
Actual result:
--------------
cmv@tex:~/sources/php-5.1.0RC1$ gdb sapi/cli/php
GNU gdb 5.3-debian
Copyright 2002 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 "i386-linux"...
(gdb) run -n -dsafe_mode=0 pear/install-pear.php pear/
package-*.xml
Starting program: /usr/local/home/cmv/sources/php
-5.1.0RC1/sapi/cli/php -n -dsafe_mode=0 pear/install-
pear.php pear/package-*.xml
Program received signal SIGSEGV, Segmentation fault.
0x081f2dad in _zend_hash_add_or_update (ht=0x8344ba0,
arKey=0x829378c "sqlite", nKeyLength=6,
pData=0xbffff9c0,
nDataSize=4, pDest=0x0, flag=2) at /home/cmv/
sources/php-5.1.0RC1/Zend/zend_hash.c:213
213 p = ht->arBuckets[nIndex];
(gdb) bt
#0 0x081f2dad in _zend_hash_add_or_update
(ht=0x8344ba0, arKey=0x829378c "sqlite", nKeyLength=6,
pData=0xbffff9c0,
nDataSize=4, pDest=0x0, flag=2) at /home/cmv/
sources/php-5.1.0RC1/Zend/zend_hash.c:213
#1 0x080ce25a in php_pdo_register_driver
(driver=0x8332198) at /home/cmv/sources/php-5.1.0RC1/
ext/pdo/pdo.c:149
#2 0x080d6283 in zm_startup_pdo_sqlite (type=1,
module_number=10)
at /home/cmv/sources/php-5.1.0RC1/ext/pdo_sqlite/
pdo_sqlite.c:80
#3 0x081f0517 in zend_startup_module_ex
(module=0x83826f0) at /home/cmv/sources/php-5.1.0RC1/
Zend/zend_API.c:1280
#4 0x081f3d00 in zend_hash_apply (ht=0x834b480,
apply_func=0x81f0414 <zend_startup_module_ex>)
at /home/cmv/sources/php-5.1.0RC1/Zend/zend_hash.c:
664
#5 0x081f061f in zend_startup_modules () at /home/cmv/
sources/php-5.1.0RC1/Zend/zend_API.c:1327
#6 0x081bcb5a in php_module_startup (sf=0x8343ac0,
additional_modules=0x0, num_additional_modules=0)
at /home/cmv/sources/php-5.1.0RC1/main/main.c:1501
#7 0x0827db7e in main (argc=7, argv=0xbffffca4) at /
home/cmv/sources/php-5.1.0RC1/sapi/cli/php_cli.c:656
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34894&edit=1