Skip to content

Update the "cannot attach" message on macOS with more info #2774

Open
@thestr4ng3r

Description

rizin/librz/io/p/io_mach.c

Lines 399 to 403 in 1b688fa

perror("ptrace: Cannot attach");
eprintf("\n\nPlease ensure your rizin binary is signed and it has the right entitlements to make debugger work. ");
eprintf("Be aware that binaries signed by Apple cannot be debugged due to the Apple System Integrity Protection (SIP).\n");
eprintf("\nFor more info look at: https://book.rizin.re/debugger/apple.html#sign-rizin-binary\n\n");
eprintf("ERRNO: %d (EINVAL)\n", errno);

Another possible cause is that in non-interactive sessions like ssh, the system.privilege.taskport authorization cannot be granted by default. Might be good to change this message into a list of things that could be the cause.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

  • Status

    To do

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions