Skip to content

runtime/pprof: provide memory mapping info on Windows #43296

@egonelbre

Description

@egonelbre

Noticed during google/pprof#592.

Currently Windows is missing memory mapping info similarly to Mac (#19790). This doesn't work very well in conjunction with ASLR. This results in addresses that do not match the binary. The workaround is to use -buildmode exe to disable it.

Windows does seem to have VirtualQueryEx to get the necessary information. (https://reverseengineering.stackexchange.com/a/8299). Minimally it would be nice to get the mapping for the main executable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.OS-Windowscompiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions