From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: xh yang Newsgroups: gmane.emacs.bugs Subject: bug#33784: 27.0.50; some case c-backward-token-2 takes cpu more and emacs hang Date: Tue, 18 Dec 2018 12:09:01 +0800 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000d285c8057d440f01" X-Trace: blaine.gmane.org 1545108575 11520 195.159.176.226 (18 Dec 2018 04:49:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 18 Dec 2018 04:49:35 +0000 (UTC) To: 33784@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 18 05:49:31 2018 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 1gZ7Jy-0002s2-Rv for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Dec 2018 05:49:31 +0100 Original-Received: from localhost ([::1]:51793 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gZ7M5-0007Bo-MX for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Dec 2018 23:51:41 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58110) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gZ7Eh-0002gK-H1 for bug-gnu-emacs@gnu.org; Mon, 17 Dec 2018 23:44:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gZ7Eg-00037e-29 for bug-gnu-emacs@gnu.org; Mon, 17 Dec 2018 23:44:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48206) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gZ7Ef-00037X-Ue for bug-gnu-emacs@gnu.org; Mon, 17 Dec 2018 23:44:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gZ7Ef-0004lN-QL for bug-gnu-emacs@gnu.org; Mon, 17 Dec 2018 23:44:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: xh yang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 Dec 2018 04:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33784 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.154510821118258 (code B ref -1); Tue, 18 Dec 2018 04:44:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Dec 2018 04:43:31 +0000 Original-Received: from localhost ([127.0.0.1]:52464 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gZ7EA-0004kO-UA for submit@debbugs.gnu.org; Mon, 17 Dec 2018 23:43:31 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:40797) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gZ6o1-00046p-2I for submit@debbugs.gnu.org; Mon, 17 Dec 2018 23:16:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gZ6nu-0005i3-45 for submit@debbugs.gnu.org; Mon, 17 Dec 2018 23:16:23 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:60236) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gZ6ns-0005gP-AD for submit@debbugs.gnu.org; Mon, 17 Dec 2018 23:16:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50319) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gZ6np-0003vV-W7 for bug-gnu-emacs@gnu.org; Mon, 17 Dec 2018 23:16:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gZ6h7-00006u-A8 for bug-gnu-emacs@gnu.org; Mon, 17 Dec 2018 23:09:22 -0500 Original-Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]:43633) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gZ6h7-00006X-4N for bug-gnu-emacs@gnu.org; Mon, 17 Dec 2018 23:09:21 -0500 Original-Received: by mail-qt1-x843.google.com with SMTP id i7so16730837qtj.10 for ; Mon, 17 Dec 2018 20:09:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=KSHpfP2/0bkoUw1rGknGbL3t1ErPWi6bM9gEouZeH0A=; b=LISIH47aaJhPUQ0J1iOZzW6tqDQe2/mv8OF1t/CfBVE4kHq4Z6QkaQhyEETtvy59WX eHu9yiRR9vO36woLcGPD34fptGHnxO365gyND68+5gb3fPOTAo8wgCnSScNmbmgMEZ7r 6Fsj0OSgU7it8gUsHjoqLmxaq6lgleuk6R73DJcmMPS9SFVK3Fr0mmzZvmLox4aDpcTy uXH6j7CxNWqr9IxaL352oLR685ScWOcREzntXaCQGUrVDTp/NhK+mLdZsxrrfwUWVicM 1lLcV8Q+NWfC6yCyAmaPa5LtRuZ4qGObtfhD+zlmH9E551+ULeHAY7MA2A7TJ/6rJ6fT llTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=KSHpfP2/0bkoUw1rGknGbL3t1ErPWi6bM9gEouZeH0A=; b=Q3tvMaf9IjaHcYdO9DB/Xn1M5GM3gChmE87qrsWDg/9jz/FH5/9+CDHjjtRAkLDbL+ 18Qy5BZL6Z67zpBVQwdspa0pY7e0InjZDae9Zm3usV74OvDGkfDqvGqhctwB9gtSFJGS Free3Pvxpihhj/K/2/XLKOwze7u+fY705QW17jYlEmYr806f1nE+0Yb3tgYMOIPuudRh j3L045a4T7W9c1OdsiLbekurVlW5C4G1v6UNcDKguJZvx49xQEU5qVP5G53xVP6oqbbJ nJ2qfrokDUSJGQTYMvRTt96yIXWJ0kxQZ/HLAKrOuPqJ5gDbRazjmURYgFC3CZM4VEwe hGuA== X-Gm-Message-State: AA+aEWYW9vFsrMsF7AaSJK61eFGi9pClJTHfsLOWSJnuxe8s/4iSDmd7 L/KuqdK89rk93kyG72PWDRlBEnP5sRXvJ7RHlBsBeKcvSXsWoQ== X-Google-Smtp-Source: AFSGD/UNMCQkQ6SGkIN/40OYIAPbH6T/MgeohLWUsdmP7pz0bH+1iA9mY+99wVLgqkyF6E/aGCfYJA9Y3vAh98uZL3Y= X-Received: by 2002:a0c:a4a3:: with SMTP id x32mr15532187qvx.89.1545106160254; Mon, 17 Dec 2018 20:09:20 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Mon, 17 Dec 2018 23:43:30 -0500 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:153547 Archived-At: --000000000000d285c8057d440f01 Content-Type: text/plain; charset="UTF-8" follow case: (let ((str "#define SLOGE(...)\n ((void)__android_log_buf_print(LOG_ID_SYSTEM, ANDROID_LOG_ERROR, LOG_TAG,\n __VA_ARGS__))")) (with-temp-buffer (delay-mode-hooks (funcall 'c++-mode)) (insert str) (font-lock-ensure) (buffer-string) ) ) execute up code, emacs will hang In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2018-12-18 built on xhyang-ThinkPad-T470p Repository revision: 1691a51094d35ac4b2c311fa407c6b77eea7a105 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: Ubuntu 16.04.3 LTS Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Mark set #("#define SLOGE(...) ((void)__android_log_buf_print(LOG_ID_SYSTEM, ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__))" 0 1 (c-is-sws t c-in-sws t) 1 7 (c-in-sws t) 7 8 (c-in-sws t) 8 13 (c-in-sws t) 13 19 (c-in-sws t) 19 21 (c-in-sws t c-is-sws t) 21 22 (c-is-sws t)) next-line: End of buffer Configured using: 'configure --enable-link-time-optimization --without-pop --without-kerberos --without-kerberos5 --without-hesiod --with-sound=alsa --with-x-toolkit=gtk3 --with-xpm --with-jpeg --with-tiff --with-gif --with-png --with-rsvg --with-xml2 --with-imagemagick --with-xft --without-libotf --without-xim --with-xaw3d --with-dbus --without-gconf --without-gsettings --without-selinux --with-gnutls --with-zlib --with-modules --with-file-notification=inotify --without-makeinfo --with-x --exec-prefix=/usr/' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GLIB NOTIFY INOTIFY GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LCMS2 GMP Important settings: value of $LC_MONETARY: zh_CN.UTF-8 value of $LC_NUMERIC: zh_CN.UTF-8 value of $LC_TIME: zh_CN.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=fcitx locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t 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 Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cl-loaddefs cl-lib elec-pair mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors 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 composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray 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 threads dbusbind inotify lcms2 dynamic-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 114827 9593) (symbols 48 22507 1) (strings 32 34433 2178) (string-bytes 1 1049070) (vectors 16 16742) (vector-slots 8 532827 13806) (floats 8 49 68) (intervals 56 261 1) (buffers 992 11) (heap 1024 38686 1099)) --000000000000d285c8057d440f01 Content-Type: text/html; charset="UTF-8"


follow case:

(let ((str "#define SLOGE(...)\n ((void)__android_log_buf_print(LOG_ID_SYSTEM, ANDROID_LOG_ERROR, LOG_TAG,\n __VA_ARGS__))"))
(with-temp-buffer
(delay-mode-hooks (funcall 'c++-mode))
(insert str)
(font-lock-ensure)
(buffer-string)
)
)

execute up code, emacs will hang


In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
of 2018-12-18 built on xhyang-ThinkPad-T470p
Repository revision: 1691a51094d35ac4b2c311fa407c6b77eea7a105
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.11906000
System Description: Ubuntu 16.04.3 LTS

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Mark set
#("#define SLOGE(...)
((void)__android_log_buf_print(LOG_ID_SYSTEM, ANDROID_LOG_ERROR, LOG_TAG,
__VA_ARGS__))" 0 1 (c-is-sws t c-in-sws t) 1 7 (c-in-sws t) 7 8 (c-in-sws t) 8 13 (c-in-sws t) 13 19 (c-in-sws t) 19 21 (c-in-sws t c-is-sws t) 21 22 (c-is-sws t))
next-line: End of buffer

Configured using:
'configure --enable-link-time-optimization --without-pop
--without-kerberos --without-kerberos5 --without-hesiod
--with-sound=alsa --with-x-toolkit=gtk3 --with-xpm --with-jpeg
--with-tiff --with-gif --with-png --with-rsvg --with-xml2
--with-imagemagick --with-xft --without-libotf --without-xim
--with-xaw3d --with-dbus --without-gconf --without-gsettings
--without-selinux --with-gnutls --with-zlib --with-modules
--with-file-notification=inotify --without-makeinfo --with-x
--exec-prefix=/usr/'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GLIB NOTIFY
INOTIFY GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11
XDBE XIM MODULES THREADS LCMS2 GMP

Important settings:
value of $LC_MONETARY: zh_CN.UTF-8
value of $LC_NUMERIC: zh_CN.UTF-8
value of $LC_TIME: zh_CN.UTF-8
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: @im=fcitx
locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
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

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv
bytecomp byte-compile cconv dired dired-loaddefs format-spec rfc822 mml
mml-sec password-cache epa derived epg epg-config gnus-util rmail
rmail-loaddefs time-date mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils cc-mode cc-fonts easymenu
cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs
cl-loaddefs cl-lib elec-pair mule-util tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors 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 composite charscript charprop case-table epa-hook jka-cmpr-hook
help simple abbrev obarray 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 threads dbusbind inotify lcms2 dynamic-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty
make-network-process emacs)

Memory information:
((conses 16 114827 9593)
(symbols 48 22507 1)
(strings 32 34433 2178)
(string-bytes 1 1049070)
(vectors 16 16742)
(vector-slots 8 532827 13806)
(floats 8 49 68)
(intervals 56 261 1)
(buffers 992 11)
(heap 1024 38686 1099))

--000000000000d285c8057d440f01--