Asterisk 20.6.0 crashes under heavy load

I’m upgrading my current system from Asterisk 11 and CentOS 7 to Asterisk 20.6.0 and Rocky Linux 8. The new system keeps crashing under load (200ish calls). I’m using lua for the dialplan and I’m thinking that may have something to do with the crashing. Thank You!

The CLI dies with:

double free or corruption (fasttop)
Aborted

Coredump is below:

1 Like

Yes, the backtrace would seem to indicate something with pbx_lua or the MySQL library.

1 Like

Thank you! I know I’ve asked this before, but are there any plans to remove the pbx_lua module from asterisk? I know it’s not supported, but it works extremely well and we wrote our extensive dialplan in it.

Noone has proposed removing it, and it is used internally at Sangoma.

1 Like

Do you happen to use luasql-mysql as well internally? The mysql plugin for lua seems to be the culprit. I haven’t found any good alternatives for it.

I don’t have knowledge of that, I can try to find out but it would likely need to wait until after AstriCon.

1 Like

Doing so more testing, I’ve found that using func_odbc instead of luasql in my diaplan works without crashing. I guess my solution is to port everything to func_odbc. :upside_down_face: