From unknown Fri Aug 15 16:00:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25156: 26.0.50; `describe-text-properties' hangs with 100% cpu usage when property is a char-table Resent-From: Peter Wang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Dec 2016 14:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25156 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 25156@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.148137847121077 (code B ref -1); Sat, 10 Dec 2016 14:02:02 +0000 Received: (at submit) by debbugs.gnu.org; 10 Dec 2016 14:01:11 +0000 Received: from localhost ([127.0.0.1]:36630 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cFiD8-0005Tr-3B for submit@debbugs.gnu.org; Sat, 10 Dec 2016 09:01:11 -0500 Received: from eggs.gnu.org ([208.118.235.92]:55111) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cFiD5-0005Tc-RP for submit@debbugs.gnu.org; Sat, 10 Dec 2016 09:01:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cFiCz-0000Ns-RX for submit@debbugs.gnu.org; Sat, 10 Dec 2016 09:01:02 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_SORBS_SPAM,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34695) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cFiCz-0000No-OY for submit@debbugs.gnu.org; Sat, 10 Dec 2016 09:01:01 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46070) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cFiCy-0001EH-IR for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2016 09:01:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cFiCt-0000LD-OK for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2016 09:01:00 -0500 Received: from mail-oi0-f68.google.com ([209.85.218.68]:33812) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cFiCt-0000By-IA for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2016 09:00:55 -0500 Received: by mail-oi0-f68.google.com with SMTP id m75so5727802oig.1 for ; Sat, 10 Dec 2016 06:00:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=RW4xGQ71HtufbkXhSeDJ+THcLENORaZZqA9o69oKNsY=; b=hY/QwcmtP/XjbW7fYBXVl9lVnDhJFf241TQGeyZpNu92C6qlR1Fd0CFtbg6/IlDj2y G8QM5d+f2v3wO/ErfLxQEDHeHI+DevAQsbF9wsqpVvXkK9pmNUbroZYFQnmD44d2Jlej 7aViJF7Y3xR5yuChSklCPf3RXB7vgkdpGXq4woqLLCEjerPXdAXmxksPPFKIXeOWsanv 5p9pc9q9D+n6wqEAoLZmYESF4H/KSnjJvXb9TYi9q5SJpb92X74lM7fcpv0wi/whsult OVAXyPsSf4Plq48Vh11d0EkSRJXgD7AfCKmzcDKuM89ez4VQ57WkQBD4Nhpi2zm2D6CK dETA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=RW4xGQ71HtufbkXhSeDJ+THcLENORaZZqA9o69oKNsY=; b=kmmUuRA4Dqy+yW2udRa6t6Bei9b1+QvWKslxnvU467pV1X924P1Mtpa9wbtQv4KDHS H523/9OccLMn19lUF6I7V6VwjPeGk+v9ieGeQusGhIqyGbp+8p38suuURhFNypnMc6/1 T1OP8X2c/049fmIpuJddCUqg8hczUdWfSXhLCyr52Jzi7Ry2PV94WocFKnkgWqxoYOl5 1z9oPUSJ8UWxFs9+V2U4ckmtF9KLRdgPxzxmJiTzZ7i0GTXi0MSC18v5qAEmveHTrxse B3ifUW7c2S0P4A40NN0bACx5CmvAVPq+k7DAZ5B0/cc9JhByWF8ruvxALAjxKhjYPPUA VlvA== X-Gm-Message-State: AKaTC01JAZFGaIjGJ6c0/QwJaTYybbMau5sydkVg0vhyL44/9omVuaz1WWicvuRh5MsRUfZhc78+6Ku0nhP5fA== X-Received: by 10.157.16.120 with SMTP id o53mr45118672oto.11.1481378373057; Sat, 10 Dec 2016 05:59:33 -0800 (PST) MIME-Version: 1.0 Received: by 10.202.108.137 with HTTP; Sat, 10 Dec 2016 05:59:32 -0800 (PST) From: Peter Wang Date: Sat, 10 Dec 2016 21:59:32 +0800 Message-ID: Content-Type: multipart/alternative; boundary=001a1141b9a2b4690205434e4790 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.5 (---) 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: -3.5 (---) --001a1141b9a2b4690205434e4790 Content-Type: text/plain; charset=UTF-8 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: diff --git a/lisp/descr-text.el b/lisp/descr-text.el index 6c7983a177..926103f35e 100644 --- a/lisp/descr-text.el +++ b/lisp/descr-text.el @@ -90,6 +90,7 @@ describe-property-list 'type 'help-face 'help-args (list value))) ((widgetp value) (describe-text-widget value)) + ((syntax-table-p value) (insert "#")) (t (describe-text-sexp value)))) (insert "\n"))) --001a1141b9a2b4690205434e4790 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I came across the problem when I was using `C-u C-x = =3D' on a SLIME
presentation. After some debugging, I found o= ut 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'. O= ne
of the text properties is a syntax-table `slime-presentation-s= yntax-table'.

`C-u C-x =3D' calls `(descri= be-char (point))', which in turn calls
`describe-text-propert= ies', 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:


diff --git a/lisp/descr-text.el b/lisp= /descr-text.el
index 6c7983a177..926103f35e 100644
--- = a/lisp/descr-text.el
+++ b/lisp/descr-text.el
@@ -90,6 = +90,7 @@ describe-property-list
=C2=A0 =C2=A0 =C2=A0 =C2=A0'type = 'help-face 'help-args (list value)))
=C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0((widgetp value)
=C2=A0 =C2=A0 =C2=A0 (de= scribe-text-widget value))
+ =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0((syntax-table-p value) (insert "#<syntax table>"))
=C2=A0 =C2=A0 =C2=A0(t
=C2=A0 =C2=A0 =C2=A0 (describe-text-sexp = value))))
=C2=A0 =C2=A0 =C2=A0(insert "\n")))

--001a1141b9a2b4690205434e4790-- From unknown Fri Aug 15 16:00:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25156: 26.0.50; `describe-text-properties' hangs with 100% cpu usage when property is a char-table 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: To: Peter Wang Cc: 25156@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 25156-submit@debbugs.gnu.org id=B25156.148137970323150 (code B ref 25156); Sat, 10 Dec 2016 14:22:02 +0000 Received: (at 25156) by debbugs.gnu.org; 10 Dec 2016 14:21:43 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 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 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 Date: Sat, 10 Dec 2016 16:22:05 +0200 Message-Id: <83oa0jg8z6.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from Peter Wang on Sat, 10 Dec 2016 21:59:32 +0800) References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -8.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: -8.0 (--------) > 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. From unknown Fri Aug 15 16:00:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25156: 26.0.50; `describe-text-properties' hangs with 100% cpu usage when property is a char-table Resent-From: Peter Wang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Dec 2016 15:04: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: To: Eli Zaretskii Cc: 25156@debbugs.gnu.org Received: via spool by 25156-submit@debbugs.gnu.org id=B25156.148138219527651 (code B ref 25156); Sat, 10 Dec 2016 15:04:02 +0000 Received: (at 25156) by debbugs.gnu.org; 10 Dec 2016 15:03:15 +0000 Received: from localhost ([127.0.0.1]:37086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cFjBD-0007Bu-7p for submit@debbugs.gnu.org; Sat, 10 Dec 2016 10:03:15 -0500 Received: from mail-oi0-f45.google.com ([209.85.218.45]:33538) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cFjBB-0007Bf-I7 for 25156@debbugs.gnu.org; Sat, 10 Dec 2016 10:03:13 -0500 Received: by mail-oi0-f45.google.com with SMTP id w63so47739879oiw.0 for <25156@debbugs.gnu.org>; Sat, 10 Dec 2016 07:03:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=v5AZ9kmAXh1u9bjZwAAWOWqJ4ScoOtK2dQkvin2wPX0=; b=nPx/Q3Phs+7wLvTVJp+aK9dy6lvLOsMEIj15p+37i6h23D20qAQ8yZMW7NA2A2+hwt Nbh13MAq0zGdfy33nFECinsZu9satUbJW3iJa9xfIuHtkw1T6B2eW2yCtrdignYHa3z2 O4YJbd7BOa7YZF8XKSj/fpQJ2tmfAlx+MqbOi35sMVNgNMbQlB+oCoiINXiHR5CDNKoK UinSceOSAT1/Idf25+btc31Dv4OrO9jWSo62lIY7FR/idhfRKOUWB8F0uFYtzV4OeU0K kfyXq/sUJR1tqSwZwlHKS0frTzmyaM1X5RdMQ1Z3RavA4RsLlT4QzIK7W8sdSfdrU9Gv jYyQ== 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:from:date :message-id:subject:to:cc; bh=v5AZ9kmAXh1u9bjZwAAWOWqJ4ScoOtK2dQkvin2wPX0=; b=LwB2ri9Fxv0Un22tHOCZE4UDOZN2NnWc0Z9z9bWx1Pz7kGktJG6DKOiKi02qa/Gskl KpKpHRPFJdXCUOzoTkai+gkqZ4dDlGYCSNGa8kJTmqR+BeTYPHs/Z6EeLyHdFsTnfAhn w+cL8M9h8GNMG0WBqNL7jOobe7CQIoc1sCJL8VQ7Yl8YvECokA+HnO1q1wrFtxdRGa8I NaaE3CCcwQaP5upPZ0PL13rKkiHTZdXGY3qDhtbxUKdUZcdowPODC4fDOUKomMwa4FRc v/sRyRLXXM72plwws8l98akykY7O31hsszZDAmyfFZEYZSkkJFWbiB0Q3y4CFjAEZJuk sG0A== X-Gm-Message-State: AKaTC00qNeVmdWAYrpRkCu9Y4lfV6LyWeWN87zSF9sEvwTQsgO+iRLqJqHPJJjZcGyZe+Qq6PjUt8ATiz735gA== X-Received: by 10.157.26.124 with SMTP id u57mr48662927otu.45.1481382187575; Sat, 10 Dec 2016 07:03:07 -0800 (PST) MIME-Version: 1.0 Received: by 10.202.108.137 with HTTP; Sat, 10 Dec 2016 07:03:07 -0800 (PST) In-Reply-To: <83oa0jg8z6.fsf@gnu.org> References: <83oa0jg8z6.fsf@gnu.org> From: Peter Wang Date: Sat, 10 Dec 2016 23:03:07 +0800 Message-ID: Content-Type: multipart/alternative; boundary=001a1134f986112e9105434f2b52 X-Spam-Score: -0.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: -0.0 (/) --001a1134f986112e9105434f2b52 Content-Type: text/plain; charset=UTF-8 A simplest test case is like: (describe-property-list (list 'syntax-table lisp-mode-syntax-table)) evaluating this Elisp expression will hang with 100% CPU usage. On Sat, Dec 10, 2016 at 10:22 PM, Eli Zaretskii wrote: > > 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. > --001a1134f986112e9105434f2b52 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
A simplest test case is like:

(describe= -property-list (list 'syntax-table lisp-mode-syntax-table))

evaluating this Elisp expression will hang with 100% CPU = usage.


=
On Sat, Dec 10, 2016 at 10:22 PM, Eli Zarets= kii <eliz@gnu.org> wrote:
> = From: Peter Wang <ptr.wang@gmail.c= om>
> Date: Sat, 10 Dec 2016 21:59:32 +0800
>
> I came across the problem when I was using `C-u C-x =3D' on a SLIM= E
> 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<= br> > 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 =3D' calls `(describe-char (point))', which in turn c= alls
> `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.=C2=A0 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.

--001a1134f986112e9105434f2b52-- From unknown Fri Aug 15 16:00:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25156: 26.0.50; `describe-text-properties' hangs with 100% cpu usage when property is a char-table Resent-From: Peter Wang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Dec 2016 15:12: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: To: Eli Zaretskii Cc: 25156@debbugs.gnu.org Received: via spool by 25156-submit@debbugs.gnu.org id=B25156.148138267928415 (code B ref 25156); Sat, 10 Dec 2016 15:12:02 +0000 Received: (at 25156) by debbugs.gnu.org; 10 Dec 2016 15:11:19 +0000 Received: from localhost ([127.0.0.1]:37094 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cFjJ1-0007OE-BH for submit@debbugs.gnu.org; Sat, 10 Dec 2016 10:11:19 -0500 Received: from mail-oi0-f41.google.com ([209.85.218.41]:36124) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cFjIz-0007O0-Hw for 25156@debbugs.gnu.org; Sat, 10 Dec 2016 10:11:17 -0500 Received: by mail-oi0-f41.google.com with SMTP id v84so47648268oie.3 for <25156@debbugs.gnu.org>; Sat, 10 Dec 2016 07:11:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ebaGXgHsrweAiS6aAnCLWn6xC01I6peVM/eXLrYPNVM=; b=Py2+/zCfmfQtxhhrDSZUYjkt4Fbwa8YL+C0MxeuFdY+Qrgoha6EFAjr0sr3a2XIN5X LDrETlBGOhsRDXugSd3bIxcC+m0iXh3SYz2Ansy3+Fr73sm9MXnGqONGAw1m+pET4Cd1 VDeUI7+6Gb7VrHa0wgmQrcfGmJI1+zlxWa4BjUmuKAxXdW2h9/mZ0PXwxAaqh0sL8Joe Jy+yXNrdhG1tKptKuKIc7XUpGqA6KgZEqAfwTAQwP/oxxpfupXe868noUrljm+wZval5 dWI7xiGAH8e/sEZL1h6mzqnn+70xrA64jVcQZxk7+/LWIEJl3e4vfvxKZUPlkcJzTyJZ MYqw== 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:from:date :message-id:subject:to:cc; bh=ebaGXgHsrweAiS6aAnCLWn6xC01I6peVM/eXLrYPNVM=; b=hKdc8FPYf1rjsnhiwI+G6TdjxrooryX1ngzcwK/q+t+Tk84+sdiIsu5NGVd5f9Np0L bIJC+WhpEFffDEst6tOUltMYOPKA+q7x/zTEQ07vW+UTdgoG1PJh0CO3Xxjw8Zb3WqTr LH/7xRVPfk3ELlGqyAYfh485hUirZuRPvVJO+NXF72PNeeroaa3sugAP/rE4EOWXIJDc atDTZXOicLIhqLnBLYxQE4BPqbrB6fJRaIbLt/m2VfHh6SNt+Q/AJ9zce8TQMOVlY1qO y+zNSoFUqgarG7XgahwpKw7Cl+faRAKRpk9l40NazI9dz19n3OnFnATGCdl61vXGP9fT Tgqg== X-Gm-Message-State: AKaTC01Pbynl+q1ygxPH8TthAQrV08xblmW10EWbVYwglL1wtHhbtmeDd1lLqrtFMr7dMk5EeiJrZOrem4imzw== X-Received: by 10.202.184.5 with SMTP id i5mr44571222oif.194.1481382671017; Sat, 10 Dec 2016 07:11:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.202.108.137 with HTTP; Sat, 10 Dec 2016 07:11:10 -0800 (PST) In-Reply-To: References: <83oa0jg8z6.fsf@gnu.org> From: Peter Wang Date: Sat, 10 Dec 2016 23:11:10 +0800 Message-ID: Content-Type: multipart/alternative; boundary=001a113cd0d4e1ee9e05434f47e3 X-Spam-Score: -0.7 (/) 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 (/) --001a113cd0d4e1ee9e05434f47e3 Content-Type: text/plain; charset=UTF-8 BTW, I also found that `describe-variable' has the same problem. (describe-variable 'lisp-mode-syntax-table) I have not looked into this yet, it could be the same bug. On Sat, Dec 10, 2016 at 11:03 PM, Peter Wang wrote: > A simplest test case is like: > > (describe-property-list (list 'syntax-table lisp-mode-syntax-table)) > > evaluating this Elisp expression will hang with 100% CPU usage. > > > > On Sat, Dec 10, 2016 at 10:22 PM, Eli Zaretskii wrote: > >> > 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-tab >> le'. >> > >> > `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. >> > > --001a113cd0d4e1ee9e05434f47e3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
BTW, I also found that `describe-variable' has the sam= e problem.

(describe-variable 'lisp-mode-syntax-tabl= e)

I have not looked into this yet, it could b= e the same bug.

On Sat, Dec 10, 2016 at 11:03 PM, Peter Wang &l= t;ptr.wang@gmail.co= m> wrote:
= A simplest test case is like:

(describe-property-list (l= ist 'syntax-table lisp-mode-syntax-table))

evaluating this Elisp expression will hang with 100% CPU usage.
=


On Sat, Dec 10, 2016 = at 10:22 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> From: Peter Wang <ptr.wang@gmail.com>
> Date: Sat, 10 Dec 2016 21:59:32 +0800
>
> I came across the problem when I was using `C-u C-x =3D' on a SLIM= E
> 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<= br> > adds text properties using `slime-add-presentation-properties'= ;. One
> of the text properties is a syntax-table `slime-presentation-syntax-ta= ble'.
>
> `C-u C-x =3D' calls `(describe-char (point))', which in turn c= alls
> `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.=C2=A0 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.


--001a113cd0d4e1ee9e05434f47e3-- From unknown Fri Aug 15 16:00:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25156: 26.0.50; `describe-text-properties' hangs with 100% cpu usage when property is a char-table Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Dec 2016 15:29: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: To: Peter Wang Cc: Eli Zaretskii , 25156@debbugs.gnu.org Received: via spool by 25156-submit@debbugs.gnu.org id=B25156.148138373030172 (code B ref 25156); Sat, 10 Dec 2016 15:29:02 +0000 Received: (at 25156) by debbugs.gnu.org; 10 Dec 2016 15:28:50 +0000 Received: from localhost ([127.0.0.1]:37112 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cFjZx-0007qY-TF for submit@debbugs.gnu.org; Sat, 10 Dec 2016 10:28:50 -0500 Received: from mail-io0-f178.google.com ([209.85.223.178]:36729) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cFjZw-0007qJ-FL for 25156@debbugs.gnu.org; Sat, 10 Dec 2016 10:28:49 -0500 Received: by mail-io0-f178.google.com with SMTP id a81so98022314ioe.3 for <25156@debbugs.gnu.org>; Sat, 10 Dec 2016 07:28:48 -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=JrX+DoHfjVuNEeURTcIrtbu+iI5JTdMk2HreF8l7WZQ=; b=MSsldl8Jkw/zb8NKSmgSBugBjbUpIDLG0HyxxxD05rUAxsNMepFVft+b0BzVQafsih 4FSzx2MsrenxOtM7TP2Lqkmpa3/EJ184B6D/9Rz7oIgFTyOUEXY5OUmdBKBzHJdTrG54 uBn3TpPhYv3dcHoHfOtYkmbPYFHW/ZcZ51TMaodshT2alCnO4gfnVMCwbaAvckAMej3S HhjVueQJi8trKvdlMapnXkjcFXBTesJG49Z24Acod/cczwz5bHFGI+/dYhW5E8ff1ckc +i+vnd97OzuudfmjMt+oI+APercTR07JG/BoJTrwlZk6KadOIymT4HK8619Rf1czi5+/ r7cw== 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=JrX+DoHfjVuNEeURTcIrtbu+iI5JTdMk2HreF8l7WZQ=; b=m5vJ0Y5ACH5j/x5jGEZmYfedHMlPRy+an0veT5h6QtSfgKAit52AgELCPL3lXSFqvX zEMwAYgHqNnEtW1vDjGSbBms70VjFxUIYSeJrFgTqBqq16RWaXNUedBNBYKVP5ORyDZr ujdYmiUFCUeHAzJ6iZ29k8GtZDt8IqV+xJdU5qOWcFqt7SVHb+NA89G3lai227KGCCJI dfDyYKMd52BuGvf+9uYYUR3zXQ4XyfvCfu7VLxaKioPNtZyA+8F9MbVQTNEK0qX9l5Cv KHzo0sDCz72UXC27Tf6hI1scVLhP+fWO0wafQFj9hIUXdU7hdHBv9EIypJJOj8ELnbv9 6TWg== X-Gm-Message-State: AKaTC033b/eAjx7VUneJxeof28jUJxGxHzc1d4fX6UgwFa2nBQ0xtf73Sy9gCEU7jWuhZw== X-Received: by 10.36.237.3 with SMTP id r3mr11466673ith.76.1481383722726; Sat, 10 Dec 2016 07:28:42 -0800 (PST) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id 22sm16484299iog.28.2016.12.10.07.28.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 10 Dec 2016 07:28:42 -0800 (PST) From: npostavs@users.sourceforge.net References: <83oa0jg8z6.fsf@gnu.org> Date: Sat, 10 Dec 2016 10:29:44 -0500 In-Reply-To: (Peter Wang's message of "Sat, 10 Dec 2016 23:11:10 +0800") Message-ID: <87h96ber9z.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.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: 0.0 (/) Peter Wang writes: > BTW, I also found that `describe-variable' has the same problem. > > (describe-variable 'lisp-mode-syntax-table) > > I have not looked into this yet, it could be the same bug. > > On Sat, Dec 10, 2016 at 11:03 PM, Peter Wang wrote: > > A simplest test case is like: > > (describe-property-list (list 'syntax-table lisp-mode-syntax-table)) > > evaluating this Elisp expression will hang with 100% CPU usage. Neither of these hang for me from emacs -Q, using latest master (fc0fd24c105b) (benchmark 1 '(describe-variable 'lisp-mode-syntax-table)) ;=> "Elapsed time: 1.272053s (0.161946s in 6 GCs)" (benchmark 1 '(describe-property-list (list 'syntax-table lisp-mode-syntax-table))) ;=> "Elapsed time: 1.165824s (0.139516s in 5 GCs)" From unknown Fri Aug 15 16:00:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25156: 26.0.50; `describe-text-properties' hangs with 100% cpu usage when property is a char-table Resent-From: Peter Wang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Dec 2016 15:39: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: To: npostavs@users.sourceforge.net Cc: Eli Zaretskii , 25156@debbugs.gnu.org Received: via spool by 25156-submit@debbugs.gnu.org id=B25156.148138432431152 (code B ref 25156); Sat, 10 Dec 2016 15:39:02 +0000 Received: (at 25156) by debbugs.gnu.org; 10 Dec 2016 15:38:44 +0000 Received: from localhost ([127.0.0.1]:37117 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cFjjX-00086O-St for submit@debbugs.gnu.org; Sat, 10 Dec 2016 10:38:44 -0500 Received: from mail-oi0-f48.google.com ([209.85.218.48]:33372) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cFjjW-00086B-V8 for 25156@debbugs.gnu.org; Sat, 10 Dec 2016 10:38:43 -0500 Received: by mail-oi0-f48.google.com with SMTP id w63so48298466oiw.0 for <25156@debbugs.gnu.org>; Sat, 10 Dec 2016 07:38:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=LNfHuQWXHey5iWh5J8b45MS5X3Xx4stCkKm4rIzcJHs=; b=g7RX3Xr0CAKWA1y1g4nd6KUZoQ0idAP5L0Y8xCS/Vx6UmSzhFK270Rmod9WATGTDKM rvs8piqeViO7+laqpdO48bJsLmssCEUoCZHv9T3XopMr1fMdpu+xuDLi00MwW5W8y3+T L49WdcImQn4tGegG2ybpuVICscHbQdX1Fq5jTaHgiGuTxKclnl+S+Urm5RG+Rr473Vuf 6EZSNSV06dZN5Y5WwB25fSx1WLZX0uUNeGKDUytPMJtWpysZVWOY0aPHUEMGEF2cllY6 cyAz4FU0NJ5Dh6pHqJ8fpQuOKHik+xvLJlkojKFSwDl/uBRizhL7HUNCRjCMNlGRJ5/C ZyOQ== 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:from:date :message-id:subject:to:cc; bh=LNfHuQWXHey5iWh5J8b45MS5X3Xx4stCkKm4rIzcJHs=; b=Vd/kSDz/eS2sERucOH+VCT612Tw1V9PtEvo7I8Kxy8Gmn5WtABqD/YdTrLpy6++ZSG P1BT2Qvc+P5RVJrsHJI2a8/1vtmdgt4FUVEor5DaChXnn7an7fH3xM4nEqiVYzWtC6e7 B7j+ZSThuMzkjGFm3f0aZLckqeCCi6RrwHeYEhHr92JmGkb9fLMwM3mKxQo9KXrUQ2IR o4eBXXbFR+xEE4XjMpe2YtLuEiEtvupOUmryWOUa0knp2L0cLTcioQQJ2rrmmaNWrztQ s/4VsPWn7tlLsPjsKZt6B91Ouqip9baLXI0P7r3o/f+p/CvGy7suoTkAAjS6kOB2mK5b HNSQ== X-Gm-Message-State: AKaTC025W5j2w2JxkEsb345OCq1tpFt9Xk6NHvis2HLU794GJbbd62Sq1CA2KU9tM0wynDA0yXczLR1PiIU6EA== X-Received: by 10.202.85.77 with SMTP id j74mr41057432oib.108.1481384314406; Sat, 10 Dec 2016 07:38:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.202.108.137 with HTTP; Sat, 10 Dec 2016 07:38:34 -0800 (PST) In-Reply-To: <87h96ber9z.fsf@users.sourceforge.net> References: <83oa0jg8z6.fsf@gnu.org> <87h96ber9z.fsf@users.sourceforge.net> From: Peter Wang Date: Sat, 10 Dec 2016 23:38:34 +0800 Message-ID: Content-Type: multipart/alternative; boundary=001a113d3824d60cfd05434fa94a X-Spam-Score: 0.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: 0.0 (/) --001a113d3824d60cfd05434fa94a Content-Type: text/plain; charset=UTF-8 Indeed, I got the same result as you did from emacs -Q. I will look into my configuration and provide more information. Thanks! On Sat, Dec 10, 2016 at 11:29 PM, wrote: > Peter Wang writes: > > > BTW, I also found that `describe-variable' has the same problem. > > > > (describe-variable 'lisp-mode-syntax-table) > > > > I have not looked into this yet, it could be the same bug. > > > > On Sat, Dec 10, 2016 at 11:03 PM, Peter Wang wrote: > > > > A simplest test case is like: > > > > (describe-property-list (list 'syntax-table lisp-mode-syntax-table)) > > > > evaluating this Elisp expression will hang with 100% CPU usage. > > Neither of these hang for me from emacs -Q, using latest master > (fc0fd24c105b) > > (benchmark 1 '(describe-variable 'lisp-mode-syntax-table)) ;=> "Elapsed > time: 1.272053s (0.161946s in 6 GCs)" > (benchmark 1 '(describe-property-list (list 'syntax-table > lisp-mode-syntax-table))) ;=> "Elapsed time: 1.165824s (0.139516s in 5 GCs)" > > --001a113d3824d60cfd05434fa94a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Indeed, I got the same result as you did from emacs -Q. I = will look into my configuration and provide more information. Thanks!
=

On Sat, Dec 10, 2= 016 at 11:29 PM, <npostavs@users.sourceforge.net> wrote:
Peter Wang &l= t;ptr.wang@gmail.com> writes:<= br>
> BTW, I also found that `describe-variable' has the same problem. >
> (describe-variable 'lisp-mode-syntax-table)
>
> I have not looked into this yet, it could be the same bug.
>
> On Sat, Dec 10, 2016 at 11:03 PM, Peter Wang <ptr.wang@gmail.com> wrote:
>
>=C2=A0 A simplest test case is like:
>
>=C2=A0 (describe-property-list (list 'syntax-table lisp-mode-syntax= -table))
>
>=C2=A0 evaluating this Elisp expression will hang with 100% CPU usage.<= br>
Neither of these hang for me from emacs -Q, using latest master (fc0= fd24c105b)

(benchmark 1 '(describe-variable 'lisp-mode-syntax-table)) ;=3D>= "Elapsed time: 1.272053s (0.161946s in 6 GCs)"
(benchmark 1 '(describe-property-list (list 'syntax-table lisp-mode= -syntax-table))) ;=3D> "Elapsed time: 1.165824s (0.139516s in 5 GCs= )"


--001a113d3824d60cfd05434fa94a-- From unknown Fri Aug 15 16:00:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25156: 26.0.50; `describe-text-properties' hangs with 100% cpu usage when property is a char-table Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Dec 2016 16:05:01 +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: To: npostavs@users.sourceforge.net Cc: ptr.wang@gmail.com, 25156@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 25156-submit@debbugs.gnu.org id=B25156.14813858861270 (code B ref 25156); Sat, 10 Dec 2016 16:05:01 +0000 Received: (at 25156) by debbugs.gnu.org; 10 Dec 2016 16:04:46 +0000 Received: from localhost ([127.0.0.1]:37129 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cFk8j-0000KQ-SA for submit@debbugs.gnu.org; Sat, 10 Dec 2016 11:04:46 -0500 Received: from eggs.gnu.org ([208.118.235.92]:49101) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cFk8i-0000KB-IY for 25156@debbugs.gnu.org; Sat, 10 Dec 2016 11:04:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cFk8Y-0001hg-Jo for 25156@debbugs.gnu.org; Sat, 10 Dec 2016 11:04:39 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_05,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33640) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cFk8Y-0001hY-HF; Sat, 10 Dec 2016 11:04:34 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1533 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cFk8O-0007Zr-70; Sat, 10 Dec 2016 11:04:34 -0500 Date: Sat, 10 Dec 2016 18:04:43 +0200 Message-Id: <83k2b7g484.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <87h96ber9z.fsf@users.sourceforge.net> (npostavs@users.sourceforge.net) References: <83oa0jg8z6.fsf@gnu.org> <87h96ber9z.fsf@users.sourceforge.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -8.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: -8.0 (--------) > From: npostavs@users.sourceforge.net > Cc: Eli Zaretskii , 25156@debbugs.gnu.org > Date: Sat, 10 Dec 2016 10:29:44 -0500 > > Neither of these hang for me from emacs -Q, using latest master (fc0fd24c105b) > > (benchmark 1 '(describe-variable 'lisp-mode-syntax-table)) ;=> "Elapsed time: 1.272053s (0.161946s in 6 GCs)" > (benchmark 1 '(describe-property-list (list 'syntax-table lisp-mode-syntax-table))) ;=> "Elapsed time: 1.165824s (0.139516s in 5 GCs)" I get similar times here. From unknown Fri Aug 15 16:00:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25156: 26.0.50; `describe-text-properties' hangs with 100% cpu usage when property is a char-table Resent-From: Peter Wang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Dec 2016 16:17: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: To: Eli Zaretskii Cc: 25156@debbugs.gnu.org, npostavs@users.sourceforge.net Received: via spool by 25156-submit@debbugs.gnu.org id=B25156.14813865992411 (code B ref 25156); Sat, 10 Dec 2016 16:17:02 +0000 Received: (at 25156) by debbugs.gnu.org; 10 Dec 2016 16:16:39 +0000 Received: from localhost ([127.0.0.1]:37134 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cFkKF-0000cp-0S for submit@debbugs.gnu.org; Sat, 10 Dec 2016 11:16:39 -0500 Received: from mail-oi0-f46.google.com ([209.85.218.46]:34993) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cFkKB-0000cY-Mo for 25156@debbugs.gnu.org; Sat, 10 Dec 2016 11:16:36 -0500 Received: by mail-oi0-f46.google.com with SMTP id b126so48819476oia.2 for <25156@debbugs.gnu.org>; Sat, 10 Dec 2016 08:16:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=BGkW39xrXu97eJCs6UQ5Mwelx6WylSLsKpWHfoce68c=; b=pAw+2h5JTH/34WrDVtZTDoblQnJNabe7DiFR4V0sn7DY3w0XNdrVAzUmpSHxg5wb8C TBcjpCAB63KV8jnaAtVJWuIENqeDMlFTUdZHVv94MZ0lJ+AZoxsDc8t7oT6P8C5WT6EX FHrutPrg4e68IRFh5VLf03CbLh9/tQr9uAKDULSu3JSkrnZOltPXN1PuNmpTW0i1CScl U7ziuQbuB1doip6/mWifkIpmDrFbVapEEx9RlZ6EA8TkedfnpTtBYquiyr8Tv8W+0Rnu xYlYn7SOhqYidZrwq2zERlovDuJqUCdZn+DR0UCIkMlgMst1YIcbkT5BUpfqoaOOE4ph lEtQ== 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:from:date :message-id:subject:to:cc; bh=BGkW39xrXu97eJCs6UQ5Mwelx6WylSLsKpWHfoce68c=; b=AGz6c/C+ura96pw7DOmP5xHYTDfKfwFdGG86JbWPuggP19rrgwrZSZXmcMGvYP1PoI miZ0s+bo0OTc6AX2Ubcr9zMJJPI2EZpTfPthRqn7CyB3YRdxE2hkly2XdV3HSyZcKVLr iZ/OT8Fb0JaKCqjVvYH1HKclNEBqwQlG0kZJGX+/6/rmJ3Q1mCof5XpVkvksyeMrigdl AGOEewX/bBNeTotsRP7rjj26MfzquhbPaiIbs2erKKnZ7tMqwv9Cq8mmdPyda0TyCyAn a9SUe99Po8MgJE4A00ncNuVctPIfKPEHFhZfB+QN9SOKNdkUFnDiIX1ZwCwmCqg9vdnZ QjQA== X-Gm-Message-State: AKaTC01oO3eLgoV4KDIa/WKnd/j02TQLmxCC3SMnQV1pldcdmaqHmcWUf1ripanw7QbeWuR/gngifrlXgwHnRw== X-Received: by 10.202.89.197 with SMTP id n188mr46269442oib.156.1481386590016; Sat, 10 Dec 2016 08:16:30 -0800 (PST) MIME-Version: 1.0 Received: by 10.202.108.137 with HTTP; Sat, 10 Dec 2016 08:16:29 -0800 (PST) In-Reply-To: <83k2b7g484.fsf@gnu.org> References: <83oa0jg8z6.fsf@gnu.org> <87h96ber9z.fsf@users.sourceforge.net> <83k2b7g484.fsf@gnu.org> From: Peter Wang Date: Sun, 11 Dec 2016 00:16:29 +0800 Message-ID: Content-Type: multipart/alternative; boundary=001a113d31ce7918fd05435031b9 X-Spam-Score: -0.7 (/) 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 (/) --001a113d31ce7918fd05435031b9 Content-Type: text/plain; charset=UTF-8 I found the culprit was this line in my configuration: (setq lisp-indent-function 'common-lisp-indent-function) and common-lisp-indent-function is provided by `.emacs.d/elpa/slime-20161109.640/contrib/slime-cl-indent.el' I think it is a wrong configuration. something in common-lisp-indent-function cause the huge slowing down. thanks for your time and sorry for the false bug. On Sun, Dec 11, 2016 at 12:04 AM, Eli Zaretskii wrote: > > From: npostavs@users.sourceforge.net > > Cc: Eli Zaretskii , 25156@debbugs.gnu.org > > Date: Sat, 10 Dec 2016 10:29:44 -0500 > > > > Neither of these hang for me from emacs -Q, using latest master > (fc0fd24c105b) > > > > (benchmark 1 '(describe-variable 'lisp-mode-syntax-table)) ;=> "Elapsed > time: 1.272053s (0.161946s in 6 GCs)" > > (benchmark 1 '(describe-property-list (list 'syntax-table > lisp-mode-syntax-table))) ;=> "Elapsed time: 1.165824s (0.139516s in 5 GCs)" > > I get similar times here. > --001a113d31ce7918fd05435031b9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I found the=C2=A0culprit was this line in my configuration= :

(setq lisp-indent-function 'common-lisp-indent-fun= ction)

and common-lisp-indent-function is prov= ided by=C2=A0

`.emacs.d/elpa/slime-20161109.640/co= ntrib/slime-cl-indent.el'

I think it is a wron= g configuration.=C2=A0

something in common-lisp-in= dent-function cause the huge slowing down.

thanks = for your time and sorry for the false bug.
--001a113d31ce7918fd05435031b9-- From unknown Fri Aug 15 16:00:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25156: 26.0.50; `describe-text-properties' hangs with 100% cpu usage when property is a char-table Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Dec 2016 16:40: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: To: Peter Wang Cc: Eli Zaretskii , 25156@debbugs.gnu.org Received: via spool by 25156-submit@debbugs.gnu.org id=B25156.14813879774646 (code B ref 25156); Sat, 10 Dec 2016 16:40:02 +0000 Received: (at 25156) by debbugs.gnu.org; 10 Dec 2016 16:39:37 +0000 Received: from localhost ([127.0.0.1]:37146 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cFkgT-0001Cn-MB for submit@debbugs.gnu.org; Sat, 10 Dec 2016 11:39:37 -0500 Received: from mail-io0-f181.google.com ([209.85.223.181]:34192) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cFkgS-0001CU-6q; Sat, 10 Dec 2016 11:39:36 -0500 Received: by mail-io0-f181.google.com with SMTP id p42so111642771ioo.1; Sat, 10 Dec 2016 08:39:36 -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=bKdox5bn5a4QEv6iJj2zb+zHw5n1N+E0BtzkDLvCYnY=; b=x1nXc9xy9NiQY924mt0StNazBg/HyfAb2PnNxWiwvebFvSHmFbfQ9Mlo994h6PcdZp 1TVdmzRu3oozzFRprokCUwEyhHUnEumTTz4YzIRwazbrmlqj9eNPY38fpVisCxeF/OyO U/VbZxBjZj2SjRiw+IWZENrRKxtx7398kQlXCFL7Uy4zxcMNsOhel/XeybH5Xd8wWxNO vToEpxetfbvaZgTBGWWvMllq5qDsugCu0D0WwPwzaMxb/+KTrW23s0G4ybtqOOz7DFxd 3qe6mlvSSD2nG6+eunt8Kh4COYwIq2/MOEnbeqovyChoMSZkbHToO63/zzIT+Avyqv/Q z48g== 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=bKdox5bn5a4QEv6iJj2zb+zHw5n1N+E0BtzkDLvCYnY=; b=lmNE0ZL/mn2bibiMhdjWPfgmTkptMhru6A453MEB3ypd2wQo8hhxWDFqCRp+DyPVUj MLaiJjb3zxBUgG3tBkkgDHdJRwyH1HRqjUPMNNxvGb+kmpMt8H8xkwyTrlHIKkMdzanr lf4bBKfaK5lc0N7G781LqGyjZvBZrqnlVGcGLTDn7U8Uq0k527A1uxVTXDC+nH9AmxZU uJBN4+VRHuRNyH0Wi/kMbwIlxY+cT/tu7ldcRL6zAVKMi4Tn3OljmbY5Rv54yt+QEcf6 xxGeJ6NfhomLnorw9xAE3ePsQG6K6RxwS16AnI/gsYO1MCRzTv/f8J8fhTGOpJQyzN85 Cjvg== X-Gm-Message-State: AKaTC02ZmdvOjmtAp2jh9Qx4qrE2MVMVGQx4VVbPcBr4Fx6sdel/I8YpO7HJN6kKkl2u4g== X-Received: by 10.107.32.141 with SMTP id g135mr63568005iog.96.1481387969524; Sat, 10 Dec 2016 08:39:29 -0800 (PST) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id p71sm16570675ioe.33.2016.12.10.08.39.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 10 Dec 2016 08:39:29 -0800 (PST) From: npostavs@users.sourceforge.net References: <83oa0jg8z6.fsf@gnu.org> <87h96ber9z.fsf@users.sourceforge.net> <83k2b7g484.fsf@gnu.org> Date: Sat, 10 Dec 2016 11:40:31 -0500 In-Reply-To: (Peter Wang's message of "Sun, 11 Dec 2016 00:16:29 +0800") Message-ID: <87eg1feo00.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.5 (/) 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 (/) # not an Emacs bug tags 25156 notabug close 25156 quit Peter Wang writes: > I found the culprit was this line in my configuration: > > (setq lisp-indent-function 'common-lisp-indent-function) > > and common-lisp-indent-function is provided by > > `.emacs.d/elpa/slime-20161109.640/contrib/slime-cl-indent.el' > > I think it is a wrong configuration. > > something in common-lisp-indent-function cause the huge slowing down. Okay, looks like a problem with slime-cl-indent.el then. Using Emacs' common-lisp-indent-function (from lisp/emacs-lisp/cl-indent.el) I get around 4 seconds, so it's slower but not a hang. > > > > (benchmark 1 '(describe-variable 'lisp-mode-syntax-table)) ;=> "Elapsed time: 1.272053s (0.161946s in 6 GCs)" > > (benchmark 1 '(describe-property-list (list 'syntax-table lisp-mode-syntax-table))) ;=> "Elapsed time: 1.165824s (0.139516s in 5 GCs)"