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 autolearn=ham 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 F08211F50E for ; Fri, 14 Feb 2025 08:16:38 +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=mIyjE700; 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=Z9V0XRsg; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1739520996; bh=M8Z64hl/w/h16zwjJs6gWdKP7s8MMwJKuxDBEBlSV28=; 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=mIyjE700G8Q/nmfBIRRFejUpHS0e+iILdxwHckUQNR5ImKBKOH2aQSpZMHVzPCxvq M6w25xi9FvxdSWg2/40riap3aDwq+0dQJ5CZCR1P0pj2+J64EDWjkfwL5xRie0jaYO /rbFjyLBais2rOZapADcJ8SNpi1qUsDO9VOwMzMM= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 8671B46C92 for ; Fri, 14 Feb 2025 08:16:36 +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=Z9V0XRsg; dkim-atps=neutral Received: from s.wfbtzhsv.outbound-mail.sendgrid.net (s.wfbtzhsv.outbound-mail.sendgrid.net [159.183.224.104]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 9C45746BA9 for ; Fri, 14 Feb 2025 08:15:38 +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=saq1qnYNjRPxPV7m3yoHQg17S+BFXQ1ZfSFHfWQTSCc=; b=Z9V0XRsgF4jmWsAfU0NVzlMtmJyXYeQD6bDYGuLEXCuPc74c+sh2oSQcJ9l+QaVQWAT0 sr2bXE4JKLenPv6zMijY2oiadB9XFAGOxTQ8iAJb2AfAp07It7dafI2XXuTWV14h0tER4K 9oZ/vLT0TazLl6Li4AVBzEsmPecdOz5lhNupzU8jwelyPIUmg3qqpCUj5xlmJMrNheYsb7 tpbl10vXy5kdGhascgebtxqQJyp/PuLt0JcBEp8uRZyMdzlhuclVXaCFC9O4fJJqgiTIv8 tT5zv1ZTAVuwRWWPBJsDBiJQfGyExAQag3z0EvAmCImS9eoGffsSLX1I2R6wVrYw== Received: by recvd-69cbc48b94-js4ft with SMTP id recvd-69cbc48b94-js4ft-1-67AEFBA9-48 2025-02-14 08:15:37.711154213 +0000 UTC m=+7901616.182167347 Received: from herokuapp.com (unknown) by geopod-ismtpd-22 (SG) with ESMTP id Kt3jg6-CQyCB0lwwuJQ1Ww for ; Fri, 14 Feb 2025 08:15:37.652 +0000 (UTC) Date: Fri, 14 Feb 2025 08:15:37 +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: byroot 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: 97763 X-SG-EID: =?us-ascii?Q?u001=2EKmNZ1u3n1vIpO8NNTdp+Q9c0ai7potxbEDLMO7SOJO=2F4KkRUz0d23466m?= =?us-ascii?Q?naiq=2F5fmA4hb60MdRMUAwHZnjIWVFu=2FrqiBOz5c?= =?us-ascii?Q?nOvkBudsSTiVuiJS3necSMjzlQ+g3FGK=2FIFjhJz?= =?us-ascii?Q?3e3qlj6+UjZ5vyMo3k4OyZSwL+mqCtlezij9C=2Fi?= =?us-ascii?Q?HC9NGsavsm5M4V4B64suOKquDNdyoe=2FCL9Yx8jJ?= =?us-ascii?Q?gh6cICxrlfvmmK2t8Re7ckjyGdRovnfG4Oa5TR4?= =?us-ascii?Q?eULiAJUnqiO4EW9s5GYMz2Wezw=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: HXZ7NBHTUOVCG63ICIMA6WDL5AZUOLKP X-Message-ID-Hash: HXZ7NBHTUOVCG63ICIMA6WDL5AZUOLKP 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:121042] [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: "byroot (Jean Boussier) via ruby-core" Cc: "byroot (Jean Boussier)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #21096 has been updated by byroot (Jean Boussier). Thank you for the repro, I wonder if maybe it is caused by https://gitlab.com/qemu-project/qemu/-/issues/285 ---------------------------------------- Bug #21096: `Process.fork` hangs up on QEMU when called multiple times. https://bugs.ruby-lang.org/issues/21096#change-111950 * 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/