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 77DB81F4CC for ; Wed, 15 Jan 2025 00:40:05 +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=CxaNAweQ; 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=q7lyRSKM; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1736901600; bh=uaq0gspZvfcR1xU/lvETXZrE15AkW7p8OkagjfKe/As=; 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=CxaNAweQnNswo0o7xMpSOq8+xVv4+wHd/zxIF8sb/uYg5cGrpX7VD0rP4ousmzVlg TU+JPVFLD6dRKwo2bmHjjQ9V1pplbtoVDJgFLD+bybUR7W/9rn7CY36R9MTyjNxaQk gpcydUlnwv0JoE6pSdexNb0JQUKUQ4+Slp5dUdac= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id C282F4694B for ; Wed, 15 Jan 2025 00:40:00 +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=q7lyRSKM; 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 A0B4F46837 for ; Wed, 15 Jan 2025 00:39:54 +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=meMU3hEy3tot/na4Z4/bofx+6h9H5HzEzMCpA8aEnAQ=; b=q7lyRSKMdp45QD+SQC/+G2L2d2WKPlhySYrZ3LL9GmhkG6kq/IqIVyhhp8fvoncnEiRi wqqjww16elE6YxwroUoEIeCkc56CZkhWTYM8X5GrXRNtrugeY6iYflEpMZe442Yb37VpAc PTODDYm8LvQjAt3Vl+2bvtgJw2CJ9CLvOinNs3HIM5H14b/3tpAS9GY0Z8qgQhWLOujzx8 gjU8Qca2CWqEjqUXStjd+IcJgSQXUhB5K/DY+gsQLAK1Cs+8b8cTa6dy4t5otYi8ifY0e1 R1uTeMhFz8y1PNCDpWQtZ+iIvQHcdEy1NmDREFHOt3rmCZ04y3H/IHCZVw10L3Ww== Received: by recvd-84b546689d-d2nml with SMTP id recvd-84b546689d-d2nml-1-678703D8-4 2025-01-15 00:39:52.890836407 +0000 UTC m=+5282280.148440440 Received: from herokuapp.com (unknown) by geopod-ismtpd-3 (SG) with ESMTP id nI4iY51_QQi7Fy3yi6PGYw for ; Wed, 15 Jan 2025 00:39:52.727 +0000 (UTC) Date: Wed, 15 Jan 2025 00:39:52 +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: ioquatix 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: 97360 X-SG-EID: =?us-ascii?Q?u001=2E3QFJPY5gaRwyNXkncYONHM3OeFnb=2FgeOrLDgg3PYIKrq5rvk81iAipQ1q?= =?us-ascii?Q?cdmuT9o5PIWGjXtTDstodNmslT=2F6xfCuIofWR2K?= =?us-ascii?Q?w8msDgVaVLzoyEF9iqZ2rxOk6dM2Rb9IxVB9Jkr?= =?us-ascii?Q?Btra+x=2FqeeWD7+66mTFpa0AM79euqjerWpJdgnS?= =?us-ascii?Q?cRqsbhaoPLPbeFUKYeBJcKtGgwZ7rWJiLgTjivk?= =?us-ascii?Q?Bj+njkB2FUGwGm40KEP+z3skFr19t5Al7VCy0E=2F?= =?us-ascii?Q?vjuWjWCf7OgJPQdRtEnHvVrOVg=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: 7WDUMWYND2EO5Y7EHEVFUMD4XNSDI44L X-Message-ID-Hash: 7WDUMWYND2EO5Y7EHEVFUMD4XNSDI44L 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:120674] [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: "ioquatix (Samuel Williams) via ruby-core" Cc: "ioquatix (Samuel Williams)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #21038 has been reported by ioquatix (Samuel Williams). ---------------------------------------- Bug #21038: Preserve `errno` in `rb_fiber_scheduler_unblock` https://bugs.ruby-lang.org/issues/21038 * Author: ioquatix (Samuel Williams) * Status: Open * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN ---------------------------------------- `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/