News for hackers. Stuff that matters.
Re:macOS Containers v0.0.1 by nyanpasu64 on Tuesday September 26, 2023 @06:08AM (#37657013)
I disable SIP because I don't want to use an OS where I cannot debug programs which did not consent to be debugged. macOS makes it impossible to inspect failure states I encounter in normal usage (like I can on Linux with debuginfod enabled, or Windows with .pdb files) without first rebuilding the program in debug mode.
Re:macOS Containers v0.0.1 by _joel on Tuesday September 26, 2023 @06:46AM (#37657332)
Surely you can do this with xattr?
Re:macOS Containers v0.0.1 by smcleod on Tuesday September 26, 2023 @06:50AM (#37657370)
I’ve never had problems debugging anything with SIP on.
Re:macOS Containers v0.0.1 by nyanpasu64 on Tuesday September 26, 2023 @07:15AM (#37657599)
My experience is that I was unable to debug Maestral (a Python program) crashing in native Cocoa bindings in LLDB, because the interpreter did not allow itself to be debugged. Mozilla says Firefox acts the same way at https://firefox-source-docs.mozilla.org/contributing/debuggi.... It's possible there's some workaround I'm not aware of, but I ended up disabling SIP just like every non-macOS computer I own.
Re:macOS Containers v0.0.1 by duped on Tuesday September 26, 2023 @11:30AM (#37660819)
Were you debugging a local install of python, or the default python installed as a part of the OS?

If the latter, it's definitely a footgun but you shouldn't be using it for applications. It's a legacy binary for scripts.

Re:macOS Containers v0.0.1 by saagarjha on Tuesday September 26, 2023 @12:41PM (#37661929)
You can't debug system processes or anything with the hardened runtime enabled.