[Oisf-devel] LuaJIT running out of memory causing Suricata crashes?
Victor Julien
victor at inliniac.net
Wed Dec 4 11:56:59 UTC 2013
On 12/04/2013 12:37 PM, Chris Wakelin wrote:
>> [32578] 4/12/2013 -- 11:18:50 - (detect-luajit.c:281) <Info> (DetectLuajitMatchBuffer) -- failed to run script: not enough memory
> I guess we could add more checks to the Lua scripts to avoid the
> zlib/xor errors, which occur all the time, but I think they're probably
> not significant. Is there a way we could prevent or at least debug the
> "not enough memory" errors which are presumably what causes Suricata to
> crash?
Maybe you can try inserting a "return 0" on line 282, so:
int retval = lua_pcall(tluajit->luastate, 1, 1, 0);
if (retval != 0) {
SCLogInfo("failed to run script: %s",
lua_tostring(tluajit->luastate, -1));
return 0;
}
What kind of process exit code are you getting?
--
---------------------------------------------
Victor Julien
http://www.inliniac.net/
PGP: http://www.inliniac.net/victorjulien.asc
---------------------------------------------
More information about the Oisf-devel
mailing list