Comment 4 for bug 776642

Revision history for this message
Barry Jaspan (barry-jaspan) wrote :

valgrind confirms the error and provides a stack trace:

# valgrind php test.php
... lots of uninitialized memory references reported here ...
18
20
32
==29381==
==29381== Invalid read of size 1
==29381== at 0x82E5B81: zend_objects_store_del_ref_by_handle (in /usr/bin/php5)
==29381== by 0x82E5D57: zend_objects_store_del_ref (in /usr/bin/php5)
==29381== by 0x82C6120: _zval_dtor_func (in /usr/bin/php5)
==29381== by 0x82B8FC7: _zval_ptr_dtor (in /usr/bin/php5)
==29381== by 0x82D1943: zend_hash_clean (in /usr/bin/php5)
==29381== by 0x82F69FE: (within /usr/bin/php5)
==29381== by 0x82E7957: execute (in /usr/bin/php5)
==29381== by 0x82C6522: zend_execute_scripts (in /usr/bin/php5)
==29381== by 0x827C20F: php_execute_script (in /usr/bin/php5)
==29381== by 0x8358D19: main (in /usr/bin/php5)
==29381== Address 0x739195d9 is not stack'd, malloc'd or (recently) free'd
==29381==
==29381== Process terminating with default action of signal 11 (SIGSEGV)
==29381== Access not within mapped region at address 0x739195D9
==29381== at 0x82E5B81: zend_objects_store_del_ref_by_handle (in /usr/bin/php5)
==29381== by 0x82E5D57: zend_objects_store_del_ref (in /usr/bin/php5)
==29381== by 0x82C6120: _zval_dtor_func (in /usr/bin/php5)
==29381== by 0x82B8FC7: _zval_ptr_dtor (in /usr/bin/php5)
==29381== by 0x82D1943: zend_hash_clean (in /usr/bin/php5)
==29381== by 0x82F69FE: (within /usr/bin/php5)
==29381== by 0x82E7957: execute (in /usr/bin/php5)
==29381== by 0x82C6522: zend_execute_scripts (in /usr/bin/php5)
==29381== by 0x827C20F: php_execute_script (in /usr/bin/php5)
==29381== by 0x8358D19: main (in /usr/bin/php5)
==29381==