Ticket #3815 defect closed invalid
Some Flash Player installers may crash on XP when launched by Twisted
| Reported by: | ivank | Owned by: | ivank |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | core | Keywords: | windows |
| Cc: | exarkun | Branch: | |
| Author: | Launchpad Bug: |
Description
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
but
reactor.spawnProcess(p, executable, (executable,)+tuple(args), env, path)
should probably be
reactor.spawnProcess(p, executable, (os.path.split(executable)[1],)+tuple(args), env, path)
because getProcessOutput gives _callProtocolWithDeferred the full executable path.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

