From: Chen Levy <chenlevy@gmail.com>
To: 7149@debbugs.gnu.org
Subject: bug#7149: Emacs 23.2.1: exiting last `emacsclient -c' frame, and then rerun client, segfaults `emacs --daemon'
Date: Sat, 2 Oct 2010 15:12:56 +0200 [thread overview]
Message-ID: <AANLkTikEEOK73wfnfntaM6iMEwojd6Q1wbQmL7g72v5V@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1911 bytes --]
Description:
=======
When starting emacs server with `emacs --daemon', and connecting to it with
`emacsclient -c', then closing the last `emacsclient -c' frame and trying to
open a new `emacsclient -c' frame, the `emacs --daemon'
process receive SYSSEGV.
Steps to reproduce:
============
0. Make sure no Emacs processes are running.
1. Run: emacs --daemon
It prints:
("emacs")
Starting Emacs daemon.
and the process starts normally.
2. Run: emacsclient -c
It prints: Waiting for Emacs...
and a new frame opens as expected.
3. Close the frame, started on strep 2.
Observe that the `/tmp/emacs${UID}/server' socket seem to be active.
`fuser' on it prints the `emacs --daemon' PID.
4. (optional) Open `gdb', `attach' to the `emacs --daemon' process, and
`continue' it.
5. Run: emacsclient -c
It prints: Waiting for Emacs...
but no new frame is opened.
gdb prints something like:
Program received signal SIGSEGV, Segmentation fault.
0x00007f989f211527 in kill () from /lib/libc.so.6
And the output of `fuser /tmp/emacs${UID}/server' confirms that the socket
is stale.
6. Run: `emacsclient -c' prints:
emacsclient: connect: Connection refused
emacsclient: No socket or alternate editor. Please use:
--socket-name
--server-file (or environment variable EMACS_SERVER_FILE)
--alternate-editor (or environment variable ALTERNATE_EDITOR)
Version information:
============
# (version)
GNU Emacs 23.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.12.9)
(compiled from source)
# uname -a
Linux xxxxxx 2.6.24-28-generic #1 SMP Thu Sep 16 14:18:43 UTC 2010 x86_64
GNU/Linux
# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu 8.04.4 LTS"
See also:
======
http://superuser.com/questions/194395/why-does-tmp-emacsuid-server-get-stale-after-last-emacsclient-exits
| Cheers,
| Chen.
[-- Attachment #2: Type: text/html, Size: 3152 bytes --]
next reply other threads:[~2010-10-02 13:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-02 13:12 Chen Levy [this message]
2012-04-20 10:14 ` bug#7149: Emacs 23.2.1: exiting last `emacsclient -c' frame, and then rerun client, segfaults `emacs --daemon' Chong Yidong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTikEEOK73wfnfntaM6iMEwojd6Q1wbQmL7g72v5V@mail.gmail.com \
--to=chenlevy@gmail.com \
--cc=7149@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.