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)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 39C7E1F5D2 for ; Tue, 11 Mar 2025 07:21:57 +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=1X8g4jtN; 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=OmlbhUrC; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1741677684; bh=lvrocyXVJtaSFzl59AhH77DLfCYxZgrT1jUTg40pkjs=; 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=1X8g4jtNVuUBdP35TzdBDmV0A2OPM3nw3xBcoLAm+CEeVc9+DyvFVVxjWiEZ84neU xIa0VeuZadTDPRs3/G56JDq8lSyiga2/eokS0hWBUwGjczqoz77tTiZ3mFaajkYDB5 sv+fguLhIGQvq4oyvD3E0CD/yX6GBnHX43//fvtk= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 576D046BC3 for ; Tue, 11 Mar 2025 07:21:24 +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=OmlbhUrC; dkim-atps=neutral Received: from s.wrqvtvvn.outbound-mail.sendgrid.net (s.wrqvtvvn.outbound-mail.sendgrid.net [149.72.120.130]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 4F24646BAC for ; Tue, 11 Mar 2025 07:21:19 +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=D9oUfTBhNgu3qAjCRheoxKXBK0onK3Kwyp8qvUjwezw=; b=OmlbhUrCBGmKOqurJRHovsX+gs2B9KkU80XjgQgFIA4r+TlwXHD7/AfcXxaI13OOSgmj tJqcy77dUr6ptwG5XZ1quofiXUO7cSoW433CTJhI9Xq3L3pBve+0XQ+MkjquIWZ0ygZy5x chGMHWyQGUGMAMBcaU+/uA0pHKbH1Wgd49yiP5s/p0EpREZhKq8GaQBvE7YDylgGf3ZXR7 3rsU0EoSeWe/LD0XzpggAg5kP8GiEpOknkmdgzwLMmyC/bJYTYukGCPSk8WB9z0XNM3Vq4 CekQYwHZTpjCPX9u0cQrBxSztkrVLFXGuaco3SHAtXO7PUJzZl0yD5BTL9iy3yXw== Received: by recvd-69fb75db69-4wwvv with SMTP id recvd-69fb75db69-4wwvv-1-67CFE46D-1B 2025-03-11 07:21:17.78814667 +0000 UTC m=+1687409.417664418 Received: from herokuapp.com (unknown) by geopod-ismtpd-2 (SG) with ESMTP id oXyIaYjiRk217_yen6xDKg for ; Tue, 11 Mar 2025 07:21:17.742 +0000 (UTC) Date: Tue, 11 Mar 2025 07:21:17 +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: mame 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: 98007 X-SG-EID: =?us-ascii?Q?u001=2Ep+ckLDtT+4Y5c+H0YCkEnsuWiCQmn3OZA=2F9FzjoR6ZZlPaMv54M7EFoSM?= =?us-ascii?Q?CX5Trc79ep2R5F+0oYS4n23jq1cv4BKrJ1BxHY1?= =?us-ascii?Q?HaYzwv9sNrco6v1tRUC46mIUoVejtGapKIOZCvi?= =?us-ascii?Q?cbzsXVYbDKXWhjbGj1lU55sfdaJS7t5=2F9jmZv8L?= =?us-ascii?Q?nhnw=2F7BdIfrbHdVmIovxjtD76OluWD6SqeQMuXP?= =?us-ascii?Q?21eOru1EmujD484muQ9Yr2X7z9yefSVa7Zb8dwV?= =?us-ascii?Q?uw8m?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: KXIECAGFMYOCBNNXQV6AMRDSFDR5RD2A X-Message-ID-Hash: KXIECAGFMYOCBNNXQV6AMRDSFDR5RD2A 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:121283] [Ruby master Bug#21096] `Process.fork` hangs up on QEMU when called multiple times. List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "mame (Yusuke Endoh) via ruby-core" Cc: "mame (Yusuke Endoh)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #21096 has been updated by mame (Yusuke Endoh). Status changed from Open to Third Party's Issue Try the latest qemu. If it still reproduces, let me know. ---------------------------------------- Bug #21096: `Process.fork` hangs up on QEMU when called multiple times. https://bugs.ruby-lang.org/issues/21096#change-112247 * Author: midnight (Sarun R) * Status: Third Party's Issue * 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/