[SR-Users] Lua KEMI crash
ivo at schupen.net
Wed Aug 8 16:08:54 CEST 2018
I have Kamailio 5.1.4 (from deb.kamailio.org) running on a Debian 9
AMD64 VM with 1 CPU and 1G of RAM on ESXi. For KEMI I am using the
liblua5.1-0:amd64 package, version 5.1.5-8.1+b2.
The configuration is rather simple - dispatcher module reading the
gateways from a file and forwarding everything to them based on a custom
variable. There are 2 gateways in the file being pinged with OPTIONS
packets every 10 seconds. Only a single SIP user is connecting to the
machine (besides the occasional scanner). I can post the config if
necessary, but I don't think that is the issue (see below).
The crash has happened twice already - once on 2018-08-07 19:45 and
2018-08-08 14:33 EEST. You can find an excerpt from the Kamailio debug
log at https://paste.fedoraproject.org/paste/bvyUMj3s5g2CcBN3JSBt5A/raw.
As you can see, it crashes when trying to run the Lua route on an
incoming packet. I am assuming the problem is this:
Aug 8 14:33:14 lb-dev1 kamailio: *** Error in
`/usr/sbin/kamailio': realloc(): invalid next size: 0x00005573dbff1ef0 ***
However, I could not find any (direct) `realloc()` calls in the source
for app_lua, so maybe this is an issue somehwere in liblua...
More information about the sr-users