From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 443AF6EFDE0; Sat, 18 Nov 2023 02:41:23 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 443AF6EFDE0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1700264483; bh=pcUtswCr3UQvOw0BCFK2/HcfQTZaH/chNHSV+m2NAWY=; h=To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=PQgGMT31hEaMheAVadku29B9plQR/WWxmrTe7/RIcqxuhYd7wk3CF9hpu8eG53gTC ffoqvXZa9irDS/ZIhvgJUWDKdeddnjhMWzsnziIh4NciD9PBUZxfmPUVv96UH2bcMS eABaTA7qfUYIdGYqroPrpEu9orkkMidj9OcRJAPg= Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com [209.85.208.169]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 9448D45B843 for ; Sat, 18 Nov 2023 02:41:21 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 9448D45B843 Received: by mail-lj1-f169.google.com with SMTP id 38308e7fff4ca-2c509d5ab43so35901971fa.0 for ; Fri, 17 Nov 2023 15:41:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700264480; x=1700869280; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dxGFTeHdXAfntZirfIozR2KrN/OovYOjstOkgFvkte4=; b=oUPCUucfSx+M73xa+egxTysjXMFZQwj5uzscouBoh0s2Z+ZNif+oWkY1+9V+9DuEYh irUil9cMb0ykaQilsrB9SvymSqnHr8960CBMTPCZ7V71dtqW/EHQuZpzz4lBA6Vcsztk Q7eqaJ+f0yOUTFvsOCb/OdDYYVj2Byr/W9TgARXC6Iro/GVRljmCykL9RRDmGpfjEDxX VYNyplqzx7rsDvjXWNHW50vaJsjrmQfWtvCiGgAjjES81i3U68FhW6rCF25G8En1LGWQ c6QvmKcjH0xxVWO5t0zn7DmpFMkRVP9Sy67LX7BWmDgDxZOKGDoO5hEYLr/bDBWZ3Ej/ FQMQ== X-Gm-Message-State: AOJu0YwZ4QZaI80lY8wTf4XMtBsShC+Sa/ND0qjxLcHwOCdVpEln9/mS 5nvQqLg1BmCTFVmkzI/ZksVpkFK8jS5x6YO0 X-Google-Smtp-Source: AGHT+IH91QQpL8hCtmIWLpCPy2EOOazxyy6vLiyF8m6lngOQ3YfYgzkU4/0f7xqwkVLvhqFGhQvq1g== X-Received: by 2002:a2e:a0d2:0:b0:2c5:a21:8388 with SMTP id f18-20020a2ea0d2000000b002c50a218388mr791227ljm.29.1700264480207; Fri, 17 Nov 2023 15:41:20 -0800 (PST) Received: from localhost.localdomain (95-24-0-215.broadband.corbina.ru. [95.24.0.215]) by smtp.gmail.com with ESMTPSA id w14-20020a2e9bce000000b002c83b0bd971sm360587ljj.2.2023.11.17.15.41.19 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 17 Nov 2023 15:41:19 -0800 (PST) To: tarantool-patches@dev.tarantool.org, sergeyb@tarantool.org, skaplun@tarantool.org, m.kokryashkin@tarantool.org Cc: Maksim Kokryashkin Date: Sat, 18 Nov 2023 02:41:13 +0300 Message-Id: <20231117234116.60037-1-max.kokryashkin@gmail.com> X-Mailer: git-send-email 2.39.3 (Apple Git-145) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH luajit 0/3] Improve error reporting on stack overflow. X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Maksim Kokryashkin via Tarantool-patches Reply-To: Maksim Kokryashkin Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" This patchset fixes error reporting on stack overflow for situation when an xpcall error handler can use a bit more space. Issues: https://github.com/luajit/luajit/issues/962 https://github.com/tarantool/tarantool/issues/9145 PR: https://github.com/tarantool/tarantool/pull/9380 Branch: https://github.com/tarantool/luajit/tree/fckxorg/lj-962-error-reporting-on-stack-overflow Mike Pall (3): Improve error reporting on stack overflow. Cleanup stack overflow handling. Follow-up fix for stack overflow handling cleanup. src/lj_state.c | 15 +++-- .../lj-962-premature-stack-overflow.test.c | 64 +++++++++++++++++++ .../lj-603-err-snap-restore.test.lua | 1 + .../lj-962-stack-overflow-report.test.lua | 24 +++++++ 4 files changed, 100 insertions(+), 4 deletions(-) create mode 100644 test/tarantool-c-tests/lj-962-premature-stack-overflow.test.c create mode 100644 test/tarantool-tests/lj-962-stack-overflow-report.test.lua -- 2.39.3 (Apple Git-145)