GNU bug report logs -
#7149
23.2; exiting last `emacsclient -c' frame, and then rerun client, segfaults `emacs --daemon'
Previous Next
Reported by: Chen Levy <chenlevy <at> gmail.com>
Date: Sat, 2 Oct 2010 16:02:02 UTC
Severity: normal
Done: Chong Yidong <cyd <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 7149 in the body.
You can then email your comments to 7149 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7149
; Package
emacs
.
(Sat, 02 Oct 2010 16:02:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Chen Levy <chenlevy <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sat, 02 Oct 2010 16:02:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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.
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#7149
; Package
emacs
.
(Fri, 20 Apr 2012 10:16:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 7149 <at> debbugs.gnu.org (full text, mbox):
Chen Levy <chenlevy <at> gmail.com> writes:
> 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.
>
> 1. Run: emacs --daemon
> 2. Run: emacsclient -c
> 3. Close the frame, started on strep 2.
> 5. Run: emacsclient -c
> It prints: Waiting for Emacs...
> but no new frame is opened.
I'm sorry that no one got back to you on this, but I can't reproduce it
on either Emacs 23.4 or the latest Emacs repository. I think this must
have been fixed in the meantime; please let us know if you still
experience the behavior.
bug closed, send any further explanations to
7149 <at> debbugs.gnu.org and Chen Levy <chenlevy <at> gmail.com>
Request was from
Chong Yidong <cyd <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Fri, 20 Apr 2012 10:16:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 18 May 2012 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 35 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.