Bug #60046 [NEW]: Memory leak using Lua
| From: | ghosh at q-one dot com | Date: | Wed, 12 Oct 2011 15:10:15 +0000 |
| Subject: | Bug #60046 [NEW]: Memory leak using Lua | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-8714@lists.php.net to get a copy of this message | ||
From:
Operating system: Linux
PHP version: 5.3.8
Package: lua
Bug Type: Bug
Bug description:Memory leak using Lua
Description:
------------
There seems to be a memory leak using Lua.
Test script:
---------------
<?
$cnt=0;
$total=100000;
$lastperc=-1;
for ($z=0;$z<$total;$z++) {
$cnt++;
$perc=round($cnt/$total*100);
if ($perc!=$lastperc) {
echo memory_get_usage(true)." Bytes<br />";
echo $perc."%<br />";
$lastperc=$perc;
flush();
}
$lua=new Lua();
$r=$lua->eval("return 2+5");
}
?>
Expected result:
----------------
I would expect the memory usage not rise indefinitely but instead stay
constant.
Actual result:
--------------
The memory usage keeps increasing.
--
Edit bug report at https://bugs.php.net/bug.php?id=60046&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60046&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60046&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60046&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=60046&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60046&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=60046&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=60046&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=60046&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=60046&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=60046&r=support
Expected behavior: https://bugs.php.net/fix.php?id=60046&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=60046&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=60046&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=60046&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60046&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=60046&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=60046&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=60046&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=60046&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=60046&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=60046&r=mysqlcfg