Weird time-sensitive leaks / problems in the memory manager

php.internals

Wez Furlong

21 years ago
Yesterday I saw some leaks with foreach() and custom zend_iterators. Today, the same binary doesn't have those leaks. I had another similar issue a few weeks back on a different machine, but with an overrun reported on shutdown. The next day, the same binary was fine. Unless the linux-fairy visited both those boxes overnight and magically fixed the bugs, I think we have an issue either in the memory manager, or worse, in some other piece of code that is subtly mangling the memory manager headers. (this is with HEAD). Valgrind shows no problems. Looks like it's going to be hours of "fun" trying to track this down. --Wez.

Andi Gutmans

21 years ago
Thanks for the heads-up. Please keep us posted on any news... At 09:17 AM 3/12/2005 -0500, Wez Furlong wrote:

Derick Rethans

21 years ago
On Sat, 12 Mar 2005, Wez Furlong wrote:
> Yesterday I saw some leaks with foreach() and custom zend_iterators. > Today, the same binary doesn't have those leaks. > > I had another similar issue a few weeks back on a different machine, > but with an overrun reported on shutdown. The next day, the same > binary was fine. > > Unless the linux-fairy visited both those boxes overnight and > magically fixed the bugs, I think we have an issue either in the > memory manager, or worse, in some other piece of code that is subtly > mangling the memory manager headers. (this is with HEAD). > > Valgrind shows no problems.
Even with the zend memory manager disabled? I suspect it will show uninitialized data when you try that... Derick
-- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org