GNU bug report logs -
#10674
24.0.92; cmdproxy.exe fork-bomb
Previous Next
Reported by: sjm <at> spamcop.net
Date: Tue, 31 Jan 2012 03:50:01 UTC
Severity: important
Found in version 24.0.92
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
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,&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).
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
respawn thing if I run it in the emacs bin directory.
--
The fundamental asymmetry of consciousness means triangulation is the
only path to understanding.
[smime.p7s (application/pkcs7-signature, attachment)]
This bug report was last modified 13 years and 170 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.