|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34894 make install-pear-installer segfaults
Submitted: 2005-10-17 17:25 UTC Modified: 2005-10-17 18:26 UTC
From: colin at viebrock dot ca Assigned:
Status: Closed Package: CGI/CLI related
PHP Version: 5.1.0RC1 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.
Block user comment
Status: Assign to:
Bug Type:
From: colin at viebrock dot ca
New email:
PHP Version: OS:


 [2005-10-17 17:25 UTC] colin at viebrock dot ca
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/
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, 
    nDataSize=4, pDest=0x0, flag=2) at /home/cmv/
213             p = ht->arBuckets[nIndex];
(gdb) bt
#0  0x081f2dad in _zend_hash_add_or_update 
(ht=0x8344ba0, arKey=0x829378c "sqlite", nKeyLength=6, 
    nDataSize=4, pDest=0x0, flag=2) at /home/cmv/
#1  0x080ce25a in php_pdo_register_driver 
(driver=0x8332198) at /home/cmv/sources/php-5.1.0RC1/
#2  0x080d6283 in zm_startup_pdo_sqlite (type=1, 
    at /home/cmv/sources/php-5.1.0RC1/ext/pdo_sqlite/
#3  0x081f0517 in zend_startup_module_ex 
(module=0x83826f0) at /home/cmv/sources/php-5.1.0RC1/
#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:
#5  0x081f061f in zend_startup_modules () at /home/cmv/
#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 /


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-17 17:27 UTC]
Please try using this CVS snapshot:
For Windows:

 [2005-10-17 18:24 UTC] colin at viebrock dot ca
The new snap seems to fix that issue, however I now get 
the following messages on "make install"

cmv@tex:~/sources/php5-200510171430$ make install
Installing PHP CLI binary:        /home/cmv/bin/
Installing PHP CLI man page:      /home/cmv/man/man1/
Installing build environment:     /home/cmv/lib/php/
Installing header files:          /home/cmv/include/php/
Installing helper programs:       /home/cmv/bin/
  program: phpize
  program: php-config
Installing man pages:             /home/cmv/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /home/cmv/lib/php/
           => `/home/cmv/sources/php5-200510171430/pear/
Resolving done.
Connecting to[]:80... 
HTTP request sent, awaiting response... 200 OK
Length: 3,321,897 [text/plain]

=========================>] 3,321,897    179.37K/s    
ETA 00:00

11:21:52 (179.37 KB/s) - `/home/cmv/sources/php5
-200510171430/pear/install-pear-nozlib.phar' saved 

Fatal error: Error: phar "/usr/local/home/cmv/sources/
Checksum error on entry "" in /usr/local/home/cmv/
on line 376
make[1]: *** [install-pear-installer] Error 255
make: *** [install-pear] Error 2
 [2005-10-17 18:26 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

That one is already reported - closing then.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Jul 23 20:01:23 2021 UTC