From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Klaus-Dieter Bauer Newsgroups: gmane.emacs.bugs Subject: bug#33016: 26.1; (make-process ...) doesn't signal an error, when executable given as absolute Windows path does not exist Date: Thu, 11 Oct 2018 14:55:27 +0200 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000be53090577f37d03" X-Trace: blaine.gmane.org 1539262507 19346 195.159.176.226 (11 Oct 2018 12:55:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 11 Oct 2018 12:55:07 +0000 (UTC) To: 33016@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 11 14:55:03 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 1gAaUX-0004ql-6H for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Oct 2018 14:55:01 +0200 Original-Received: from localhost ([::1]:34240 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAaWd-0003hY-PS for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Oct 2018 08:57:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47336) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAaWV-0003hI-Ka for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2018 08:57:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gAaWU-000648-Ap for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2018 08:57:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40003) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gAaWU-00063y-5j for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2018 08:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gAaWT-0007n4-W9 for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2018 08:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Klaus-Dieter Bauer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Oct 2018 12:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33016 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.153926256829877 (code B ref -1); Thu, 11 Oct 2018 12:57:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Oct 2018 12:56:08 +0000 Original-Received: from localhost ([127.0.0.1]:44260 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gAaVb-0007lo-UK for submit@debbugs.gnu.org; Thu, 11 Oct 2018 08:56:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37460) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gAaVZ-0007lL-Tn for submit@debbugs.gnu.org; Thu, 11 Oct 2018 08:56:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gAaVT-0005Vk-BT for submit@debbugs.gnu.org; Thu, 11 Oct 2018 08:56:00 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:52817) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gAaVT-0005Vg-7o for submit@debbugs.gnu.org; Thu, 11 Oct 2018 08:55:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47063) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAaVR-000361-QI for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2018 08:55:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gAaVQ-0005UK-8t for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2018 08:55:57 -0400 Original-Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]:41355) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gAaVP-0005Tm-Rl for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2018 08:55:56 -0400 Original-Received: by mail-lj1-x229.google.com with SMTP id u21-v6so8099039lja.8 for ; Thu, 11 Oct 2018 05:55:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=lKO5etwMJstnqaCFD5MT9YH7nLBx6HexXgjvpy52izc=; b=bCBTbgaT/4MoXCiB8LBNiFyYgxzBZl7r3HmZ4z5c95HjeeBCyORREMvDEmPuXAazf7 /Yhp/xRzpBLRv9bKGyfHT9lWrO1k6tk1XHGQGKdIzm/hSBcmQjyt6XTp5O9JAffJYaq+ cm28rnkoqP7xsX24W/WPJDmW5mCvJhxeVeuJxvdwsQvSmOKHfsiGIEVBuEm69UzrO0+w hwEylM8wrBUfdpIHES6jdNW6YfuFFxCIe3qamUmr+LkDMjstnqAmAgMXQGT1zx08VISU etlXZSVPW1br4UTtNThicdQ09xWJ47uTL2It1Y+DjEPJbFO0cROzGKnxN8gTnt2ykrf+ Mp7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=lKO5etwMJstnqaCFD5MT9YH7nLBx6HexXgjvpy52izc=; b=PK7qtiuMAbnl9dGD5rBFh1DIj4B/z5c7fZR4EFqY93ERzQNYk2cuwXVqumA6Dvr7ta d+uEz5qt68e+FIoLw/xRUIxPaUcO3qA7V49n+T9rzse7r45dcVfmADza1N0mcmN22Pgc l9lqgybZaqZZ4347WMtFcM8ImtQmmsv6Xzj+5MdUeFYGwRBdS1A7oQr9hUDemd+12liM 2axfPHfFC3MVTGNCrYifluqVtIsEcTdeqKy7CKO46oz8ABP7wG1Qm/cV4pY10o2TesoB iYgTsOp6I30WZ8uD16gQ5DasStYicy6PSZwnWCQB6O5aKM/Do457tYYaWufgAAcKQGZF Y7HA== X-Gm-Message-State: ABuFfohz/QrnYx6+jiwjgw+drmND7QR6/5QBG4Saho0zXDx79HA5M9j5 aZZrJNj2/KmmWFXzRSv5dy3CTl9q2L7NVm1gS2v4HAp5 X-Google-Smtp-Source: ACcGV60sI4hghSLSnMof19scSaUN5G4txhzlwytkLUX8epW8kEElD+zbFAHYzX/DjBrBP9vWJCjy+jjbS9CN4wmDY3M= X-Received: by 2002:a2e:9d8a:: with SMTP id c10-v6mr1241289ljj.2.1539262553935; Thu, 11 Oct 2018 05:55:53 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:151108 Archived-At: --000000000000be53090577f37d03 Content-Type: text/plain; charset="UTF-8" The error-handling of `make-process' for a non-existents executable is inconsistent between invocation as a command (on PATH) and invocation as a full path. To reproduce, start `emacs -Q'. Entering M-x eval-expression RET (make-process :name "test" :command '("No Such Command")) will bring up the debugger with (file-missing "Searching for program" "No such file or directory" "nosuchcommand") However, entering M-x eval-expression RET (make-process :name "test" :command '("c:/No Such Command")) will merely display in the echo-area message: eval: Spawning child process: Invalid argument I stumbled upon this when debugging a quick-and-dirty script, that called a program by absolute path. When a new version of the program changed the name of the executable (tex2lyx2.3 -> tex2lyx), this issue occurred, and hindered debugging the problem. The wording of the message might indicate a Windows-specific issue. regards, Klaus In GNU Emacs 26.1 (build 1, x86_64-w64-mingw32) of 2018-05-30 built on CIRROCUMULUS Repository revision: 07f8f9bc5a51f5aa94eb099f3e15fbe0c20ea1ea Windowing system distributor 'Microsoft Corp.', version 10.0.17134 Recent messages: (#> #) Quit Entering debugger... Back to top level eval: Spawning child process: Invalid argument Quit Type C-x 1 to delete the help window, C-M-v to scroll help. Quit Entering debugger... Back to top level read--expression: Trailing garbage following expression Configured using: 'configure --without-dbus --host=x86_64-w64-mingw32 --without-compress-install 'CFLAGS=-O2 -static -g3'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS THREADS LCMS2 Important settings: value of $LANG: ENU locale-coding-system: cp1252 Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cl-extra help-fns radix-tree help-mode easymenu cl-print byte-opt gv bytecomp byte-compile cl-loaddefs cl-lib cconv debug elec-pair time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote w32notify w32 lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 100958 5519) (symbols 56 20557 1) (miscs 48 45 202) (strings 32 31151 1771) (string-bytes 1 808081) (vectors 16 14466) (vector-slots 8 493429 6988) (floats 8 53 305) (intervals 56 327 7) (buffers 992 14)) --000000000000be53090577f37d03 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The error-handling of `make-process' for a non-existents
executable is incons= istent between invocation as a command
(on PATH) and invocation as a full path.
=
To reproduce, start `emacs -Q'.

Entering

=C2=A0 =C2=A0 = M-x eval-expression RET

will brin= g up the debugger with=C2=A0

=C2=A0 =C2= =A0 (file-missing "Searching for program" "No such file or d= irectory" "nosuchcommand")

However, entering
<= br>
=C2=A0 =C2=A0 M-x = eval-expression RET=C2=A0
=C2=A0 =C2=A0 =C2=A0 (make-process :name "test" :command '= ;("c:/No Such Command"))

will= merely display in the echo-area message:

=C2=A0 =C2=A0 eval: Spawning child process: Invalid argument

I stumbled upon this when debugging a quick-and-d= irty
script, that call= ed a program by absolute path. When a new
version of the program changed the name of the executab= le
(tex2lyx2.3 -> t= ex2lyx), this issue occurred, and hindered
debugging the problem.

The wording of the message might indicate a=C2=A0
Windows-specific issue.
<= font face=3D"monospace, monospace">
regards, Klaus



<= font face=3D"monospace, monospace">In GNU Emacs 26.1 (build 1, x86_64-w64-m= ingw32)
=C2=A0of 2018-= 05-30 built on CIRROCUMULUS
Repository revision: 07f8f9bc5a51f5aa94eb099f3e15fbe0c20ea1ea<= /div>
Windowing system distributor = 'Microsoft Corp.', version 10.0.17134
Recent messages:
(#<process test<1>> #<process test>)=
Quit
Entering debugger...
= Back to top level
eval: Spawning child process: Invalid argum= ent
Quit
<= div>Type C-x 1 to delete the help windo= w, C-M-v to scroll help.
Quit
Entering debug= ger...
Back to top lev= el
read--expression: T= railing garbage following expression
Configured using:
=C2=A0'configure --without-dbus --host=3Dx86_64-w64-mingw32<= /font>
=C2=A0--without-compre= ss-install 'CFLAGS=3D-O2 -static -g3''

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB<= /font>
TOOLKIT_SCROLL_BARS TH= READS LCMS2

Important settings:<= /div>
=C2=A0 value of $LANG: ENU
=C2=A0 locale-coding-sys= tem: cp1252

Major mode: Lisp Interactio= n

Minor modes in effect:
=C2=A0 tooltip-mode: t
<= div>=C2=A0 global-eldoc-mode: t<= /div>
=C2=A0 eldoc-mode: t
=C2=A0 electric-indent-mode: t=
=C2=A0 mouse-wheel-mo= de: t
=C2=A0 tool-bar-= mode: t
=C2=A0 menu-ba= r-mode: t
=C2=A0 file-= name-shadow-mode: t
= =C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-mode: t
=C2=A0 line-number-mode: t<= /font>
=C2=A0 transient-mark-= mode: t

Load-path shadows:
=
None found.

Features:
dired-loaddefs format-spec rfc822 mm= l mml-sec password-cache epa derived
epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-b= odies
mm-encode mail-p= arse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util mail-prs= vr mail-utils cl-extra
help-fns radix-tree help-mode easymenu cl-print byte-opt gv bytecomp
byte-compile cl-loaddefs cl= -lib cconv debug elec-pair time-date
mule-util tooltip eldoc electric uniquify ediff-hook vc-hook= s
lisp-float-type mwhe= el dos-w32 ls-lisp disp-table term/w32-win w32-win
w32-vars term/common-win tool-bar dnd fontset = image regexp-opt fringe
prog-mode register page menu-b= ar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core=
term/tty-colors frame= cl-generic cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japan= ese eucjp-ms cp51932
h= ebrew greek romanian slovak czech european ethiopic indian cyrillic<= /div>
chinese composite charscript = charprop case-table epa-hook jka-cmpr-hook
help simple abbrev obarray minibuffer cl-preloaded nad= vice loaddefs
button f= aces cus-face macroexp files text-properties overlay sha1 md5
<= div>base64 format env code-pages mule c= ustom widget hashtable-print-readable
backquote w32notify w32 lcms2 multi-tty make-network-proces= s emacs)

Memory information:
((conses 16 100958 5519)<= /div>
=C2=A0(symbols 56 20557 1)
=C2=A0(miscs 48 45 202)<= /font>
=C2=A0(strings 32 3115= 1 1771)
=C2=A0(string-= bytes 1 808081)
=C2=A0= (vectors 16 14466)
=C2= =A0(vector-slots 8 493429 6988)
=C2=A0(floats 8 53 305)
=C2=A0(intervals 56 327 7)
=C2=A0(buffers 992 14))

<= /div> --000000000000be53090577f37d03--