ID: 14239
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Unknown/Other Function
Operating System: FreeBSD 4.4-RELEASE
PHP Version: 4.0.6
New Comment:

this error snoozed me and my users over head!

php works as libphp4.so in Apache/1.3.22

when i debug the problem, gdb get's me such report:

Program received signal SIGSEGV, Segmentation fault.
_zval_ptr_dtor (zval_ptr=0x4c41424f) at zend_execute_API.c:259
259             (*zval_ptr)->refcount--;
(gdb)

in this file there is:
ZEND_API void _zval_ptr_dtor(zval **zval_ptr ZEND_FILE_LINE_DC)
{
#if DEBUG_ZEND>=2
        printf("Reducing refcount for %x (%x):  %d->%d\n", *zval_ptr,
zval_ptr, (*zval_ptr)->refcount, (*zval_ptr)->refcount-1);
#endif  
        (*zval_ptr)->refcount--;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ here error!
        if ((*zval_ptr)->refcount==0) {
                zval_dtor(*zval_ptr);
                safe_free_zval_ptr(*zval_ptr);
        } else if (((*zval_ptr)->refcount == 1) && ((*zval_ptr)->type !=
IS_OBJECT)) {
                (*zval_ptr)->is_ref = 0;
        }
}

obvious, that httpd instance crashes with core,,, and users have to "Reload" the pages 
when this error appears...

i have no idea about this error reason...

thank you,
  Andriy Tkachuk.

Previous Comments:
------------------------------------------------------------------------

[2001-11-26 13:05:47] [EMAIL PROTECTED]

when i debug the problem gdb get's me such report:
Program received signal SIGSEGV, Segmentation fault.
_zval_ptr_dtor (zval_ptr=0x4c41424f) at zend_execute_API.c:259
259             (*zval_ptr)->refcount--;
(gdb)

in this file there is:
ZEND_API void _zval_ptr_dtor(zval **zval_ptr ZEND_FILE_LINE_DC)
{
#if DEBUG_ZEND>=2
        printf("Reducing refcount for %x (%x):  %d->%d\n", *zval_ptr, zval_ptr, 
(*zval_ptr)->refcount, (*zval_ptr)->refcount-1);
#endif  
        (*zval_ptr)->refcount--;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ here error!
        if ((*zval_ptr)->refcount==0) {
                zval_dtor(*zval_ptr);
                safe_free_zval_ptr(*zval_ptr);
        } else if (((*zval_ptr)->refcount == 1) && ((*zval_ptr)->type != IS_OBJECT)) {
                (*zval_ptr)->is_ref = 0;
        }
}


i have no idea about this...

------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=14239&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to