php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14239 apache crash on sig 11; error at zend_execute_API.c:259
Submitted: 2001-11-26 13:05 UTC Modified: 2004-07-11 21:39 UTC
From: ant at imt dot com dot ua Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.6 OS: FreeBSD 4.4-RELEASE
Private report: No CVE-ID: None
 [2001-11-26 13:05 UTC] ant at imt dot com dot ua
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...

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-26 13:25 UTC] ant at imt dot com dot ua
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.
 [2001-11-26 14:18 UTC] sniper@php.net
Please try and create a short example script which can be used
to reproduce this problem.

And you should also try PHP 4.1.0 (to be released very soon now)

http://download.php.net/~zeev/php-4.1.0.tar.gz
 [2001-12-17 07:16 UTC] sander@php.net
No feedback. Closing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 02:01:33 2024 UTC