| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2005-10-17 17:27 UTC] tony2001@php.net
  [2005-10-17 18:24 UTC] colin at viebrock dot ca
  [2005-10-17 18:26 UTC] derick@php.net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 10:00:02 2025 UTC | 
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