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

[WSL1] valgrind return"unsupported arch_prctl option" #4672

Closed
Po-wei opened this issue Nov 13, 2019 · 4 comments
Closed

[WSL1] valgrind return"unsupported arch_prctl option" #4672

Po-wei opened this issue Nov 13, 2019 · 4 comments

Comments

@Po-wei
Copy link

Po-wei commented Nov 13, 2019

Please fill out the below information:

  • Your Windows build number: (Type ver at a Windows Command Prompt)
    Microsoft Windows [Version 10.0.18363.476]

  • What you're doing and what's happening: (Copy&paste the full set of specific command-line steps necessary to reproduce the behavior, and their output. Include screen shots if that helps demonstrate the problem.)
    run valgrind

  • What's wrong / what should be happening instead:

always return error calling PR_SET_PTRACER, vgdb might block

@therealkenc
Copy link
Collaborator

therealkenc commented Nov 13, 2019

Copy&paste the full set of specific command-line steps necessary to reproduce the behavior

run valgrind

That wasn't your repro. Do appreciate the strace(1) logs tho.

execve("/usr/bin/valgrind", ["valgrind", "./ixtest_01"], 0x7fffc2e543f0 /* 21 vars */) = 0
[...]
34    mmap(0x1002bb1000, 27597024, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 0, 0) = 0x1002bb1000
34    mmap(0x1004603000, 4769856, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 0, 0) = 0x1004603000
34    mmap(0x1004a90000, 1362816, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 0, 0) = 0x1004a90000
34    mmap(0x1004bdd000, 131042, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 0, 0) = 0x1004bdd000
34    mmap(0x1004bfd000, 65536, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 0, 0) = 0x1004bfd000
34    write(1027, "\nvalgrind: the 'impossible' happ"..., 71) = 71
34    gettid()                          = 34
34    write(1027, "\nhost stacktrace:\n", 18) = 18

There's a few google hits. Dunno if they apply (probably not). valgrind has/had been reported to work at some point ref #120. Guidance would be to try WSL2.

@Po-wei
Copy link
Author

Po-wei commented Nov 13, 2019

prior to 1909, I can run valgrind with very very same program in WSL1.
I guess some windows update patch leads to this bug.

@Po-wei
Copy link
Author

Po-wei commented Nov 13, 2019

./a.out is a simple C++ hello_world just return 0;
image

@Po-wei
Copy link
Author

Po-wei commented Nov 14, 2019

manual compile the latest version of valgrind fix the problems

@Po-wei Po-wei closed this as completed Nov 14, 2019
@Po-wei Po-wei changed the title [WSL1] valgrind return" error calling PR_SET_PTRACER, vgdb might block" windows 1909 [WSL1] valgrind return"unsupported arch_prctl option" Nov 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants