unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#7149: Emacs 23.2.1: exiting last `emacsclient -c' frame, and then rerun client, segfaults `emacs --daemon'
@ 2010-10-02 13:12 Chen Levy
  2012-04-20 10:14 ` Chong Yidong
  0 siblings, 1 reply; 2+ messages in thread
From: Chen Levy @ 2010-10-02 13:12 UTC (permalink / raw)
  To: 7149

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#7149: Emacs 23.2.1: exiting last `emacsclient -c' frame, and then rerun client, segfaults `emacs --daemon'
  2010-10-02 13:12 bug#7149: Emacs 23.2.1: exiting last `emacsclient -c' frame, and then rerun client, segfaults `emacs --daemon' Chen Levy
@ 2012-04-20 10:14 ` Chong Yidong
  0 siblings, 0 replies; 2+ messages in thread
From: Chong Yidong @ 2012-04-20 10:14 UTC (permalink / raw)
  To: Chen Levy; +Cc: 7149

Chen Levy <chenlevy@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.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-04-20 10:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-02 13:12 bug#7149: Emacs 23.2.1: exiting last `emacsclient -c' frame, and then rerun client, segfaults `emacs --daemon' Chen Levy
2012-04-20 10:14 ` Chong Yidong

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).