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 23CA21F50E for ; Fri, 14 Feb 2025 05:13:34 +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=ze7GfuMk; 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=CGbjPzOn; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1739509981; bh=z+zjmCGAbGsl3spOzBJHLzpiYtnfr91a/WkCfB7sK+U=; 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=ze7GfuMkO9xRsRyZfTjpH8Q7U/A8vp86YBBn5Y7jxIk7RSyqP5RmZVYXQqvWiOBWJ tgarkoKtTLNOvJi4Anwn24es7sCdu8d9vo65ATkx2g0vMKZRQwxjeJ2HYcajdG3ROg O9LEXvYmZAM2kGrG4pHxRmWlnbKAPsvQkWemdCLw= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id E204146D8B for ; Fri, 14 Feb 2025 05:13:01 +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=CGbjPzOn; 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 2E75046B5E for ; Fri, 14 Feb 2025 05:09:28 +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=5Bc/ELcttq0muwh/wPnkNxaw5559dxw0qnkvz+eR+h4=; b=CGbjPzOnS8TTQor+/Y93K2peN1CjZr3hIT0OU4yutqORX/MKnQhccp72vrj38lMXgXlc x389IKrGGamnGPPhJ8cxkoW6QZCKI9NTJNtdKSbPlEgyFZvfx/b8clb+CnJz+Ops2T2+iD T8N0JP6wsJT4Xu29giI7G7kmN2KLW5XNlFJnOZCC3ijBflJWk7vf+2VLD/d2jDVqtHHpbZ BU4wFKE/ZlHfL/clYRjpcWRhP9S2TisNlJkQBa1OAEObD0Ok4fGyyddAS1cvCn7YKMJDZf VHJhuHgqtjZArI4uJUZ7qkymphCSbBdjjYF4cETS/Damo09lX2qgpU4X2IxoBYeA== Received: by recvd-84b546689d-nmml4 with SMTP id recvd-84b546689d-nmml4-1-67AED006-26 2025-02-14 05:09:26.92051965 +0000 UTC m=+7890281.926831835 Received: from herokuapp.com (unknown) by geopod-ismtpd-4 (SG) with ESMTP id hzdR_zpLQ5m3b9SX3HxCFw for ; Fri, 14 Feb 2025 05:09:26.851 +0000 (UTC) Date: Fri, 14 Feb 2025 05:09:26 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 21038 X-Redmine-Issue-Author: ioquatix X-Redmine-Issue-Priority: Normal X-Redmine-Sender: k0kubun 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: 97742 X-SG-EID: =?us-ascii?Q?u001=2EsWSpkbcla4bB6tSlkOwdN01=2FLLwMflJlYDs0Ak3Gg6dwg4YUERnU2ZQsI?= =?us-ascii?Q?KPesnHmuO3R4nEnLV41FQje7rMJs=2FlByQKQxPtJ?= =?us-ascii?Q?4AIt7Pq58gBeBVcjU=2Ffi316PPZj7j1pTyb2zvaq?= =?us-ascii?Q?rXF0jZChUzMfbhGSt+iFAGnxzSQZti7+AmFZDXe?= =?us-ascii?Q?EJ26a+FstV6RqB=2F56DuE=2FvN=2Fp40FG1huX1v4lkz?= =?us-ascii?Q?T9zPpRJtDaiv2AJ36gVPFtCOrqsMhegYyiQo5ch?= =?us-ascii?Q?5xAfMIRhyLlNZR0Db8a6HTTXQQ=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: 3BL7A6PI6J2FF642CK6LD6Z7IQLUAJ2Z X-Message-ID-Hash: 3BL7A6PI6J2FF642CK6LD6Z7IQLUAJ2Z 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:121022] [Ruby master Bug#21038] Preserve `errno` in `rb_fiber_scheduler_unblock` List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "k0kubun (Takashi Kokubun) via ruby-core" Cc: "k0kubun (Takashi Kokubun)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #21038 has been updated by k0kubun (Takashi Kokubun). Backport changed from 3.1: REQUIRED, 3.2: DONE, 3.3: DONE, 3.4: REQUIRED to 3.1: REQUIRED, 3.2: DONE, 3.3: DONE, 3.4: DONE ruby_3_4 commit:2108ab2cb68e9d975e4dcf035a11243e1173336f merged revision(s) commit:04ec07794657cd2444ecb001a522b9df2db1b90a. ---------------------------------------- Bug #21038: Preserve `errno` in `rb_fiber_scheduler_unblock` https://bugs.ruby-lang.org/issues/21038#change-111930 * Author: ioquatix (Samuel Williams) * Status: Closed * Backport: 3.1: REQUIRED, 3.2: DONE, 3.3: DONE, 3.4: DONE ---------------------------------------- `rb_fiber_scheduler_unblock` can invoke user code that can affect `errno`, and at least in `io_binwrite`, this is unexpected. Whether `io_binwrite` should be fixed is a separate issue (it probably should be, as `errno` is not explicitly preserved or documented how it is preserved). See for more discussion. -- 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/