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=0.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [94.130.110.93]) (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 3B4621F508 for ; Wed, 29 Jan 2025 07:28:49 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; unprotected) header.d=ml.ruby-lang.org header.i=@ml.ruby-lang.org header.a=rsa-sha256 header.s=mail header.b=oUnXeDY/; 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=aeZ2dFno; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1738135696; bh=gU5upOd1IV7gvZ6Cb/NZaEmUHGlyUm1cGon9AMebQ1E=; 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=oUnXeDY/+z7Vk7HPKKudTaIkYDsotkU9wlAkIquPe+L+wLDKKwad2+rlFP172br1K qQeEFYn/DTxUHs61/7GfKmiJR4etAazxE+X/BbdjZFvfYZsauO4WVdYEd6IJ//VKPK IG1ceG5IPnwQbMAVjuvRAR/WIKq3Ry01rAW0YLck= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 15C7A46875 for ; Wed, 29 Jan 2025 07:28:16 +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=aeZ2dFno; dkim-atps=neutral Received: from s.wrqvwxzv.outbound-mail.sendgrid.net (s.wrqvwxzv.outbound-mail.sendgrid.net [149.72.154.232]) by nue.mailmanlists.eu (Postfix) with ESMTPS id CC1DA46208 for ; Wed, 29 Jan 2025 07:28:10 +0000 (UTC) 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=Nnm8Kvk2aMUezanOG/zlFolVTltwcJdIDLltSkcGJCM=; b=aeZ2dFno/cLz6AAh2399brNokC63dnXjk7JRjijvhMbngxrW7HkhFehRaL5fTDfKUV0a S9/Maz/hUocqpsBPJk6WSNI2RZM8+wjJYHVG0PLwka7ugmVCZsrRga9nAEYsE89paQy0aQ CbG2gOZ/RyVXN31+daeqzXOX+e3PIbltRahAiR7imEkZwAHKJFNMexX6eR1QymN0x+kfKk b2EvC688QWQYkrD087bQZW5CLWOIXiUiHfmk1xmeDmSEEvFEcxvc2ld92Q8GcVaZPwglAC ILSADby8nHffGyGnHhhiItYCA9D8KMsrL/PAIsUxhCZ+9FntwOoagzWqfWAc+rvg== Received: by recvd-69cbc48b94-q4tz7 with SMTP id recvd-69cbc48b94-q4tz7-1-6799D889-15 2025-01-29 07:28:09.626439466 +0000 UTC m=+6516321.625155946 Received: from herokuapp.com (unknown) by geopod-ismtpd-34 (SG) with ESMTP id ljLPJ91WS-ipgsTW0m4xIw for ; Wed, 29 Jan 2025 07:28:09.572 +0000 (UTC) Date: Wed, 29 Jan 2025 07:28:09 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 21096 X-Redmine-Issue-Author: midnight X-Redmine-Issue-Priority: Normal X-Redmine-Sender: midnight 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: 97534 X-SG-EID: =?us-ascii?Q?u001=2EpnePcC4Dw0O3PstV7mV8jIAQ0ZEZIZdb8ktbfxWmySoS+3Gb=2FZDcSRyDv?= =?us-ascii?Q?FmlWTx2OMRa4gj3AZYQ0i9v6T3fU7dQP1ls99Mp?= =?us-ascii?Q?CQafrYopVr4Q2gRTwtbRdCn=2FJ+MvzA8eIEX3cyC?= =?us-ascii?Q?6QFPr93V1BJkwyFoATIx21C2Aa=2F7MKx+ebbJufc?= =?us-ascii?Q?86Vl7IrwcdjJayYYw+7OByXjBRYV6mJl1QNl9PX?= =?us-ascii?Q?TvfFnB=2FdaZayqUNapwwMS=2FLU00m2gkAbdVXVa2V?= =?us-ascii?Q?32KD?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: YU6WC34R4ARHP2J63TTJPKD2B557NQRG X-Message-ID-Hash: YU6WC34R4ARHP2J63TTJPKD2B557NQRG 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.9 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:120817] [Ruby master Bug#21096] Ruby hangs up when compiling for bytecode on AArch64 emulated by QEMU List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "midnight (Sarun R) via ruby-core" Cc: "midnight (Sarun R)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #21096 has been reported by midnight (Sarun R). ---------------------------------------- Bug #21096: Ruby hangs up when compiling for bytecode on AArch64 emulated by QEMU https://bugs.ruby-lang.org/issues/21096 * Author: midnight (Sarun R) * Status: Open * ruby -v: ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [x86_64-linux] * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN ---------------------------------------- Hello, We are experiencing issues when using [Bootsnap](https://github.com/Shopify/bootsnap) for production container image building, specifically when running `bundle exec bootsnap precompile --gemfile` on an emulated ARM64 environment on AMD64 hosts. Here are more details: * Bootsnap is a Ruby gem for bytecode caching, which speeds up loading times. It achieves this by calling `RubyVM::InstructionSequence.compile_file` and `RubyVM::InstructionSequence.load_from_binary`. * When running `bundle exec bootsnap precompile --gemfile` in the environment described (using QEMU to emulate the AArch64 instruction set), the process can compile and generate some bytecode but eventually hangs. * The hang seems random, occurring at different points during the process. * According to [a Rails GitHub issue](https://github.com/rails/rails/issues/54039), the issue affects both `Docker` and `containerd`, as well as native Linux and macOS environments. * From [a Bootsnap GitHub issue](https://github.com/Shopify/bootsnap/issues/495), the problem likely doesn't occur in Ruby `3.2.6` but appears in later versions. * So far, the common factors observed are: * Emulated ARM64 on AMD64 CPUs (likely using QEMU) * Newer Ruby versions (e.g., 3.3 and 3.4) As a user, I don't have the expertise to debug the issue but am willing to gather more information if provided with sufficient instructions. -- 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/lists/ruby-core.ml.ruby-lang.org/