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

gdb failure on macOS Sierra #5912

Closed
caipre opened this issue Oct 14, 2016 · 5 comments
Closed

gdb failure on macOS Sierra #5912

caipre opened this issue Oct 14, 2016 · 5 comments

Comments

@caipre
Copy link

caipre commented Oct 14, 2016

Ran into this problem today. Running gdb on a binary quits with message:

During startup program terminated with signal ?, Unknown signal.

This is an open bug in gdb upstream: https://sourceware.org/bugzilla/show_bug.cgi?id=20266
A workaround is to disable SIP, as discussed here: https://sourceware.org/ml/gdb/2016-10/msg00009.html

Should we add a message in the caveats section for Sierra users?

@MikeMcQuaid
Copy link
Member

Does it not work with SIP at all? We won't recommend disabling SIP to end-users as it's a security feature.

@caipre
Copy link
Author

caipre commented Oct 15, 2016

In fact, the proposed workaround doesn't work for me (macOS Sierra 10.12.1 Beta). I tried csrutil enable --without debug, as suggested in the mailing list, as well as with SIP fully disabled. Same error in both cases.

Closing, as this seems like it has to be fixed by Apple or gdb upstream.

@caipre caipre closed this as completed Oct 15, 2016
@Salamit
Copy link

Salamit commented Nov 5, 2016

@imdanielsp
Copy link

@Salamit this is not solving the issue for me. I tried writing set startup-with-shell off to a .gdbinit located in my ~/ and it is not working. Any other ideas?

@Salamit
Copy link

Salamit commented Nov 8, 2016

If you followed instructions as in the video then I'm sorry, that is all I've got.

@Homebrew Homebrew locked and limited conversation to collaborators Nov 8, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants