From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#21323: start-process rejects .com executables Date: Sun, 23 Aug 2015 17:29:05 +0300 Message-ID: <831teuhydq.fsf@gnu.org> References: <838u93i0xo.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1440340232 15227 80.91.229.3 (23 Aug 2015 14:30:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Aug 2015 14:30:32 +0000 (UTC) Cc: 21323@debbugs.gnu.org To: =?UTF-8?Q?Bj=C3=B6rn?= Lindqvist Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 23 16:30:21 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZTWHs-0003RF-CG for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Aug 2015 16:30:20 +0200 Original-Received: from localhost ([::1]:33297 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTWHr-0002FR-KS for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Aug 2015 10:30:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53255) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTWHh-0002Av-Mv for bug-gnu-emacs@gnu.org; Sun, 23 Aug 2015 10:30:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZTWHd-0000ni-I5 for bug-gnu-emacs@gnu.org; Sun, 23 Aug 2015 10:30:09 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43923) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTWHd-0000m9-Ff for bug-gnu-emacs@gnu.org; Sun, 23 Aug 2015 10:30:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZTWHc-0001nx-QD for bug-gnu-emacs@gnu.org; Sun, 23 Aug 2015 10:30:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Aug 2015 14:30:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21323 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21323-submit@debbugs.gnu.org id=B21323.14403401576855 (code B ref 21323); Sun, 23 Aug 2015 14:30:04 +0000 Original-Received: (at 21323) by debbugs.gnu.org; 23 Aug 2015 14:29:17 +0000 Original-Received: from localhost ([127.0.0.1]:36133 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZTWGr-0001mV-3Z for submit@debbugs.gnu.org; Sun, 23 Aug 2015 10:29:17 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:34884) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZTWGo-0001mM-Le for 21323@debbugs.gnu.org; Sun, 23 Aug 2015 10:29:15 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NTJ00200GTKOA00@a-mtaout22.012.net.il> for 21323@debbugs.gnu.org; Sun, 23 Aug 2015 17:29:13 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NTJ00261HKPFE70@a-mtaout22.012.net.il>; Sun, 23 Aug 2015 17:29:13 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:105734 Archived-At: > Date: Sun, 23 Aug 2015 15:06:55 +0200 > From: Björn Lindqvist > Cc: 21323-done@debbugs.gnu.org > > 2015-08-22 21:21 GMT+02:00 Eli Zaretskii : > >> I found this bug on windows ver 24.5.1. If you try to run a .com file: > >> > >> (start-process "X" "Y" "c:/Windows/System32/tree.com") > >> > >> You get: "Spawning child process: exec format error" > > > > Indeed. > > > >> The cryptic error appears to be a result of the .com extension. > > > > No, it's because .com programs are run via cmdproxy.exe, and there's a > > bug in computing the directory where we look for it. > > What is the reason for that? We don't know how to distinguish between DOS .com programs and the other kind. DOS .com programs must be run via cmdproxy to work around some subtle problems in running DOS programs from a Windows program (including, but not limited to, standard I/O redirection and killing subprocesses). > As you know, on modern windowses there is > no difference except for the name between .com and .exe files. But the user could bring a .com program from DOS, and we have no means of telling one from the other. > If there was an option for it, I'd set it so my binary is not run > through cmdproxy.exe. Why do you care? Barring bugs, cmdproxy is transparent to the programs in invokes.