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 ECE9D6522B6; Wed, 4 Oct 2023 15:51:01 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org ECE9D6522B6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1696423862; bh=QBsiIzTaNT/0JnWelwfSBZsj3d1GeWAuGJzKEJOFaD0=; h=To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=cisPF/k/gVzAWXn7jFiLhuSuhJpXCRSqapoqItaUiepn1S9ZBMHb7hjZp+xXu373I coKxhwW3lb2rPu8Wf6qKoEP+XwX/JYrgDIhV34XtwdvOm27iZobceNRfOxzwK4leUS T4vKbh3zeZaB+6lL36mV743fWbBRPdPRMk5D8kuw= Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) (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 C5EB86522B6 for ; Wed, 4 Oct 2023 15:50:39 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org C5EB86522B6 Received: by mail-lj1-f181.google.com with SMTP id 38308e7fff4ca-2c16bc71e4cso24310041fa.0 for ; Wed, 04 Oct 2023 05:50:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696423839; x=1697028639; 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=tIFcWU3x0+jU7fVsXRJ5K0cAvOgThkCRBZ51SYKHgCU=; b=mjYUWagP9F8gqhl5TrM76+GsFV/aPKc+T2VV0fNfTs0kCWgExY5kShQ9/ndx6ynFpB d5XlZ6ZaTLpC86/Vf8D46L1bykA1+ZNHsjv20oxkUghn7b+yksTi2JYzurrD+Q/rwxjq VUvrVUvIJl5mq0Y0ajCwnjSPl9pSFq4JP2BWe1EYe2wk3q4PhKmU7kCaOy8/YdRyhKiq FBaX4aweNLUc9F8o7XmbVz2ZayC6nSJlPp9VGGpND7qp9vesTJZIOwgPcxplUfnEqeCO cIOJhNheD4qjp4+jHXeTPLaPXVvlp+1GtVXleOuYDlharOXrOuv8uYVJHzGRCrSwkaN0 Yk6A== X-Gm-Message-State: AOJu0YxoRXVcyPJ1dowUKcUgG6gG35YX7JEZ/EG5EpVkmyWRE03tMgyc wcMaD71oag2Sezvh2L4fj9HeZWgbY8bKgg== X-Google-Smtp-Source: AGHT+IFVQe4q6M8qd1X2QFmdEd5g526fiumJKa1ky2E+K5XQrHU8k9fLkuX11Sx+rNfZNp3pyLdmMQ== X-Received: by 2002:a05:6512:308e:b0:503:2642:435e with SMTP id z14-20020a056512308e00b005032642435emr2460051lfd.66.1696423838785; Wed, 04 Oct 2023 05:50:38 -0700 (PDT) Received: from localhost.localdomain ([185.205.79.32]) by smtp.gmail.com with ESMTPSA id d1-20020ac24c81000000b0050326307edesm596379lfl.125.2023.10.04.05.50.37 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 04 Oct 2023 05:50:38 -0700 (PDT) To: tarantool-patches@dev.tarantool.org, sergeyb@tarantool.org, skaplun@tarantool.org, m.kokryashkin@tarantool.org Cc: Maksim Kokryashkin Date: Wed, 4 Oct 2023 15:50:32 +0300 Message-Id: <20231004125034.64110-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 v3 0/2] Fix snapshot PC when linking to BC_JLOOP that was a BC_RET*. 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" Changes in v3: - Fixed comments as per review by Sergey - The patch was split into two, so the test case becomes easier to implement since it can now depend on this assertion instead of memory layout. Branch: https://github.com/tarantool/luajit/tree/fckxorg/lj-624-jloop-snapshot-pc PR: https://github.com/tarantool/tarantool/pull/9166 Issue: https://github.com/luajit/luajit/issues/624 Mike Pall (2): snap: check J->pc is within its proto bytecode Fix snapshot PC when linking to BC_JLOOP that was a BC_RET*. src/lj_record.c | 9 +- src/lj_snap.c | 3 + .../lj-624-jloop-snapshot-pc.test.lua | 84 +++++++++++++++++++ 3 files changed, 92 insertions(+), 4 deletions(-) create mode 100644 test/tarantool-tests/lj-624-jloop-snapshot-pc.test.lua -- 2.39.3 (Apple Git-145)