From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#73444: 30.0.50; mingw-w64: Emacs uses CRT's `read` when _FORTIFY_SOURCE > 0 Date: Tue, 24 Sep 2024 18:36:37 +0300 Message-ID: <86wmj1cbcq.fsf@gnu.org> References: <87r09axbio.fsf@telefonica.net> <87msjyxaum.fsf_-_@telefonica.net> <86r099e0br.fsf@gnu.org> <87ikulxmaz.fsf@telefonica.net> <868qvhdwl8.fsf@gnu.org> <87a5fxxi22.fsf@telefonica.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10309"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73444@debbugs.gnu.org, cyril.arnould@outlook.com To: =?UTF-8?Q?=C3=93scar?= Fuentes Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 24 17:38:01 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1st7c0-0002TT-27 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 24 Sep 2024 17:38:00 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1st7bf-0004LY-2X; Tue, 24 Sep 2024 11:37:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1st7bd-0004LP-Uu for bug-gnu-emacs@gnu.org; Tue, 24 Sep 2024 11:37:37 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1st7bd-0005IF-Le for bug-gnu-emacs@gnu.org; Tue, 24 Sep 2024 11:37:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:References:In-Reply-To:From:Date:To:Subject; bh=62ATpP4K1KiPiePaP14K3UO+0WxYUnPiY6PbRR+GY3k=; b=kkdKB9gpdvbi8Ro/y4ykzpSaR2Sml7si1BOrKARoz3O4OXz62a9ppXmpICRXnFx+Mx6OFUJK2ayvVJs1S+/SCwUQONMGNhu/4on/m8qTV+5ymANpWNqK/dS4lXen0rn3Hq++tFMPNK6/HIFiwC3vTfedaYNs6/SzhWshnUKmiJ25jJWTKbWGcL3u7VjQdkfYCSz5AIQJ6hN8gzKtV/PIbBjlQml3mPJDIeH2lcbNiJzscqvVLzaF+WbPJRfxm9PpMYM6K9bVmtVh+A8+/uaSc9GjMMNgoVUxi1D+XMRLEKbir8r/a9T1v3RytxYvwinUWqnK24ttq9KQWZUrZ1c8iA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1st7c1-0001HZ-Kw for bug-gnu-emacs@gnu.org; Tue, 24 Sep 2024 11:38:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 Sep 2024 15:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73444 X-GNU-PR-Package: emacs Original-Received: via spool by 73444-submit@debbugs.gnu.org id=B73444.17271922444820 (code B ref 73444); Tue, 24 Sep 2024 15:38:01 +0000 Original-Received: (at 73444) by debbugs.gnu.org; 24 Sep 2024 15:37:24 +0000 Original-Received: from localhost ([127.0.0.1]:49692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1st7bQ-0001Fe-0V for submit@debbugs.gnu.org; Tue, 24 Sep 2024 11:37:24 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56630) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1st7bM-0001FA-64 for 73444@debbugs.gnu.org; Tue, 24 Sep 2024 11:37:22 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1st7ao-0005Dn-9A; Tue, 24 Sep 2024 11:36:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=62ATpP4K1KiPiePaP14K3UO+0WxYUnPiY6PbRR+GY3k=; b=pLwgj+rvsbnBkPqJ90bq j7u2+0XbhfAeDH+AQVyo6ji884qK/HIFSoise8FsE0lF2D/OQy9aRqfLVDyYGsIYnb07bSfUWEIhG Di0tGFP4tMOZ1Mspxr1tPvualNPNcMaG2a0fN1sJs5xfN8DsAJCJZE8EG7iC5a3qom2AH1SkRDPuY l8PtUpEYYgRcu72xb687T1eGZGZphpbuTwHhQ1+fR7r3/thxIAJYtcgxHnMGVwDwawS3u2SeZAAOA ew3ncp+3f6or5u4wzo7qQzDkDNJ7fRmtvomQkqt/8Ojz4wHSQYCkXrGBPSWpqUhPOE3kMtunfza3q popy1mcyT1pQug==; In-Reply-To: <87a5fxxi22.fsf@telefonica.net> (message from =?UTF-8?Q?=C3=93scar?= Fuentes on Tue, 24 Sep 2024 16:06:13 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:292342 Archived-At: > From: Óscar Fuentes > Cc: 73444@debbugs.gnu.org, Cyril Arnould > Date: Tue, 24 Sep 2024 16:06:13 +0200 > X-Spam-Status: No > > Eli Zaretskii writes: > > >> #63752 describes the simptons and tries to identify the cause, this bug > >> (#73444) provides the cause and discusses a possible fix, hopefully one > >> that covers the general case and not just `read'. > > > > The fix posted here affects only 'read', unless I'm missing > > something... > > Well, if we could think of a general fix that prevents a potential > problem with the other functions that Emacs redefines, I could try to > implement it. AFAIR, that's a very large job, because each redirected function has its own story. If you have time to work on that, please do, but I'd consider this low priority unless there are known problems with specific functions we redirect. > >> I was not aware of the existence of #63752 when I created this bug. As > >> what to do with #63752, I have no preferences. > > > > That's okay. If you tell that fixing the issue with 'read' solves the > > problem described in bug#63752, I will merge them. But if some > > problems caused by _FORTIFY_SOURCE still remain after fixing 'read', > > then bug#63752 is more general, and I think they should remain > > separate, so that when we close this one, the other one stays open. > > AFAIK the workaround on this bug report fixes #63752. CCing the original > bug reporter, just in case. Thanks, I will wait for a while and merge if no objections or comments to the contrary arise.