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 0D5DD6C3D65; Thu, 1 Feb 2024 14:24:58 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 0D5DD6C3D65 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1706786698; bh=Yb4i6pRbwmnGu7sw7B88mb315AQRydKMzuW0BqQDg7k=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=hhBXyH4bvrgtdvIL4Z4ZyEQzrGxaXlJmPKuBaC0DqcpicIxsfrzQJUH1MFiAgWPi3 Op49rGkxPybUO/2ylCCegtU+2uufjQqRJRdPdYcJY7Q+pSziqL5yBbQLNpJRbp9YkO Hu/b5xmyD4nYS1jsnt6418VwxNCYK+YNuZpCbzSs= Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com [209.85.208.173]) (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 DB9826C3D65 for ; Thu, 1 Feb 2024 14:24:56 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org DB9826C3D65 Received: by mail-lj1-f173.google.com with SMTP id 38308e7fff4ca-2cf4d2175b2so9203001fa.0 for ; Thu, 01 Feb 2024 03:24:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706786696; x=1707391496; 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=h/ia3Lvsbfqn3Ym/Mdgqzp0nCW4Ap6MyEKgT4ZzAmXI=; b=gHIGiOraAsFwYKTUB8q39GYRXLSei+oxlQt61zhGRnJrvgNrsA/P+J3zhI2eS6n4CP Q2dHKcEM9nWg+sbi58IZP8O3TjxNdR6ABEev6OKHC3jS1gpSXQYp9J39CuYbImV4mj20 XR6asAWM+5EjKwWQguqYpx+z7eh8EoBnlZtN16kd9V9rvkvgRfyoNS0MfZGBWXnCgJ+3 9n6SA7NpIQa3g1t0YnAwWH89BoKy3AG0ZFo2bcILo+oWWNbQMTPE8BI1bex1IphiSdCF PclVSM6yIShCf0+YobSMA7nC/KNiuriYG+MLoE9bPxeUAH4FvaiqwI2YfkbmqbdwK5R0 t37g== X-Gm-Message-State: AOJu0YwMSUTPClstqVr29q0L81jFcQQfxWMUaW1j6b3PLam46aA2RhtG qz5F9njqtkn1ncqnVhRHPedac15xzJU1IprhsbOjFICYsKsxE7nLtLwAiFqk X-Google-Smtp-Source: AGHT+IHpyrB36YCoLHyYTYNjskNVBdbkDNeWA4R76inOtLqA74VM5QyoPMFw7VRRGs2zNLgg34yHYA== X-Received: by 2002:a2e:848d:0:b0:2cf:4731:f170 with SMTP id b13-20020a2e848d000000b002cf4731f170mr3339837ljh.51.1706786695679; Thu, 01 Feb 2024 03:24:55 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCX7jDdGxYZA46QbfMls0AG2i8xoc45r3R9G+m6lYePl8IoTbfcAE/hY7ZoT0EAD6W0SLnaP9uuTLCIgq32mQa0JhPq68A5SOuzBWja+kBMUu7ZiGqw0+0fRRk/tmQ== Received: from localhost.localdomain (95-24-0-113.broadband.corbina.ru. [95.24.0.113]) by smtp.gmail.com with ESMTPSA id z9-20020a2e3509000000b002cdf37ee19dsm2372647ljz.7.2024.02.01.03.24.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 03:24:55 -0800 (PST) X-Google-Original-From: Maxim Kokryashkin To: tarantool-patches@dev.tarantool.org, skaplun@tarantool.org, sergeyb@tarantool.org Date: Thu, 1 Feb 2024 14:24:45 +0300 Message-ID: X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH luajit v4 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: Maxim Kokryashkin via Tarantool-patches Reply-To: Maxim Kokryashkin Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Changes in v4: - Added skipcond for nounwind builds. 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 | 95 +++++++++++++++++++ .../lj-603-err-snap-restore.test.lua | 1 + .../lj-962-stack-overflow-report.test.lua | 10 ++ .../lj-962-stack-overflow-report/script.lua | 3 + test/tarantool-tests/utils/exec.lua | 15 ++- 6 files changed, 132 insertions(+), 7 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 create mode 100644 test/tarantool-tests/lj-962-stack-overflow-report/script.lua -- 2.43.0