diff --git a/src/lua/fiber.c b/src/lua/fiber.c index 45bc037872d30f7e8be0a9ec02e2f1f41abccad0..efb0a492194e491eb02618cdf3d20b25baa1ea17 100644 --- a/src/lua/fiber.c +++ b/src/lua/fiber.c @@ -214,7 +214,12 @@ fiber_backtrace_cb(int frameno, void *frameret, const char *func, size_t offset, { struct lua_fiber_tb_ctx *tb_ctx = (struct lua_fiber_tb_ctx *)cb_ctx; struct lua_State *L = tb_ctx->L; - if (strstr(func, "lj_BC_FUNCC") == func) { + /* + * There is impossible to get func == NULL until + * https://github.com/tarantool/tarantool/issues/5326 + * will not resolved, but is possible afterwards. + */ + if (func != NULL && strstr(func, "lj_BC_FUNCC") == func) { /* We are in the LUA vm. */ lua_Debug ar; while (tb_ctx->R && lua_getstack(tb_ctx->R, tb_ctx->lua_frame, &ar) > 0) {