Skip to content

[JENKINS-48785] getCmdLineAndEnvVars is not compatible with 32bit windows os #48

@Kapoetski3

Description

@Kapoetski3

The getCmdLineAndEnvVars function seems to be incompatible with 32bit windows os.

We currently have a jenkins server that runs on a x64 windows machine.
This machine starts a java process on a jenkins slave that is running on a 32bit windows machine.

The process on the 32bit machine cannot be killed. The getCmdLineAndEnvVars checks if the process is wow64, which it is not according to the msdn documentation:

A pointer to a value that is set to TRUE if the process is running under WOW64. If the process is running under 32-bit Windows, the value is set to FALSE. If the process is a 64-bit application running under 64-bit Windows, the value is also set to FALSE.

This means the iswow64 check will always fail, causing an error. This also means the process will never get cleaned.

The check should also look for PROCESSOR_ARCHITECTURE_INTEL and not just wow64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions