#25275 [Opn->Fbk]: script crashs in _efree (ptr=0x8a8828c) at php-4.3.3/Zend/zend_alloc.c:259

From: Date: Sat, 30 Aug 2003 12:21:47 +0000
Subject: #25275 [Opn->Fbk]: script crashs in _efree (ptr=0x8a8828c) at php-4.3.3/Zend/zend_alloc.c:259
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-46943@lists.php.net to get a copy of this message
 ID:               25275
 Updated by:       sniper@php.net
 Reported By:      rehsack at liwing dot de
-Status:           Open
+Status:           Feedback
 Bug Type:         Reproducible crash
 Operating System: FreeBSD 5.1 i386
 PHP Version:      4.3.3
 New Comment:

Yes, that's the idea..



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

[2003-08-30 06:10:26] rehsack at liwing dot de

Nope, it runs fine. Do you suggest enabling each extension I used until
it crash's?

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

[2003-08-30 02:00:15] sniper@php.net

Try this:

# rm config.cache
# ./configure --disable-all --disable-cgi --enable-debug
# make clean && make
# sapi/cli/php yourscript.php

Does it crash now?


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

[2003-08-28 10:23:42] rehsack at liwing dot de

Sorry, misunderstood. Thought you've asked for php.ini.

# ./configure  --enable-versioning --enable-memory-limit
--with-layout=GNU --with-zlib-dir=/usr --disable-all --with-regex=php
--disable-ipv6 --with-apxs=/usr/local/sbin/apxs --with-bz2=/usr
--with-dom=/usr/local --with-dom-xslt=/usr/local
--with-dom-exslt=/usr/local --with-gettext=/usr/local
--with-gmp=/usr/local --with-iconv=/usr/local --with-mcrypt=/usr/local
--with-mhash=/usr/local --with-mysql=/usr/local --with-ldap=/usr/local
--with-openssl=/usr --enable-pcntl --with-pcre-regex=yes --enable-posix
--with-readline --enable-session --enable-sockets --enable-sysvsem
--enable-sysvshm --enable-tokenizer --enable-xml
--with-expat-dir=/usr/local --with-xmlrpc --enable-xslt
--with-xslt-sablot=/usr/local --with-zlib=yes --prefix=/usr/local
i386-portbld-freebsd5.1

CC="cc"
CFLAGS="-O -pipe -g"

Addition: deaggregating from classes by adding name of
class to deaggregate doesn't dump.

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

[2003-08-28 06:33:06] sniper@php.net

That script does not crash for me.
What was the configure line you used to configure PHP?



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

[2003-08-28 06:32:15] sniper@php.net

<?php
  class FDefaultContentAccess
  {
    function InitFDefaultContentAccess()
    {
      $this->Flags |= 1;
    }
  }

  class FDirectContentAccess
  {
    function InitFDirectContentAccess()
    {
      $this->Flags |= 2;
      $this->Flags &= ~3;
    }
  }
 
  class FFilePhysicalAccess
  {
    var $Flags;

    function FFilePhysicalAccess( )
    {
      aggregate( $this, "FDirectContentAccess" );
      $this->InitFDirectContentAccess();         
      aggregate( $this, "FDefaultContentAccess" );
      $this->InitFDefaultContentAccess();         
    }
   
    function CleanUp()
    {
      fwrite( STDERR, "before deaggregate\n");
      deaggregate( $this );                   
      fwrite( STDERR, "after deaggregate\n");
    }
  }  // end of class FFilePhysicalAccess

  $inst = new FFilePhysicalAccess();
  $inst->CleanUp();
?>


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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/25275

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


Thread (19 messages)

« previous php.bugs (#46943) next »