From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Adam Van Ymeren Newsgroups: gmane.emacs.bugs Subject: bug#40907: Font-lock-mode hanging in Java buffers Date: Mon, 27 Apr 2020 17:30:53 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="46201"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 To: 40907@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 27 19:32:18 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jT7c9-000Bu9-H9 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Apr 2020 19:32:17 +0200 Original-Received: from localhost ([::1]:56342 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jT7c8-0002nP-Cm for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Apr 2020 13:32:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57358) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jT7bv-0002mu-8u for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2020 13:32:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jT7bu-0008PC-Lk for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2020 13:32:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54725) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jT7bu-0008Nn-9F for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2020 13:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jT7bu-0002sy-4j for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2020 13:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Adam Van Ymeren Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Apr 2020 17:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40907 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15880086648068 (code B ref -1); Mon, 27 Apr 2020 17:32:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Apr 2020 17:31:04 +0000 Original-Received: from localhost ([127.0.0.1]:38038 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jT7ax-00025T-ES for submit@debbugs.gnu.org; Mon, 27 Apr 2020 13:31:04 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:56449) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jT7av-00022m-0D for submit@debbugs.gnu.org; Mon, 27 Apr 2020 13:31:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57146) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jT7au-0002jw-8X for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2020 13:31:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jT7as-0006lQ-Ro for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2020 13:30:59 -0400 Original-Received: from mail2.vany.ca ([142.54.190.254]:45576) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jT7as-0006l6-CO for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2020 13:30:58 -0400 Original-Received: from [192.168.1.2] (unknown [192.159.180.39]) by mail2.vany.ca (Postfix) with ESMTPSA id 63983AC016D for ; Mon, 27 Apr 2020 12:30:55 -0500 (CDT) Content-Language: en-US Received-SPF: pass client-ip=142.54.190.254; envelope-from=adam@vany.ca; helo=mail2.vany.ca X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/27 13:30:55 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Received-From: 209.51.188.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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:179165 Archived-At: I've been doing a lot of Java work lately, and I'm having issues with emacs hanging and spinning at 100% CPU.  I believe the culprit to be font-lock-mode.  C-g doesn't save me either, I usually have to kill emacs.  Any advice on how to debug this if C-g doesn't work? Below is the contents of M-x report-emacs-bug if relevant.  This is a custom trisquel emacs package I built using unmodified upstream 26.3 sources. Thanks! -Adam In GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.18.9)  of 2020-03-27 built on gus Windowing system distributor 'The X.Org Foundation', version 11.0.11804000 System Description:    Trisquel GNU/Linux 8.0, Flidas Configured using:  'configure --build=x86_64-linux-gnu --prefix=/usr  '--includedir=${prefix}/include' '--mandir=${prefix}/share/man'  '--infodir=${prefix}/share/info' --sysconfdir=/etc --localstatedir=/var  --disable-silent-rules '--libdir=${prefix}/lib/x86_64-linux-gnu'  '--libexecdir=${prefix}/lib/x86_64-linux-gnu' --disable-maintainer-mode  --disable-dependency-tracking --with-modules --with-xwidgets 'CFLAGS=-g  -O2 -fstack-protector-strong -Wformat -Werror=format-security'  'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2'  'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND DBUS GSETTINGS GLIB NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS LIBSYSTEMD LCMS2 Important settings:   value of $LANG: en_CA.UTF-8   value of $XMODIFIERS: @im=ibus   locale-coding-system: utf-8-unix Major mode: Dired by name Minor modes in effect:   diff-auto-refine-mode: t   tooltip-mode: t   global-eldoc-mode: t   electric-indent-mode: t   mouse-wheel-mode: t   menu-bar-mode: t   file-name-shadow-mode: t   blink-cursor-mode: t   auto-composition-mode: t   auto-encryption-mode: t   auto-compression-mode: t   buffer-read-only: t   line-number-mode: t   transient-mark-mode: t Load-path shadows: /usr/share/emacs/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/26.3/lisp/textmodes/ispell /usr/share/emacs/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/26.3/lisp/textmodes/flyspell /home/adam2/.emacs.d/elpa/let-alist-1.0.6/let-alist hides /usr/share/emacs/26.3/lisp/emacs-lisp/let-alist Features: (shadow sort mail-extr emacsbug sendmail ediff-merg ediff-wind ediff-diff ediff-mult ediff-help ediff-init ediff-util ediff diary-lib diary-loaddefs cal-iso org-rmail org-mhe org-irc org-info org-gnus nnir gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source tls gnutls utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range message rmc puny rfc822 mml mml-sec epa derived epg mm-decode mm-bodies mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util rmail rmail-loaddefs mail-utils wid-edit org-docview doc-view jka-compr image-mode org-bibtex bibtex org-bbdb org-w3m org-agenda vc-git diff-mode misearch multi-isearch dired-aux warnings hywconfig cl-extra help-mode elec-pair ob-js base16-solarized-light-theme base16-theme esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg esh-groups eshell esh-module esh-mode esh-util erc-goodies erc erc-backend erc-compat ob-screen ob-java js sgml-mode dom imenu thingatpt cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs ediprolog hyperbole hinit hibtypes hib-doc-id hsys-www klink hib-kbd hib-social hib-debbugs hsys-org hactypes hui-mini hui hui-mouse hmouse-key hargs hui-menu hyrolo-menu hyrolo hmail hui-jmenu hmouse-sh hmouse-drv hypb locate hui-window pulse hycontrol hsettings hui-em-but hbut hact hpath subr-x hhist hbdata htz cal-julian hbmap hmoccur hui-select hvar set hversion hload-path exwm-randr xcb-randr exwm-config ido exwm exwm-input xcb-keysyms xcb-xkb exwm-manage exwm-floating xcb-cursor xcb-render exwm-layout exwm-workspace exwm-core xcb-ewmh xcb-icccm xcb xcb-xproto xcb-types xcb-debug server ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex ox-icalendar ox-html table ox-ascii ox-publish ox org-element avl-tree generator org advice org-macro org-footnote org-pcomplete pcomplete org-list org-faces org-entities noutline outline easy-mmode org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-comint comint ansi-color ring org-loaddefs cal-menu calendar cal-loaddefs ob-exp ob-core org-compat ob-eval org-macs format-spec elnode dired dired-loaddefs db web time-stamp browse-url json map rx s url-util mailcap mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr fakir dotassoc kv noflet cl-indent cl dash ert pp find-func ewoc debug finder-inf kotl-autoloads info slime-autoloads package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv edmacro kmacro cl-loaddefs cl-lib time-date 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 system-font-setting font-render-setting xwidget-internal move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 486346 46813)  (symbols 48 56643 2)  (miscs 40 265 1145)  (strings 32 145747 8912)  (string-bytes 1 4635211)  (vectors 16 67515)  (vector-slots 8 1265304 32572)  (floats 8 322 251)  (intervals 56 2498 406)  (buffers 992 23)  (heap 1024 69920 2977))