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, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED, 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 84D631F4E6 for ; Thu, 5 Jun 2025 15:30:54 +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=DRdSnPq3; 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=Yh7+ZSeY; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1749137452; bh=PEM1FZCkNdKRl5tHmGyHrFa5i95wV5Zq3vFE8lC+ESc=; 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=DRdSnPq3WAjNO+0W84bDn9/mFipl0CzAs4Fk3gE29GDMPN8rMLGBTm9M7WX0c2xpj kddOQIcEfMMyfSwKBpZtiWXPFLDtnoSaoJpwCnQbYX+gzn3HnyPlrYFIJzMNAI84XI slC+286a5dyRHIh+5p4Eo9OA6QcTaVFlxgLFXUwk= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 452C748266 for ; Thu, 5 Jun 2025 15:30:52 +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=Yh7+ZSeY; 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 33FC948158 for ; Thu, 5 Jun 2025 15:30:32 +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=J4aLvY1uugfv9NQ0iu+m6tPddaGmgmGVek3uSvmkyyE=; b=Yh7+ZSeY0Gt/PCShxU/n6L4QITKZ/sgMZ2cMiwCN0EKvp52AWT24oKy7/pI0xe0AArlE DWmVBrMLsSpNFmldh7Ix1P31hos32414deQae6gfJjColmRf4yfMY8RsXxNBKDNezAZcZB jb/OVJlOEfYQGtu5fautgH7rJCrR0QJPaXrkxke0h3Y7XyJAv/SZGR5wqWabNMr0rAeK07 hvvmW9KsStXIVBqIwnFaMbkydwI9eZ4XUx6NsQ8yXE7+ZtEVp02fVBANb0Sw0pjCMDOK1n N2BHlYnnSvZGmuYbj4u0q8nESnZWM1QNGGR+sMaxyV3r0RRsGDVWJhfq4n3/LUpg== Received: by recvd-65696df74f-nsgpg with SMTP id recvd-65696df74f-nsgpg-1-6841B817-1B 2025-06-05 15:30:31.106939557 +0000 UTC m=+81968.010634887 Received: from herokuapp.com (unknown) by geopod-ismtpd-24 (SG) with ESMTP id TZSaDHFMRx2s79fNrK3VOw for ; Thu, 05 Jun 2025 15:30:31.079 +0000 (UTC) Date: Thu, 05 Jun 2025 15:30:31 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 21400 X-Redmine-Issue-Author: luke-gru 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: 99218 X-SG-EID: =?us-ascii?Q?u001=2Eu2jV1cZCX3JeC9XuCMpKrPL8QYex4qqdacL0+MyIJYZ8T98+Yamf0oq9z?= =?us-ascii?Q?aSwYa9OgKS1yrZArj33QXc1KJqA8PopG+kgVPq9?= =?us-ascii?Q?cjRbGB5G3he9WChi38LzCKtrZSl7QWzWHtPCuJn?= =?us-ascii?Q?MPTu=2FzWMDoDVX5yJ3YOTtfNXer8uikmwhx5nKXn?= =?us-ascii?Q?cQUFRejq0rmUOu9S5b1EbwQQliLjGI=2FhoPQOOGL?= =?us-ascii?Q?LPwCTxqOyo78WGFC=2Fhq=2FkJuO6BJY1+ijwmfYNCO?= =?us-ascii?Q?zNhHs9KN+Usd3IuwLuI62kyrQw=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: IO3JAIAC4UHDMW2BRJWJNSQ4KUZGJ2FB X-Message-ID-Hash: IO3JAIAC4UHDMW2BRJWJNSQ4KUZGJ2FB 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:122459] [Ruby Bug#21400] rb_bug() hit when killing current root fiber on non-main thread 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 #21400 has been updated by luke-gru (Luke Gruber). I created a PR: https://github.com/ruby/ruby/pull/13526 ---------------------------------------- Bug #21400: rb_bug() hit when killing current root fiber on non-main thread https://bugs.ruby-lang.org/issues/21400#change-113647 * Author: luke-gru (Luke Gruber) * Status: Open * ruby -v: 3.5.0dev * Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN ---------------------------------------- This following code hits an `rb_bug`: ```ruby Thread.new { Fiber.current.kill }.join ``` Normally fibers gracefully handle this case by terminating and switching to another fiber, but if there is no other fiber it raises the `FIBER_FATAL_FIBER_KILLED` error and this is not caught by the starting thread, resulting in a bug. -- 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/