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: Sun, 11 Feb 2018 15:56:29 +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="001a113aad98a999c00564f1ce61" X-Trace: blaine.gmane.org 1518364521 475 195.159.176.226 (11 Feb 2018 15:55:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 11 Feb 2018 15:55:21 +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 Sun Feb 11 16:55:17 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 1ekty7-0007j4-Oy for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Feb 2018 16:55:07 +0100 Original-Received: from localhost ([::1]:53330 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eku09-0001ZT-5l for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Feb 2018 10:57:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37231) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eku03-0001YY-1b for bug-gnu-emacs@gnu.org; Sun, 11 Feb 2018 10:57:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ektzy-0005GV-GL for bug-gnu-emacs@gnu.org; Sun, 11 Feb 2018 10:57:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58826) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ektzy-0005G4-DF for bug-gnu-emacs@gnu.org; Sun, 11 Feb 2018 10:57:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ektzy-0002IX-1p for bug-gnu-emacs@gnu.org; Sun, 11 Feb 2018 10:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Feb 2018 15:57:02 +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.15183646108816 (code B ref 30350); Sun, 11 Feb 2018 15:57:02 +0000 Original-Received: (at 30350) by debbugs.gnu.org; 11 Feb 2018 15:56:50 +0000 Original-Received: from localhost ([127.0.0.1]:38490 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ektzl-0002I8-LV for submit@debbugs.gnu.org; Sun, 11 Feb 2018 10:56:49 -0500 Original-Received: from mail-lf0-f45.google.com ([209.85.215.45]:43422) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ektzi-0002Hv-MT for 30350@debbugs.gnu.org; Sun, 11 Feb 2018 10:56:48 -0500 Original-Received: by mail-lf0-f45.google.com with SMTP id u3so1691814lff.10 for <30350@debbugs.gnu.org>; Sun, 11 Feb 2018 07:56:46 -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=RVrmu/Z7uQALYnVamRyiUA0BHqmceh1ZQse5ocTiuhQ=; b=il8EQiF1t3ubYyBKrCc3Kc5Dr7yz0eH3U0rghK2zpoWCaGH6vyNTxNpdrslwHzYqSx XDlJKvGOmR8o8AqqVwbHl/zBbP3kXxyjPBc1fq215dJdCeRIil1kvTLNK3vosKh4OhsA fhf/5T1ZIZuDoS/wAdknSNppN0VDJSMhADPBnyo+XJZ+m/pW94eGl/GSq16CzkWpKmLa A0Rtaxues8LnVj/n2I7dhkompcVrQXX408/jgIN+L6an5Muu4ydT+fIzayFf0ND0+4Gi 1HB6WpuTOHmLzA3Bhxcnnd9OtkoZI9fWH+xZDyP2FHrVy74DAgAqHHOo70Ibf4Fzb/nR VC2w== 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=RVrmu/Z7uQALYnVamRyiUA0BHqmceh1ZQse5ocTiuhQ=; b=sVG+GZPxnm/xS9nU7W1qcuHbQyFqv8N9kbsqjIyaf8CNtdjHLtgEaNq4ht9/Yb8I2n zBziCbVH/BqttbSoNTs05znSxUNp+zMufgMHJ6irJYl9OK8rhazMdxvaN6Vb1NB1KGfl YiU7DkzX+KJpha34tUATHir8exOgwwKhzBT9kuIGlpAhi9qv8i8xQ8t++VLa+TtgNXC+ LtP82uyUkU8ywQweDh67EaAHVwvudxsqzluZapA5kLukUifqGe9GcQ1KeroW+Q20ncay aOG7svOK6TYjXBwsdG7ADRTo+Zt+RiuH2k+x1n7pjWjXSJDECsXNOSpOQt14JA1iMxe/ evlw== X-Gm-Message-State: APf1xPDW4X9N8WfaiyIi6tcYmR44qQCy9EUQYWUCf6gVPfOnHDIqIDJT Z4A5E7pNncR1xX7pLVOEQ3EKbdQO/tXtMXy9Jgs= X-Google-Smtp-Source: AH8x2242LtvFta7Tvguu1dgmt+kfFVp6SSQuhdDt1lhFzD2pucJ+H5bU7CKxSO6neLl7lTNRaDB/o+r4/Zc5AfPj0H8= X-Received: by 10.25.35.137 with SMTP id j131mr6138612lfj.17.1518364600668; Sun, 11 Feb 2018 07:56:40 -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:143140 Archived-At: --001a113aad98a999c00564f1ce61 Content-Type: text/plain; charset="UTF-8" Philipp Stephani schrieb am Di., 6. Feb. 2018 um 23:10 Uhr: > 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. > ...albeit only temporarily. Occasionally the wrong behavior happens, occasionally is doesn't, seemingly without meaningful pattern. This seems to be quite a nasty bug in the OS. --001a113aad98a999c00564f1ce61 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:10=C2=A0Uhr:
Philipp Stephani <p.stephani2@gmail.com> schrieb am Di., 6. Feb. 2018 u= m 23:07=C2=A0Uhr:
=
Philipp Stephani <p.stephani2@gmail.com&= gt; schrieb am Di., 6. Feb. 2018 um 01:26=C2=A0Uhr:
Paul Eggert <= eggert@cs.ucla.edu> schrieb am Di., 6. Feb. 2018 um 00:56=C2=A0Uhr:<= br>
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 fo= urth argument of faccessat to 0.=C2=A0
<= br>

...albeit only temporarily. Occasionally the w= rong behavior happens, occasionally is doesn't, seemingly without meani= ngful pattern. This seems to be quite a nasty bug in the OS.=C2=A0
--001a113aad98a999c00564f1ce61--