unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* 23.1; Emacs daemon gets killed by emacsclient -c
@ 2009-08-04  8:59 Fabian Ezequiel Gallina
  2009-08-04 15:30 ` Deniz Dogan
  2009-08-04 18:09 ` Daniel Clemente
  0 siblings, 2 replies; 11+ messages in thread
From: Fabian Ezequiel Gallina @ 2009-08-04  8:59 UTC (permalink / raw)
  To: emacs-devel

Hi,

My Emacs daemon gets killed after using emacsclient -c for third
time.

I really don't know how to give a better traceback for this. Any
recommendations are appreciated.

Here is how I reproduce the bug:


[fgallina@cuca ~]$ emacs --daemon -Q
("emacs" "-Q")
Starting Emacs daemon.
[fgallina@cuca ~]$ emacsclient -t
[fgallina@cuca ~]$ emacsclient -t
[fgallina@cuca ~]$ emacsclient -t
[fgallina@cuca ~]$ emacsclient -t
[fgallina@cuca ~]$ emacsclient -t
[fgallina@cuca ~]$
[fgallina@cuca ~]$ emacsclient -c
Waiting for Emacs...
[fgallina@cuca ~]$ emacsclient -c
Waiting for Emacs...
[fgallina@cuca ~]$ emacsclient -c
Waiting for Emacs...
[fgallina@cuca ~]$ ps axu | grep -i emacs
fgallina  4236  0.0  0.0  91080   888 pts/1    S+   05:37   0:00 grep -i emacs


The third time I use emacsclient -c, after the "Waiting for Emacs
message" is displayed,
nothing happens. So I checked and the Emacs daemon process was
not running anymore.

The funny thing is that emacsclient -t works flawlessly. I'm only
having this problem when I run emacsclient -c.


I'm running Emacs 23.1 on Fedora 11.


Thanks,
Fabián E. Gallina.




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

* Re: 23.1; Emacs daemon gets killed by emacsclient -c
  2009-08-04  8:59 23.1; Emacs daemon gets killed by emacsclient -c Fabian Ezequiel Gallina
@ 2009-08-04 15:30 ` Deniz Dogan
  2009-08-04 17:05   ` Fabian Ezequiel Gallina
  2009-08-04 18:09 ` Daniel Clemente
  1 sibling, 1 reply; 11+ messages in thread
From: Deniz Dogan @ 2009-08-04 15:30 UTC (permalink / raw)
  To: Fabian Ezequiel Gallina; +Cc: emacs-devel

2009/8/4 Fabian Ezequiel Gallina <galli.87@gmail.com>:
> Hi,
>
> My Emacs daemon gets killed after using emacsclient -c for third
> time.
>
> I really don't know how to give a better traceback for this. Any
> recommendations are appreciated.
>
> Here is how I reproduce the bug:
>
>
> [fgallina@cuca ~]$ emacs --daemon -Q
> ("emacs" "-Q")
> Starting Emacs daemon.
> [fgallina@cuca ~]$ emacsclient -t
> [fgallina@cuca ~]$ emacsclient -t
> [fgallina@cuca ~]$ emacsclient -t
> [fgallina@cuca ~]$ emacsclient -t
> [fgallina@cuca ~]$ emacsclient -t
> [fgallina@cuca ~]$
> [fgallina@cuca ~]$ emacsclient -c
> Waiting for Emacs...
> [fgallina@cuca ~]$ emacsclient -c
> Waiting for Emacs...
> [fgallina@cuca ~]$ emacsclient -c
> Waiting for Emacs...
> [fgallina@cuca ~]$ ps axu | grep -i emacs
> fgallina  4236  0.0  0.0  91080   888 pts/1    S+   05:37   0:00 grep -i emacs
>
>
> The third time I use emacsclient -c, after the "Waiting for Emacs
> message" is displayed,
> nothing happens. So I checked and the Emacs daemon process was
> not running anymore.
>
> The funny thing is that emacsclient -t works flawlessly. I'm only
> having this problem when I run emacsclient -c.
>
>
> I'm running Emacs 23.1 on Fedora 11.
>
>
> Thanks,
> Fabián E. Gallina.
>
>
>

FWIW, I was unable to reproduce this behavior. I tried opening a bunch
of Emacs clients, both with -t and -c, without anything strange
happening.

-- 
Deniz Dogan




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

* Re: 23.1; Emacs daemon gets killed by emacsclient -c
  2009-08-04 15:30 ` Deniz Dogan
@ 2009-08-04 17:05   ` Fabian Ezequiel Gallina
  2009-08-04 17:07     ` Deniz Dogan
                       ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Fabian Ezequiel Gallina @ 2009-08-04 17:05 UTC (permalink / raw)
  To: Deniz Dogan; +Cc: emacs-devel

2009/8/4 Deniz Dogan <deniz.a.m.dogan@gmail.com>:
>
> FWIW, I was unable to reproduce this behavior. I tried opening a bunch
> of Emacs clients, both with -t and -c, without anything strange
> happening.
>

If I don't close the frames, then it works. The problem happens if I
actually do this:

[fgallina@cuca ~]$ emacsclient -c
Waiting for Emacs...

# Close the frame with C-x 5 0

[fgallina@cuca ~]$ emacsclient -c
Waiting for Emacs...

# Close the frame with C-x 5 0

[fgallina@cuca ~]$ emacsclient -c
Waiting for Emacs...

# The Frame does not opens because Emacs daemon was killed.

I can reproduce this every time, and always happens on the third attempt.



Thanks,
Fabián E. Gallina




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

* Re: 23.1; Emacs daemon gets killed by emacsclient -c
  2009-08-04 17:05   ` Fabian Ezequiel Gallina
@ 2009-08-04 17:07     ` Deniz Dogan
  2009-08-04 18:42     ` Dan Nicolaescu
                       ` (2 subsequent siblings)
  3 siblings, 0 replies; 11+ messages in thread
From: Deniz Dogan @ 2009-08-04 17:07 UTC (permalink / raw)
  To: Fabian Ezequiel Gallina; +Cc: emacs-devel

2009/8/4 Fabian Ezequiel Gallina <galli.87@gmail.com>:
> 2009/8/4 Deniz Dogan <deniz.a.m.dogan@gmail.com>:
>>
>> FWIW, I was unable to reproduce this behavior. I tried opening a bunch
>> of Emacs clients, both with -t and -c, without anything strange
>> happening.
>>
>
> If I don't close the frames, then it works. The problem happens if I
> actually do this:
>
> [fgallina@cuca ~]$ emacsclient -c
> Waiting for Emacs...
>
> # Close the frame with C-x 5 0
>
> [fgallina@cuca ~]$ emacsclient -c
> Waiting for Emacs...
>
> # Close the frame with C-x 5 0
>
> [fgallina@cuca ~]$ emacsclient -c
> Waiting for Emacs...
>
> # The Frame does not opens because Emacs daemon was killed.
>
> I can reproduce this every time, and always happens on the third attempt.
>
>
>
> Thanks,
> Fabián E. Gallina
>

Still no luck reproducing it on my system.

-- 
Deniz Dogan




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

* Re: 23.1; Emacs daemon gets killed by emacsclient -c
  2009-08-04  8:59 23.1; Emacs daemon gets killed by emacsclient -c Fabian Ezequiel Gallina
  2009-08-04 15:30 ` Deniz Dogan
@ 2009-08-04 18:09 ` Daniel Clemente
  1 sibling, 0 replies; 11+ messages in thread
From: Daniel Clemente @ 2009-08-04 18:09 UTC (permalink / raw)
  To: emacs-devel

El dt, ago 04 2009 a les 10:59, Fabian Ezequiel Gallina va escriure:
>
> I really don't know how to give a better traceback for this. Any
> recommendations are appreciated.
>

  In these cases, strace can be useful to see what is the last thing that the process did before dying.
Try „strace ls“, „strace emacs --daemon“, „strace emacsclient“ etc. And „man strace“ for more information.
  gdb can also help to see what is Emacs doing, but it may be harder to extract the information.






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

* Re: 23.1; Emacs daemon gets killed by emacsclient -c
  2009-08-04 17:05   ` Fabian Ezequiel Gallina
  2009-08-04 17:07     ` Deniz Dogan
@ 2009-08-04 18:42     ` Dan Nicolaescu
  2009-08-04 22:28       ` Fabian Ezequiel Gallina
  2009-08-04 22:56       ` Wesley Dawson
  2009-08-04 19:53     ` Andreas Schwab
  2009-08-05  1:22     ` Liang Wang
  3 siblings, 2 replies; 11+ messages in thread
From: Dan Nicolaescu @ 2009-08-04 18:42 UTC (permalink / raw)
  To: Fabian Ezequiel Gallina; +Cc: emacs-devel, Deniz Dogan

Fabian Ezequiel Gallina <galli.87@gmail.com> writes:

  > 2009/8/4 Deniz Dogan <deniz.a.m.dogan@gmail.com>:
  > >
  > > FWIW, I was unable to reproduce this behavior. I tried opening a bunch
  > > of Emacs clients, both with -t and -c, without anything strange
  > > happening.
  > >
  > 
  > If I don't close the frames, then it works. The problem happens if I
  > actually do this:
  > 
  > [fgallina@cuca ~]$ emacsclient -c
  > Waiting for Emacs...
  > 
  > # Close the frame with C-x 5 0
  > 
  > [fgallina@cuca ~]$ emacsclient -c
  > Waiting for Emacs...
  > 
  > # Close the frame with C-x 5 0
  > 
  > [fgallina@cuca ~]$ emacsclient -c
  > Waiting for Emacs...
  > 
  > # The Frame does not opens because Emacs daemon was killed.
  > 
  > I can reproduce this every time, and always happens on the third attempt.

I can't reproduce it on my Fedora 11 machine.
Can you recompile using:
configure --with-x-toolkit=lucid

and see if you get the problem in that configuration.




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

* Re: 23.1; Emacs daemon gets killed by emacsclient -c
  2009-08-04 17:05   ` Fabian Ezequiel Gallina
  2009-08-04 17:07     ` Deniz Dogan
  2009-08-04 18:42     ` Dan Nicolaescu
@ 2009-08-04 19:53     ` Andreas Schwab
  2009-08-04 22:34       ` Fabian Ezequiel Gallina
  2009-08-05  1:22     ` Liang Wang
  3 siblings, 1 reply; 11+ messages in thread
From: Andreas Schwab @ 2009-08-04 19:53 UTC (permalink / raw)
  To: Fabian Ezequiel Gallina; +Cc: emacs-devel, Deniz Dogan

Fabian Ezequiel Gallina <galli.87@gmail.com> writes:

> I can reproduce this every time, and always happens on the third attempt.

Do you use gtk-qt-engine, by chance?

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




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

* Re: 23.1; Emacs daemon gets killed by emacsclient -c
  2009-08-04 18:42     ` Dan Nicolaescu
@ 2009-08-04 22:28       ` Fabian Ezequiel Gallina
  2009-08-04 22:56       ` Wesley Dawson
  1 sibling, 0 replies; 11+ messages in thread
From: Fabian Ezequiel Gallina @ 2009-08-04 22:28 UTC (permalink / raw)
  To: Dan Nicolaescu; +Cc: emacs-devel, Deniz Dogan

2009/8/4 Dan Nicolaescu <dann@ics.uci.edu>:
> Fabian Ezequiel Gallina <galli.87@gmail.com> writes:
>
> I can't reproduce it on my Fedora 11 machine.
> Can you recompile using:
> configure --with-x-toolkit=lucid
>
> and see if you get the problem in that configuration.
>

Hi Dan,

Compiled with lucid worked perfect, however I would like to able to
track down why is failing with gtk.

Regards,
-- 
Fabián E. Gallina




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

* Re: 23.1; Emacs daemon gets killed by emacsclient -c
  2009-08-04 19:53     ` Andreas Schwab
@ 2009-08-04 22:34       ` Fabian Ezequiel Gallina
  0 siblings, 0 replies; 11+ messages in thread
From: Fabian Ezequiel Gallina @ 2009-08-04 22:34 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: emacs-devel, Deniz Dogan

2009/8/4 Andreas Schwab <schwab@linux-m68k.org>:
> Fabian Ezequiel Gallina <galli.87@gmail.com> writes:
>
>> I can reproduce this every time, and always happens on the third attempt.
>
> Do you use gtk-qt-engine, by chance?
>

No, I'm not.

I'm running Gnome 2.26.3 on Fedora 11 (x86_64).


Regards,
-- 
Fabián E. Gallina




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

* Re: 23.1; Emacs daemon gets killed by emacsclient -c
  2009-08-04 18:42     ` Dan Nicolaescu
  2009-08-04 22:28       ` Fabian Ezequiel Gallina
@ 2009-08-04 22:56       ` Wesley Dawson
  1 sibling, 0 replies; 11+ messages in thread
From: Wesley Dawson @ 2009-08-04 22:56 UTC (permalink / raw)
  To: emacs-devel

> I can't reproduce it on my Fedora 11 machine.
> Can you recompile using:
> configure --with-x-toolkit=lucid
> 
> and see if you get the problem in that configuration.

I'm running Fedora 11 Gnome, and have reproduced this bug. Recompiling with
lucid does indeed fix the situation.

Also, this appears to be specific to Fedora 11 Gnome. I tried a gtk-compiled
Emacs 23.1 on KDE and xfce and both worked fine.





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

* Re: 23.1; Emacs daemon gets killed by emacsclient -c
  2009-08-04 17:05   ` Fabian Ezequiel Gallina
                       ` (2 preceding siblings ...)
  2009-08-04 19:53     ` Andreas Schwab
@ 2009-08-05  1:22     ` Liang Wang
  3 siblings, 0 replies; 11+ messages in thread
From: Liang Wang @ 2009-08-05  1:22 UTC (permalink / raw)
  To: Fabian Ezequiel Gallina; +Cc: emacs-devel, Deniz Dogan

On Wed, Aug 5, 2009 at 1:05 AM, Fabian Ezequiel
Gallina<galli.87@gmail.com> wrote:
> 2009/8/4 Deniz Dogan <deniz.a.m.dogan@gmail.com>:
>>
>> FWIW, I was unable to reproduce this behavior. I tried opening a bunch
>> of Emacs clients, both with -t and -c, without anything strange
>> happening.
>>
>
> If I don't close the frames, then it works. The problem happens if I
> actually do this:
>
> [fgallina@cuca ~]$ emacsclient -c
> Waiting for Emacs...
>
> # Close the frame with C-x 5 0
>
> [fgallina@cuca ~]$ emacsclient -c
> Waiting for Emacs...
>
> # Close the frame with C-x 5 0
>
> [fgallina@cuca ~]$ emacsclient -c
> Waiting for Emacs...
>
> # The Frame does not opens because Emacs daemon was killed.
>
> I can reproduce this every time, and always happens on the third attempt.
>
>
>
> Thanks,
> Fabián E. Gallina
>
>
>

If it's the same bug as
http://lists.gnu.org/archive/html/emacs-devel/2009-03/msg00281.html,
you probably need update libcanberra.




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

end of thread, other threads:[~2009-08-05  1:22 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-04  8:59 23.1; Emacs daemon gets killed by emacsclient -c Fabian Ezequiel Gallina
2009-08-04 15:30 ` Deniz Dogan
2009-08-04 17:05   ` Fabian Ezequiel Gallina
2009-08-04 17:07     ` Deniz Dogan
2009-08-04 18:42     ` Dan Nicolaescu
2009-08-04 22:28       ` Fabian Ezequiel Gallina
2009-08-04 22:56       ` Wesley Dawson
2009-08-04 19:53     ` Andreas Schwab
2009-08-04 22:34       ` Fabian Ezequiel Gallina
2009-08-05  1:22     ` Liang Wang
2009-08-04 18:09 ` Daniel Clemente

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).