From:             ab
Operating system: all
PHP version:      5.5Git-2013-02-26 (Git)
Package:          PHAR related
Bug Type:         Bug
Bug description:Memory leak in ext/phar/tests/bug52013.phpt

Description:
------------
Running the mentioned test with valgrind is to see

Expected result:
----------------
no valgrind warnings

Actual result:
--------------
==22761== Syscall param write(buf) points to uninitialised byte(s)
==22761==    at 0x5924EB3: __write_nocancel (syscall-template.S:82)
==22761==    by 0x85852E8: _php_stream_filter_flush (filter.c:504)
==22761==    by 0x831BE2F: phar_flush (phar.c:2903)
==22761==    by 0x832B1DE: zim_Phar_compressFiles (phar_object.c:3436)
==22761==    by 0x863FFA4: zend_do_fcall_common_helper_SPEC 
(zend_vm_execute.h:542)
==22761==    by 0x8641374: ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER 
(zend_vm_execute.h:674)
==22761==    by 0x863E004: execute_ex (zend_vm_execute.h:356)
==22761==    by 0x863E9BA: zend_execute (zend_vm_execute.h:381)
==22761==    by 0x85FF017: zend_execute_scripts (zend.c:1316)
==22761==    by 0x85615FB: php_execute_script (main.c:2479)
==22761==    by 0x875C33C: do_cli (php_cli.c:988)
==22761==    by 0x875D785: main (php_cli.c:1364)
==22761==  Address 0x6187d1b is 11 bytes inside a block of size 15 alloc'd
==22761==    at 0x4024F20: malloc (vg_replace_malloc.c:236)
==22761==    by 0x85C3E62: _emalloc (zend_alloc.c:2427)
==22761==    by 0x85C4356: _estrndup (zend_alloc.c:2641)
==22761==    by 0x81C613C: php_zlib_deflate_filter (zlib_filter.c:250)
==22761==    by 0x8585094: _php_stream_filter_flush (filter.c:452)
==22761==    by 0x831BE2F: phar_flush (phar.c:2903)
==22761==    by 0x832B1DE: zim_Phar_compressFiles (phar_object.c:3436)
==22761==    by 0x863FFA4: zend_do_fcall_common_helper_SPEC 
(zend_vm_execute.h:542)
==22761==    by 0x8641374: ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER 
(zend_vm_execute.h:674)
==22761==    by 0x863E004: execute_ex (zend_vm_execute.h:356)
==22761==    by 0x863E9BA: zend_execute (zend_vm_execute.h:381)
==22761==    by 0x85FF017: zend_execute_scripts (zend.c:1316)
==22761==

-- 
Edit bug report at https://bugs.php.net/bug.php?id=64302&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=64302&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=64302&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=64302&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=64302&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=64302&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=64302&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=64302&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=64302&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=64302&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=64302&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=64302&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=64302&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=64302&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64302&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=64302&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=64302&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=64302&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64302&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=64302&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=64302&r=mysqlcfg

Reply via email to