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) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 70E1C1F406 for ; Thu, 7 Dec 2023 19:57:54 +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=x7GkD5aO; 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=OaJRUxKo; dkim-atps=neutral Received: from nue.mailmanlists.eu (localhost [127.0.0.1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 8B7D8816FC; Thu, 7 Dec 2023 19:57:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1701979065; bh=S383Ry+Mh+zoogtTMewyMXRtHMDynESR5fyScd7u5lQ=; 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=x7GkD5aOoBCh52jUpyidUhRp3kez3LCiex2qTnDszK+ali6neiC4Cxrm40AWud5yt QVpi9knXseIUSHjF7+SrP3TK8/zFQjxFJW6wWxHPKrfca7CI2zec+XhILdQ274VSeQ 2ytCLY7TtxhfA5nirpXLE08/rj6nprzLTmUTB7fg= Received: from wrqvtvtt.outbound-mail.sendgrid.net (wrqvtvtt.outbound-mail.sendgrid.net [149.72.120.119]) by nue.mailmanlists.eu (Postfix) with ESMTPS id F2B6E8161A for ; Thu, 7 Dec 2023 19:57:42 +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=OaJRUxKo; 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=coM5QBLgvFLtL13yaToKjh3g8ZYf6V1qqp8fuB4FQnw=; b=OaJRUxKom05yjpIWuZhNJAs5ByJH+BS0k1Pz1Esur1OGG1L2FXjbi3cYZkEAiGT2aSYt rnzNMS3IH/Nc6q+HuZ+wYPm2m1funi/xAXOBxtfQ8ec+IEVTwRn+chkAOQOo4dfssGORQv 04Yw+dw/ym7R8Tx4NdR8QCBxMj5wjIWB59P/EBa3ygdPIzPMQq26addJgmmVnOXlSiDRA1 +KF6E+ceuM8VGZa+Liv+HX+i1UvEhq6DWysP67IUqHvKE+/51jQJjX5sammU0ohVUMK5cH qlTXjC7KLgrsff/wfu2i8TgArLyOaJBLpSj2NSnYgENpKLO9xmhT98DnVEEYawSw== Received: by filterdrecv-655bd866f5-tzxlm with SMTP id filterdrecv-655bd866f5-tzxlm-1-657223B5-4D 2023-12-07 19:57:41.675778564 +0000 UTC m=+22830.919373226 Received: from herokuapp.com (unknown) by geopod-ismtpd-20 (SG) with ESMTP id Piq6awJNS2q6hByn23Zzbg for ; Thu, 07 Dec 2023 19:57:41.613 +0000 (UTC) Date: Thu, 07 Dec 2023 19:57:41 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 20050 X-Redmine-Issue-Author: martinemde X-Redmine-Sender: martinemde 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: 92187 X-SG-EID: =?us-ascii?Q?yQKwSG3DTF33L5yZEdEwoWRa824Y1rv21Zv4dgDbs5cqviV1wsVhfIbMnfQYVe?= =?us-ascii?Q?L0hz72LxHu2AFJUFWg3+2T5cMofQSWuQ=2FLI9bRe?= =?us-ascii?Q?M0Sj6sOMoRLW3BgtnWlfGyUYJUfKwJYIbsVRKvC?= =?us-ascii?Q?=2FQFH=2Ft7QfntudUwez0+e7vZr2tf3h+DLeMJgt9b?= =?us-ascii?Q?68VIhX6dchuzLzJf1c8vfnYHUVS7zuwgGTcrKWj?= =?us-ascii?Q?+o+QtChKTvA5b1lPReSLK6Q7Cl9sPvkm7eNtE9H?= =?us-ascii?Q?FnpJ6HfIZtSxKVJuUUsGQ=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== Message-ID-Hash: CCGEI5MNYKB65WLZTUAJQHOAJHPLIIS4 X-Message-ID-Hash: CCGEI5MNYKB65WLZTUAJQHOAJHPLIIS4 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:115649] [Ruby master Bug#20050] Segfault on Ruby 3.2.2 on x86_64 Darwin 20 (maybe in Array#hash) List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "martinemde (Martin Emde) via ruby-core" Cc: "martinemde (Martin Emde)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20050 has been reported by martinemde (Martin Emde). ---------------------------------------- Bug #20050: Segfault on Ruby 3.2.2 on x86_64 Darwin 20 (maybe in Array#hash) https://bugs.ruby-lang.org/issues/20050 * Author: martinemde (Martin Emde) * Status: Open * Priority: Normal * ruby -v: ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-darwin20] * Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN ---------------------------------------- Hi, In the rubygems & bundler repositories we've now had two segfaults in the same exact code within days of merging a change to that code, both on ruby 3.2.2 on darwin20. 1. https://github.com/rubygems/rubygems/actions/runs/7110489973/job/19357067789?pr=7129 2. https://github.com/rubygems/rubygems/actions/runs/7131889001/job/19421304163?pr=7228 The specific error seems to happen when calculating the hash of the array in Gem::NameTuple#hash. The array contents that is being `.hash`ed both times should be exactly: `["has_metadata", "1.0", "ruby"]`. If I'm reading this correctly, this indicates that the crash is related either to creating this hash or storing this hash in the hash table (I'm not quite sure which is triggering the crash). An excerpt of the C backtrace shows the same backtrace for both crashes: ``` -- C level backtrace information ------------------------------------------- /Users/runner/hostedtoolcache/Ruby/3.2.2/x64/lib/libruby.3.2.dylib(rb_vm_bugreport+0x7c4) [0x10cb0f994] /Users/runner/hostedtoolcache/Ruby/3.2.2/x64/lib/libruby.3.2.dylib(rb_bug_for_fatal_signal+0x1d0) [0x10c9158c0] /Users/runner/hostedtoolcache/Ruby/3.2.2/x64/lib/libruby.3.2.dylib(sigsegv+0x5b) [0x10ca609ab] /usr/lib/system/libsystem_platform.dylib(_sigtramp+0x1d) [0x7ff810c14dfd] /Users/runner/hostedtoolcache/Ruby/3.2.2/x64/lib/libruby.3.2.dylib(rb_id_table_lookup+0x16) [0x10caa2a56] /Users/runner/hostedtoolcache/Ruby/3.2.2/x64/lib/libruby.3.2.dylib(callable_method_entry_or_negative+0x5e) [0x10cae9c8e] /Users/runner/hostedtoolcache/Ruby/3.2.2/x64/lib/libruby.3.2.dylib(rb_check_funcall_basic_kw+0x129) [0x10caf0039] /Users/runner/hostedtoolcache/Ruby/3.2.2/x64/lib/libruby.3.2.dylib(obj_any_hash+0x3c) [0x10c94bd2c] /Users/runner/hostedtoolcache/Ruby/3.2.2/x64/lib/libruby.3.2.dylib(any_hash+0x52) [0x10c94bc12] /Users/runner/hostedtoolcache/Ruby/3.2.2/x64/lib/libruby.3.2.dylib(rb_st_add_direct+0x1d) [0x10ca69b7d] /Users/runner/hostedtoolcache/Ruby/3.2.2/x64/lib/libruby.3.2.dylib(ar_try_convert_table+0x85) [0x10c94d015] /Users/runner/hostedtoolcache/Ruby/3.2.2/x64/lib/libruby.3.2.dylib(rb_hash_aset+0x18f) [0x10c94e26f] ``` I'm not sure how to follow this instruction in this case on GitHub actions: "Don't forget to include the Crash Report log file under DiagnosticReports directory in bug reports." I have not been able to reproduce this locally with the same version of ruby (but I'm on darwin22 instead of 20). I will follow up if we continue to see this same crash. -- 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/