#17591 [Fbk->NoF]: segfault when trying to access a global variable

From: Date: Tue, 15 Oct 2002 00:39:04 +0000
Subject: #17591 [Fbk->NoF]: segfault when trying to access a global variable
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-22445@lists.php.net to get a copy of this message
 ID:               17591
 Updated by:       sniper@php.net
 Reported By:      dschmidt@informationsgesellschaft.com
-Status:           Feedback
+Status:           No Feedback
 Bug Type:         Scripting Engine problem
 Operating System: Linux (Suse 7.3)
 PHP Version:      4.2.1
 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.




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

[2002-09-26 20:09:27] sniper@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip



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

[2002-09-09 11:21:25] stas@php.net

Circular refernces _are_ supported (meaning, they will work, etc.) but
indeed cause 'memory leak' messages. This is not real leaks, because
they are cleaned at the end of the request. 
As for the crash - please try to produce some short code that
reproduces the problem, or at least refine the circumstances when it
happens. Also, you may want to try latest version (4.2.3) or latest CVS
snapshot (snaps.php.net). 

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

[2002-06-05 11:15:11] dschmidt@informationsgesellschaft.com

Shouldn't that restriction be documented somewhere?

Can these circular references cause any other problems or errors than
in the garbage collection? Would it be a solution to cut off these
references in a destructor method before the script ends?

Does the garbage collector call a destructor method for objects?

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

[2002-06-04 08:57:16] mfischer@php.net

The zend engine doesn't support circular refereing and never will
(hence the memory leaks you see with the debug build). This won't get
fixed.

Seems that accessing the global var in your example as you described it
is a very negative side effect.

I guess unless you can post a reproduceable example there's nothing we
can do about it.

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

[2002-06-04 07:22:48] dschmidt@informationsgesellschaft.com

yes, we use both. We have objects with attributes pointing to other
objects. These other objects may have an attribute pointing back to the
first object.

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

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/17591

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



Thread (8 messages)

« previous php.bugs (#22445) next »