php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39907 Segmentation fault in _zval_ptr_dtor during "make install"
Submitted: 2006-12-20 16:54 UTC Modified: 2006-12-20 19:40 UTC
From: jaustin at mapmobile dot com Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 5.2.0 OS: Solaris 2.8
Private report: No CVE-ID: None
 [2006-12-20 16:54 UTC] jaustin at mapmobile dot com
Description:
------------
Segmentation fault in _zval_ptr_dtor during make install.  This is the code that was executing:

/u00/home/jaustin/php-5.2.0/sapi/cli/php -n -dshort_open_tag=0 -dsafe_mode=0 -dopen_basedir= -derror_reporting=E_ALL -dmemory_limit=-1 -ddetect_unicode=0 pear/install-pear-nozlib.phar -d /usr/local/php-5.2.0/lib/php -b /usr/local/php-5.2.0/bin

And the backtrace:

#0  0x00204cac in _zval_ptr_dtor (zval_ptr=0x495160)
    at /u00/home/jaustin/php-5.2.0/Zend/zend_execute_API.c:412
#1  0x0023bbbc in zend_do_fcall_common_helper_SPEC (execute_data=0xffbee26c)
    at /u00/home/jaustin/php-5.2.0/Zend/zend_execute.h:149
#2  0x0022c538 in execute (op_array=0xffbee5a0)
    at /u00/home/jaustin/php-5.2.0/Zend/zend_vm_execute.h:92
#3  0x00210cf4 in zend_execute_scripts (type=4681784, 
    retval=<value optimized out>, file_count=2040496)
    at /u00/home/jaustin/php-5.2.0/Zend/zend.c:1097
#4  0x001d34a4 in php_execute_script (primary_file=0x0)
    at /u00/home/jaustin/php-5.2.0/main/main.c:1758
#5  0x0029144c in main (argc=0, argv=0x1)
    at /u00/home/jaustin/php-5.2.0/sapi/cli/php_cli.c:1108





Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-20 17:40 UTC] tony2001@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip


 [2006-12-20 18:27 UTC] jaustin at mapmobile dot com
Same results but a few changed line numbers:

#0  0x0020993c in _zval_ptr_dtor (zval_ptr=0x3a9060)
    at /u00/home/jaustin/php5.2-200612201730/Zend/zend_execute_API.c:412
#1  0x00242d8c in zend_do_fcall_common_helper_SPEC (execute_data=0xffbee24c)
    at /u00/home/jaustin/php5.2-200612201730/Zend/zend_execute.h:149
#2  0x002327dc in execute (op_array=0xffbee580)
    at /u00/home/jaustin/php5.2-200612201730/Zend/zend_vm_execute.h:92
#3  0x002159d8 in zend_execute_scripts (type=3708928, 
    retval=<value optimized out>, file_count=68)
    at /u00/home/jaustin/php5.2-200612201730/Zend/zend.c:1100
#4  0x001d72d8 in php_execute_script (primary_file=0x0)
    at /u00/home/jaustin/php5.2-200612201730/main/main.c:1775
#5  0x00297a34 in main (argc=0, argv=0x1)
    at /u00/home/jaustin/php5.2-200612201730/sapi/cli/php_cli.c:1108
 [2006-12-20 18:36 UTC] tony2001@php.net
What kind of compiler (and which version) did you use?
 [2006-12-20 18:41 UTC] jaustin at mapmobile dot com
Using built-in specs.
Target: i386-pc-solaris2.10
Configured with: ../gcc-4.1.1/configure --prefix=/usr/local/gcc-4.1.1 --with-ld=/usr/ccs/bin/ld --with-as=/usr/local/bin/as --enable-languages=c,c++
Thread model: posix
gcc version 4.1.1
 [2006-12-20 18:51 UTC] tony2001@php.net
Duplicate of bug #39418.
 [2006-12-20 19:38 UTC] jaustin at mapmobile dot com
It looks like that's confirmed.  Recompiled with the SunPro compiler and it works.
 [2006-12-20 19:40 UTC] tony2001@php.net
Thanks for the confirmation.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun May 11 17:01:27 2025 UTC