ghanshyam-yadav / ga-bitbot

Automatically exported from code.google.com/p/ga-bitbot
GNU General Public License v3.0
0 stars 0 forks source link

Access denied while terminating processes on Windows #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. python gal.py
2. All processes start, reports are being generated
3. After a while I get this output:
WATCHDOG: PID d3934bc2 EXPIRED
Traceback (most recent call last):
  File "gal.py", line 143, in <module>
    monitor[pid]['process'].terminate()
  File "c:\Python27\lib\subprocess.py", line 1016, in terminate
    _subprocess.TerminateProcess(self._handle, 1)
WindowsError: [Error 5] Access is denied
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "c:\Python27\lib\atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "gal.py", line 79, in shutdown
    monitor[pid]['process'].terminate()
  File "c:\Python27\lib\subprocess.py", line 1016, in terminate
    _subprocess.TerminateProcess(self._handle, 1)
WindowsError: [Error 5] Access is denied
Error in sys.exitfunc:
Traceback (most recent call last):
  File "c:\Python27\lib\atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "gal.py", line 79, in shutdown
    monitor[pid]['process'].terminate()
  File "c:\Python27\lib\subprocess.py", line 1016, in terminate
    _subprocess.TerminateProcess(self._handle, 1)
WindowsError: [Error 5] Access is denied

What version of the product are you using?
ga-bitbot.0.2.zip
python-2.7.2.msi
pypy-1.8-win32.zip
pycrypto-2.3.win32-py2.7.zip

On what operating system?
Windows 7 64-bit SP1

Please provide any additional information below.
The command prompt (cmd) from which the 'python gal.py' was started has admin 
privileges.

This link may provide some tips on how to solve the problem: 
http://stackoverflow.com/questions/1682447/cross-platform-way-to-terminate-a-pro
cess-in-python

Original issue reported on code.google.com by bankow...@gmail.com on 15 Feb 2012 at 12:48

GoogleCodeExporter commented 8 years ago
I think this has already been fixed and is a duplicate of Issue 17.

At least I can't confirm this to happen on win7x64 with the latest pypy and the 
current development build.

Original comment by pfv...@googlemail.com on 15 Feb 2012 at 6:13

GoogleCodeExporter commented 8 years ago
Checked the newest source - it's fixed. Thanks.

Original comment by bankow...@gmail.com on 18 Feb 2012 at 10:17

GoogleCodeExporter commented 8 years ago
Confirmed duplicate issue.

Original comment by brian.mo...@gmail.com on 18 Feb 2012 at 5:15