Ticket #3815 defect closed invalid
Some Flash Player installers may crash on XP when launched by Twisted
|Reported by:||ivank||Owned by:||ivank|
One of my Windows processes was having strange crashes. I narrowed it down to Twisted setting the full path as the first argument.
twisted/internet/utils.py _callProtocolWithDeferred looks like this:
def _callProtocolWithDeferred(protocol, executable, args, env, path, reactor=None): if reactor is None: from twisted.internet import reactor d = defer.Deferred() p = protocol(d) reactor.spawnProcess(p, executable, (executable,)+tuple(args), env, path) return d
reactor.spawnProcess(p, executable, (executable,)+tuple(args), env, path)
should probably be
reactor.spawnProcess(p, executable, (os.path.split(executable),)+tuple(args), env, path)
because getProcessOutput gives _callProtocolWithDeferred the full executable path.