From:             jfclere at gmail dot com
Operating system: RHEL 5 + JRockit
PHP version:      5.2.3
PHP Bug Type:     Reproducible crash
Bug description:  The JVM cores in  at _zval_ptr_dtor()

Description:
------------
When accessing to a php page via our php servlet on IA64 with JRockit
1.5.x we get a core.

Reproduce code:
---------------
That is an embbedded php in a JVM. Any php code causes the problem.

Expected result:
----------------
A page to be displayed.

Actual result:
--------------
+++
Thread Stack Trace:
    at _zval_ptr_dtor(zend_execute_API.c:412)@0x4a520e80
    at zend_do_fcall_common_helper_SPEC(zend_execute.h:155)@0x4a59f1a0
    at execute(zend_vm_execute.h:92)@0x4a59e4d0
    at zend_do_fcall_common_helper_SPEC(zend_vm_execute.h:234)@0x4a59ec80
    at execute(zend_vm_execute.h:92)@0x4a59e4d0
    at zend_execute_scripts(zend.c:1135)@0x4a54d560
    at php_execute_script(main.c:1794)@0x4a4984a0
    at Java_org_jboss_web_php_Handler_php()@0x45372770
+++

The problem is fixed by adding in _zval_ptr_dtor:
+++
        if (*zval_ptr == NULL)
                return;
+++

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

Reply via email to