GNU bug report logs - #10989
--eval block sent to server don't handle errors quite right

Previous Next

Package: emacs;

Reported by: Le Wang <l26wang <at> gmail.com>

Date: Sun, 11 Mar 2012 04:38:01 UTC

Severity: normal

Tags: fixed

Fixed in version 27.1

Done: Noam Postavsky <npostavs <at> gmail.com>

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 10989 in the body.
You can then email your comments to 10989 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#10989; Package emacs. (Sun, 11 Mar 2012 04:38:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Le Wang <l26wang <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 11 Mar 2012 04:38:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Le Wang <l26wang <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: --eval block sent to server don't handle errors quite right
Date: Sun, 11 Mar 2012 12:07:10 +0800
[Message part 1 (text/plain, inline)]
To wit:

~ [le-master]
% /Applications/Emacs.app/Contents/MacOS/Emacs --daemon -q -eval
"(server-start)"                                     Sun 12:00:40
("/Applications/Emacs.app/Contents/MacOS/Emacs" "-eval" "(server-start)")
Starting Emacs daemon.
Restarting server

~ [le-master]
% emacsclient --eval "(error
\"foo\")"
Sun 12:03:07
*ERROR*: foo

This is okay.

~ [le-master]
% emacsclient  --eval "(error
\"foo\")"
Sun 12:05:16
*ERROR*: foo

hangs I have to C-c to break out of it


So it only handles (signal 'error).

-- 
Le
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10989; Package emacs. (Sun, 11 Mar 2012 12:26:01 GMT) Full text and rfc822 format available.

Message #8 received at 10989 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Le Wang <l26wang <at> gmail.com>
Cc: 10989 <at> debbugs.gnu.org
Subject: Re: bug#10989: --eval block sent to server don't handle errors quite
	right
Date: Sun, 11 Mar 2012 12:55:38 +0100
Does it work better now?

Andreas.

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10989; Package emacs. (Sun, 11 Mar 2012 13:55:03 GMT) Full text and rfc822 format available.

Message #11 received at 10989 <at> debbugs.gnu.org (full text, mbox):

From: Le Wang <l26wang <at> gmail.com>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 10989 <at> debbugs.gnu.org
Subject: Re: bug#10989: --eval block sent to server don't handle errors quite
	right
Date: Sun, 11 Mar 2012 21:24:23 +0800
[Message part 1 (text/plain, inline)]
On Sun, Mar 11, 2012 at 7:55 PM, Andreas Schwab <schwab <at> linux-m68k.org>wrote:

> Does it work better now?


I recompiled with your latest commits, but still observe the same behaviour.


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



-- 
Le
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10989; Package emacs. (Mon, 12 Mar 2012 16:42:01 GMT) Full text and rfc822 format available.

Message #14 received at 10989 <at> debbugs.gnu.org (full text, mbox):

From: Le Wang <l26wang <at> gmail.com>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 10989 <at> debbugs.gnu.org
Subject: Re: bug#10989: --eval block sent to server don't handle errors quite
	right
Date: Tue, 13 Mar 2012 00:11:40 +0800
[Message part 1 (text/plain, inline)]
On Sun, Mar 11, 2012 at 9:24 PM, Le Wang <l26wang <at> gmail.com> wrote:

I mis-edited the original bug report, it should be this:


~ [le-master]
% /Applications/Emacs.app/Contents/MacOS/Emacs --daemon -q -eval
"(server-start)"                                     Tue 00:09:31
("/Applications/Emacs.app/Contents/MacOS/Emacs" "-eval" "(server-start)")
Starting Emacs daemon.
Restarting server

~ [le-master]
% emacsclient --eval "(error
\"foo\")"
Tue 00:09:41
*ERROR*: foo

~ [le-master]
% emacsclient  --eval "(signal 'foo
nil)"
Tue 00:09:53
^C

hangs I have to C-c to break out of it


So it only handles (signal 'error).

-- 
Le
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10989; Package emacs. (Mon, 12 Mar 2012 18:01:01 GMT) Full text and rfc822 format available.

Message #17 received at 10989 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Le Wang <l26wang <at> gmail.com>
Cc: 10989 <at> debbugs.gnu.org
Subject: Re: bug#10989: --eval block sent to server don't handle errors quite
	right
Date: Mon, 12 Mar 2012 18:30:45 +0100
Le Wang <l26wang <at> gmail.com> writes:

> ~ [le-master]
> % emacsclient  --eval "(signal 'foo
> nil)"
> Tue 00:09:53
> ^C
>
> hangs I have to C-c to break out of it

Does it exit after 5 seconds?

Andreas.

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10989; Package emacs. (Tue, 13 Mar 2012 13:54:02 GMT) Full text and rfc822 format available.

Message #20 received at 10989 <at> debbugs.gnu.org (full text, mbox):

From: Le Wang <l26wang <at> gmail.com>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 10989 <at> debbugs.gnu.org
Subject: Re: bug#10989: --eval block sent to server don't handle errors quite
	right
Date: Tue, 13 Mar 2012 21:23:07 +0800
[Message part 1 (text/plain, inline)]
On Tue, Mar 13, 2012 at 1:30 AM, Andreas Schwab <schwab <at> linux-m68k.org>wrote:

> Le Wang <l26wang <at> gmail.com> writes:
>
> > ~ [le-master]
> > % emacsclient  --eval "(signal 'foo
> > nil)"
> > Tue 00:09:53
> > ^C
> >
> > hangs I have to C-c to break out of it
>
>
I just pulled and recompiled.  The bug is still there.  I have to C-c to
greak out of emacsclient.

Does it exit after 5 seconds?
>
> Andreas.
>
> --
> Andreas Schwab, schwab <at> linux-m68k.org
> GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
> "And now for something completely different."
>



-- 
Le
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10989; Package emacs. (Tue, 13 Mar 2012 14:19:02 GMT) Full text and rfc822 format available.

Message #23 received at 10989 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Le Wang <l26wang <at> gmail.com>
Cc: 10989 <at> debbugs.gnu.org
Subject: Re: bug#10989: --eval block sent to server don't handle errors quite
	right
Date: Tue, 13 Mar 2012 14:48:31 +0100
Le Wang <l26wang <at> gmail.com> writes:

> I just pulled and recompiled.  The bug is still there.  I have to C-c to
> greak out of emacsclient.

Does it exit after 5 seconds?

Andreas.

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10989; Package emacs. (Tue, 04 Sep 2018 23:08:02 GMT) Full text and rfc822 format available.

Message #26 received at 10989 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Le Wang <l26wang <at> gmail.com>
Cc: Andreas Schwab <schwab <at> linux-m68k.org>, 10989 <at> debbugs.gnu.org
Subject: Re: bug#10989: --eval block sent to server don't handle errors quite
 right
Date: Tue, 04 Sep 2018 19:07:22 -0400
tags 10989 fixed
close 10989 27.1
quit

Le Wang <l26wang <at> gmail.com> writes:
>
> ~ [le-master]
> % emacsclient  --eval "(signal 'foo
> nil)"
> Tue 00:09:53
> ^C
>
> hangs I have to C-c to break out of it
>
>
> So it only handles (signal 'error).

Fixed in master (it required also fixing Bug#24618 first).

[1: c0f688808e]: 2018-09-04 18:50:29 -0400
  Handle non-error signals in emacsclient --eval (Bug#10989)
  https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=c0f688808eadb670ffa9d442891adb7bb70c4ade




Added tag(s) fixed. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 04 Sep 2018 23:08:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 27.1, send any further explanations to 10989 <at> debbugs.gnu.org and Le Wang <l26wang <at> gmail.com> Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 04 Sep 2018 23:08: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. (Wed, 03 Oct 2018 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 260 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.