Topic on Extension talk:Scribunto

Lua error: Internal error: The interpreter exited with signal 5

3
Hurohukidaikon (talkcontribs)

Hello. When I was imported some template and modules for Infobox on my project, I got a error message bellow.

Lua エラー: 内部エラー: インタープリターはシグナル「5」により終了しました。

This means "Lua error: Internal error: The interpreter exited with signal 5". And I get this message in log file.

assertion failed [!mmap_result.is_error && mmap_result.value == kSlabAllocatorInterval.left]: Could not mmap data for the VMTracker slab allocator: 12 (VMAllocationTracker.cpp:278 init)

My environment is MediaWiki 1.38.7 working on Docker and the machine is MacBook Air M2. Others info are bellow.

MediaWiki 1.38.7
PHP 8.0.29 (apache2handler)
MariaDB 11.1.2-MariaDB-1:11.1.2+maria~ubu2204
ICU 67.1
Lua 5.1.5
Pygments 2.11.2

I was searched it, then the cause may related with ARM64 architecture but not sure.

What should I do for fixing this issue? If you need any additional info, I'll be happy to give it.

Thank you.

Tim Starling (talkcontribs)

You probably need to raise the memory limit. In LocalSettings.php try

 $wgScribuntoEngineConf['luastandalone']['memoryLimit'] = 200_000_000;
Hurohukidaikon (talkcontribs)

@Tim Starling

Thank you for replying. I tried it, and edited some files. Then this error was fixed. All steps are bellow.


Copy /usr/local/etc/php/php.ini-production in virtual machine to local. And rename it to php.ini.


Edit php.ini.

memory_limit = 256M.


Add following code in Dockerfile.

COPY php.ini /usr/local/etc/php

RUN apt-get -y update && apt-get -y install lua5.1


Add following code in LocalSettings.php.

$wgScribuntoEngineConf['luastandalone']['luaPath'] = '/usr/bin/lua5.1';

$wgScribuntoEngineConf['luastandalone']['memoryLimit'] = 268435456; # bytes

$wgMaxShellMemory = 262144; # KB


Hope this to help someone :-)

Reply to "Lua error: Internal error: The interpreter exited with signal 5"