Skip to content

Attaching without sudo #51

@bmac3

Description

@bmac3

Hello, thanks so much for this library, it's saved me a ton of time and headaches.

I'm running into an issue regarding the CUDA C++: Attach configuration. When I try to attach to a process, I get the error Please try running echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope. I'm not able to change the /proc/sys/kernel/yama/ptrace_scope on the machine I'm working on since I don't have sudo privileges. According to the documentation for Yama, however, it should be possible to allow ptracing of specific processes using prctl(PR_SET_PTRACER, pid, ...) even if the ptrace_scope of the system is set differently. I can confirm that running this command allows cuda-gdb to attach to non-child processes. The only trouble is that attaching nsight-vscode with the CUDA C++: Attach still yields the same Please try running echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope error. It seems that @huynhducloi00 also ran into this issue (#6 #3). Is there any chance this can be fixed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions