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#10674: 24.0.92; cmdproxy.exe fork-bomb Date: Fri, 03 Feb 2012 12:47:26 +0200 Message-ID: <83y5skdwht.fsf@gnu.org> References: <86mx94a7kq.fsf@DESKTOP.i-did-not-set--mail-host-address--so-tickle-me> <83fwetp2ls.fsf@gnu.org> <4F2B5793.2010809@spamcop.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1328266244 31813 80.91.229.3 (3 Feb 2012 10:50:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 3 Feb 2012 10:50:44 +0000 (UTC) Cc: 10674@debbugs.gnu.org To: Simon Morgan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 03 11:50:43 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 1RtGj3-0001Ba-6S for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Feb 2012 11:50:41 +0100 Original-Received: from localhost ([::1]:58655 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtGj2-0005eS-C2 for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Feb 2012 05:50:40 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:37461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtGiw-0005eA-G8 for bug-gnu-emacs@gnu.org; Fri, 03 Feb 2012 05:50:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RtGis-0003lx-ML for bug-gnu-emacs@gnu.org; Fri, 03 Feb 2012 05:50:34 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48094) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtGis-0003lq-Kn for bug-gnu-emacs@gnu.org; Fri, 03 Feb 2012 05:50:30 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RtGjO-0003cE-DQ for bug-gnu-emacs@gnu.org; Fri, 03 Feb 2012 05:51:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Feb 2012 10:51: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.132826620613834 (code B ref 10674); Fri, 03 Feb 2012 10:51:02 +0000 Original-Received: (at 10674) by debbugs.gnu.org; 3 Feb 2012 10:50:06 +0000 Original-Received: from localhost ([127.0.0.1]:51717 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RtGiU-0003b4-7f for submit@debbugs.gnu.org; Fri, 03 Feb 2012 05:50:06 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:51486) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RtGiQ-0003aT-RI for 10674@debbugs.gnu.org; Fri, 03 Feb 2012 05:50:04 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LYT00300C6Y4500@a-mtaout20.012.net.il> for 10674@debbugs.gnu.org; Fri, 03 Feb 2012 12:49:23 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.124.37.111]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LYT001Y3CQ9UOE0@a-mtaout20.012.net.il>; Fri, 03 Feb 2012 12:49:22 +0200 (IST) In-reply-to: <4F2B5793.2010809@spamcop.net> X-012-Sender: halo1@inter.net.il 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:56415 Archived-At: [Please keep the bug tracker on the CC list, so this whole discussion is archived in the bug database. Thanks in advance.] > Date: Fri, 03 Feb 2012 03:42:11 +0000 > From: Simon Morgan > > It turns out that if I simply run cmdproxy.exe on its own it starts > forking like crazy, so it looks like the problem is in cmdproxy.exe. Please see if all of the copies of cmdproxy are children of the same progeny, i.e. the second one is the child of the first one and the parent of the third one, etc. (You could use Process Explorer to see the processes as a tree.) 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, &progname) || !GetShortPathName (path, path, sizeof (path)) || stricmp (modname, path) != 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). If you cannot run cmdproxy under a debugger, please tell: . how exactly did you invoke cmdproxy from the command line to get the infinite spawning problem? . do you have other copies of cmdproxy.exe somewhere on your Path? . is this Windows 7 box a 32-bit or a 64-bit system? . what is the value of the following Registry key? HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\SafeProcessSearchMode Thanks.