From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.bugs Subject: bug#30350: 27.0.50; Newest master can't run processes on macOS Date: Tue, 06 Feb 2018 22:10:07 +0000 Message-ID: References: <616d413a-893c-a058-9620-0ac852fc8490@cs.ucla.edu> <20180205191824.GA64467@breton.holly.idiocy.org> <0bec28a7-e163-8e7c-3759-4189533f50b6@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a1147dcfea3f396056492710b" X-Trace: blaine.gmane.org 1517954968 14251 195.159.176.226 (6 Feb 2018 22:09:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 6 Feb 2018 22:09:28 +0000 (UTC) Cc: 30350@debbugs.gnu.org, Alan Third , Sam Steingold To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 06 23:09:24 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ejBQR-0002uD-5B for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Feb 2018 23:09:15 +0100 Original-Received: from localhost ([::1]:42209 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ejBSS-0002ZB-BO for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Feb 2018 17:11:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ejBSF-0002Xa-0E for bug-gnu-emacs@gnu.org; Tue, 06 Feb 2018 17:11:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ejBSA-0005En-5f for bug-gnu-emacs@gnu.org; Tue, 06 Feb 2018 17:11:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52763) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ejBS9-0005Ed-W7 for bug-gnu-emacs@gnu.org; Tue, 06 Feb 2018 17:11:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ejBS9-0005n0-QM for bug-gnu-emacs@gnu.org; Tue, 06 Feb 2018 17:11:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Feb 2018 22:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30350 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30350-submit@debbugs.gnu.org id=B30350.151795502622209 (code B ref 30350); Tue, 06 Feb 2018 22:11:01 +0000 Original-Received: (at 30350) by debbugs.gnu.org; 6 Feb 2018 22:10:26 +0000 Original-Received: from localhost ([127.0.0.1]:60660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ejBRZ-0005m8-1Y for submit@debbugs.gnu.org; Tue, 06 Feb 2018 17:10:26 -0500 Original-Received: from mail-lf0-f51.google.com ([209.85.215.51]:34026) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ejBRX-0005lu-Q8 for 30350@debbugs.gnu.org; Tue, 06 Feb 2018 17:10:24 -0500 Original-Received: by mail-lf0-f51.google.com with SMTP id k19so4975905lfj.1 for <30350@debbugs.gnu.org>; Tue, 06 Feb 2018 14:10:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jHZhm44Ea7W25u0UsbtWLJI4MfOCgjGmMoJ79GcvBYE=; b=Nc6rCsDnXLuyj2ZanloxWlPtlieGpcyTzmdkZALJZ6LEWykye5lfMoANWS42IOpHjR 9xveEKJLF9kFPzzw2pjGZjaQXrc2PJchMzMHO5a5RMkZJNZwlvuxipQptL95c8MHPjam 3W0dH+tLKlBUoOJICG3fPzuXTkwLQLa/IxUC16VkeGeTy60C5oRR+3dNdQVj5U04ZtaR VYxJK2g+OUetpX+byXW0rrdegso1O8lGBWbBAc/GvtexOmB7XdRAobOkNFfxYufmfaQl nBlgMbbM46MxYIH2wJDdUtXM+WqKAE2MpoLJEpDCU8xy3dDywk/my7CqvJuwT7oRHVNx dD2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jHZhm44Ea7W25u0UsbtWLJI4MfOCgjGmMoJ79GcvBYE=; b=L0XWInzmRwDhotDafED2jp7cQnzSh9HoUgIvr8ckU7gVYZzzf9/EFq3xpEyeoSNZ9K Hs3qPOqhEDrBPyzlgJ6PEOqWdACa1aBuTinjPRRBZQfOiKctD7I1d1RE+jAFvY5853FW OyghroYQRITgASUm+ufMKV6NmGCek38J/kFOLOZT2LE2vgzI4GxrOQ+49YYmgFWhwlii W/E/mG1bIdmCTdfkCsq69KG4OB49S7StrtxL8NRJkeFQDOydI3HXlmdwjpOSp5XAAcDY 3xnASv+fb+AoS0E4UQdVoD4wolQpv30/B9CY4TaLsybnabgo2IYr+zvOQNVpZIA9QR1Q QBiw== X-Gm-Message-State: APf1xPDrEqMA4Wce3ztBcrJHrFpmivMv5u/b8EJdTk45XiTky6/Q5csM 3JlzgQONV+ql3N2JCHWnUyu0XmkzuQRLcEIunOc= X-Google-Smtp-Source: AH8x226kQqkgK9BWwLP8drqxmHXgfG8VAe/UgsrNUODXYFEdIq28Xwc5Smire7sAzX/uU3ptbX5RA5inTcmEgVc8eKk= X-Received: by 10.25.149.143 with SMTP id x137mr2889310lfd.119.1517955018124; Tue, 06 Feb 2018 14:10:18 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:142995 Archived-At: --001a1147dcfea3f396056492710b Content-Type: text/plain; charset="UTF-8" Philipp Stephani schrieb am Di., 6. Feb. 2018 um 23:07 Uhr: > Philipp Stephani schrieb am Di., 6. Feb. 2018 um > 01:26 Uhr: > >> Paul Eggert schrieb am Di., 6. Feb. 2018 um >> 00:56 Uhr: >> >>> On 02/05/2018 11:18 AM, Alan Third wrote: >>> > >>> > Yes, it fixes the problem here. >>> > >>> > Is this a known issue with macOS? >>> >>> It's news to me and it's not listed in the Gnulib portability gotcha >>> list. >>> >>> What happens if you run the attached program on macOS? It creates a file >>> "file" and then tries to access it as a directory, which should not work. >>> >>> >> It succeeds and prints nothing (i.e. the error is ENOTDIR in all cases). >> So this is even more mysterious than I thought. >> > > However, when I change "file" to "/usr/bin/true" in the names list, the > issue happens again (i.e. lstat and faccessat succeed for > "/usr/bin/true/."). So this does appear to be a macOS bug, but it's not > consistently reproducible. > The issue also goes away if I change the fourth argument of faccessat to 0. --001a1147dcfea3f396056492710b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Philip= p Stephani <p.stephani2@gmail.c= om> schrieb am Di., 6. Feb. 2018 um 23:07=C2=A0Uhr:
Philipp Stephani <p.stephani2@gmail.com> schrieb am Di., 6. Feb. 2018 u= m 01:26=C2=A0Uhr:
=
Paul Eggert <eggert@cs.ucla.edu> schrieb= am Di., 6. Feb. 2018 um 00:56=C2=A0Uhr:
On 02/05/2018 11:18 AM, Alan Third wrote:
>
> Yes, it fixes the problem here.
>
> Is this a known issue with macOS?

It's news to me and it's not listed in the Gnulib portability gotch= a list.

What happens if you run the attached program on macOS? It creates a file "file" and then tries to access it as a directory, which should n= ot work.


It succeeds and prints nothing (i.e. the error is ENOTDIR= in all cases).
So this is even more mysterious than I thought.= =C2=A0

However, when I change "file&quo= t; to "/usr/bin/true" in the names list, the issue happens again = (i.e. lstat and faccessat succeed for "/usr/bin/true/."). So this= does appear to be a macOS bug, but it's not consistently reproducible.=

The issue also goes away= if I change the fourth argument of faccessat to 0.=C2=A0
--001a1147dcfea3f396056492710b--