From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 06 01:43:13 2015 Received: (at submit) by debbugs.gnu.org; 6 Oct 2015 05:43:14 +0000 Received: from localhost ([127.0.0.1]:55797 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZjL1s-0007ew-HO for submit@debbugs.gnu.org; Tue, 06 Oct 2015 01:43:13 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40144) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZjKBW-0006Fn-Ge for submit@debbugs.gnu.org; Tue, 06 Oct 2015 00:49:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZjKBU-0000Ya-FH for submit@debbugs.gnu.org; Tue, 06 Oct 2015 00:49:06 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:52041) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjKBU-0000YW-C2 for submit@debbugs.gnu.org; Tue, 06 Oct 2015 00:49:04 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50146) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjKBS-0008KG-OH for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2015 00:49:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZjKBQ-0000YG-Ui for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2015 00:49:02 -0400 Received: from mail-oi0-x232.google.com ([2607:f8b0:4003:c06::232]:36683) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjKBQ-0000YC-Nw for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2015 00:49:00 -0400 Received: by oibi136 with SMTP id i136so103012512oib.3 for ; Mon, 05 Oct 2015 21:49:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=HRh16svjk/V5VbJQdNJbiUHeqqWmWaPnZw+udCqtJTI=; b=I9/BdDK1Nt/HkzscLsICgm9IgRgftydM4r0Tqlgr/ddlDxDGcIUR40UMio5RnUCiD+ s5Nh+ZMhmroWdKlKrb9O2fFOesqLhUCysowTWejzSkNbsk93Qdtk71xiRnMAzLBqQggi FGVeJgegzfKnlb0ZvVo3yOWHmlsSn3NEno2s6KsarrkXfjtVDKA3Cl909zW+kOgLvFA2 U11xbqOmovmysQWhMg+3u6MvadHAUi94GYaUldxGuIJS+UEwNOkEN6NhYfhI6mSmPFJx hcrxWkua5fGwNuQHyekJcl2zPmbm6QdqTOoeuGKqca16fhV3oqRQmdV70hPr94jE7FdZ CskA== X-Received: by 10.202.50.215 with SMTP id y206mr18645529oiy.48.1444106939888; Mon, 05 Oct 2015 21:48:59 -0700 (PDT) MIME-Version: 1.0 From: Jacob MacDonald Date: Tue, 06 Oct 2015 04:48:50 +0000 Message-ID: Subject: 25.0.50; python.el freezes up around docstrings. To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=001a113ce2c02b7ad8052168598f X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 06 Oct 2015 01:43:10 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --001a113ce2c02b7ad8052168598f Content-Type: text/plain; charset=UTF-8 Begin from a fresh 'emacs -Q'. Create a Python file. Insert a long docstring which contains a header line and then a long body which includes a few line breaks and spaces in it. The docstring should look something like this: """test header lorem ipsum... more text more text more text x10 lines ... ... """ Save the file and close emacs. Start a fresh 'emacs -Q'. Open dired in the directory which contains the Python file you created. Navigate to the file and try to open in from dired. Emacs will freeze indefinitely and eat all the system resources it can. You can break the cycle by pressing C-q many times, but the freeze happens again on every single redisplay. If you wait awhile before cancelling the redisplay, you may see that fontification has frozen somewhere in the middle of the docstring. In GNU Emacs 25.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.7) of 2015-10-05 Repository revision: 25b4572073179c8d6dc980ce2df3db4d96cd692f Windowing system distributor 'The X.Org Foundation', version 11.0.11702000 System Description: Ubuntu Wily Werewolf (development branch) Configured using: 'configure --prefix=/home/jaccarmac/local/emacs' Configured features: XPM JPEG TIFF GIF PNG SOUND DBUS GSETTINGS NOTIFY LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Python Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Error during redisplay: (jit-lock-function 201) signaled (quit) Error during redisplay: (jit-lock-function 301) signaled (quit) Error during redisplay: (jit-lock-function 1) signaled (quit) Error during redisplay: (jit-lock-function 101) signaled (quit) Error during redisplay: (jit-lock-function 201) signaled (quit) Error during redisplay: (jit-lock-function 301) signaled (quit) QuitError during redisplay: (jit-lock-function 1) signaled (quit) Error during redisplay: (jit-lock-function 101) signaled (quit) Error during redisplay: (jit-lock-function 201) signaled (quit) Error during redisplay: (jit-lock-function 301) signaled (quit) Quit [2 times] Load-path shadows: None found. (shadow sort mail-extr emacsbug message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils python tramp-sh tramp tramp-compat auth-source cl-seq eieio byte-opt bytecomp byte-compile cl-extra cconv eieio-core cl-macs gv gnus-util mm-util help-fns help-mode easymenu mail-prsvr password-cache tramp-loaddefs trampver shell pcomplete format-spec advice json comint ring cl-loaddefs pcase cl-lib ansi-color dired time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 103996 4041) (symbols 48 21982 0) (miscs 40 288 118) (strings 32 22819 5081) (string-bytes 1 758868) (vectors 16 15247) (vector-slots 8 457945 4629) (floats 8 185 420) (intervals 56 237 0) (buffers 976 14) (heap 1024 22367 1150)) --001a113ce2c02b7ad8052168598f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Begin from a fresh 'emacs -Q'. Create a Pytho= n file. Insert a long
docstring which contains a header line and = then a long body which
includes a few line breaks and spaces in i= t. The docstring should look
something like this:

<= /div>
"""test header

lorem ipsu= m... more text more text more text
x10 lines
...
<= div>...
"""

Save the file= and close emacs. Start a fresh 'emacs -Q'. Open dired in
the directory which contains the Python file you created. Navigate to
the file and try to open in from dired. Emacs will freeze indefinitel= y
and eat all the system resources it can. You can break the cycl= e by
pressing C-q many times, but the freeze happens again on eve= ry single
redisplay. If you wait awhile before cancelling the red= isplay, you may
see that fontification has frozen somewhere in th= e middle of the docstring.


In GNU E= macs 25.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.7)
= =C2=A0of 2015-10-05
Repository revision: 25b4572073179c8d6dc980ce= 2df3db4d96cd692f
Windowing system distributor 'The X.Org Foun= dation', version 11.0.11702000
System Description: Ubuntu Wily Werewolf = (development branch)

Configured using:
= =C2=A0'configure --prefix=3D/home/jaccarmac/local/emacs'
=
Configured features:
XPM JPEG TIFF GIF PNG SOUND D= BUS GSETTINGS NOTIFY LIBXML2 FREETYPE XFT
ZLIB TOOLKIT_SCROLL_BAR= S GTK3 X11

Important settings:
=C2=A0 va= lue of $LANG: en_US.UTF-8
=C2=A0 value of $XMODIFIERS: @im=3Dibus=
=C2=A0 locale-coding-system: utf-8-unix

Major mode: Python

Minor modes in effect:
=C2=A0 shell-dirtrack-mode: t
=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mode: t
=C2=A0 electric-indent-mode: t
=
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
<= div>=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-m= ode: t
=C2=A0 line-number-mode: t
=C2=A0 transient-mark= -mode: t

Recent messages:
Error during r= edisplay: (jit-lock-function 201) signaled (quit)
Error during re= display: (jit-lock-function 301) signaled (quit)
Error during red= isplay: (jit-lock-function 1) signaled (quit)
Error during redisp= lay: (jit-lock-function 101) signaled (quit)
Error during redispl= ay: (jit-lock-function 201) signaled (quit)
Error during redispla= y: (jit-lock-function 301) signaled (quit)
QuitError during redis= play: (jit-lock-function 1) signaled (quit)
Error during redispla= y: (jit-lock-function 101) signaled (quit)
Error during redisplay= : (jit-lock-function 201) signaled (quit)
Error during redisplay:= (jit-lock-function 301) signaled (quit)
Quit [2 times]

Load-path shadows:
None found.

(shadow sort mail-extr emacsbug message rfc822 mml mml-sec mm-decode=
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mail= header
sendmail rfc2047 rfc2045 ietf-drums mail-utils python tram= p-sh tramp
tramp-compat auth-source cl-seq eieio byte-opt bytecom= p byte-compile
cl-extra cconv eieio-core cl-macs gv gnus-util mm-= util help-fns
help-mode easymenu mail-prsvr password-cache tramp-= loaddefs trampver
shell pcomplete format-spec advice json comint = ring cl-loaddefs pcase
cl-lib ansi-color dired time-date mule-uti= l tooltip eldoc electric
uniquify ediff-hook vc-hooks lisp-float-= type mwheel x-win
term/common-win x-dnd tool-bar dnd fontset imag= e regexp-opt fringe
tabulated-list newcomment elisp-mode lisp-mod= e prog-mode register page
menu-bar rfn-eshadow timer select scrol= l-bar mouse jit-lock font-lock
syntax facemenu font-core frame cl= -generic cham georgian utf-8-lang
misc-lang vietnamese tibetan th= ai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek rom= anian slovak czech european ethiopic indian
cyrillic chinese char= script case-table epa-hook jka-cmpr-hook help
simple abbrev minib= uffer cl-preloaded nadvice loaddefs button faces
cus-face macroex= p files text-properties overlay sha1 md5 base64 format
env code-p= ages mule custom widget hashtable-print-readable backquote
dbusbi= nd inotify dynamic-setting system-font-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty make-network-process emacs)
<= div>
Memory information:
((conses 16 103996 4041)
=C2=A0(symbols 48 21982 0)
=C2=A0(miscs 40 288 118)
=C2=A0(strings 32 22819 5081)
=C2=A0(string-bytes 1 758868)=
=C2=A0(vectors 16 15247)
=C2=A0(vector-slots 8 457945 = 4629)
=C2=A0(floats 8 185 420)
=C2=A0(intervals 56 237 = 0)
=C2=A0(buffers 976 14)
=C2=A0(heap 1024 22367 1150))=
--001a113ce2c02b7ad8052168598f-- From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 06 10:54:03 2015 Received: (at 21629) by debbugs.gnu.org; 6 Oct 2015 14:54:03 +0000 Received: from localhost ([127.0.0.1]:57213 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZjTcw-0006mo-OO for submit@debbugs.gnu.org; Tue, 06 Oct 2015 10:54:03 -0400 Received: from mtaout27.012.net.il ([80.179.55.183]:34361) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZjTcu-0006mM-EC for 21629@debbugs.gnu.org; Tue, 06 Oct 2015 10:54:01 -0400 Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0NVS00D00ZS9QS00@mtaout27.012.net.il> for 21629@debbugs.gnu.org; Tue, 06 Oct 2015 17:50:09 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NVS00B3PZVLMG30@mtaout27.012.net.il>; Tue, 06 Oct 2015 17:50:09 +0300 (IDT) Date: Tue, 06 Oct 2015 17:54:00 +0300 From: Eli Zaretskii Subject: Re: bug#21629: 25.0.50; python.el freezes up around docstrings. In-reply-to: X-012-Sender: halo1@inter.net.il To: Jacob MacDonald Message-id: <83fv1oxd2v.fsf@gnu.org> References: X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 21629 Cc: 21629@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Jacob MacDonald > Date: Tue, 06 Oct 2015 04:48:50 +0000 > > Begin from a fresh 'emacs -Q'. Create a Python file. Insert a long > docstring which contains a header line and then a long body which > includes a few line breaks and spaces in it. The docstring should look > something like this: > > """test header > > lorem ipsum... more text more text more text > x10 lines > ... > ... > """ > > Save the file and close emacs. Start a fresh 'emacs -Q'. Open dired in > the directory which contains the Python file you created. Navigate to > the file and try to open in from dired. Emacs will freeze indefinitely > and eat all the system resources it can. You can break the cycle by > pressing C-q many times, but the freeze happens again on every single > redisplay. If you wait awhile before cancelling the redisplay, you may > see that fontification has frozen somewhere in the middle of the docstring. It infloops in python-nav-end-of-statement. The loop there ends up one position before EOB, then jumps back to string-start, and so on and so forth, ad nauseam. I have no idea what causes this, but I hope Python-mode experts and perhaps Stefan (due to syntax stuff) will be able to figure this out. From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 06 12:39:55 2015 Received: (at control) by debbugs.gnu.org; 6 Oct 2015 16:39:55 +0000 Received: from localhost ([127.0.0.1]:57312 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZjVHP-0002ST-6x for submit@debbugs.gnu.org; Tue, 06 Oct 2015 12:39:55 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56796) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZjVHN-0002SM-GE for control@debbugs.gnu.org; Tue, 06 Oct 2015 12:39:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZjVHM-0006Ri-Br for control@debbugs.gnu.org; Tue, 06 Oct 2015 12:39:53 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([208.118.235.10]:44209) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjVHM-0006Re-9U for control@debbugs.gnu.org; Tue, 06 Oct 2015 12:39:52 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ZjVHL-0001Qr-LU for control@debbugs.gnu.org; Tue, 06 Oct 2015 12:39:51 -0400 Subject: control message for bug 19759 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Tue, 06 Oct 2015 12:39:51 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.10 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) block 19759 by 21629 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 08 10:28:35 2015 Received: (at submit) by debbugs.gnu.org; 8 Oct 2015 14:28:35 +0000 Received: from localhost ([127.0.0.1]:60964 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZkCBP-0007ei-D4 for submit@debbugs.gnu.org; Thu, 08 Oct 2015 10:28:35 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34373) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZkCBM-0007ea-Rp for submit@debbugs.gnu.org; Thu, 08 Oct 2015 10:28:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkCBL-0003bB-PN for submit@debbugs.gnu.org; Thu, 08 Oct 2015 10:28:32 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:36465) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkCBL-0003b4-NE for submit@debbugs.gnu.org; Thu, 08 Oct 2015 10:28:31 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkCBI-0007cn-Ld for bug-gnu-emacs@gnu.org; Thu, 08 Oct 2015 10:28:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkCAz-0003PV-Ii for bug-gnu-emacs@gnu.org; Thu, 08 Oct 2015 10:28:28 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:55034) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkCAz-0003Ot-DA for bug-gnu-emacs@gnu.org; Thu, 08 Oct 2015 10:28:09 -0400 Received: from [192.168.178.31] ([77.6.170.87]) by mrelayeu.kundenserver.de (mreue103) with ESMTPSA (Nemesis) id 0LdtKd-1aS1RD0b0F-00izoe for ; Thu, 08 Oct 2015 16:28:08 +0200 Message-ID: <56167D6A.5070507@easy-emacs.de> Date: Thu, 08 Oct 2015 16:27:54 +0200 From: =?ISO-8859-15?Q?Andreas_R=F6hler?= User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: Re: bug#21629: 25.0.50; python.el freezes up around docstrings. References: <83fv1oxd2v.fsf@gnu.org> In-Reply-To: <83fv1oxd2v.fsf@gnu.org> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:S3zHKzk80H3M+6mW+EI/Y/l/VKVQE0G/NSyjHIUExAPbQV65VZ/ sYEY6bU+w13CXZNl1wrp+dob6E+FlvqTqo4l4TkYTfAQMOZ5CShKYK1aNjxmYBWBxA3ABd+ /c9X2gqHmy+6NjGHFdtgOdCacjrBfmB0C315/I0nMw4y80uCROpJnCcNT31iurpn0rhEYOi nW7rcOpZwMOtVp8CYf0Nw== X-UI-Out-Filterresults: notjunk:1;V01:K0:KAxzvtLltmM=:tbX2Xp2A14yKNUwZK5Gy38 H/DL3ODofxbXiZsRWIdKzsV85CMrFvg+PBTV7e4TNzlyiGMS25UMrY0UO1vA21shb3mOUd1xV +WrSUNxp0sp5veaa2CfLPRQrRORjkw3RP7xUbBbA/aZYyj2ADu33jeBPEBWOorLyWT7gH79XV 4JI7HQkDIYfaA/tkUAsLIxGeN3w3cJr6u06+yenxLoVltYTgiYDDpd3KlQq4lWEHq8+k8/qCe IfLjcvTccA54ZOmfJaG3TyijTzHaju4tHyQjLSwWZ13erzQKTXqo5YyG5Ax9iOPXR1R4rMCjm MGQ549JN16KnQ6kDGA6x2uobbjlyKwXXQpTUpAqPCbGDOPDfjOQcE8yUzv6M6nTmICPwu8LgO XiOkEsbOw3uYpmuBEcL4/GQrd/9T8UY02406GIukVA36eir52OIszc7B2FSAVZzFnvmZWXWI6 KfzumKaikOY8vrmirvhjEDh+0MKgjdqXpwSj/7e8NghGkY9xiqdzTgHmnlHxnbLwp7V+xAEXG YMKIq0nQUmab0WR5aaEhJenG2HTig+py4bAJagW5GcDqzgYPr/cuiVAnRl9IjtLzOfc1Kmufy 2BJ8HMZ3vKqQLsRxUauvB2OsWk1Hl8Y1ocsz6lwjl3NSM2BiNe2RmtDQ6MSGTxaCA0UAm4JZu CBeLSXIkwO7iU44J8hRprKG+Wua5b0KMhKB+aVib7JksZ4CF/7bXMDwm6VNvpNZjWDXUqcIIV HkwKAXnAKPcdQDsuhPp8s3vjI1F3XTnZSjNO4ErRzARacOAeZCyOhlLzbP/PbhrA9ZQLZM1t4 rI8IpJBT/bew5r6XG/nwtBP7kzg7A== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Am 06.10.2015 um 16:54 schrieb Eli Zaretskii: >> From: Jacob MacDonald >> Date: Tue, 06 Oct 2015 04:48:50 +0000 >> >> Begin from a fresh 'emacs -Q'. Create a Python file. Insert a long >> docstring which contains a header line and then a long body which >> includes a few line breaks and spaces in it. The docstring should look >> something like this: >> >> """test header >> >> lorem ipsum... more text more text more text >> x10 lines >> ... >> ... >> """ >> >> Save the file and close emacs. Start a fresh 'emacs -Q'. Open dired in >> the directory which contains the Python file you created. Navigate to >> the file and try to open in from dired. Emacs will freeze indefinitely >> and eat all the system resources it can. You can break the cycle by >> pressing C-q many times, but the freeze happens again on every single >> redisplay. If you wait awhile before cancelling the redisplay, you may >> see that fontification has frozen somewhere in the middle of the docstring. > It infloops in python-nav-end-of-statement. The loop there ends up > one position before EOB, then jumps back to string-start, and so on > and so forth, ad nauseam. > > I have no idea what causes this, but I hope Python-mode experts and > perhaps Stefan (due to syntax stuff) will be able to figure this out. > > > > With a while-loop reading complex conditions IMO there is always an abstract danger. python-mode.el uses a heuristic exit: `py-max-specpdl-size' - default is `max-specpdl-size' From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 08 12:31:11 2015 Received: (at control) by debbugs.gnu.org; 8 Oct 2015 16:31:11 +0000 Received: from localhost ([127.0.0.1]:32857 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZkE62-0002Dn-Oe for submit@debbugs.gnu.org; Thu, 08 Oct 2015 12:31:10 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35660) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZkE60-0002DZ-7Q for control@debbugs.gnu.org; Thu, 08 Oct 2015 12:31:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkE4t-0006sr-D0 for control@debbugs.gnu.org; Thu, 08 Oct 2015 12:31:07 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34601) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkE4s-0006r0-RQ for control@debbugs.gnu.org; Thu, 08 Oct 2015 12:29:58 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ZkE4s-0005ID-CP for control@debbugs.gnu.org; Thu, 08 Oct 2015 12:29:58 -0400 Subject: control message for bug 21629 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Thu, 08 Oct 2015 12:29:58 -0400 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) merge 21646 21629 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 08 14:55:29 2015 Received: (at 21629) by debbugs.gnu.org; 8 Oct 2015 18:55:29 +0000 Received: from localhost ([127.0.0.1]:33009 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZkGLg-0000L4-NN for submit@debbugs.gnu.org; Thu, 08 Oct 2015 14:55:29 -0400 Received: from mail-ig0-f174.google.com ([209.85.213.174]:34659) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZkFpd-0007zX-CF for 21629@debbugs.gnu.org; Thu, 08 Oct 2015 14:22:21 -0400 Received: by igcpb10 with SMTP id pb10so21225244igc.1 for <21629@debbugs.gnu.org>; Thu, 08 Oct 2015 11:22:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc:content-type; bh=EnIinkTMrm7m4l2F8trazo//wGbk94Pd5to9OSVH/V8=; b=SN3cLoN83fId88PCkjQWZfvKjYl2FZ6Mh4lcXH5OJH8IROTTysW2ZjsBQMUsL6we0x JAykkrqVpMDPCf+sDJ9WZVw62GxWVi7w2qC9U4IiSInbNlmvsgpsA2PW0ylR+AVM8WM4 tNxc1OAogYIC9w1PWZl2NokIUWMUPC3Vuj6gAy4PPpGaF9HitRSSUASHRT1Jl4N8CNcq KFL3c/ofYyfa2OYzNK06w39ysEUyOj2PtLi70BHMMLyCr3g1brCmRxRJZiNUx+IuP/IS 7SQUYkocp4kGIP0xY9W5xaW3Ql6PtNiQiUi1XfxJulffuRb3mWdtV8GYpBkyYM0lVw0D GuMw== X-Gm-Message-State: ALoCoQmZy8yTFcvZUdpbwriopycopp4E1bkgm+EyB2Nejb28lCjVoSBw+gpgGpIV1V0uwug1DlML MIME-Version: 1.0 X-Received: by 10.50.59.179 with SMTP id a19mr3648514igr.67.1444328540640; Thu, 08 Oct 2015 11:22:20 -0700 (PDT) Received: by 10.107.152.10 with HTTP; Thu, 8 Oct 2015 11:22:20 -0700 (PDT) In-Reply-To: <56167D6A.5070507@easy-emacs.de> References: <83fv1oxd2v.fsf@gnu.org> <56167D6A.5070507@easy-emacs.de> Date: Thu, 8 Oct 2015 11:22:20 -0700 Message-ID: Subject: Re: bug#21629: 25.0.50; python.el freezes up around docstrings. From: Luke Powers Content-Type: multipart/alternative; boundary=047d7bdc80009ab5e405219bf1ac X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 21629 X-Mailman-Approved-At: Thu, 08 Oct 2015 14:55:27 -0400 Cc: 21629@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) --047d7bdc80009ab5e405219bf1ac Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable fwiw, I went through the tree with bisect and found 3928ef2dd5b8febf3b1d9c1bfb22af3698d16bea to be the first commit where the issue pops up. On Thu, Oct 8, 2015 at 7:27 AM, Andreas R=C3=B6hler < andreas.roehler@easy-emacs.de> wrote: > > Am 06.10.2015 um 16:54 schrieb Eli Zaretskii: > >> From: Jacob MacDonald >>> Date: Tue, 06 Oct 2015 04:48:50 +0000 >>> >>> Begin from a fresh 'emacs -Q'. Create a Python file. Insert a long >>> docstring which contains a header line and then a long body which >>> includes a few line breaks and spaces in it. The docstring should look >>> something like this: >>> >>> """test header >>> >>> lorem ipsum... more text more text more text >>> x10 lines >>> ... >>> ... >>> """ >>> >>> Save the file and close emacs. Start a fresh 'emacs -Q'. Open dired in >>> the directory which contains the Python file you created. Navigate to >>> the file and try to open in from dired. Emacs will freeze indefinitely >>> and eat all the system resources it can. You can break the cycle by >>> pressing C-q many times, but the freeze happens again on every single >>> redisplay. If you wait awhile before cancelling the redisplay, you may >>> see that fontification has frozen somewhere in the middle of the >>> docstring. >>> >> It infloops in python-nav-end-of-statement. The loop there ends up >> one position before EOB, then jumps back to string-start, and so on >> and so forth, ad nauseam. >> >> I have no idea what causes this, but I hope Python-mode experts and >> perhaps Stefan (due to syntax stuff) will be able to figure this out. >> >> >> >> >> > With a while-loop reading complex conditions IMO there is always an > abstract danger. > > python-mode.el uses a heuristic exit: > > `py-max-specpdl-size' - default is `max-specpdl-size' > > > > --047d7bdc80009ab5e405219bf1ac Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
fwiw, I went through the tree with bisect and found 3928ef2dd5b8febf3b1d9c1bfb22af3698d16bea to be the fir= st commit where the issue pops up.

=
On Thu, Oct 8, 2015 at 7:27 AM, Andreas R=C3=B6h= ler <andreas.roehler@easy-emacs.de> wrote:

Am 06.10.2015 um 16:54 schrieb Eli Zaretskii:
From: Jacob MacDonald <jaccarmac@gmail.com>
Date: Tue, 06 Oct 2015 04:48:50 +0000

Begin from a fresh 'emacs -Q'. Create a Python file. Insert a long<= br> docstring which contains a header line and then a long body which
includes a few line breaks and spaces in it. The docstring should look
something like this:

"""test header

lorem ipsum... more text more text more text
x10 lines
...
...
"""

Save the file and close emacs. Start a fresh 'emacs -Q'. Open dired= in
the directory which contains the Python file you created. Navigate to
the file and try to open in from dired. Emacs will freeze indefinitely
and eat all the system resources it can. You can break the cycle by
pressing C-q many times, but the freeze happens again on every single
redisplay. If you wait awhile before cancelling the redisplay, you may
see that fontification has frozen somewhere in the middle of the docstring.=
It infloops in python-nav-end-of-statement.=C2=A0 The loop there ends up one position before EOB, then jumps back to string-start, and so on
and so forth, ad nauseam.

I have no idea what causes this, but I hope Python-mode experts and
perhaps Stefan (due to syntax stuff) will be able to figure this out.





With a while-loop reading complex conditions IMO there is always an abstrac= t danger.

python-mode.el uses a heuristic exit:

`py-max-specpdl-size' - default is `max-specpdl-size'




--047d7bdc80009ab5e405219bf1ac-- From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 09 18:27:36 2015 Received: (at control) by debbugs.gnu.org; 9 Oct 2015 22:27:36 +0000 Received: from localhost ([127.0.0.1]:34670 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zkg8V-0000Fn-SB for submit@debbugs.gnu.org; Fri, 09 Oct 2015 18:27:36 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39313) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zkg8T-0000Fe-J2 for control@debbugs.gnu.org; Fri, 09 Oct 2015 18:27:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zkg8S-0001hs-Jf for control@debbugs.gnu.org; Fri, 09 Oct 2015 18:27:33 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48664) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zkg8S-0001hn-HS for control@debbugs.gnu.org; Fri, 09 Oct 2015 18:27:32 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1Zkg8S-0002Z7-96 for control@debbugs.gnu.org; Fri, 09 Oct 2015 18:27:32 -0400 Subject: control message for bug 21657 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Fri, 09 Oct 2015 18:27:32 -0400 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) merge 21628 21629 21657 From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 12 16:38:10 2015 Received: (at control) by debbugs.gnu.org; 12 Oct 2015 20:38:11 +0000 Received: from localhost ([127.0.0.1]:37547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZljrG-0004he-K3 for submit@debbugs.gnu.org; Mon, 12 Oct 2015 16:38:10 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55140) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZljrE-0004hW-54 for control@debbugs.gnu.org; Mon, 12 Oct 2015 16:38:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZljrD-0004uj-2t for control@debbugs.gnu.org; Mon, 12 Oct 2015 16:38:07 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47798) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZljrC-0004uf-Vw for control@debbugs.gnu.org; Mon, 12 Oct 2015 16:38:07 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ZljrC-0005MH-Q3 for control@debbugs.gnu.org; Mon, 12 Oct 2015 16:38:06 -0400 Subject: control message for bug 21671 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Mon, 12 Oct 2015 16:38:06 -0400 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) merge 21657 21671 From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 23 04:06:46 2016 Received: (at control) by debbugs.gnu.org; 23 Feb 2016 09:06:46 +0000 Received: from localhost ([127.0.0.1]:39003 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aY8vd-0001uB-RW for submit@debbugs.gnu.org; Tue, 23 Feb 2016 04:06:45 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:41608) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aY8vc-0001u2-2r for control@debbugs.gnu.org; Tue, 23 Feb 2016 04:06:44 -0500 Received: from cpe-60-225-211-161.nsw.bigpond.net.au ([60.225.211.161] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aY8vB-0008QC-97 for control@debbugs.gnu.org; Tue, 23 Feb 2016 10:06:17 +0100 Date: Tue, 23 Feb 2016 20:06:13 +1100 Message-Id: <87ziurx0ca.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #21628 X-MailScanner-ID: 1aY8vB-0008QC-97 X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1456823178.14717@x4LOAGNv7yhn2h1kUyFbUg X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) tags 21628 fixed close 21628 25.1 From unknown Wed Jun 18 00:25:09 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug No longer marked as fixed in versions 25.1 and reopened. Date: Tue, 23 Feb 2016 10:05:02 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug No longer marked as fixed in versions 25.1 and reopened. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 20:05:18 2017 Received: (at control) by debbugs.gnu.org; 1 Mar 2017 01:05:18 +0000 Received: from localhost ([127.0.0.1]:60734 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cishe-0007V5-Qv for submit@debbugs.gnu.org; Tue, 28 Feb 2017 20:05:18 -0500 Received: from mail-io0-f194.google.com ([209.85.223.194]:36022) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cishY-0007Uk-Eu; Tue, 28 Feb 2017 20:05:12 -0500 Received: by mail-io0-f194.google.com with SMTP id w10so3234293iod.3; Tue, 28 Feb 2017 17:05:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=VkteYwO3fpMskzsuu0/vXxA6DM33UT4W0qNf+WBL0y4=; b=gIAMKH1/2T1QzY6PDTMfT13RZOVrB639Bjg+lDqecJUk8FzIkRwUpcoImlXN5DNVjX SBq36Xhge7xvzXj+EiHNT+nLUQ900dFTO6oA1XccO9McKxzt5qrt/Waik6Zevj5Dst8D YSjsfoel0gshuD9lbAom+aaUg018EdV8vL6DivECNvrHP7HzWCJJ4+t4uGpGr8r+ONCS pAK4mEu9Svg+JYYrO8uWpXhRc9/Kyl3HHDhdDaoZFPCs9xg/S/erhRki0UYc2lCyaKpQ ATHQgY6uILtHPxkr28Fo6pg2EeLrNvtY2AcB+akrpxVhtekn4X6S5jrNKUNRuadHAE8G T2jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=VkteYwO3fpMskzsuu0/vXxA6DM33UT4W0qNf+WBL0y4=; b=ecRx8ZmcdJviQwIG+xK5lN5jQcHf+uArpJav2NiGeFab6yGMe5evgOy97fRoXRM5Ld lEKjkH+VNgoLcyQV1Tf4wiE1rZVh2VsVoIubYMb70gm7DPWooODPn8YWeWfplrX76Lzx hBF7jFKEHZmMnp4GSKNDEQwJj1G++Jd+X1DA0H0Okl812zUpkdGUpPLcrLNlwmAFO2iY JzuatJMOPZPXtVqByakCqxH576/F3wBbIakHeh6jhvB3vEccl1meIUDd/rozf/zlaM6j 3vrN6spLpKJBBGIDJS7XW3EyYXZBSDZ3Vl+Wdm2ycDSTOeXOIZk/Xa/eect7XZuxPIjL DoiQ== X-Gm-Message-State: AMke39khLGmO1SMOp+OkLAb0HrUlL4AakGMeEgckaH7+70X+c3sFfgscR6nJKnV+eeceag== X-Received: by 10.107.145.214 with SMTP id t205mr6450311iod.64.1488330302967; Tue, 28 Feb 2017 17:05:02 -0800 (PST) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id 62sm7363841itl.1.2017.02.28.17.05.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Feb 2017 17:05:02 -0800 (PST) From: npostavs@users.sourceforge.net To: Lars Ingebrigtsen Subject: Re: bug#21671: [PATCH] fix python.el hanging up during fontification #21657 References: <87y4f7upjr.fsf@physik.rwth-aachen.de> <871t83yex2.fsf@gnus.org> <87a8mrvjrs.fsf@gnus.org> <87oab7u4i5.fsf@gnus.org> Date: Tue, 28 Feb 2017 20:06:15 -0500 In-Reply-To: <87oab7u4i5.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 23 Feb 2016 21:04:34 +1100") Message-ID: <87lgspdcvs.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: control Cc: 21671@debbugs.gnu.org, immerrr again X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) unarchive 24905 forcemerge 24905 21671 quit Lars Ingebrigtsen writes: > immerrr again writes: > >> @@ -1712,7 +1712,11 @@ expressions when looking at them in either direction." >> (python-nav-beginning-of-block)) >> ((memq context '(statement-start block-start)) >> (goto-char next-sexp-pos) >> - (python-nav-beginning-of-statement)) >> + (unless (bobp) >> + ;; If backward-sexp brought the point to >> + ;; beginning-of-buffer, beginning-of-statement >> + ;; will only bring it back. >> + (python-nav-beginning-of-statement))) >> (t (goto-char next-sexp-pos)))))))))) > > I'm not a Python mode user, so I can't really review this patch. I've > reopened the bug -- could somebody else have a peek at this? AFAICT, the problem is solved in #24905, so there is no need for this patch. From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 09 18:13:33 2017 Received: (at control) by debbugs.gnu.org; 9 Mar 2017 23:13:34 +0000 Received: from localhost ([127.0.0.1]:48182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cm7FV-0004II-NE for submit@debbugs.gnu.org; Thu, 09 Mar 2017 18:13:33 -0500 Received: from mail-io0-f173.google.com ([209.85.223.173]:34684) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cm7FT-0004I3-Tf; Thu, 09 Mar 2017 18:13:32 -0500 Received: by mail-io0-f173.google.com with SMTP id g6so38543222ioj.1; Thu, 09 Mar 2017 15:13:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=byptwOOMYwvsN3ZAat5F6elOZdzNsVK/WngHVbO1NZA=; b=cBmvMr4AlecIrLgM/0cmNimbEzbwZV+vOt7A/hIyev6iTnXt4dCFPiDfmq8xnP/86K 3bDK3DlLVXvWwRcEEj7j9aFBryMpAwBCyDa9n6nOM+FSsrczsi6f1eYQLOtHP4oB+c3R tkdNNspc14ncr9985Sz8Jd5o9Te6n6h3J01RO0mPccTd1UJGSLDHIlYDoHGhNuwFA7MX YHDCxwxiea5eVl0sdY6vMEgkftFD5mTb4/Xzumxw1RKMbSRqYrgH08QMcBRsCmmK+hSF gKznmAmX0h8Mg8Qai4fNdPbi4raQ5wLlR/IBNKz2AWBcxJc4UwBbRTisPsKiOhkjRrfU JDxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=byptwOOMYwvsN3ZAat5F6elOZdzNsVK/WngHVbO1NZA=; b=s2Eg+N+Hr19wt9vOLdPPc1cDNJwh8ZKVR2BxZDY6OyIt7/ShZSoSsT7NS0yxAO5XVF H9j+/U2KeFunZKy6ANLmZm0bu4F011wesGcPQlQoPZsaj7uKtCdEsjB1kmUuz1A5yLMQ 3o/hTMQHRPXLIohQ6MpRDsXJ4vcLGYpLebi0rlJkI3s4BqTglsC5Zm69NmfHqWmraxH4 sM1Tsz431aaOvsnRqSSi3MeIM2PgSRyqxB5wA9Gn/jxiCVTcmhsu1d/iHgpfu6NRppa/ km8pFMVMZdUvCPK/vGn6dCuyiCI+DP2KFRK+tHEy02wCxfh/9O8nQNc3lI1gBLjv3Bji eu+g== X-Gm-Message-State: AMke39moO6IpySuQP4UDfLz4WC+hkiDkVgDjO88rvISDoKKJoajNLzx5eax3CPpF8Uaapg== X-Received: by 10.107.25.73 with SMTP id 70mr13132247ioz.231.1489101206205; Thu, 09 Mar 2017 15:13:26 -0800 (PST) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id r10sm3586090iod.33.2017.03.09.15.13.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 Mar 2017 15:13:25 -0800 (PST) From: npostavs@users.sourceforge.net To: Mark Diekhans Subject: Re: bug#26041: 25.1; python mode locks up emacs References: <22721.49620.623653.568365@eduroam-169-233-192-142.ucsc.edu> Date: Thu, 09 Mar 2017 18:14:43 -0500 In-Reply-To: <22721.49620.623653.568365@eduroam-169-233-192-142.ucsc.edu> (Mark Diekhans's message of "Thu, 9 Mar 2017 12:57:56 -0800") Message-ID: <87vari82l8.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: control Cc: 26041@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.8 (/) merge 24905 26041 quit Mark Diekhans writes: > > emacs -Q locksup_python_mode.__init__.py > > In a curses window causes emacs to lock up at near 100% CPU > utilization. ^G does interrupt in some manner, however emacs > mini-buffer doesn't take commands and it continues to consume > CPU. Unable to get lisp stack trace. kill -9 is the only way out Glenn Morris writes: > > Thanks for the report. By experiment, this is already fixed for the next > release, 25.2. Pretty sure this #24905. Fixed in [1]. By the way, kill -SIGUSR2 should also interrupt. [1]: 2016-11-08 15:28:49 -0800 3ef4ee84fa3f658c2df802569dc89023d98e9947 Avoid infloop in python http://git.savannah.gnu.org/cgit/emacs.git/patch/?id=3ef4ee84fa3f658c2df802569dc89023d98e9947 From unknown Wed Jun 18 00:25:09 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 07 Apr 2017 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator