php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30085 Segmentation fault
Submitted: 2004-09-14 15:53 UTC Modified: 2004-12-03 22:51 UTC
From: guth at fiifo dot u-psud dot fr Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 5.0.1 OS: Linux (mandrake 10)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: guth at fiifo dot u-psud dot fr
New email:
PHP Version: OS:

 

 [2004-09-14 15:53 UTC] guth at fiifo dot u-psud dot fr
Description:
------------
(sorry for english...)

here is my fifth segmentation fault in PHP 5...

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

class thamer {

	public $test;

	public function __construct() {
		$this->test = new test; /* An entire mystery, without this code, no segmentation fault */
	}

	public function __destruct() {
		fuck();
		/*
			If you don't like "fuck()" and if you want a segfault, you can try with everything that raise a fatal error. Some examples :
			- trigger_error("thamer", E_USER_ERROR);
			- unset(self::$thamer);
			Warning : no fatal error, no segfault :)
		*/
	}

}

$test = new thamer;
?>

Expected result:
----------------
A fatal error (no segmentation fault...).

Actual result:
--------------
[Mon Sep 13 22:07:42 2004] [error] PHP Fatal error:  Call to undefined function fuck() in /www/test.php on line 13
/www/test.php(13) : Fatal error - Call to undefined function fuck()
[Mon Sep 13 22:07:43 2004] [notice] child pid 4043 exit signal Segmentation fault (11)

#0  0x082030bc in zend_objects_destroy_object (object=0x83035dc, handle=2) at /usr/src/php-5.0.1/Zend/zend_objects.c:37
#1  0x08205be0 in zend_objects_store_del_ref (zobject=0x830359c) at /usr/src/php-5.0.1/Zend/zend_objects_API.c:144
#2  0x081ed016 in _zval_dtor (zvalue=0x830359c, __zend_filename=0x8260d40 "/usr/src/php-5.0.1/Zend/zend_execute_API.c",
    __zend_lineno=391) at /usr/src/php-5.0.1/Zend/zend_variables.c:61
#3  0x081e1850 in _zval_ptr_dtor (zval_ptr=0x83034f0,
    __zend_filename=0x8261c60 "/usr/src/php-5.0.1/Zend/zend_variables.c", __zend_lineno=193)
    at /usr/src/php-5.0.1/Zend/zend_execute_API.c:391
#4  0x081ed368 in _zval_ptr_dtor_wrapper (zval_ptr=0x83034f0) at /usr/src/php-5.0.1/Zend/zend_variables.c:193
#5  0x081f68b8 in zend_hash_destroy (ht=0x830fbc4) at /usr/src/php-5.0.1/Zend/zend_hash.c:519
#6  0x08203322 in zend_objects_free_object_storage (object=0x831702c) at /usr/src/php-5.0.1/Zend/zend_objects.c:88
#7  0x0820593d in zend_objects_store_free_object_storage (objects=0x8285204)
    at /usr/src/php-5.0.1/Zend/zend_objects_API.c:72
#8  0x081e137f in shutdown_executor () at /usr/src/php-5.0.1/Zend/zend_execute_API.c:272
#9  0x081ee9b7 in zend_deactivate () at /usr/src/php-5.0.1/Zend/zend.c:819
#10 0x081a7648 in php_request_shutdown (dummy=0x0) at /usr/src/php-5.0.1/main/main.c:1212
#11 0x082204ac in main (argc=2, argv=0xbffff664) at /usr/src/php-5.0.1/sapi/cli/php_cli.c:1046


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-28 15:42 UTC] tony2001@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.0-win32-latest.zip

I cannot reproduce it. Please, try latest CVS snapshot.
 [2004-12-03 22:51 UTC] guth at fiifo dot u-psud dot fr
It works fine now.

Thank you.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 15:01:34 2025 UTC