Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Phalcon\Cache\Backend\Apc::save() frees too much memory #858

Closed
ghost opened this issue Jul 17, 2013 · 1 comment
Closed

[BUG] Phalcon\Cache\Backend\Apc::save() frees too much memory #858

ghost opened this issue Jul 17, 2013 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 17, 2013

==15687== Invalid read of size 4
==15687==    at 0xAABA74: _zval_ptr_dtor (zend.h:385)
==15687==    by 0xAFA05C: zend_vm_stack_clear_multiple (zend_execute.h:318)
==15687==    by 0xB0102C: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:413)
==15687==    by 0xB01111: ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER (zend_vm_execute.h:428)
==15687==    by 0xAFF5AF: execute (zend_vm_execute.h:107)
==15687==    by 0xAC232C: zend_execute_scripts (zend.c:1259)
==15687==    by 0xA1AF97: php_execute_script (main.c:2316)
==15687==    by 0xBCE138: main (php_cli.c:1189)
==15687==  Address 0x19d00660 is 16 bytes inside a block of size 32 free'd
==15687==    at 0x4C2BA6C: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==15687==    by 0xA8F610: _efree (zend_alloc.c:2358)
==15687==    by 0xAABB34: _zval_ptr_dtor (zend_execute_API.c:448)
==15687==    by 0x115187D8: zim_Phalcon_Cache_Backend_Apc_save (apc.c:196)
==15687==    by 0xB0069E: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:322)
==15687==    by 0xB01111: ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER (zend_vm_execute.h:428)
==15687==    by 0xAFF5AF: execute (zend_vm_execute.h:107)
==15687==    by 0xAC232C: zend_execute_scripts (zend.c:1259)
==15687==    by 0xA1AF97: php_execute_script (main.c:2316)
==15687==    by 0xBCE138: main (php_cli.c:1189)
==15687== 
==15687== Invalid write of size 4
==15687==    at 0xAABA7E: _zval_ptr_dtor (zend.h:385)
==15687==    by 0xAFA05C: zend_vm_stack_clear_multiple (zend_execute.h:318)
==15687==    by 0xB0102C: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:413)
==15687==    by 0xB01111: ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER (zend_vm_execute.h:428)
==15687==    by 0xAFF5AF: execute (zend_vm_execute.h:107)
==15687==    by 0xAC232C: zend_execute_scripts (zend.c:1259)
==15687==    by 0xA1AF97: php_execute_script (main.c:2316)
==15687==    by 0xBCE138: main (php_cli.c:1189)
==15687==  Address 0x19d00660 is 16 bytes inside a block of size 32 free'd
==15687==    at 0x4C2BA6C: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==15687==    by 0xA8F610: _efree (zend_alloc.c:2358)
==15687==    by 0xAABB34: _zval_ptr_dtor (zend_execute_API.c:448)
==15687==    by 0x115187D8: zim_Phalcon_Cache_Backend_Apc_save (apc.c:196)
==15687==    by 0xB0069E: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:322)
==15687==    by 0xB01111: ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER (zend_vm_execute.h:428)
==15687==    by 0xAFF5AF: execute (zend_vm_execute.h:107)
==15687==    by 0xAC232C: zend_execute_scripts (zend.c:1259)
==15687==    by 0xA1AF97: php_execute_script (main.c:2316)
==15687==    by 0xBCE138: main (php_cli.c:1189)
@ghost
Copy link
Author

ghost commented Jul 17, 2013

Fixed in d551b09

@ghost ghost closed this as completed Jul 17, 2013
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants