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, 04 Feb 2018 23:16:24 +0000 Message-ID: References: <20180204210615.GB42949@breton.holly.idiocy.org> <20180204211224.GA53263@breton.holly.idiocy.org> <20180204224956.GA53420@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="089e082fb8e0fe290805646b22f5" X-Trace: blaine.gmane.org 1517786142 27668 195.159.176.226 (4 Feb 2018 23:15:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 4 Feb 2018 23:15:42 +0000 (UTC) Cc: 30350@debbugs.gnu.org To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 05 00:15:37 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 1eiTV6-0005At-7K for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Feb 2018 00:15:08 +0100 Original-Received: from localhost ([::1]:52080 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eiTX7-00062a-BD for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Feb 2018 18:17:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52298) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eiTX0-00060K-9B for bug-gnu-emacs@gnu.org; Sun, 04 Feb 2018 18:17:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eiTWx-0004yB-00 for bug-gnu-emacs@gnu.org; Sun, 04 Feb 2018 18:17:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49587) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eiTWw-0004y4-Rw for bug-gnu-emacs@gnu.org; Sun, 04 Feb 2018 18:17:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eiTWw-0006lG-EJ for bug-gnu-emacs@gnu.org; Sun, 04 Feb 2018 18:17: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, 04 Feb 2018 23:17: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.151778620325962 (code B ref 30350); Sun, 04 Feb 2018 23:17:02 +0000 Original-Received: (at 30350) by debbugs.gnu.org; 4 Feb 2018 23:16:43 +0000 Original-Received: from localhost ([127.0.0.1]:57484 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eiTWc-0006kg-Ne for submit@debbugs.gnu.org; Sun, 04 Feb 2018 18:16:42 -0500 Original-Received: from mail-lf0-f44.google.com ([209.85.215.44]:43607) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eiTWb-0006kT-4K for 30350@debbugs.gnu.org; Sun, 04 Feb 2018 18:16:41 -0500 Original-Received: by mail-lf0-f44.google.com with SMTP id o89so39230886lfg.10 for <30350@debbugs.gnu.org>; Sun, 04 Feb 2018 15:16:41 -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=JwXXCCoTS/Imm9G3kfmqJPL8wPcVlBoMZiuRY9mK+p0=; b=JE9I+LdbY5ZnkyxwXSy+BtCmShU7JoHuzyj4itm8YEIdTw8nqboz3TValkWq+ByUkd mfsBgVZ3yZbC41DOI+f/ID8WcSX+qIvxZEea7E4Ab06b6r1OIt4Xod2tYoyZMp+tCbiK QTKdA33/lf7+XUfBy3pkGFRJZNfac+8kIqLk8z1t027BgVyc93JFbp3tkKZiQSGjj4hd TrhrOSJIiyTkHYeYmSY1aAoxaNctOuFNWWeJLBbt3NgWDLkpr39txMF5zTOxI15t7es2 T2elUiscGbI65IMU1dld4/xBTYMNe7oCTVAXejVBZntHGNWSKmm90UdmT9wRr+PFoDT5 p/Xg== 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=JwXXCCoTS/Imm9G3kfmqJPL8wPcVlBoMZiuRY9mK+p0=; b=GvpRF96Y2Q8IB6ZSutq9RXK3LEQOJO3dXH1KJQdfrc1zAqW8nPNyN6Wqf7c7SiUNzi WkzVSk6CCZla63ED7agN591b3R9fi8UgC488ICtVn982IPQMj5A8agME4y7J4hh2rjKc VyelQ3TpoP1lUDicG+riwZFqdrX6dmI9gfCpLGQwsVUK7plGPvl+jbKVulOnC+KKn9F7 GNIRUJxDNnqx2hdidq8ChmuqB4iTIWWxSoG1WYG0/Fkxg62Oa/jAsclbzT8EPVtgZwNY Sur62kA1aQxm56h0mJ+u6OgnYm7HH09CJjsulySneZzsXpu1+/UU6L4DgVYnNjnD5EUT W80g== X-Gm-Message-State: AKwxytfP1g87QJjUmqXACRDIPrmyZmN2lsBtZCudduLj4lU2zm6vkGhs GuT50xX6MbTkO7z2Hv/FqNdKi3gV/ffxBF+Ccro= X-Google-Smtp-Source: AH8x226T03sVmL5pCHYon5TtmF6xvHMTX1K3cds8KbCtoaGnaIZKWReM2uqkCJ2Y0ZcmC8SqQiaG2APRB9OY8sAO2eE= X-Received: by 10.46.51.7 with SMTP id d7mr21413681ljc.78.1517786194911; Sun, 04 Feb 2018 15:16:34 -0800 (PST) In-Reply-To: <20180204224956.GA53420@breton.holly.idiocy.org> 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:142919 Archived-At: --089e082fb8e0fe290805646b22f5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Alan Third schrieb am So., 4. Feb. 2018 um 23:49 Uhr: > On Sun, Feb 04, 2018 at 09:28:12PM +0000, Philipp Stephani wrote: > > Alan Third schrieb am So., 4. Feb. 2018 um 22:12 Uhr: > > > > > On Sun, Feb 04, 2018 at 09:06:15PM +0000, Alan Third wrote: > > > > Oddly if you do > > > > > > > > (file-accessible-directory-p "/usr/bin/true") > > > > > > > > it works correctly, but then once you run > > > > > > > > (call-process "/usr/bin/true") > > > > > > > > file-accessible-directory-p incorrectly returns true on subsequent > > > > calls. Paul=E2=80=99s commit didn=E2=80=99t make any real changes t= o > > > > file-accessible-directory-p so I suspect this problem is older. > > > > > > In fact, I can replicate it on Emacs 25, so it=E2=80=99s an old bug. > > > > > > > > This is then a different bug; could you report it as a new one? > > It=E2=80=99s actually all the same bug. Paul=E2=80=99s change made file-d= irectory-p > use file-accessible-directory-p, and it=E2=80=99s playing up. > > It looks like the root cause is faccessat returning 0 for > =E2=80=98/usr/bin/true/.=E2=80=99 when it should probably be returning -1= . > > Good catch! Probably the bug was then introduced in 2012 with commit 73dcdb9f30cb94a3183db54d9b463370c3978d4d. --089e082fb8e0fe290805646b22f5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Alan T= hird <alan@idiocy.org> schrieb= am So., 4. Feb. 2018 um 23:49=C2=A0Uhr:
On Sun, Feb 04, 2018 at 09:28:12PM +0000, Philipp Stephani wrote:
> Alan Third <al= an@idiocy.org> schrieb am So., 4. Feb. 2018 um 22:12 Uhr:
>
> > On Sun, Feb 04, 2018 at 09:06:15PM +0000, Alan Third wrote:
> > > Oddly if you do
> > >
> > >=C2=A0 =C2=A0 =C2=A0(file-accessible-directory-p "/usr/b= in/true")
> > >
> > > it works correctly, but then once you run
> > >
> > >=C2=A0 =C2=A0 =C2=A0(call-process "/usr/bin/true")<= br> > > >
> > > file-accessible-directory-p incorrectly returns true on subs= equent
> > > calls. Paul=E2=80=99s commit didn=E2=80=99t make any real ch= anges to
> > > file-accessible-directory-p so I suspect this problem is old= er.
> >
> > In fact, I can replicate it on Emacs 25, so it=E2=80=99s an old b= ug.
> >
> >
> This is then a different bug; could you report it as a new one?

It=E2=80=99s actually all the same bug. Paul=E2=80=99s change made file-dir= ectory-p
use file-accessible-directory-p, and it=E2=80=99s playing up.

It looks like the root cause is faccessat returning 0 for
=E2=80=98/usr/bin/true/.=E2=80=99 when it should probably be returning -1.<= br>

Good catch! Probably the bug was then = introduced in 2012 with commit 73dcdb9f30cb94a3183db54d9b463370c3978d4d.=C2= =A0
--089e082fb8e0fe290805646b22f5--