Bug #72476 [NEW]: Memleak in jit_stack
| From: | laruence@php.net | Date: | Thu, 23 Jun 2016 06:05:42 +0000 |
| Subject: | Bug #72476 [NEW]: Memleak in jit_stack | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-201807@lists.php.net to get a copy of this message | ||
From: laruence
Operating system:
PHP version: 7.0.7
Package: PCRE related
Bug Type: Bug
Bug description:Memleak in jit_stack
Description:
------------
none
Test script:
---------------
<?php
preg_match("#test#", "");
Expected result:
----------------
non memleak
Actual result:
--------------
==9175== 32 bytes in 1 blocks are definitely lost in loss record 16 of
35
==9175== at 0x4C27A2E: malloc (vg_replace_malloc.c:270)
==9175== by 0x4D2200: sljit_allocate_stack (sljitUtils.c:236)
==9175== by 0x500FC6: pcre_jit_stack_alloc
(pcre_jit_compile.c:10614)
==9175== by 0x502265: zm_activate_pcre (php_pcre.c:220)
==9175== by 0xA7D844: zend_activate_modules (zend_API.c:2543)
==9175== by 0x9DEF61: php_request_startup (main.c:1629)
==9175== by 0xB48677: main (cgi_main.c:2318)
--
Edit bug report at https://bugs.php.net/bug.php?id=72476&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=72476&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=72476&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=72476&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=72476&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=72476&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=72476&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=72476&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=72476&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=72476&r=support
Expected behavior: https://bugs.php.net/fix.php?id=72476&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=72476&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=72476&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=72476&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72476&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=72476&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=72476&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=72476&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72476&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=72476&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=72476&r=mysqlcfg