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: Thu, 10 Dec 2020 17:23:33 +0200 Message-ID: <83eejx4rd6.fsf@gnu.org> References: <87h7ow4j4o.fsf@gmail.com> <83mtyo71dh.fsf@gnu.org> <877dps47ge.fsf@gmail.com> <83360g6xlt.fsf@gnu.org> <87im9b2pds.fsf@gmail.com> <83k0tr5700.fsf@gnu.org> <87360d3dud.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="32384"; 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 Thu Dec 10 16:24:12 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 1knNng-0008J9-At for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Dec 2020 16:24:12 +0100 Original-Received: from localhost ([::1]:38524 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1knNnf-00038L-9l for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Dec 2020 10:24:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51236) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1knNnW-000379-Cd for bug-gnu-emacs@gnu.org; Thu, 10 Dec 2020 10:24:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55776) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1knNnW-0001az-4q for bug-gnu-emacs@gnu.org; Thu, 10 Dec 2020 10:24:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1knNnW-0007Jk-0v for bug-gnu-emacs@gnu.org; Thu, 10 Dec 2020 10:24:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Dec 2020 15:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45117 X-GNU-PR-Package: emacs Original-Received: via spool by 45117-submit@debbugs.gnu.org id=B45117.160761384028117 (code B ref 45117); Thu, 10 Dec 2020 15:24:01 +0000 Original-Received: (at 45117) by debbugs.gnu.org; 10 Dec 2020 15:24:00 +0000 Original-Received: from localhost ([127.0.0.1]:39089 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1knNnU-0007JR-CZ for submit@debbugs.gnu.org; Thu, 10 Dec 2020 10:24:00 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58064) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1knNnT-0007JG-N1 for 45117@debbugs.gnu.org; Thu, 10 Dec 2020 10:24:00 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42016) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1knNnO-0001ZE-Ha; Thu, 10 Dec 2020 10:23:54 -0500 Original-Received: from [176.228.60.248] (port=2838 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1knNnN-000811-R3; Thu, 10 Dec 2020 10:23:54 -0500 In-Reply-To: <87360d3dud.fsf@gmail.com> (message from =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= on Thu, 10 Dec 2020 15:00:58 +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:195660 Archived-At: > From: João Távora > Cc: 45117@debbugs.gnu.org > Date: Thu, 10 Dec 2020 15:00:58 +0000 > > 6 breakpoint keep y 0x0000555555966de5 in unwind_to_catch at eval.c:1178 > stop only if bidi_inhibit_bpa != 0 You have put the breakpoint at the point where sys_longjmp is about to be called, right? But all the unwind forms are already done at that point, so I guess bidi_inhibit_bpa is again zero, and the breakpoint doesn't break. So I suggest to move the breakpoint before the do-while loop in unwind_to_catch: do { /* Unwind the specpdl stack, and then restore the proper set of handlers. */ unbind_to (handlerlist->pdlcount, Qnil); last_time = handlerlist == catch; if (! last_time) handlerlist = handlerlist->next; } while (! last_time); > 1. Shouldn't all of these have triggered the breakpoint?? I'm setting > the Elisp/C variable in the macro. I tested the technique > separately. > > 2. Are we sure that no other mechanisms other than throw/catch/signal > can trigger a non-local exit (that unwind-protect can still somehow > catch?). Let's see if it works to move the breakpoint location, and take it from there.