[PATCH v1 1/1] box: fix crash in ncurses on fedora 28

Vladimir Davydov vdavydov.dev at gmail.com
Wed Aug 8 21:27:44 MSK 2018


On Wed, Aug 08, 2018 at 04:52:28PM +0300, Kirill Shcherbatov wrote:
> diff --git a/src/lua/init.c b/src/lua/init.c
> index a0a7f63..217640f 100644
> --- a/src/lua/init.c
> +++ b/src/lua/init.c
> @@ -610,8 +610,10 @@ tarantool_lua_run_script(char *path, bool interactive,
>  	 * To work this problem around we must run init script in
>  	 * a separate fiber.
>  	 */
> -
> -	script_fiber = fiber_new(title, run_script_f);
> +	struct fiber_attr fiber_attr =
> +		{.stack_size = 0x8000 * 4,
> +		 .flags = FIBER_DEFAULT_FLAGS | FIBER_CUSTOM_STACK};
> +	script_fiber = fiber_new_ex(title, &fiber_attr, run_script_f);

AFAIU lbox_console_readline (the function that calls ncurses and crashes
according to the ticket description) can be called from other fibers as
well, e.g.

  require('fiber').create(function() require('console').start() end)

Don't we want to fix that too?



More information about the Tarantool-patches mailing list