Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
pykd pykd
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 19
    • Issues 19
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • pykd
  • pykdpykd
  • Issues
  • #32

Closed
Open
Created Oct 23, 2018 by oxford@oxford

problem with startProcess

Hi,

Im trying to start a process and debug all child processes and terminate it after a while. Im using pykd version 0.3.4.1 on Windows 7 and latest Windows SDK, I got PYKD_BOOTSTRAPPER_2.0.0.16.zip and did !pip install pykd to install it for python.

This is code im using:

import pykd
import multiprocessing
import time

def run_program():
    program = "C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe"
    #proc = pykd.startProcess(program, pykd.ProcessDebugOptions.BreakOnStart | pykd.ProcessDebugOptions.DebugChildren)
    proc = pykd.startProcess(program, debugChildren=True)
    pykd.go()

if __name__ == "__main__":
    #pykd.initialize()
    multiprocessing.freeze_support()
    
    p = multiprocessing.Process(target=run_program, args=())
    p.start()
    p.join()
    time.sleep(5)
    pykd.killAllProcess()

and Im getting the following errors:

Process Process-1:
Traceback (most recent call last):
  File "C:\Python27\lib\multiprocessing\process.py", line 267, in _bootstrap
    self.run()
  File "C:\Python27\lib\multiprocessing\process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\win7entx64\Desktop\1.py", line 8, in run_program
    proc = pykd.startProcess(program, pykd.ProcessDebugOptions.DebugChildren)
DbgException: Call IDebugControl::WaitForEvent failed
HRESULT 0x8000ffff
Traceback (most recent call last):
  File "1.py", line 20, in <module>
    pykd.killAllProcess()
AttributeError: 'module' object has no attribute 'killAllProcess'

I read the wiki and checked few sample source codes available online but idk what im doing wrong.

thanks in advance

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking