[Tarantool-patches] [PATCH v4] lua: fix running init lua script

Kirill Yukhin kyukhin at tarantool.org
Sun Dec 27 13:46:01 MSK 2020


Hello,

On 24 Dec 23:41, Artem Starshov via Tarantool-patches wrote:
> When tarantool launched with -e flag and in
> script after there is an error, program hangs.
> This happens because shed fiber launches separate
> fiber for init user script and starts auxiliary
> event loop. It's supposed that fiber will stop
> this loop, but in case of error in script, fiber
> tries to stop a loop when the last one isn't
> started yet.
> 
> Added a flag, which will watch is loop started and
> when fiber tries to call `ev_break()` we can be sure
> that loop is running already.
> 
> Fixes #4983
> ---
> @ChangeLog: Fixed a hang when tarantool launched with the -e option and users
> script throws an error (`tarantool -e 'assert(false)'`) (gh-4983).

I've checked your patch into 1.10, 2.5, 2.6 and master.

--
Regards, Kirill Yukhin


More information about the Tarantool-patches mailing list