From:             guth at fiifo dot u-psud dot fr
Operating system: *
PHP version:      5.0.4
PHP Bug Type:     Zend Engine 2 problem
Bug description:  Segmentation fault

Description:
------------
The following code produce a segfault.

PHP configuration :
-----------------

zend.ze1_compatibility_mode = On



Vincent Guth

Reproduce code:
---------------
<?php
$a = new stdClass;
$a = $a;
?>

Expected result:
----------------
Nothing.

Actual result:
--------------
Segfault!

#0  zend_std_object_get_class (object=0x816cf04) at
/usr/src/php-5.0.4/Zend/zend_object_handlers.c:905
#1  0x4035bfa4 in zend_get_class_entry (zobject=Variable "zobject" is not
available.
) at /usr/src/php-5.0.4/Zend/zend_API.c:205
#2  0x4038e303 in zend_assign_to_variable (result=0x81712b4, op1=Variable
"op1" is not available.
) at /usr/src/php-5.0.4/Zend/zend_execute.c:594
#3  0x403837da in zend_assign_handler (execute_data=0xbfffce90,
opline=Variable "opline" is not available.
) at /usr/src/php-5.0.4/Zend/zend_execute.c:2246
#4  0x4037d0cc in execute (op_array=0x816cca4) at
/usr/src/php-5.0.4/Zend/zend_execute.c:1400
#5  0x4035b859 in zend_execute_scripts (type=8, retval=Variable "retval"
is not available.
) at /usr/src/php-5.0.4/Zend/zend.c:1069
#6  0x40323741 in php_execute_script (primary_file=0xbffff1e0) at
/usr/src/php-5.0.4/main/main.c:1628
#7  0x40390980 in apache_php_module_main (r=0x81623bc,
display_source_mode=0)
    at /usr/src/php-5.0.4/sapi/apache/sapi_apache.c:54
#8  0x4039144d in send_php (r=0x81623bc, display_source_mode=0,
filename=0x0)
    at /usr/src/php-5.0.4/sapi/apache/mod_php5.c:622
#9  0x403915f3 in send_parsed_php (r=0x81623bc) at
/usr/src/php-5.0.4/sapi/apache/mod_php5.c:637
#10 0x08071e77 in ap_invoke_handler ()
#11 0x08086ebd in process_request_internal ()
#12 0x08086f1c in ap_process_request ()
#13 0x0807df40 in child_main ()
#14 0x0807e0e8 in make_child ()
#15 0x0807e24e in startup_children ()
#16 0x0807e90e in standalone_main ()
#17 0x0807f12c in main ()

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

Reply via email to