Bug #60558 [Opn->Csd]: Invalid read and writes

From: Date: Mon, 19 Dec 2011 10:07:09 +0000
Subject: Bug #60558 [Opn->Csd]: Invalid read and writes
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-165963@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60558&edit=1 ID: 60558 Updated by: laruence@php.net Reported by: laruence@php.net Summary: Invalid read and writes -Status: Open +Status: Closed Type: Bug Package: Scripting Engine problem PHP Version: 5.4.0RC3 -Assigned To: +Assigned To: laruence Block user comment: N Private report: N New Comment: This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. ah, worked out, fixed :) thanks Previous Comments: ------------------------------------------------------------------------ [2011-12-19 09:58:07] laruence@php.net Automatic comment from SVN on behalf of laruence Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=321158 Log: Fixed bug #60558 (Invalid read and writes) ------------------------------------------------------------------------ [2011-12-19 08:55:16] laruence@php.net seems something wrong with the refcount of zval in traits's default_properties_table[i]. but I have not figured out what's going wrong. A more simple test: <?php trait A { private $hello = 0; } class BaseWithTPropB{ use A; } class SubclassB extends BaseWithTPropB { use A; } $b = new SubClassB; var_dump($b); ?> plz run valgrind like: USE_ZEND_ALLOC=0 valgrind --db-attach=yes --leak-check=full php test.php ------------------------------------------------------------------------ [2011-12-19 04:53:11] laruence@php.net Gron, ignore the assigment, I just want to get your attention, so let's diag this one again :) thanks ------------------------------------------------------------------------ [2011-12-19 04:07:46] laruence@php.net found while diagnosing #60536 ------------------------------------------------------------------------ [2011-12-19 04:05:56] laruence@php.net Description: ------------ Valgrind complains about invalid read and writes in the tests: http://dev.daylessday.org/diff/bug60536_001.mem http://dev.daylessday.org/diff/bug60536_003.mem So the problem is definitely not fixed yet. Test script: --------------- http://dev.daylessday.org/diff/bug60536_001.mem http://dev.daylessday.org/diff/bug60536_003.mem ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60558&edit=1

« previous php.bugs (#165963) next »