From unknown Sat Aug 09 01:08:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24839: 26.0.50; Emacs freezes when opening file attached Resent-From: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 31 Oct 2016 18:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24839 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 24839@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.147793906713601 (code B ref -1); Mon, 31 Oct 2016 18:38:02 +0000 Received: (at submit) by debbugs.gnu.org; 31 Oct 2016 18:37:47 +0000 Received: from localhost ([127.0.0.1]:38302 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c1HSt-0003XI-AR for submit@debbugs.gnu.org; Mon, 31 Oct 2016 14:37:47 -0400 Received: from eggs.gnu.org ([208.118.235.92]:32890) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c1HSr-0003X5-LA for submit@debbugs.gnu.org; Mon, 31 Oct 2016 14:37:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c1HSl-0005Dn-IU for submit@debbugs.gnu.org; Mon, 31 Oct 2016 14:37:40 -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.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60734) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c1HSl-0005Df-FJ for submit@debbugs.gnu.org; Mon, 31 Oct 2016 14:37:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52078) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1HSk-0008T0-8K for bug-gnu-emacs@gnu.org; Mon, 31 Oct 2016 14:37:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c1HSg-0005AN-Uz for bug-gnu-emacs@gnu.org; Mon, 31 Oct 2016 14:37:38 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:64360) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c1HSg-00059g-Ku for bug-gnu-emacs@gnu.org; Mon, 31 Oct 2016 14:37:34 -0400 Received: from [192.168.178.35] ([77.12.107.163]) by mrelayeu.kundenserver.de (mreue101) with ESMTPSA (Nemesis) id 0MBCTt-1c8jZR2eEn-00AI1x for ; Mon, 31 Oct 2016 19:37:32 +0100 From: Andreas =?UTF-8?Q?R=C3=B6hler?= Message-ID: <144f5ba2-e6ef-d71a-e8eb-5ba70c2634d3@easy-emacs.de> Date: Mon, 31 Oct 2016 19:45:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Icedove/45.4.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------D03D92E9FD7374447F5DE5D8" X-Provags-ID: V03:K0:GnTEWeOgnFMaSTZryM91WqPAltGo57mBIp96zuEDSh+gTYt/4iK rpcdQuE8UvgjXIoTYl1pFZJ1lgUTiFYMi55c/SrLdB6aGN3t8Ybg2vulGrdk5IKRh3yzNVR onG3YYZL4D1F5d+qr/1HXXUbFDV4I95OtUUM2s7Y1/FPPUrMgCuOMVq8OKxVVnIgSCdlmA3 Ego1+8N8QUVdewLWCCFLQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:+h/2uheOroQ=:DNsFbEMjTAm10jLrr2b3GA bFgdyh4V9FNELxrPkBmCibUXtkOpMaxYPrvybkm0VGqHEKp4xKbAzb6kQbFMf2BHRXOMZBfE8 VvnBg4f6DVTbIsrGylc1ZsMJ7ZpgP4lQNXchn2ylYh5KJxs5B6nxDYH7xZtUiqzA+/CawHK7R UMFzUZw3UfepeJ8Ha5fRnKd1h1JCws2izg+WoeMcek67M3YLl9v21Z87wE456xT0cb+YcEwwl z4d778M7uCOcdt+hVQkSTwbTSiUQwIQZKN6K+iWfZrQ/ry2jvvniWobjpuJu2MIB6sCtaZzQm 0zTWKXrOAiZTZmTYY7V8yMZmT2m3DCT9uGXEmJ2u4aI2hgCB3ScvRO51rnjeCBAfhmIHPQxQI WCH3HBgSSgk0e8TpO2F+Tq4HYyKjYq0rEaGpjNLo/eAXmHCY9xRbuQUdlLasUzsIImveHBExU 0U6+zbyqmQuE2tkHggNJL+fKHuifFQxys4PdUiHWkVUcwfHzqjnF776WwsMIYQ3f6PlzqgoMd An4akJlokuDPTJTikvByfZ5W2tQzsGqUQ3bTROyURTZQhdn6KIv15BfaZ3O6XdlfHDDYTHr90 c1X57ja08RJJEN+NDaKlOzkU11QtW9sg9Kw2+wYdqq1MAJE/1vbu4lqk3ekzYLASlFaVnauF3 ke6cxamkjpS4QBlUYtrbb97o8THoH2nHletWxiAUnInMA1wo4HP845OELDoB9gXaVWqE= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) 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: -5.0 (-----) This is a multi-part message in MIME format. --------------D03D92E9FD7374447F5DE5D8 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit In GNU Emacs 26.0.50.1 (i686-pc-linux-gnu, GTK+ Version 3.14.5) of 2016-10-11 --------------D03D92E9FD7374447F5DE5D8 Content-Type: text/x-python; name="rest.py" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="rest.py" """ This is an example. * x hello this is an example. hello this is an example. hello this is an example. hello this is an example. hello this is an example. * y hi this is an example. hi this is an example. hi this is an example. hi this is an example. hi this is an example. - x hello this is an example. hello this is an example. hello this is an example. hello this is an example. hello this is an example. - y hi this is an example. hi this is an example. h i this is an example. hi this is an example. hi this is an example. 1. x hello this is an example. hello this is an example. hello this is an example. hello this is an example. hello this is an example. 2. y hi this is an example. hi this is an example. hi this is an example. hi this is an example. hi this is an example. : x hello this is an example. hello this is an example. hello this is an example. hello this is an example. hello this is an example. : y hi this is an example. hi this is an example. hi this is an example. hi this is an example. hi this is an example. :param hello this is an example. hello this is an example. hello this is an example. hello this is an example. hello this is an example. :param hi this is an example. hi this is an example. hi this is an example. hi this is an example. hi this is an example. @param hello this is an example. hello this is an example. hello this is an example. hello this is an example. hello this is an example. @param hi this is an example. hi this is an example. hi this is an example. hi this is an example. hi this is an example. """ --------------D03D92E9FD7374447F5DE5D8-- From unknown Sat Aug 09 01:08:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24839: 26.0.50; Emacs freezes when opening file attached Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Nov 2016 00:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24839 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Andreas =?UTF-8?Q?R=C3=B6hler?= Cc: 24839@debbugs.gnu.org Received: via spool by 24839-submit@debbugs.gnu.org id=B24839.147795898222152 (code B ref 24839); Tue, 01 Nov 2016 00:10:01 +0000 Received: (at 24839) by debbugs.gnu.org; 1 Nov 2016 00:09:42 +0000 Received: from localhost ([127.0.0.1]:38402 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c1Me6-0005l9-45 for submit@debbugs.gnu.org; Mon, 31 Oct 2016 20:09:42 -0400 Received: from mail-oi0-f52.google.com ([209.85.218.52]:33214) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c1Me3-0005kp-Od; Mon, 31 Oct 2016 20:09:40 -0400 Received: by mail-oi0-f52.google.com with SMTP id 128so63149840oih.0; Mon, 31 Oct 2016 17:09:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=AvuZFVBfByS4hrk+YGheDMwbQujqx+Z4Z0vOkLltvD8=; b=RB/KMLri/DrH7bH9m5aR7Ky2VZfj+0PxkJ3m67JkbV9xhgLRVOgdmg+Mbq6tTmpgVa yloVWpsRJwz5Pgnl1F9LhX1mFnRlm5J5zz9P8oWXkIaej4pmR+74qXfciuoxRqq1raeG sR4yOqdXzgxj2LCEl6+KzKHFPMGaugvD5sT05jaF/kSKW6yKGgT3RnseVb9UPoOlgiJ4 KnR1weTGnx2RC6XDFVhXxF8VegbMu/xszCZABSeEpsqldjIVdZfN9CMGLx88w5Fa6IgT IWpXKhhujqMXTwsKH1vsRjVP3xx00F6F9QdDtyUZwz+dRHVyCmfr5ScA/hc7PF655Arm XcYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=AvuZFVBfByS4hrk+YGheDMwbQujqx+Z4Z0vOkLltvD8=; b=Ot8usGIcIoXIPrtNi0ZVlGSpPKhNNNwPY0XTJVeskvEMEl+87R+lkb25UJmG50bQEq j4pCPIjYAEnA/dUZrj0Hwgtd+wcABUyvU9lbpnMrORzjXfznyNL/alWA/kNA+I7C/Djk haGQxB0VMEYn1nMg4Z8C8MPMyM2qlGkgqDRE3Prqwqj6u9b7OjHA7dbsAOjp8ZzmTyqV w4KWag/uksQXqVmKfgAW0IE2E0sNZX6yF/GDtyben37Spl6C5qcg+GDLEooJi07904Ir 4sGvZfgKbi1LFaQQV9o8KCgIZUJ45sat/4ecGK4FleZviViwKLQKbZnFCbt5szH5JRZ2 f//g== X-Gm-Message-State: ABUngvfP7mZmTXI4+0zpSJme1SKyXMPB2KfvrzIt9Z9ppE27vEs6bxDfjJTkKSgR0h6A7A== X-Received: by 10.107.130.28 with SMTP id e28mr5474198iod.46.1477958974145; Mon, 31 Oct 2016 17:09:34 -0700 (PDT) Received: from zony ([45.2.7.130]) by smtp.googlemail.com with ESMTPSA id o71sm9456982ita.6.2016.10.31.17.09.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 31 Oct 2016 17:09:33 -0700 (PDT) From: npostavs@users.sourceforge.net References: <144f5ba2-e6ef-d71a-e8eb-5ba70c2634d3@easy-emacs.de> Date: Mon, 31 Oct 2016 20:10:16 -0400 In-Reply-To: <144f5ba2-e6ef-d71a-e8eb-5ba70c2634d3@easy-emacs.de> ("Andreas \=\?utf-8\?Q\?R\=C3\=B6hler\=22's\?\= message of "Mon, 31 Oct 2016 19:45:43 +0100") Message-ID: <8760o8qcuv.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 1.0 (+) 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: 1.0 (+) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable tags 24839 confirmed found 24839 25.1 quit Andreas R=C3=B6hler writes: > In GNU Emacs 26.0.50.1 (i686-pc-linux-gnu, GTK+ Version 3.14.5) > of 2016-10-11 I see it also in 25.1, GNU/Linux and Windows 10. But not in 24.5. C-g doesn't work, but here's a backtrace from sending SIGUSR2: --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=bug-24839-rest.py.backtrace.txt Content-Transfer-Encoding: 8bit Content-Description: backtrace Debugger entered--entering a function: * #[nil "rq\210\302 !)\207" [buffer table set-syntax-table] 2]() font-lock-default-fontify-region(601 1101 nil) font-lock-fontify-region(601 1101) #[257 "\211\300\301\"\211\242\306=\203\211A\202\300\301B\211@A\211\302\211\242\206 e]\240\210\303\211\242\206+d^\240\210\304\211\242^\240\210\305\211\242]\240\210\307\266\202\207" [601 1101 (nil) (nil) (601) (1101) jit-lock-bounds nil] 10 "\n\n(fn FUN)"](font-lock-fontify-region) run-hook-wrapped(#[257 "\211\300\301\"\211\242\306=\203\211A\202\300\301B\211@A\211\302\211\242\206 e]\240\210\303\211\242\206+d^\240\210\304\211\242^\240\210\305\211\242]\240\210\307\266\202\207" [601 1101 (nil) (nil) (601) (1101) jit-lock-bounds nil] 10 "\n\n(fn FUN)"] font-lock-fontify-region) jit-lock--run-functions(601 1101) jit-lock-fontify-now(601 1101) jit-lock-function(601) redisplay_internal\ \(C\ function\)() --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 02 22:22:07 2016 Received: (at control) by debbugs.gnu.org; 3 Nov 2016 02:22:07 +0000 Received: from localhost ([127.0.0.1]:41060 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c27fK-00018z-T1 for submit@debbugs.gnu.org; Wed, 02 Nov 2016 22:22:07 -0400 Received: from mail-oi0-f49.google.com ([209.85.218.49]:34100) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c27fJ-00018S-6O; Wed, 02 Nov 2016 22:22:05 -0400 Received: by mail-oi0-f49.google.com with SMTP id 62so55249046oif.1; Wed, 02 Nov 2016 19:22:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=oFGQu9lrVIXYzY5nrnCDGtQ36rZgNugUiGP3jfwvjLU=; b=H6SOh47qOPXK+7o/Ix7X1OklKZEoG+zSqaobKOww/enBgVvYqtZnIiKAOFHjHwNwR2 3zHMXw1yYmyW3r3HoUmP1gRFwqbnhwMNa0+2vu36jqrWyJfhj7YE7XtaemZqG9B4v761 CY0HwW3jtNf68TaotRl2YlFTaODhwraucazNCMAoAmDcEemuiUNk4PBK6NJa8Sjd2/U8 Qs273jGm2z9+lyx3iM5+EKErN/vI7zizs1e8OfrV7ST6DJt36if29p6OJgH/zUXtrBj2 DRIG42GsrolP1JkhBc3tmaL26JvZpz3/r4FAY5BXiqMbgoN4R3Zusvu5tLVPrxunw7L/ ir8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=oFGQu9lrVIXYzY5nrnCDGtQ36rZgNugUiGP3jfwvjLU=; b=gK0bAZRQWNuADQ7TQ+bj0/Fjojj/GDsq7S2j5NSXgJD3GYTU3qHAHn8m4XWlCXG1+1 3Vg+/Lh+7vXhANqSPZyQ8wDLQvTNtewZtezf6ZOfRes2R4UwL4uvInnJiz1SQmOTaLW1 cz9DdPm4mutoSxMfCnqqVFmXjTs0eIvLg4HrOWYpnkgjf5uwEcWbJJlixHLiwokkigP9 6xuqRP0mryrXD81xiafH5tLK5RCjKznlUY2eYtVfFHoLJt9WRxaXPmsr+D77mCNnl14J +7W1Va7v5ULhY45rjckRqEnI8NhU7Wz0P2JS4G75yUAXZ9dV3w6IQJnkOR3Lce8mzYls irpQ== X-Gm-Message-State: ABUngvf4SqqSG2JdXav64g8dbTHvp+H8FWe5xrokYaMjR1M8GKg9W8EHcTcDyUGy+OGGHw== X-Received: by 10.107.135.219 with SMTP id r88mr6752518ioi.224.1478139719474; Wed, 02 Nov 2016 19:21:59 -0700 (PDT) Received: from zony ([45.2.7.130]) by smtp.googlemail.com with ESMTPSA id 7sm1551173ioh.2.2016.11.02.19.21.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 02 Nov 2016 19:21:58 -0700 (PDT) From: npostavs@users.sourceforge.net To: =?utf-8?Q?Cl=C3=A9ment?= Pit--Claudel Subject: Re: bug#24856: 25.1.50; Emacs stucks when using C-k to kill lines in python-mode if the next line is a beginning of a docstring References: Date: Wed, 02 Nov 2016 22:22:43 -0400 In-Reply-To: (=?utf-8?Q?=22Cl=C3=A9ment?= Pit--Claudel"'s message of "Wed, 2 Nov 2016 02:59:29 -0400") Message-ID: <87ins5paj0.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: control Cc: 24856@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.5 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable merge 24856 24839 tags 24856 patch quit Cl=C3=A9ment Pit--Claudel writes: > emacs -Q test.py --eval '(insert " \"")' > > In other words, a mis-indented string on the first line is enough to > reproduce the bug. > Yes, seems to be the same as 24839. > It seems to be an infinite loop in fontification: > > Debugger entered--Lisp error: (quit) > python-info-beginning-of-statement-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 nil t nil nil 0 nil 5 nil nil)) Here is a patch: --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=v1-0001-Fix-infloop-in-python-docstring-detection.patch Content-Description: patch >From 5da4f196fc3c8b411936551568477d70a9046421 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Wed, 2 Nov 2016 21:59:10 -0400 Subject: [PATCH v1] Fix infloop in python docstring detection The function `python-info-docstring-p' (introduced in 2015-04-05 "python.el: Enhance docstring detection following PEP-257[...]") could get stuck when called with point before the first expression in the buffer. The attempted fix in 2015-04-06 "Fix previous commit to prevent infloop" did not handle the case where there is only whitespace between the first expression and the beginning of buffer (Bug#24856, Bug#24839). * lisp/progmodes/python.el (python-info-docstring-p): Stop looping when `python-nav-backward-sexp' fails to move point. --- lisp/progmodes/python.el | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index e5efc2b..de06efb 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -4867,13 +4867,14 @@ python-info-docstring-p 2 (progn (while (save-excursion - (python-nav-backward-sexp) - (setq backward-sexp-point (point)) - (and (= indentation (current-indentation)) - (not (bobp)) ; Prevent infloop. - (looking-at-p - (concat "[uU]?[rR]?" - (python-rx string-delimiter))))) + (let ((cur-point (point))) + (python-nav-backward-sexp) + (setq backward-sexp-point (point)) + (and (= indentation (current-indentation)) + (/= cur-point (point)) ; Prevent infloop. + (looking-at-p + (concat "[uU]?[rR]?" + (python-rx string-delimiter)))))) ;; Previous sexp was a string, restore point. (goto-char backward-sexp-point) (cl-incf counter)) -- 2.9.3 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 08 19:26:58 2016 Received: (at control) by debbugs.gnu.org; 9 Nov 2016 00:26:58 +0000 Received: from localhost ([127.0.0.1]:50171 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4GjC-0000Ts-EB for submit@debbugs.gnu.org; Tue, 08 Nov 2016 19:26:58 -0500 Received: from mail-it0-f47.google.com ([209.85.214.47]:38041) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4GjA-0000Tc-2A; Tue, 08 Nov 2016 19:26:56 -0500 Received: by mail-it0-f47.google.com with SMTP id q124so242024252itd.1; Tue, 08 Nov 2016 16:26:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=0SdLpkHmOZssOyOneimsXj7gnP5+Vs6a+1J286fKOHU=; b=EJ+248rHfEtOUfUnc67lxHcJdYRIhI/GrII2llvRQ92G1VOLcUe33C1P0xC5IZlBLa UbuZAMtoEYvCePCmBv4rW+KKvPXKv8cAQ9zklJg5SDPgAsz2646aoyKmz9TWXBwgAMEz kUrkdnVpny9hlLXLeCopBrO3ESDobhdxFya4B8PtWP7go9kilL3xFmhCgbaVBO/yqVuL qCaW0hDc0QCOH954uQVZsZ3UQ3vnQmRk2+fUk6vfH7KOGfX/w9lIvYYj1k+INjM7yay1 fTOPptwreYi8RttN4/GUtR02aZorMmXmqbDNfh7k2Vc9XvPSyVT2WxZ1jKNXC8wxNbq8 NCwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=0SdLpkHmOZssOyOneimsXj7gnP5+Vs6a+1J286fKOHU=; b=UQ5Z6UwZYztNbZdWrqIbQzrAQu5Y9pklkwsHBssW/Ig/DHbdns81D10nqI2m+IFOv1 a3YE8smEj3FD4einZT471u4gk+1kUSsZ9a5YK86Hu51JBAydOZZTrSXxUkwDoSue58Mt Ey+df8EInMzZwig4t6iEHldYKrZcDhWcaP2J29EdREQBgvAOJ1tNpsI7Ug4vmWzG1eyK HkxbexgoeRBKFykrjksYqEGD6izdp5QdRulEOJaQ10xIStpdEGgDvKUkJYuLCZG4tXLL 3y6lCBU4VNy2IW7kAI5AlLYGot13CqJlTUPWE9aG2sYCOKqj/XhTL6bcop6xL7/+mLF7 PqdA== X-Gm-Message-State: ABUngvcLqQpg5L/Uhj8WkKN5ONFwiQ6uz6gzxuAL2IDPs0EQF0GLANbMhEZCQgipzE7OrA== X-Received: by 10.107.12.28 with SMTP id w28mr17931647ioi.196.1478651210345; Tue, 08 Nov 2016 16:26:50 -0800 (PST) Received: from zony ([45.2.7.130]) by smtp.googlemail.com with ESMTPSA id r3sm6107152iod.24.2016.11.08.16.26.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 08 Nov 2016 16:26:49 -0800 (PST) From: npostavs@users.sourceforge.net To: Daniel Colascione Subject: Re: bug#24905: 25.1.50; Lock-up in python-mode References: Date: Tue, 08 Nov 2016 19:27:35 -0500 In-Reply-To: (Daniel Colascione's message of "Tue, 08 Nov 2016 14:38:44 -0800") Message-ID: <87a8d9o5u0.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.2 (/) X-Debbugs-Envelope-To: control Cc: Philipp Stephani , 24905@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.2 (/) forcemerge 24905 24839 quit Daniel Colascione writes: > On Tue, Nov 08 2016, Philipp Stephani wrote: >> echo ' "' > /tmp/a.py >> emacs -Q /tmp/a.py >> >> Emacs locks up immediately. >> Given that this is so easy to trigger, it should block the 25.2 >> release. > > Can repro. Thanks for coming up with a small testcase. This is 24856/24839, I was too slow merging my patch. Not such a bad problem to have I guess :) 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