From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Peter Wang 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 23:38:34 +0800 Message-ID: References: <83oa0jg8z6.fsf@gnu.org> <87h96ber9z.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113d3824d60cfd05434fa94a X-Trace: blaine.gmane.org 1481384354 14433 195.159.176.226 (10 Dec 2016 15:39:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 10 Dec 2016 15:39:14 +0000 (UTC) Cc: 25156@debbugs.gnu.org To: npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 10 16:39:09 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 1cFjjv-0002c1-RF for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Dec 2016 16:39:08 +0100 Original-Received: from localhost ([::1]:52122 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cFjjz-0005EM-RX for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Dec 2016 10:39:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35789) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cFjjt-0005EH-RX for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2016 10:39:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cFjjq-0001PY-P0 for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2016 10:39:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49951) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cFjjq-0001PJ-JN for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2016 10:39:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cFjjq-000870-8o for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2016 10:39:02 -0500 X-Loop: help-debbugs@gnu.org 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: Original-Received: via spool by 25156-submit@debbugs.gnu.org id=B25156.148138432431152 (code B ref 25156); Sat, 10 Dec 2016 15:39:02 +0000 Original-Received: (at 25156) by debbugs.gnu.org; 10 Dec 2016 15:38:44 +0000 Original-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 Original-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 Original-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) Original-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> 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:126809 Archived-At: --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--