From:             php at fiddaman dot net
Operating system: Solaris 10
PHP version:      5.2.0
PHP Bug Type:     Reproducible crash
Bug description:  Crash in _zval_ptr_dtor()

Description:
------------
I've compiled PHP 5.2.0 as a replacement for 5.1.6 which is running fine
here. 5.2.0 crashes with any PHP web page.

This is Solaris 10, 64-bit.

I've recompiled without any extensions, same result.

./configure \
        --prefix=$DIR \
        --with-exec-dir=$DIR/bin \
        --with-apxs2=/opt/apache/bin/apxs \
        --disable-libgcc \
        --disable-libxml \
        --disable-dom \
        --disable-simplexml \
        --disable-xml \
        --disable-xmlreader \
        --disable-xmlwriter \
        --without-pear

Not sure how to debug this further.

Reproduce code:
---------------
<?php print "test"; ?>

Expected result:
----------------
test

Actual result:
--------------
Program terminated with signal 11, Segmentation fault.
#0  _zval_ptr_dtor (zval_ptr=0xffffffff7fffd1a0)
    at /data/src/build/php-5.2.0/Zend/zend_execute_API.c:412
412             (*zval_ptr)->refcount--;
(gdb) where
#0  _zval_ptr_dtor (zval_ptr=0xffffffff7fffd1a0)
    at /data/src/build/php-5.2.0/Zend/zend_execute_API.c:412
#1  0xffffffff78abd1c8 in zend_do_fcall_common_helper_SPEC (
    execute_data=0xffffffff7fffd438)
    at /data/src/build/php-5.2.0/Zend/zend_execute.h:149
#2  0xffffffff78aac2dc in execute (op_array=0xffffffff7fffe660)
    at /data/src/build/php-5.2.0/Zend/zend_vm_execute.h:92
#3  0xffffffff78a8e1a8 in zend_execute_scripts (type=5034360,
    retval=<value optimized out>, file_count=2024194208)
    at /data/src/build/php-5.2.0/Zend/zend.c:1097
#4  0xffffffff78a49fc4 in php_execute_script (primary_file=0x0)
    at /data/src/build/php-5.2.0/main/main.c:1758
#5  0xffffffff78b18d98 in php_handler (r=0x0)
    at /data/src/build/php-5.2.0/sapi/apache2handler/sapi_apache2.c:592
#6  0x0000000100049e00 in ap_run_handler ()
#7  0x000000010004abf0 in ap_invoke_handler ()
#8  0x00000001000a6314 in ap_process_request ()
#9  0x00000001000a1158 in ap_process_http_connection ()
#10 0x0000000100056710 in ap_run_process_connection ()
#11 0x0000000100056d8c in ap_process_connection ()
#12 0x00000001000d9358 in child_main ()
#13 0x00000001000d9674 in make_child ()
#14 0x00000001000d9b68 in perform_idle_server_maintenance ()
#15 0x00000001000da5ac in ap_mpm_run ()
#16 0x0000000100024c28 in main ()


-- 
Edit bug report at http://bugs.php.net/?id=39418&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=39418&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=39418&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=39418&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=39418&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=39418&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=39418&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=39418&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=39418&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=39418&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=39418&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=39418&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=39418&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=39418&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39418&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=39418&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=39418&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=39418&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39418&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=39418&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=39418&r=mysqlcfg

Reply via email to