Topic on Extension talk:Scribunto

Script error: Lua error: Internal error: The interpreter has terminated with signal "11".

3
Mastergalen (talkcontribs)

Trying to add http://en.wikipedia.org/w/index.php?title=Module:Navbox to my wiki.

When I edit Module:Navbox and try to save the code, it returns the error:

 Script error: Lua error: Internal error: The interpreter has terminated with signal "11".

Nothing is written to the error file either; only a blank file is created.

Edit:

Simple code such as:

local p = {}
 
function p.hello( frame )
    return "Hello, world!"
end
 
return p

results in the same error.

Mastergalen (talkcontribs)

I finally fixed the issue with help from User:anomie on the #wikimedia-dev IRC channel. Signal 11" would tend to indicate that the standalone Lua interpreter that is shipped with the extension has crashed.

Instead, run the Lua interpreter that should already be pre-installed on your server. For some reason the Lua binaries packaged in the extension do not seem to work.

Run the lua command via SSH. Check that your server is running version 5.1.x. Note that for Scribunto the version has to be 5.1.x.

Lua's default installation path is in /usr/bin/lua.

Then in your LocalSettings.php set:

   $wgScribuntoEngineConf['luastandalone']['luaPath'] = '/usr/bin/lua';

to fix the issue.


If running the Lua command shows it as undefined, then you could try installing it with yum install lua, though I am not sure if the version would still be 5.1.x

Bluedreamer1 (talkcontribs)
Reply to "Script error: Lua error: Internal error: The interpreter has terminated with signal "11"."