From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#45117: 28.0.50; process-send-string mysteriously exiting non-locally when called from timer Date: Tue, 08 Dec 2020 17:39:54 +0200 Message-ID: <83mtyo71dh.fsf@gnu.org> References: <87h7ow4j4o.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24020"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 45117@debbugs.gnu.org To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 08 16:41:30 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kmf7K-00068h-5I for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Dec 2020 16:41:30 +0100 Original-Received: from localhost ([::1]:43902 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmf7J-00073X-1S for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Dec 2020 10:41:29 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50456) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmf6s-00073B-AX for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2020 10:41:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47706) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kmf6s-0000Xu-1Q for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2020 10:41:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kmf6r-0004xn-Uw for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2020 10:41:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Dec 2020 15:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45117 X-GNU-PR-Package: emacs X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.160744200619004 (code B ref -1); Tue, 08 Dec 2020 15:41:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Dec 2020 15:40:06 +0000 Original-Received: from localhost ([127.0.0.1]:59252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmf5x-0004wQ-JR for submit@debbugs.gnu.org; Tue, 08 Dec 2020 10:40:05 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:38014) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmf5v-0004wH-JF for submit@debbugs.gnu.org; Tue, 08 Dec 2020 10:40:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50166) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmf5v-0006tm-9E for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2020 10:40:03 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52610) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmf5v-0008TR-0p; Tue, 08 Dec 2020 10:40:03 -0500 Original-Received: from [176.228.60.248] (port=2092 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kmf5t-0002jo-CB; Tue, 08 Dec 2020 10:40:01 -0500 In-Reply-To: <87h7ow4j4o.fsf@gmail.com> (message from =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= on Tue, 08 Dec 2020 11:44:39 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:195368 Archived-At: > From: João Távora > Date: Tue, 08 Dec 2020 11:44:39 +0000 > > When using SLY Common Lisp IDE package for Emacs, a user has recently > reported a strange intermittent error in SLY's asynchronous ElDoc > function. That function produces documenttion by querying a network > process, a common technique in many such IDEs. The user found that when > reducing eldoc-idle-delay to 0.1 he could trigger the problem more > often. > > The original report lives at > https://github.com/joaotavora/sly/issues/385. > > It was triggered with Emacs 27.1, but I have also reproduced it with a > recent master build. > > After analysing the problem, I came to the conclusion that given certain > mysterious conditions, process-send-string, which is called from SLY's > `eldoc-documentation-function` will abruptly return non-locally even > though no error or quit seems to have been signalled. Can you elaborate on the evidence you found of this non-local exit? And does "no error or quit" mean there's no trace of anything abnormal in the *Messages* buffer? One possible reason for non-local exit, besides signaling an error, is stack overflow, although your description doesn't seem to indicate that this is probable. One other piece of information that could be relevant is that when Emacs calls the timer function, it sets inhibit-quit non-nil.