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

Weird crash in terminal emacs when invoking shell command with "& disown" #728

Open
nasseralkmim opened this issue Jul 31, 2024 · 0 comments

Comments

@nasseralkmim
Copy link

This crash occurs in terminal emacs, when invoking a shell command with "& disown" to open a pdf file for example.

To reproduce:

  1. emacs -Q -nw
  2. add embark source code to the load-path (add-to-list 'load-path "/home/user/.emacs.d/elpaca/repos/embark/")
  3. (require 'embark)
  4. (bind-keys ("C-z" . embark-act))
  5. "C-x f" look for a pdf file, then "C-z" "!" open the pdf reader with the shell command: "okular pdffile.pdf & disown"
  6. It opens the pdf, now go to emacs again and press "C-g" (keyboard-quit). Emacs crashes.

Not sure how to debug this.

It only happens in terminal emacs.

If I act directly on a file path, it works with no problems, I can open the pdf in a "disown" process and go back to work in emacs.
Only when I act in the minibuffer (after find-file for instance) the problem happens.

I'm running emacs 31.0.50 with native-compilation enabled.

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

1 participant