From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id DAB2D2E834 for ; Tue, 28 May 2019 14:57:08 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cxBsdvurnks9 for ; Tue, 28 May 2019 14:57:08 -0400 (EDT) Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 8A5F52E291 for ; Tue, 28 May 2019 14:57:08 -0400 (EDT) Received: by mail-lj1-f170.google.com with SMTP id a10so7976357ljf.6 for ; Tue, 28 May 2019 11:57:08 -0700 (PDT) Date: Tue, 28 May 2019 21:57:05 +0300 From: Cyrill Gorcunov Subject: [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. Message-ID: <20190528185705.GP11013@uranus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-Help: List-Unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-Subscribe: List-Owner: List-post: List-Archive: To: tarantool Cc: Kirill Yukhin , Alexander Turenko From: "Yichun Zhang (agentzh)" 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