[tarantool-patches] [PATCH luajit] bugfix: fixed assertion failure "lj_record.c:92: rec_check_slots: Assertion `nslots <= 250' failed" found by stressing our edgelang compiler.
Cyrill Gorcunov
gorcunov at gmail.com
Tue May 28 21:57:05 MSK 2019
From: "Yichun Zhang (agentzh)" <yichun at openresty.com>
Fixes #4053
---
https://github.com/tarantool/tarantool/issues/4053
As being requested by @olegrok
src/lj_record.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/lj_record.c b/src/lj_record.c
index fe9691d..55aa565 100644
--- a/src/lj_record.c
+++ b/src/lj_record.c
@@ -1860,6 +1860,8 @@ static void rec_varg(jit_State *J, BCReg dst, ptrdiff_t nresults)
lj_trace_err_info(J, LJ_TRERR_NYIBC);
}
}
+ if (J->baseslot + J->maxslot >= LJ_MAX_JSLOTS)
+ lj_trace_err(J, LJ_TRERR_STACKOV);
}
/* -- Record allocations -------------------------------------------------- */
--
2.20.1
More information about the Tarantool-patches
mailing list