[New-bugs-announce] [issue34980] KillPython target doesn't detect 64-bit processes

Jeremy Kloth report at bugs.python.org
Sun Oct 14 03:26:26 EDT 2018


New submission from Jeremy Kloth <jeremy.kloth+python-tracker at gmail.com>:

Since the KillPython target has been rewritten as an InlineTask, it can no longer detect 64-bit processes due to MSBuild being 32-bit.

This leads to stuck buildbot runs:
  https://buildbot.python.org/all/#/builders/17/builds/348

A few solutions that I can think of:

1) Switch the InlineTask to an Exec using a PowerShell script to kill the processes.
   In my limited testing, PowerShell is installed by default on the supported OSes (Win7+).

   <Exec Command="PowerShell -Command "& { Get-Process |  | Where-Object Path -EQ '$(OutDir)python$(PyDebugExt)$(PyTestExt).exe' | Stop-Process }"" />

2) When building for platform x64, modify find_msbuild.bat to locate the 64-bit MSBuild executable

3) On 64-bit OS, always use the 64-bit MSBuild executable

4) Only use the 64-bit MSBuild (when available) for the KillPython target (the 64-bit KillPython target can detect 32-bit processes)

I am unsure of any issues that may arise from building with the 64-bit MSBuild toolchain.

----------
components: Build, Windows
messages: 327694
nosy: jkloth, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: KillPython target doesn't detect 64-bit processes
versions: Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34980>
_______________________________________


More information about the New-bugs-announce mailing list