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 804BC1F5CB for ; Wed, 2 Oct 2024 23:32: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=g/UWiQIS; 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=JdYTrK4/; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1727911926; bh=yzbaaD9C08uy3uR4xjAQRtWgG7IzpjrL6zVvZVK5mRQ=; 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=g/UWiQIS854go2wTdadjBalSxNOt4A59FqlPyQ1Cn1VZyBkShzpf4pK/KB0E9xioJ 6Oa6HJABgXquNQXYzU8XC2e8oAoNl9zh/ompKt6z8MEUNQWzclPm6IRAnpEAmDvQjg ueNQ6heZna1gk5lqqOUEvNXEaDpvswPoELtdChH4= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 37E1043F53 for ; Wed, 2 Oct 2024 23:32:06 +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=JdYTrK4/; 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 3618943F1A for ; Wed, 2 Oct 2024 23:31:55 +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=1fVOh3ZilUkXyOjqRL7Y4LyihxCKg6Zi7cn2ZJ4NQkQ=; b=JdYTrK4/pxrPrRb4gBFex4tC/jIPm6nlBIwGG1Ey/P5jkrCblSMa8asNUTQcBVV9wHoR gOWQ+S8sG75H/BJZCvF00God8RsfVhLvIeApoh1f/Njy7SkSgBTkk1+TN00C5x0UB1ARxA vGmocWGEjWNI8cUOa9qjevr1aEduFeIEHFmCUPi17bSv5s9eI0dfdpnwgm4b44Xmyt3shd tpMBrcUclehboJcYhrwhWUK5gTSFPy5cCS25TPK3fe6+rWHEt6mOPFfImkkqD21s15EneM IAiEoLIGPf284/1FO82G0SYWEphoydEc7taW6EdR3VU7WZPbqvrdICv0uPbjE+TA== Received: by recvd-5577bcb48c-462gf with SMTP id recvd-5577bcb48c-462gf-1-66FDD7E9-5 2024-10-02 23:31:53.268918303 +0000 UTC m=+1748103.096174702 Received: from herokuapp.com (unknown) by geopod-ismtpd-22 (SG) with ESMTP id IDCZhq-6TqWfg4V2pq3xhg for ; Wed, 02 Oct 2024 23:31:53.198 +0000 (UTC) Date: Wed, 02 Oct 2024 23:31:53 +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: hms 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: 96050 X-SG-EID: =?us-ascii?Q?u001=2EpA3jspfujyMKkFuPRrtabB76SK2OGBrHku1vkUMUL1nA3lOFnyiH7pyjX?= =?us-ascii?Q?AxEvPC1JPwW2Y7WuvSl=2Fo0mrYG++l1h9W6Hiox0?= =?us-ascii?Q?r1MV9MCj2An8WkMR8VpF4QG8qahWZLN=2FCESM=2Ff0?= =?us-ascii?Q?FXeZBCk4OxTnuszsVuasR0smGOyD7orSbOnGqtp?= =?us-ascii?Q?XHil5YNoX1IfgoYyJ+3aylwK+ivnq5bvEevjxCo?= =?us-ascii?Q?hcpVarNEU4CDUYhQuheiFaPyYkq9jNLwRWpdLlw?= =?us-ascii?Q?UHaj?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: 6TUZWH3VWC4NOUP5LGBHPTQ2RDF4KEVG X-Message-ID-Hash: 6TUZWH3VWC4NOUP5LGBHPTQ2RDF4KEVG 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:119413] [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: "hms (Hal Spitz) via ruby-core" Cc: "hms (Hal Spitz)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20779 has been reported by hms (Hal Spitz). ---------------------------------------- Bug #20779: Un-rescuable thread creation limit on Mac https://bugs.ruby-lang.org/issues/20779 * 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/