From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: James Mazer Newsgroups: gmane.emacs.bugs Subject: bug#63363: 28.2; emacs freezes opening python file w/ unclosed quotes Date: Tue, 9 May 2023 09:23:32 -0600 Message-ID: References: <17BB823F-A919-44FB-87E1-1CAC9BD7426B@netyu.xyz> <83lehzcaq0.fsf@gnu.org> <83v8h2bwrw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000003361f305fb4457ee" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17151"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 63363@debbugs.gnu.org To: Ruijie Yu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 09 17:24:20 2023 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 1pwPCO-0004Fp-Gz for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 May 2023 17:24:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pwPC8-0008NH-5W; Tue, 09 May 2023 11:24:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pwPC6-0008N2-Ct for bug-gnu-emacs@gnu.org; Tue, 09 May 2023 11:24:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pwPC6-0000jP-48 for bug-gnu-emacs@gnu.org; Tue, 09 May 2023 11:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pwPC5-0004be-Vk for bug-gnu-emacs@gnu.org; Tue, 09 May 2023 11:24:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: James Mazer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 May 2023 15:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63363 X-GNU-PR-Package: emacs Original-Received: via spool by 63363-submit@debbugs.gnu.org id=B63363.168364583017681 (code B ref 63363); Tue, 09 May 2023 15:24:01 +0000 Original-Received: (at 63363) by debbugs.gnu.org; 9 May 2023 15:23:50 +0000 Original-Received: from localhost ([127.0.0.1]:44172 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwPBt-0004b4-Tu for submit@debbugs.gnu.org; Tue, 09 May 2023 11:23:50 -0400 Original-Received: from mail-yb1-f177.google.com ([209.85.219.177]:59470) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwPBs-0004aq-TB for 63363@debbugs.gnu.org; Tue, 09 May 2023 11:23:49 -0400 Original-Received: by mail-yb1-f177.google.com with SMTP id 3f1490d57ef6-b9a6d9dcbebso5290947276.2 for <63363@debbugs.gnu.org>; Tue, 09 May 2023 08:23:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683645823; x=1686237823; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=dFve/AHNdc4/l0aZpVxsdysH1jVicz7OPrjFaqGOY20=; b=A9ylckw+EpD4Fw2jvXY4TPYbXlkDK2y0CkgN6dc+3usH6uEQ7A1aei6GFY+Iqr84iR vH5sUlMMWwkgSOvcQHZHLwGrI3cRHmdLF8kTKEnfK238rhKPb96PpQnSdYUnqUCfwkI2 C+5cRCjuT0G/gcN36qgwlInJlFfmhjGkj/3Pad/eFm8nYa6nJtEayBVnxSkUAW4CU2vP T94aY5f7VtvGbw7Dtvc+9ot/zb2V8HCPbhscTh0V1drlvCjB3NzduJ7IuLasHuXqImqe P4uOo4uRwJN0ZSf9u2cUup5/wM3lIYKOT4sPzkROu7G0UDXXHKIIh7o9VRZPuXzP9mTC MLFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683645823; x=1686237823; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dFve/AHNdc4/l0aZpVxsdysH1jVicz7OPrjFaqGOY20=; b=N56mqAxpo3QMhZRX9vaSfbq1kWquQsKTrjgwLiKXmayRDYwz1JZOoNfAkI/LCx9xna nO7TMoKsv8tRztLy7Cd1Itbzhcb9hdO/CJvck3UNe6wPWFyUGeKsvGV0Vd9M30b4i3PA lW3gvZ9MFJYcDqK/sQ8wtG1P+oFqVvjHt8ZK1DQ11idkWjyFavk7LgwbL5P6X8P5+NiX PWLNjgggzPA+RM9Zt0vxGBf0oV5/V2WuDI4fOU/ErkIRIR1+i5rXPuchZD6ThcA43CHv pp2QGl5LXzwhvLJiUSFhglowDD0SEgJZIF8QlavO8ncALMCv8AC6L2GbZiuZNWpDASRv k9DQ== X-Gm-Message-State: AC+VfDx9WyRHW2p8cLgnR9jiLPREVqVCyxhkAJSNTGbFSQ1LN5/FoHGg qXTCr7aBjbBbeSlQ6cWgjmckz9jE/9wXCT4tDbg= X-Google-Smtp-Source: ACHHUZ6lBV417DulRqHue/c/ZeayjW/nVv09fz8aThUIyvUgam21ZdLT4Fk5QM3t0LIaqNEgd1Zh09Llg876rCEc4Is= X-Received: by 2002:a25:ac09:0:b0:b8f:52e2:9693 with SMTP id w9-20020a25ac09000000b00b8f52e29693mr17479022ybi.52.1683645822884; Tue, 09 May 2023 08:23:42 -0700 (PDT) In-Reply-To: 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:261422 Archived-At: --0000000000003361f305fb4457ee Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Yes, seems to be the same issue. I just tried replicating his trigger and locked up an emacs window.. here's the backtrace after sigusr2: > Debugger entered--entering a function: > * #f(compiled-function () #)() > syntax-ppss() > python-nav-end-of-statement() > python-nav-end-of-block() > python-info-statement-ends-block-p() > python-nav--forward-sexp(-1 nil nil) > python-nav-forward-sexp(-1 nil nil) > python-nav-backward-sexp() > python-info-docstring-p((0 nil 390 34 nil nil 0 nil 427 nil nil)) > python-font-lock-syntactic-face-function((0 nil 390 34 nil nil 0 nil 42= 7 > nil nil)) > font-lock-fontify-syntactically-region(180 1700 nil) > font-lock-default-fontify-region(184 1684 nil) > font-lock-fontify-region(184 1684) > #f(compiled-function (fun) # 0x19ba0a4f10e54dbd>)(font-lock-fontify-region) > jit-lock--run-functions(184 1684) > jit-lock-fontify-now(184 1684) > jit-lock-function(184) > redisplay_internal\ \(C\ function\)() I'll see if I can spin up a version of 29. Been a while since I compiled emacs from scratch... I'm actually surprised that there aren't packages for 28 and 29 more readily available for ubuntu. Not sure what's up with that. On Mon, May 8, 2023 at 9:09=E2=80=AFPM Ruijie Yu wrote: > > James Mazer writes: > > > Don't have time right now to do a custom build, but as sanity check, I > just quickly pulled the 28.2 gnu.org.emacs flatpak and tried that and I g= et > > exactly the same issue, so it doesn't appear to be specific to the snap > build. I can't find a 29 snap or flatpak to test, though. > > There is also another bug report (closed as fixed on 29), #62794, that I > think is the same as this report and #62325. In particular, see this > message within that bug report: > > msgid:ZDdE/j6dDbhCw1QF@nicku.org > https://mail.gnu.org/archive/html/bug-gnu-emacs/2023-04/msg00798.html > > What Nick described in #62794 sounds exactly the same as your issue and > Eli's observation: that only _some type(s) of_ python files trigger the > error. I, as well as Eli, were able to reproduce the issue of #62794 > via using the file Nick attached in that message. > > James, can you confirm that Nick's issue on #62794 is exactly the same > as yours in this bug report, and that you can also reproduce the issue > using Nick's attachment from that message? > > And also, if you want to get a version of 29 to test, you can either get > the pretest or clone the code and run "make". The resultant emacs > binary is located at "src/emacs". Let me know if this is unclear. > > -- > Best, > > > RY > --=20 James Mazer mazerj@gmail.com --0000000000003361f305fb4457ee Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yes, seems to be the same issue. I just tried replica= ting his trigger and locked up an emacs window.. here's the backtrace a= fter sigusr2:
Debugg= er entered--entering a function:
* #f(compiled-function () #<bytecode= 0xb893e2c8c539dfa>)()
=C2=A0 syntax-ppss()
=C2=A0 python-nav-end-= of-statement()
=C2=A0 python-nav-end-of-block()
=C2=A0 python-info-st= atement-ends-block-p()
=C2=A0 python-nav--forward-sexp(-1 nil nil)
= =C2=A0 python-nav-forward-sexp(-1 nil nil)
=C2=A0 python-nav-backward-se= xp()
=C2=A0 python-info-docstring-p((0 nil 390 34 nil nil 0 nil 427 nil = nil))
=C2=A0 python-font-lock-syntactic-face-function((0 nil 390 34 nil = nil 0 nil 427 nil nil))
=C2=A0 font-lock-fontify-syntactically-region(18= 0 1700 nil)
=C2=A0 font-lock-default-fontify-region(184 1684 nil)
=C2= =A0 font-lock-fontify-region(184 1684)
=C2=A0 #f(compiled-function (fun)= #<bytecode 0x19ba0a4f10e54dbd>)(font-lock-fontify-region)
=C2=A0 = jit-lock--run-functions(184 1684)
=C2=A0 jit-lock-fontify-now(184 1684)<= br>=C2=A0 jit-lock-function(184)
=C2=A0 redisplay_internal\ \(C\ functio= n\)()
=C2=A0
I'll see if I can spin up a ver= sion of 29. Been a while since I compiled emacs from scratch... I'm act= ually surprised that there aren't packages for 28 and 29 more readily a= vailable for ubuntu. Not sure what's up with that.

=

= On Mon, May 8, 2023 at 9:09=E2=80=AFPM Ruijie Yu <ruijie@netyu.xyz> wrote:

James Mazer <m= azerj2006@gmail.com> writes:

> Don't have time right now to do a custom build, but as sanity chec= k, I just quickly pulled the 28.2 gnu.org.emacs flatpak and tried that and = I get
> exactly the same issue, so it doesn't appear to be specific to the= snap build. I can't find a 29 snap or flatpak to test, though.

There is also another bug report (closed as fixed on 29), #62794, that I think is the same as this report and #62325.=C2=A0 In particular, see this<= br> message within that bug report:

msgid:ZDdE/j6dDb= hCw1QF@nicku.org
https://mail.gnu.org/archive/ht= ml/bug-gnu-emacs/2023-04/msg00798.html

What Nick described in #62794 sounds exactly the same as your issue and
Eli's observation: that only _some type(s) of_ python files trigger the=
error.=C2=A0 I, as well as Eli, were able to reproduce the issue of #62794<= br> via using the file Nick attached in that message.

James, can you confirm that Nick's issue on #62794 is exactly the same<= br> as yours in this bug report, and that you can also reproduce the issue
using Nick's attachment from that message?

And also, if you want to get a version of 29 to test, you can either get the pretest or clone the code and run "make".=C2=A0 The resultant= emacs
binary is located at "src/emacs".=C2=A0 Let me know if this is un= clear.

--
Best,


RY


--
James = Mazer
--0000000000003361f305fb4457ee--