From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mathias Dahl Newsgroups: gmane.emacs.devel Subject: call-process having problems with a big total length of arguments under Windows Date: Sun, 10 Mar 2013 14:02:00 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1362920548 22604 80.91.229.3 (10 Mar 2013 13:02:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Mar 2013 13:02:28 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 10 14:02:51 2013 Return-path: Envelope-to: ged-emacs-devel@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 1UEfto-0002Oj-IL for ged-emacs-devel@m.gmane.org; Sun, 10 Mar 2013 14:02:48 +0100 Original-Received: from localhost ([::1]:36862 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UEftS-0007oP-HR for ged-emacs-devel@m.gmane.org; Sun, 10 Mar 2013 09:02:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49598) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UEftO-0007lN-Qh for emacs-devel@gnu.org; Sun, 10 Mar 2013 09:02:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UEftN-00057y-OF for emacs-devel@gnu.org; Sun, 10 Mar 2013 09:02:22 -0400 Original-Received: from mail-we0-x232.google.com ([2a00:1450:400c:c03::232]:35790) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UEftN-00057a-JB for emacs-devel@gnu.org; Sun, 10 Mar 2013 09:02:21 -0400 Original-Received: by mail-we0-f178.google.com with SMTP id o45so2580579wer.37 for ; Sun, 10 Mar 2013 06:02:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:from:date:message-id:subject:to :content-type; bh=xmU528UZ3Ic/EutjRGJHRLDqng9PFL4OfQbRI0dIbXk=; b=S4TtxkHyryRX+sKdBbewHKw8YDdxvw1hwd0awgoP3AA2trTgS5TYCP0oN8L0WU2qu9 VtDKJPK4/oxqIfvKIX3dbvmsWOi20lcLRCef0wWjvBsEZ3sJvUuxuKrhnjeOVJMbZbGT RaoSFgkcnTWN5/fRyImiEWiEwrMYQ9pB5Sx3HdZipwb8WmmsKSJ9hf2D53eAD3mgsmnI Uj+chx2snrHY6/qkYUgI2PFSRq3RrnZma/9mcTEjT9/FzhP3JTYmeOMnPmPil/5vmrE6 8nqJSe6ZPf3byM/AMzGT8N5eM8hrTA5qfAfIJCIjJ/D0dm7UAAt2hKT+FMTbrSMMknAy WrCg== X-Received: by 10.194.87.229 with SMTP id bb5mr13664654wjb.32.1362920540428; Sun, 10 Mar 2013 06:02:20 -0700 (PDT) Original-Received: by 10.194.0.133 with HTTP; Sun, 10 Mar 2013 06:02:00 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c03::232 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:157691 Archived-At: Under GNU/Linux I can do this (calling ping with an 10000 long argument list): (apply 'call-process (append (list "ping" nil t nil) (make-list 10000 "0123456789"))) (of course, ping complains about the syntax, but that is another matter, ping is just an example of a command that exists on both platforms where I test) On Windows (Windows 7, 64 bit) this works in a quite recent Emacs (24.1.50.1 from last summer): (apply 'call-process (append (list "ping" nil t nil) (make-list 2000 "0123456789"))) But this does not (2000 is changed to 3000): (apply 'call-process (append (list "ping" nil t nil) (make-list 3000 "0123456789"))) I get (file-error "Spawning child process" "exec format error") when I reach a certain amount of arguments. I can make it fail at fewer arguments if I make the length of each argument longer. What sets the limit here? Is there a bug in Emacs on Windows or is it a limitation of the OS? Is there is a known limitation in the total length of all parameters? Thanks! /Mathias