https://bugzilla.wikimedia.org/show_bug.cgi?id=51886
Web browser: ---
Bug ID: 51886
Summary: LuaStandalone leaks memory for functions returned to
PHP
Product: MediaWiki extensions
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Scribunto
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
The LuaStandalone engine holds an id=>function mapping for all the functions it
returns to PHP, as happens for example every time a module is invoked. The
functions in this mapping are never removed, even after PHP releases all
references to the functions on its end. So if a module defines a lot of
functions and is invoked many times in a page, it can easily run out the memory
limit and cause the interpreter to exit.
LuaSandbox doesn't have this problem, as it does properly unreference the Lua
functions when the PHP object is destroyed.
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l