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) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 4F5C01F4CC for ; Mon, 23 Dec 2024 18:46:58 +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=F98ljQPc; 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=Ezfs9olB; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1734979615; bh=avBuc35U7tgjxsPJ59CpIfD4ws97FsaTa8wzj7yrVyo=; 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=F98ljQPcDkOnD08lvkH6PsPZDG/D+HKdS7dEz6Uw2HKh2HOyJ6Ou6KX9zP3E9eD6L 9c902s+RuKbpSjitkXJYWVitOrAGotimptuQeQ4WnqTX8c8lEZ14sFkI7D4tBY1k1y duhOfOL2ZmQjLhDEklypo5m8T5vyKh0M8fC7TNpY= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id D7DCE45F41 for ; Mon, 23 Dec 2024 18:46:55 +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=Ezfs9olB; dkim-atps=neutral Received: from s.wrqvtzvf.outbound-mail.sendgrid.net (s.wrqvtzvf.outbound-mail.sendgrid.net [149.72.126.143]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 1198B45F2D for ; Mon, 23 Dec 2024 18:46:51 +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=9XtRvEBtVWZhjFfCVgdKgQ3B0sb6QvWsOBF1tLjj3z4=; b=Ezfs9olBFtgLUHYw0TsxglmfrJ4CSGJEsbHF82Sbex1FW8NkIQ+IIdpr6XeZxpsTj2C1 fxuadM57KeTQwfLmJ2lRpP7wYgNfW8Rp33Pcq4MLccQoUB5wely2FueJ7u/VgQtFieQaVW NvL4mRfutFpuShhnULTleonJWAvbAH/m7+yJ8s/zUIWtTfTIDOSuNWWDdO7CBCu7Sa5v2O djBNRA5b5p3vWwVvwAKDh31YYYtEW/8IBN29/OLuLea0oHiAe/SzIu81BLHAYIlBSZj7c/ MLec+E6pGlDpLxelDhaftDyhYdNpeUxWSWD3aVrRmqDHcC3AGrdbhlecWTzf+CHg== Received: by recvd-84b546689d-229gh with SMTP id recvd-84b546689d-229gh-1-6769B01A-C 2024-12-23 18:46:50.392331811 +0000 UTC m=+3360312.326107168 Received: from herokuapp.com (unknown) by geopod-ismtpd-14 (SG) with ESMTP id fhtmGswxRXW64jEmB1RMxA for ; Mon, 23 Dec 2024 18:46:50.290 +0000 (UTC) Date: Mon, 23 Dec 2024 18:46:50 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 20779 X-Redmine-Issue-Author: hms X-Redmine-Issue-Priority: Normal X-Redmine-Sender: luke-gru 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: 97058 X-SG-EID: =?us-ascii?Q?u001=2Eu2jV1cZCX3JeC9XuCMpKrPL8QYex4qqdacL0+MyIJYZ8T98+Yamf0oq9z?= =?us-ascii?Q?aSwYa9OgKS1yrZArj33QXc1KJqA8PopG+kgVPq9?= =?us-ascii?Q?cjRbGB5G3hc0kHJhUQTsWoZXzsrbuL0wT0UuAiE?= =?us-ascii?Q?4cNL0JLzml5QrMXinLEuOqhyKue5iM39U1i+Pmn?= =?us-ascii?Q?rN0di8Gj9cAEqtEalbPgHlAxkOKNhoi3dFFT2oL?= =?us-ascii?Q?ssXT9VvJ=2FLda2tsxvs1jnD97oqgkoez=2Fzqb672Q?= =?us-ascii?Q?qOKt+bUmzBAjNReWIdIjaq=2FVZw=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: RH4GFQ4WNPN2EQYKAUH6YTV7IEYEYNZT X-Message-ID-Hash: RH4GFQ4WNPN2EQYKAUH6YTV7IEYEYNZT 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:120381] [Ruby master Bug#20779] Un-rescuable thread creation limit on Mac List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "luke-gru (Luke Gruber) via ruby-core" Cc: "luke-gru (Luke Gruber)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20779 has been updated by luke-gru (Luke Gruber). I managed to track down the issue, it's a pretty simple fix. My PR is here: https://github.com/ruby/ruby/pull/12441 ---------------------------------------- Bug #20779: Un-rescuable thread creation limit on Mac https://bugs.ruby-lang.org/issues/20779#change-111159 * Author: hms (Hal Spitz) * Status: Open * ruby -v: 3.3.5 * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- Thread.new will hang the ruby process once past the OSX limit. It does not appear that's possible to trap and rescue failed thread creation. It seems the Mac has a limit to the number of threads it supports and googling the issue suggests the limit has been known to change with hardware and OS releases. While I hit the thread creation limit due to a bug in my code and the number of threads that I was attempting to create (12,250+) is an unlikely use-case, I am hoping it would be possible to turn this into a rescuable error. While I'm reporting this on 3.3.5, I have tested the issue and the inability to rescue back to 3.3.1. (Thanks to @raels for being a great second set of eyes to make sure I wasn't doing anything goofy / wrong before making this report. Also, another callout and thanks to both @eregon and @bensheldon over at concurrent-ruby for the unbelievably quick and helpful response to my initial bug report over there). ---Files-------------------------------- hang.rb (713 Bytes) -- 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/