-
Notifications
You must be signed in to change notification settings - Fork 126
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
Unable to debug Emacs in debugger #326
Comments
Apparently this makes Emacs.app runnable in debugger: codesign -d --xml --entitlements - ./Emacs.app > e.xml
/usr/libexec/PlistBuddy -c "Add :com.apple.security.get-task-allow bool true" ./e.xml
codesign -s - -f --entitlements e.xml ./Emacs.app However that also seems to stop it from freezing, even when running normally. |
I haven't try to run debugger on a cask bundle, I guess you may want to remove the signature first by I may suggest use the emacs-mac build from homebrew formula for debugging or build from upstream https://bitbucket.org/mituharu/emacs-mac/src/master/, unless you are debugging a cask specific issue. |
I don't really even quite understand why the two even exist. For me the cask looks like one that needs less recompiling on my end. 🤷 |
I have Emacs installed from prebuilt binaries. I experienced the same thing. Magit would freeze and trigger a trap while writing commit messages. I tried debugging Emacs and encountered the same issue. By giving it the For what it's worth, I believe the freeze was somehow caused by company trying to complete something from a dictionary in text mode. |
I was trying to debug an issue where emacs was hanging while lsp was active. I added the code signing above (so I could debug the problem) and for now the problem has gone away. I'm wondering how code signing is affecting Emacs overall? Clearly it is doing something? Before code signing I would get 'frequent' segv's E_BAD_ACCESS. I will report back here if 'signing' fixed the issue or not. |
No joy! Finally 'hung' here is the stack trace... `* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x80)
|
lldb
lacking some permissions:from
Console.app
:emacs-28.2-mac-9.1 (cask)
macOS Monterey 12.6.3
(trying to figure why doom emacs freezes hard, seems like maybe something to do with company/completions;
C-g
nor USR1/USR2 do anything, need tokill -9
)The text was updated successfully, but these errors were encountered: