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,T_SCC_BODY_TEXT_LINE 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 748811F508 for ; Sat, 25 Jan 2025 06:35:17 +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=fyTU/Oa2; 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=BMLQf+oT; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1737786884; bh=7NLAG5trMLPwH1tKaX0ck6ugANr6/AwhOu+s2j9RMsg=; 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=fyTU/Oa2ZOXFd8O10HHz3cDS11Ll4BQrBW0jMlegwH+DSsvS8TFN+v75GK1EwJFa6 4dzWSf+O/KYbz0AuU70VmpvoFSGOQUqfC/UTSe7EPVEqugpbQ3AoLlOvCulk7PVGZ3 G35yLGxVmQRNy1I/9WQxhuWJBcEOE+iEw85sOmME= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 7925E468AD for ; Sat, 25 Jan 2025 06:34:44 +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=BMLQf+oT; 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 3F35F46893 for ; Sat, 25 Jan 2025 06:34:18 +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=lz39mPYgTtwkl5lw7yqk2W81HNj1dEnH6LJWAysSLqM=; b=BMLQf+oTsdyFD6yHdwe8ux2bSDsLeyU5JlzKbdwdvXp19JeRGFDOoZ6w39jXoBV/5gdz KCzxi+ZtdU2g52WylOkRFQjxjKAOMwmr56DYcd2GztBi51E2/U74Jl616hgbYBG+HgrBJW 1rR4uFvNaRzLk3sD6vTOJ/O3hNEA9qqxv469V/v+CxTM4wLeWWYkC6PuXGTkSEf/ziJ+Ho MMUN/A4ENaMLpeMG6F5K2wx1go4uAiiF9n952JzCNXhCpO8+9iGSWAoBY4HwaTGZ0z9X4V WsVhUBvMpfLLG2FLyYWyGbVoo3hczYiSqmrlI1VAkskp5/Ww1mFyiSByUWZqUvig== Received: by recvd-canary-54b46787-46ctl with SMTP id recvd-canary-54b46787-46ctl-1-679485E9-3 2025-01-25 06:34:17.22947284 +0000 UTC m=+6175583.031744407 Received: from herokuapp.com (unknown) by geopod-ismtpd-canary-0 (SG) with ESMTP id C6vukJdmQwmRM9JwJdfV4A for ; Sat, 25 Jan 2025 06:34:17.221 +0000 (UTC) Date: Sat, 25 Jan 2025 06:34:32 +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: nagachika 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: 97510 X-SG-EID: =?us-ascii?Q?u001=2E44VQVH0G4ktThU9FFZyDXb=2FoLGKi0xg3KhKXpO+IAEE5wRGZS=2FaUmrCxU?= =?us-ascii?Q?vRSr0kI+o91vm0PKZJNpskxVPGLEUY0z2=2FFYkjb?= =?us-ascii?Q?KjL91GsNRUDikn1LKcAgI64Hcq3rZnyfKnqJNtb?= =?us-ascii?Q?ZasVVnx2yQNqI1FexNm9uNvkqXyTAzpULI3uZ6M?= =?us-ascii?Q?8+ZmsJdpUGoLWORyTXot=2FfBprK4CPgDq2umDw4M?= =?us-ascii?Q?H8aom19kHEC0BPVvsAK6aOvCfg3BlFwBpMq78Od?= =?us-ascii?Q?kCf6AOaTHnNkYUC9M6P=2FaxsMMw=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: MHXSUQRY4KD5TWL5BOQHPQIIL4EC4N56 X-Message-ID-Hash: MHXSUQRY4KD5TWL5BOQHPQIIL4EC4N56 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:120792] [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: "nagachika (Tomoyuki Chikanaga) via ruby-core" Cc: "nagachika (Tomoyuki Chikanaga)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #21038 has been updated by nagachika (Tomoyuki Chikanaga). Backport changed from 3.1: REQUIRED, 3.2: REQUIRED, 3.3: DONE, 3.4: REQUIRED to 3.1: REQUIRED, 3.2: DONE, 3.3: DONE, 3.4: REQUIRED ruby_3_2 commit:97243cc9c76b9cc2803cfd1c01165ab5bd432450 merged revision(s) commit:04ec07794657cd2444ecb001a522b9df2db1b90a. ---------------------------------------- Bug #21038: Preserve `errno` in `rb_fiber_scheduler_unblock` https://bugs.ruby-lang.org/issues/21038#change-111660 * Author: ioquatix (Samuel Williams) * Status: Closed * Backport: 3.1: REQUIRED, 3.2: DONE, 3.3: DONE, 3.4: REQUIRED ---------------------------------------- `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/