From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#25156: 26.0.50; `describe-text-properties' hangs with 100% cpu usage when property is a char-table Date: Sat, 10 Dec 2016 16:22:05 +0200 Message-ID: <83oa0jg8z6.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1481379731 8606 195.159.176.226 (10 Dec 2016 14:22:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 10 Dec 2016 14:22:11 +0000 (UTC) Cc: 25156@debbugs.gnu.org To: Peter Wang Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 10 15:22:08 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cFiXP-0001Ug-Vl for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Dec 2016 15:22:08 +0100 Original-Received: from localhost ([::1]:51927 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cFiXT-0005Px-PF for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Dec 2016 09:22:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50771) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cFiXN-0005Pg-KA for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2016 09:22:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cFiXK-0000z9-H1 for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2016 09:22:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49492) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cFiXK-0000z3-Ex for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2016 09:22:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cFiXK-00061w-7Y for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2016 09:22: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: Sat, 10 Dec 2016 14:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25156 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25156-submit@debbugs.gnu.org id=B25156.148137970323150 (code B ref 25156); Sat, 10 Dec 2016 14:22:02 +0000 Original-Received: (at 25156) by debbugs.gnu.org; 10 Dec 2016 14:21:43 +0000 Original-Received: from localhost ([127.0.0.1]:36658 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cFiX0-00061K-NY for submit@debbugs.gnu.org; Sat, 10 Dec 2016 09:21:42 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59767) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cFiWz-000617-F3 for 25156@debbugs.gnu.org; Sat, 10 Dec 2016 09:21:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cFiWr-0000qq-AZ for 25156@debbugs.gnu.org; Sat, 10 Dec 2016 09:21:36 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:32906) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cFiWr-0000qk-70; Sat, 10 Dec 2016 09:21:33 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1446 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cFiWq-0006kx-Jj; Sat, 10 Dec 2016 09:21:33 -0500 In-reply-to: (message from Peter Wang on Sat, 10 Dec 2016 21:59:32 +0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:126801 Archived-At: > From: Peter Wang > Date: Sat, 10 Dec 2016 21:59:32 +0800 > > I came across the problem when I was using `C-u C-x =' on a SLIME > presentation. After some debugging, I found out the cause of the > problem. Here is it: > > In a slime REPL buffer, when the evaluation result is rendered, SLIME > adds text properties using `slime-add-presentation-properties'. One > of the text properties is a syntax-table `slime-presentation-syntax-table'. > > `C-u C-x =' calls `(describe-char (point))', which in turn calls > `describe-text-properties', which hangs with 100% cpu usage. > > I think a possible fix could be done in `describe-property-list', adding > a case in cond to handle the type of syntax-table, something like: Thanks. Could you perhaps prepare a small test case for this problem? It would help understanding the underlying problem, and possibly also serve as a beginning of a test for our test suite.