From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Simon Morgan Newsgroups: gmane.emacs.bugs Subject: bug#10674: 24.0.92; cmdproxy.exe fork-bomb Date: Mon, 06 Feb 2012 15:29:37 +0000 Message-ID: <4F2FF1E1.30008@spamcop.net> References: <86mx94a7kq.fsf@DESKTOP.i-did-not-set--mail-host-address--so-tickle-me> <83fwetp2ls.fsf@gnu.org> <4F2B5793.2010809@spamcop.net> <83y5skdwht.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="------------ms080003000602030309030501" X-Trace: dough.gmane.org 1328542232 11399 80.91.229.3 (6 Feb 2012 15:30:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Feb 2012 15:30:32 +0000 (UTC) Cc: 10674@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 06 16:30:27 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RuQWQ-0004uJ-EL for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Feb 2012 16:30:26 +0100 Original-Received: from localhost ([::1]:52356 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuQWP-0006lq-Gj for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Feb 2012 10:30:25 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:38428) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuQWH-0006lj-NO for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 10:30:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RuQWD-0007Jp-2H for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 10:30:17 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53723) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuQWC-0007Jk-TZ for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 10:30:13 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RuQX0-0007KD-Qz for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 10:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Simon Morgan Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Feb 2012 15:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10674 X-GNU-PR-Package: emacs,w32 X-GNU-PR-Keywords: Original-Received: via spool by 10674-submit@debbugs.gnu.org id=B10674.132854224328127 (code B ref 10674); Mon, 06 Feb 2012 15:31:02 +0000 Original-Received: (at 10674) by debbugs.gnu.org; 6 Feb 2012 15:30:43 +0000 Original-Received: from localhost ([127.0.0.1]:57346 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuQWd-0007JY-Gs for submit@debbugs.gnu.org; Mon, 06 Feb 2012 10:30:43 -0500 Original-Received: from c60.cesmail.net ([216.154.195.49]:58456) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuQWW-0007JG-DH for 10674@debbugs.gnu.org; Mon, 06 Feb 2012 10:30:38 -0500 Original-Received: from unknown (HELO smtprelay1.cesmail.net) ([192.168.1.111]) by c60.cesmail.net with ESMTP; 06 Feb 2012 10:29:41 -0500 Original-Received: from [192.168.1.149] (clunge.drguildo.com [95.172.232.226]) by smtprelay1.cesmail.net (Postfix) with ESMTPSA id 0080734C93; Mon, 6 Feb 2012 10:36:16 -0500 (EST) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0) Gecko/20120129 Thunderbird/10.0 In-Reply-To: <83y5skdwht.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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:56565 Archived-At: This is a cryptographically signed message in MIME format. --------------ms080003000602030309030501 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable On 03/02/2012 10:47 AM, Eli Zaretskii wrote: > If indeed cmdproxy spawns itself endlessly, then the first suspect is > this code in cmdproxy.c: > > if (!SearchPath (NULL, argv[0], ".exe", sizeof (path), path,&prognam= e) > || !GetShortPathName (path, path, sizeof (path)) > || stricmp (modname, path) !=3D 0) > { > /* We are being used as a helper to run a DOS app; just pass > command line to DOS app without change. */ > /* TODO: fill in progname. */ > if (spawn (NULL, GetCommandLine (), dir,&rc)) > return rc; > fail ("Could not run %s\n", GetCommandLine ()); > } > > Are you able to run cmdproxy under a debugger and see what is going on > here? If so, please tell what are argv[0], path, and modname just > before the call to `spawn' (assuming my guess is correct, and cmdproxy > really calls `spawn' in this snippet). Okay so I managed to get cmdproxy running under gdb without much trouble = so here is what you asked for: http://pastie.org/3327496 I've also discovered that cmdproxy only seems to do the whole infinite=20 respawn thing if I run it in the emacs bin directory. --=20 The fundamental asymmetry of consciousness means triangulation is the=20 only path to understanding. --------------ms080003000602030309030501 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s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