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

rbw-agent: Unable to disable PTRACE_ATTACH on this platform: not implemented #44

Closed
rjc opened this issue Mar 4, 2021 · 4 comments
Closed

Comments

@rjc
Copy link

rjc commented Mar 4, 2021

Hello,

After installing the latest version with cargo install rbw on macOS 10.14, I get this:

$ rbw --version
rbw 1.1.0
$ rbw login
rbw-agent: Unable to disable PTRACE_ATTACH on this platform: not implemented. Agent memory may be dumpable by other processes.
rbw login: failed to run rbw-agent: exit code: 1

Looks like a possible fall-out from #42.

@doy
Copy link
Owner

doy commented Mar 6, 2021

whoops, sorry, fixed!

@doy doy closed this as completed Mar 6, 2021
@rjc
Copy link
Author

rjc commented Mar 6, 2021

@doy, no worries and thanks for the fix! :^)

Now, each time I run any command, I get:

[2021-03-06T09:56:03Z WARN  rbw_agent] failed to disable PTRACE_ATTACH, agent memory may be dumpable by other processes: unimplemented on this platform

I'd rather not use 2>/dev/null each time I run rbw, or create an alias or a script.

Any chance to get rid of the warning altogether on platforms which simply don't support it?

@doy
Copy link
Owner

doy commented Mar 6, 2021

oh, oops, the intention was for this to go to the agent logs rather than stdout. that should also be fixed now!

@rjc
Copy link
Author

rjc commented Mar 6, 2021

Thanks again for a quick fix!

I actually meant getting rid of the warning altogether on platforms which don't support it quite literally as rbw-agent will be logging an error about missing functionalty which, currently, is Linux-specific. I'm simply wondering if there's much point in it. How about simply mentioning it in the README and be done with the warning? :^)

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