unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Simon Morgan <sjm@spamcop.net>
Cc: 10674@debbugs.gnu.org
Subject: bug#10674: 24.0.92; cmdproxy.exe fork-bomb
Date: Fri, 03 Feb 2012 12:47:26 +0200	[thread overview]
Message-ID: <83y5skdwht.fsf@gnu.org> (raw)
In-Reply-To: <4F2B5793.2010809@spamcop.net>


[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 <sjm@spamcop.net>
> 
> 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.





  parent reply	other threads:[~2012-02-03 10:47 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-31  3:12 bug#10674: 24.0.92; cmdproxy.exe fork-bomb sjm
2012-02-02 17:27 ` Eli Zaretskii
     [not found]   ` <4F2B5793.2010809@spamcop.net>
2012-02-03 10:47     ` Eli Zaretskii [this message]
2012-02-05 22:50       ` Simon Morgan
2012-02-06  3:57         ` Eli Zaretskii
2012-02-06 12:53           ` Simon Morgan
2012-02-06 15:29       ` Simon Morgan
2012-02-06 15:47         ` Juanma Barranquero
2012-02-06 16:57           ` Simon Morgan
2012-02-06 17:50         ` Eli Zaretskii
2012-02-06 18:00           ` Simon Morgan
2012-02-06 21:26             ` Eli Zaretskii
2012-02-06 22:22               ` Simon Morgan
2012-02-07  3:54                 ` Eli Zaretskii
2012-02-07 13:25                   ` Simon Morgan
2012-02-07 17:14                     ` Eli Zaretskii
2012-02-07 18:31                       ` Simon Morgan
2012-02-07 18:45                         ` Eli Zaretskii
2012-02-11 12:08                           ` Eli Zaretskii
2012-02-13 19:25                             ` Simon Morgan
2012-02-13 20:46                               ` Eli Zaretskii
2012-02-19 19:07                                 ` Simon Morgan
2012-02-19 21:16                                   ` Eli Zaretskii
2012-02-24 10:15                                     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83y5skdwht.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=10674@debbugs.gnu.org \
    --cc=sjm@spamcop.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).