From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [IPv6:2a01:4f8:1c0c:6b10::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id E4EB41F406 for ; Mon, 6 Nov 2023 11:15:07 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; secure) header.d=ml.ruby-lang.org header.i=@ml.ruby-lang.org header.a=rsa-sha256 header.s=mail header.b=cFeNLN48; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=cayKJ70A; dkim-atps=neutral Received: from nue.mailmanlists.eu (localhost [127.0.0.1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 1455A81123; Mon, 6 Nov 2023 11:14:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1699269297; bh=TChc1sJabFUlD+kSotn6LCjeHJJ5LtEzXTl84Q5syYQ=; h=Date:References:To:Reply-To:Subject:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From:Cc:From; b=cFeNLN48svjFOD7Nd4dR564l7w+v4XoihbPtrKe2QBR4CffCeC/7uYNDG8XdX2EcM JVIRuBa2+Wi0gIk8F16HzH8PJv4z38lWCycqlbDP7SKBSOe223azb2fZCEq2MZoX0c loyoPaKNX9jg6C/RbQQ1P2FwNdOPxSpxYVvUtL+A= Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 4394B8110D for ; Mon, 6 Nov 2023 11:14:54 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=pass (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=cayKJ70A; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ruby-lang.org; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to:cc:content-type:from:subject:to; s=s1; bh=mEDqGsUSjLQfcIvsnI01F95XEfu0VpC5oEqikpAwp3A=; b=cayKJ70AVr8YJOWQbqCbLiug1iYpLMxAeNvxFnd/8S5Ryo+aulDkTLymBWVxKVULYXHR CMz7j2X0FOg5dUmLV1GRL9DNHu6FABy/USrEMXhYTsbu7u56cS5/1kjncsgcgKqeCYO57o 280pHS+LT2MuQVxNQLWa5TogaU9YWsneupbbdDkORTh64dgREXeSOonfi/j3L49muopej6 014np48/UvSoeyw1Yk2QbqfwaAzSxE8KH67DMYiscR2pknwEcskmYIsjEzBLXl4Ympc4Og 2hVTAHOqzpXH+LzR6JjUr4ersFBRpD0cQ6GnnRw+272qephl6mwWl70jRwCwsn4g== Received: by filterdrecv-656b5b4c75-wlz7f with SMTP id filterdrecv-656b5b4c75-wlz7f-1-6548CAAD-18 2023-11-06 11:14:53.102383275 +0000 UTC m=+1701300.276323513 Received: from herokuapp.com (unknown) by geopod-ismtpd-30 (SG) with ESMTP id MlbMDzWBQICs_ydrF8pj1Q for ; Mon, 06 Nov 2023 11:14:53.002 +0000 (UTC) Date: Mon, 06 Nov 2023 11:14:53 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 18991 X-Redmine-Issue-Author: qnighy X-Redmine-Issue-Assignee: mame X-Redmine-Sender: usa X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-Redmine-MailingListIntegration-Message-Ids: 91799 X-SG-EID: =?us-ascii?Q?BxDbfNQnwsX=2F0cs5htW3E5gCu78ggpQEdH=2FDrkrDjQAkyUE49pKpjAfYJLF3P8?= =?us-ascii?Q?17DzM4XaHLomB931NWJ7CDjNME8PF9mm7=2FAycT0?= =?us-ascii?Q?A+IE+9C9vigx4Ex6pJKtXld1aF0iycBIrfTcUo6?= =?us-ascii?Q?=2F+AKA9sFAQV5Vjtm9TodGcutzPRdBWsRmJ0gE1L?= =?us-ascii?Q?XuDipyxbc2pWr=2Fusf2XaBRR1=2Fr8lpOZTyd4xUkW?= =?us-ascii?Q?RNVpfYwuj6NQqtc8e+ZezRxMpORE4VD+gsjuaf3?= =?us-ascii?Q?R+bxme+HlM7cm5Fs=2FVkaw=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== Message-ID-Hash: J7GOHST5BC5XHTYGGBXCEJBCIF3VPDVP X-Message-ID-Hash: J7GOHST5BC5XHTYGGBXCEJBCIF3VPDVP X-MailFrom: bounces+313651-b711-ruby-core=ml.ruby-lang.org@em5188.ruby-lang.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:115262] [Ruby master Bug#18991] False LocalJumpError when branch coverage is enabled List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "usa (Usaku NAKAMURA) via ruby-core" Cc: "usa (Usaku NAKAMURA)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #18991 has been updated by usa (Usaku NAKAMURA). Backport changed from 3.0: UNKNOWN, 3.1: REQUIRED, 3.2: DONTNEED to 3.0: UNKNOWN, 3.1: DONE, 3.2: DONTNEED ruby_3_1 d494cf4ddababb80660381e963f910ccacc3f7bc merged revision(s) 4a7d6c2852aa734506be83c932168e8f974687b5. ---------------------------------------- Bug #18991: False LocalJumpError when branch coverage is enabled https://bugs.ruby-lang.org/issues/18991#change-105178 * Author: qnighy (Masaki Hara) * Status: Closed * Priority: Normal * Assignee: mame (Yusuke Endoh) * ruby -v: ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [arm64-darwin21] * Backport: 3.0: UNKNOWN, 3.1: DONE, 3.2: DONTNEED ---------------------------------------- Enabling branch coverage leads to a false LocalJumpError where it should not be raised. ```ruby # test.rb require "coverage" Coverage.start(branches: true) # Coverage.start(lines: true) load "./test2.rb" ``` ```ruby # test2.rb 1&.tap do break end ``` Output: ``` $ ruby test.rb /Users/qnighy/workdir/branch-coverage-bug/test2.rb:1:in `block in ': break from proc-closure (LocalJumpError) from :90:in `tap' from /Users/qnighy/workdir/branch-coverage-bug/test2.rb:1:in `' from test.rb:5:in `load' from test.rb:5:in `
' ``` -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/