Re: ZendEngine 2 - Double Free BUG
| From: | Stefan Esser | Date: | Wed, 02 Jun 2004 12:59:49 +0000 |
| Subject: | Re: ZendEngine 2 - Double Free BUG | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-10246@lists.php.net to get a copy of this message | ||
Stanislav Malyshev wrote:
I think you are right, it should be fixed in zend_post_incdec_property. Do you have reproducing code example so it can be tested?No it cannot be tested. In the default configuration Zend_MM is activated. This will catch double frees. No violation will happen when it is activated. This is why valgrind etc... do not catch it. And I think there is another bug with simple classes on termination of a request. class xy { function a() { } } $y = new xy(); crashes over here with Hardened-PHP applied AND maintainer-zts activated. It crashs in a llist destruction from within zend_deactivate. The reason for the crash seems that the memory pointed to by TRMS_ls is already freed. Stefan