Open GoogleCodeExporter opened 9 years ago
If it were that easy to fix, then we would have fixed it already ;)
The core problem is that ReadProcessMemory calls occasionally fail with an
error that
only part of the request completed. I don't know what causes this, and there's
really
no way to know if it's being caused by a process entry still being initialized
or if
it's a memory read error from another source. I've tried looping when this error
occurs to see if we can retry the ReadProcessMemory request. However, once it
fails
repeating the attempt doesn't seem to make a difference and it continues to
fail for
subsequent attempts.
Bear in mind that get_arg_list() which does the work to read the process
command line
is also using handle_from_pid() which already checks the exit code of the
process
etc. to make sure that the process exists. We're already doing all we can to
ensure
the process is valid before we try to read the command line, but it's not 100%
reliable. It's possible we may eventually determine some kind of workaround but
at
the moment I think this is just an unavoidable side effect of the fact that
we're
using an unsupported API to read the memory of another process to determine its
commandline. We may just have to live with some occasional errors. My vote
would be
to mark this as WontFix for the time being.
Original comment by jlo...@gmail.com
on 17 Jun 2009 at 5:38
Original comment by billiej...@gmail.com
on 17 Sep 2009 at 10:13
Original comment by g.rodola
on 24 Sep 2010 at 11:40
Original issue reported on code.google.com by
billiej...@gmail.com
on 16 Jun 2009 at 6:03