I've built GNU Emacs 27.0.50
from source in Ubuntu 18.10. Then started the daemon as a systemd unit:
[Unit]
Description=Emacs text editor
Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/
[Service]
Type=notify
ExecStart=/home/marcanuy/local/bin/emacs --fg-daemon
ExecStop=/home/marcanuy/local/bin/emacsclient --eval "(kill-emacs)"
Environment=SSH_AUTH_SOCK=%t/keyring/ssh
Restart=on-failure
[Install]
WantedBy=default.target
When I start emacsclient running emacsclient -c
it quits after a while without any errors.
Even running it with gdb
doesn't shows anything:
(gdb) exec-file emacsclient
(gdb) set args -c
(gdb) run
Starting program: /home/marcanuy/local/bin/emacsclient -c
Waiting for Emacs...
[Inferior 1 (process 2858) exited normally]
(gdb) bt
No stack.
It happened configuring it with and without x-lucid:
./configure --prefix=$HOME/local
and
./configure --prefix=$HOME/local --with-x-toolkit=lucid
both have the same problem.
Also, the daemon is running without problems:
$ systemctl --user status emacs.service
● emacs.service - Emacs text editor
Loaded: loaded (/home/marcanuy/.config/systemd/user/emacs.service; enabled; vendor preset: enabled)
Active: activating (start) since Tue 2019-01-15 06:13:47 -03; 1min 16s ago
Docs: info:emacs
man:emacs(1)
https://gnu.org/software/emacs/
Main PID: 3138 (emacs)
CGroup: /user.slice/user-1000.slice/[email protected]/emacs.service
└─3138 /home/marcanuy/local/bin/emacs --fg-daemon
ene 15 06:13:47 scarone systemd[1383]: Stopped Emacs text editor.
ene 15 06:13:47 scarone systemd[1383]: Starting Emacs text editor...
ene 15 06:13:54 scarone emacs[3138]: Loading /home/marcanuy/.emacs.d/helm-adaptive-history...
ene 15 06:13:54 scarone emacs[3138]: Loading /home/marcanuy/.emacs.d/helm-adaptive-history...done
ene 15 06:13:57 scarone emacs[3138]: [yas] Prepared just-in-time loading of snippets (but no snippets found).
ene 15 06:13:58 scarone emacs[3138]: [yas] Prepared just-in-time loading of snippets (but no snippets found).
ene 15 06:13:59 scarone emacs[3138]: Turning on magit-auto-revert-mode...
ene 15 06:13:59 scarone emacs[3138]: Turning on magit-auto-revert-mode...done
ene 15 06:13:59 scarone emacs[3138]: Starting Emacs daemon.
Any idea?
26.1.91
.M-x report-emacs-bug
(ideally from within the 27.0.50 build, if you still have it) to report the original problem.