unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Giorgos Keramidas <keramida@ceid.upatras.gr>
To: Liang Wang <netcasper@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: emacs daemon exits when emacsclient connects to it again
Date: Mon, 09 Feb 2009 18:34:05 +0200	[thread overview]
Message-ID: <87iqnj1sea.fsf@kobe.laptop> (raw)
In-Reply-To: <a161d0b60902090229m5f8f278exa30681488558919d@mail.gmail.com> (Liang Wang's message of "Mon, 9 Feb 2009 18:29:41 +0800")

On Mon, 9 Feb 2009 18:29:41 +0800, Liang Wang <netcasper@gmail.com> wrote:
> On Mon, Feb 9, 2009 at 5:47 PM, Giorgos Keramidas
> <keramida@ceid.upatras.gr> wrote:
>> On Mon, 9 Feb 2009 17:11:45 +0800, Liang Wang <netcasper@gmail.com> wrote:
>>> Emacs daemon exits or crashes when emacsclient connect to it again.
>>> Below is my command line operation.
>>>
>>> [liang@localhost ~]$ emacs --daemon -Q
>>> ("emacs" "-Q")
>>> Starting Emacs daemon.
>>> [liang@localhost ~]$ pgrep -l emacs
>>> 2813 emacs
>>> [liang@localhost ~]$ emacsclient -c    # succeed to connect
>>> Waiting for Emacs...
>>> [liang@localhost ~]$ pgrep -l emacs
>>> 2813 emacs
>>> [liang@localhost ~]$ emacsclient -c    # fail to connect
>>> Waiting for Emacs...
>>> [liang@localhost ~]$ pgrep -l emacs
>>> [liang@localhost ~]$
>>
>> Which version of Emacs are you running?  Can you attach to the
>> background process using gdb and see where it crashes?
>
> GNU Emacs 23.0.90.1 (i686-pc-linux-gnu, GTK+ Version 2.14.7) of
> 2009-02-09 on localhost.localdomain
>
> I am not familiar with gdb.  Below is the output of gdb session.  It
> seems that something is wrong when emacsclient connects to daemon
> initially.

Thanks for looking into this nevertheless :)

> (gdb) attach 2970
[...]
> (gdb) c
> Continuing.
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x00000003 in ?? ()
> (gdb) bt
> #0  0x00000003 in ?? ()
> #1  0x00000007 in ?? ()
> #2  0xbfec0490 in ?? ()
> #3  0x009b025c in freopen64 () from /lib/libglib-2.0.so.0
> #4  0x009b025c in freopen64 () from /lib/libglib-2.0.so.0
> #5  0x00000004 in ?? ()
> #6  0xbfec0418 in ?? ()
> #7  0x00928c0a in g_string_append_vprintf () from /lib/libglib-2.0.so.0
> Backtrace stopped: previous frame inner to this frame (corrupt stack?)
> (gdb)

This part looks like a crash inside the glib library.  Looking at its
path, the operating system seems to be GNU/Linux.  Can you give us a bit
more information?

  * The operating system type.
  * The branch/release of the OS you are using.
  * The list of installed packages that are related to GTK+.

This may be a bug in glib that has already been resolved upstream.  If
that is the case, then updating the packages that Emacs depends upon
might fix the crash.





      reply	other threads:[~2009-02-09 16:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-09  9:11 emacs daemon exits when emacsclient connects to it again Liang Wang
2009-02-09  9:47 ` Giorgos Keramidas
2009-02-09 10:29   ` Liang Wang
2009-02-09 16:34     ` Giorgos Keramidas [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87iqnj1sea.fsf@kobe.laptop \
    --to=keramida@ceid.upatras.gr \
    --cc=emacs-devel@gnu.org \
    --cc=netcasper@gmail.com \
    /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 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).