Re: persistent memory management
| From: | Alexey Zakhlestin | Date: | Sun, 03 Dec 2006 18:29:47 +0000 |
| Subject: | Re: persistent memory management | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-26778@lists.php.net to get a copy of this message | ||
Here is valgrind output. It definitely shows that there is a problem,
but I still can't guess where it is.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
==25913== Invalid read of size 4
==25913== at 0x82AC068: zend_hash_exists (in /usr/bin/php5) ==25913== by 0x404EE42: zif_loc_isset (loccache.c:147) ==25913== by 0x82CF6CE: (within /usr/bin/php5) ==25913== by 0x82BF0C7: execute (in /usr/bin/php5) ==25913== by 0x82A029B: zend_execute_scripts (in /usr/bin/php5) ==25913== by 0x825B6E1: php_execute_script (in /usr/bin/php5) ==25913== by 0x832F43D: main (in /usr/bin/php5)==25913== Address 0x4B00B90 is 0 bytes after a block of size 40 alloc'd
==25913== at 0x401C38B: malloc (vg_replace_malloc.c:149) ==25913== by 0x82AB82A: _zend_hash_add_or_update (in /usr/bin/php5) ==25913== by 0x404EDB0: zif_loc_set (loccache.c:86) ==25913== by 0x82CF6CE: (within /usr/bin/php5) ==25913== by 0x82BF0C7: execute (in /usr/bin/php5) ==25913== by 0x82A029B: zend_execute_scripts (in /usr/bin/php5) ==25913== by 0x825B6E1: php_execute_script (in /usr/bin/php5) ==25913== by 0x832F43D: main (in /usr/bin/php5)==25913== ==25913== Invalid read of size 4
==25913== at 0x82AC06D: zend_hash_exists (in /usr/bin/php5) ==25913== by 0x404EE42: zif_loc_isset (loccache.c:147) ==25913== by 0x82CF6CE: (within /usr/bin/php5) ==25913== by 0x82BF0C7: execute (in /usr/bin/php5) ==25913== by 0x82A029B: zend_execute_scripts (in /usr/bin/php5) ==25913== by 0x825B6E1: php_execute_script (in /usr/bin/php5) ==25913== by 0x832F43D: main (in /usr/bin/php5)==25913== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==25913== ==25913== Process terminating with default action of signal 11 (SIGSEGV) ==25913== Access not within mapped region at address 0x0
==25913== at 0x82AC06D: zend_hash_exists (in /usr/bin/php5) ==25913== by 0x404EE42: zif_loc_isset (loccache.c:147) ==25913== by 0x82CF6CE: (within /usr/bin/php5) ==25913== by 0x82BF0C7: execute (in /usr/bin/php5) ==25913== by 0x82A029B: zend_execute_scripts (in /usr/bin/php5) ==25913== by 0x825B6E1: php_execute_script (in /usr/bin/php5) ==25913== by 0x832F43D: main (in /usr/bin/php5)=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -- Alexey Zakhlestin http://blog.milkfarmsoft.com/