1. Geert Jansen
  2. winpexpect
  3. Issues
Issue #9 new

winpexpect can deadlock at program exit

mears
created an issue

If a program exits while the spawned process is still active, but not generating output, Python will deadlock while joining the child threads.

{{{

ThreadID: 6008

File: "c:\Python26\lib\threading.py", line 762, in _exitfunc t.join() File: "c:\Python26\lib\threading.py", line 644, in join self.__block.wait() File: "c:\Python26\lib\threading.py", line 239, in wait waiter.acquire()

ThreadID: 3840

File: "c:\Python26\lib\threading.py", line 504, in bootstrap self.bootstrap_inner() File: "c:\Python26\lib\threading.py", line 532, in bootstrap_inner self.run() File: "c:\Python26\lib\threading.py", line 484, in run self.target(*self.args, **self.kwargs) File: "c:\Python26\lib\site-packages\winpexpect-1.5-py2.6.egg\winpexpect.py", line 511, in _child_reader err, data = ReadFile(handle, self.maxread)

ThreadID: 6260

File: "c:\Python26\lib\threading.py", line 504, in bootstrap self.bootstrap_inner() File: "c:\Python26\lib\threading.py", line 532, in bootstrap_inner self.run() File: "c:\Python26\lib\threading.py", line 484, in run self.target(*self.args, **self.kwargs) File: "c:\Python26\lib\site-packages\winpexpect-1.5-py2.6.egg\winpexpect.py", line 511, in _child_reader err, data = ReadFile(handle, self.maxread)

}}}

Comments (0)

  1. Log in to comment