Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
egonelbre opened this issue Dec 20, 2020 · 1 comment
Open

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

egonelbre opened this issue Dec 20, 2020 · 1 comment

Comments

@egonelbre
Copy link
Contributor

@egonelbre egonelbre commented Dec 20, 2020

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.

@cagedmantis
Copy link
Contributor

@cagedmantis cagedmantis commented Dec 22, 2020

/cc @hyangah

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants