ID:               29980
 User updated by:  guth at fiifo dot u-psud dot fr
 Reported By:      guth at fiifo dot u-psud dot fr
 Status:           Open
 Bug Type:         Zend Engine 2 problem
 Operating System: linux (Mandrake 10)
 PHP Version:      5.0.1
 New Comment:

(sorry for english)

I can't reproduce it with other computers (redhat & mandrake) with both
versions 5.0.0 and 5.0.1

I will try with my computer with 5.0.2-dev.


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

[2004-09-05 09:16:24] [EMAIL PROTECTED]

I can reproduce it with HEAD:

#0  0x08191ee4 in zend_objects_destroy_object (object=0x8285434,
handle=2) at /home/dev/php-src/Zend/zend_objects.c:37
#1  0x08194a6c in zend_objects_store_del_ref (zobject=0x827289c) at
/home/dev/php-src/Zend/zend_objects_API.c:144
#2  0x0817b95e in _zval_dtor (zvalue=0x827289c,
__zend_filename=0x81e3520 "/home/dev/php-src/Zend/zend_execute_API.c",
__zend_lineno=390)
    at /home/dev/php-src/Zend/zend_variables.c:55
#3  0x08170431 in _zval_ptr_dtor (zval_ptr=0x82727e8,
__zend_filename=0x81e4420 "/home/dev/php-src/Zend/zend_variables.c",
__zend_lineno=179)
    at /home/dev/php-src/Zend/zend_execute_API.c:390
#4  0x0817bc63 in _zval_ptr_dtor_wrapper (zval_ptr=0x82727e8) at
/home/dev/php-src/Zend/zend_variables.c:179
#5  0x08185224 in zend_hash_destroy (ht=0x82802ac) at
/home/dev/php-src/Zend/zend_hash.c:519
#6  0x0819214a in zend_objects_free_object_storage (object=0x827279c)
at /home/dev/php-src/Zend/zend_objects.c:88
#7  0x081947c9 in zend_objects_store_free_object_storage
(objects=0x8201eac) at /home/dev/php-src/Zend/zend_objects_API.c:72
#8  0x0816ff60 in shutdown_executor () at
/home/dev/php-src/Zend/zend_execute_API.c:271
#9  0x0817d3ad in zend_deactivate () at
/home/dev/php-src/Zend/zend.c:826
#10 0x081376ce in php_request_shutdown (dummy=0x0) at
/home/dev/php-src/main/main.c:1216
#11 0x081b07e0 in main (argc=3, argv=0xbffff8d4) at
/home/dev/php-src/sapi/cli/php_cli.c:1046

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

[2004-09-05 09:08:05] [EMAIL PROTECTED]

Running your reproducable code on the latest CVS version (PHP
5.1.0-dev-200409050430)

$ php demo.php
PHP Fatal error:  Call to undefined method
Cowllectif::jean_ai_marre_de_php() in /home/aidan/demo.php on line 10
Fatal error: Call to undefined method
Cowllectif::jean_ai_marre_de_php() in /home/aidan/demo.php on line 10
PHP Fatal error:  Call to undefined method
Cowllectif::jean_ai_marre_de_php() in /home/aidan/demo.php on line 14
Fatal error: Call to undefined method
Cowllectif::jean_ai_marre_de_php() in /home/aidan/demo.php on line 14

Running on PHP 5.0.2-dev
$ php demo.php
Fatal error: Call to undefined method
Cowllectif::jean_ai_marre_de_php() in /home/aidan/demo.php on line 10
Fatal error: Call to undefined method
Cowllectif::jean_ai_marre_de_php() in /home/aidan/demo.php on line 14


Looks fine to me. Perhaps it was fixed in CVS, perhaps it is Bogus.

Could you try the latest CVS version and tell me if this bug still
exists?

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

[2004-09-04 19:33:56] guth at fiifo dot u-psud dot fr

Description:
------------
I am happy to show you my fourth segmentation fault in PHP 5.0.1.
Segmentation faults don't help me to debug my code...

Reproduce code:
---------------
<?
class Cowllectif { }

class CowllectifTest {

        private $boom;

        public function __construct() {
                $this->boom = new Cowllectif;
                $this->boom->jean_ai_marre_de_php();
        }

        public function __destruct() {
                $this->boom->jean_ai_marre_de_php();
        }

}


$test = new CowllectifTest();
unset($test);
?>

Expected result:
----------------
Fatal error - Call to undefined method
Cowllectif::jean_ai_marre_de_php()

Actual result:
--------------
Two fatal errors (sic), then a segmentation fault...

Apache error log :

/www/haricow/0.4/test.php(10) : Fatal error - Call to undefined method
Cowllectif::jean_ai_marre_de_php()
/www/haricow/0.4/test.php(14) : Fatal error - Call to undefined method
Cowllectif::jean_ai_marre_de_php()
[Sat Sep  4 19:28:02 2004] [notice] child pid 9981 exit signal
Segmentation fault (11)


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


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

Reply via email to