From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: jan via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#41155: 26.3; regexp 99% locks up emacs Date: Sat, 9 May 2020 18:31:32 +0100 Message-ID: Reply-To: jan Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="67499"; mail-complaints-to="usenet@ciao.gmane.io" To: 41155@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 09 19:32:11 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 1jXTKc-000HSZ-BQ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 May 2020 19:32:10 +0200 Original-Received: from localhost ([::1]:41976 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jXTKa-0004XS-Sj for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 May 2020 13:32:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33222) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXTKU-0004XK-Ia for bug-gnu-emacs@gnu.org; Sat, 09 May 2020 13:32:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36805) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jXTKU-0007gI-8j for bug-gnu-emacs@gnu.org; Sat, 09 May 2020 13:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jXTKU-0002ZC-6H for bug-gnu-emacs@gnu.org; Sat, 09 May 2020 13:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: jan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 May 2020 17:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41155 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.15890454989825 (code B ref -1); Sat, 09 May 2020 17:32:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 May 2020 17:31:38 +0000 Original-Received: from localhost ([127.0.0.1]:48350 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXTK6-0002YO-3V for submit@debbugs.gnu.org; Sat, 09 May 2020 13:31:38 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:47228) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXTK4-0002YE-66 for submit@debbugs.gnu.org; Sat, 09 May 2020 13:31:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33200) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXTK3-0004Ug-VM for bug-gnu-emacs@gnu.org; Sat, 09 May 2020 13:31:35 -0400 Original-Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]:38250) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jXTK2-0007fS-UZ for bug-gnu-emacs@gnu.org; Sat, 09 May 2020 13:31:35 -0400 Original-Received: by mail-pf1-x42f.google.com with SMTP id y25so2629465pfn.5 for ; Sat, 09 May 2020 10:31:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=/D24f84+F7IU930hwItxEqZZR9QdNYqO1fU6W1r7WKQ=; b=iIitntRbTsTVDUBJep0leBcnS8mt1yidCIOYXXK6Bg0HFDiWqWh5P7WBHDg0V8gdrj e4VhpeWgRO1BJX4W9kwfEZqVRQEh9g/c0OATF0SWUWnKDu2gFlJdYNib06OqvwipL8f3 jzR6ZEyK2mLNKGLAckuFjQm5tvsoHHUaU/1LtsFjMHo0LzFqp+U8IDFUvaAD/g85Pai3 5276CXDSS4TAE2uPykDtklF7VgeMZmnM8aicguaMMGaob4ePgbohxvKBIAHnPYd7ss1A L21QcOSGCtScMG2r+ysoroZRIALaho72Z97hLHGdrdw5N/XsvNx4l1XgFiCYUP41ngEZ NzWg== 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=/D24f84+F7IU930hwItxEqZZR9QdNYqO1fU6W1r7WKQ=; b=IQ6jHr/g671H+L511e3887tGhkC1JOuII8AlXIw2wikaLS+UJBo3MWOEjmX1fhmr/N s1NEy9loKzHYOYzwQyY6I1F2JXUzLVgm/2+49T6I22smN0YStWb4wzmpy86ZMgzkSOoE v1UzlocRYSC/jQosLhQIZn83fkj57Jn3h0HLMC7MQNxfjL5NN+RAgF3ukvQ8bFg3XUeN qgkCmj7+XAFrXXryVLhnn/T9yehBo3rahBpE/qLgGkce1hPKBZf6Kc4WvtTEuOwVZdUb ApeUmZMS7d5vQCWWy/5DvWEvMvY+8DRCCB6j8CtbwJlarh8uZAxLxoRx9xA7/9fLaYMk 0uRg== X-Gm-Message-State: AGi0PubQO2Xwcl6O6mqNiOmGS+kEy4EQBI59fhW8Au0Bv/HljJO9SmHP wtACDGAS03+Vhoor+yMihzSgmIIOwVt3pp/uyS6cFdQ8 X-Google-Smtp-Source: APiQypKAW26yHFxHoLhub8rhtIKs2jwzTobD5HQUohUGrjHOIAI6kprTGw92k7/QLfrCu2SSpRqtTn2iCsBv9psnkSI= X-Received: by 2002:a63:ef05:: with SMTP id u5mr7162625pgh.237.1589045493249; Sat, 09 May 2020 10:31:33 -0700 (PDT) Original-Received: by 2002:a17:90a:9a86:0:0:0:0 with HTTP; Sat, 9 May 2020 10:31:32 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::42f; envelope-from=rtm443x@googlemail.com; helo=mail-pf1-x42f.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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:179977 Archived-At: Hi all, was trying to use highlight-regexp, locked up emacs. Turns out it's not entirely locked up. To reproduce: Start emacs with -Q Switch to *scratch* buffer. Type (below the existing text that comes with *scratch*) hello world Do highlight-regexp: M-s h r \(.+\)\{,50\}\1\{,50\}\1 RET It seemingly locks. Process goes to 100% of one core and stays there. C-g will not (apparently) stop it Note that if you completely clear the scratch buffer beforehand it seems to be OK. I originally put it down to the regexp being clearly pathalogical but I don't believe it's that, at least not the whole story. Left long enough some highlighting will happen (maybe not with this particular text but I've seen it happen), so it seems to have succeeded, but it still appears locked up (100% cpu, unresponsive to keyboard). C-g in fact does do something; move the cursor as normal and it will appear stuck (cursor doesn't move), however type C-g repeatedly and the cursor will start to move. Process will stay at 100% though. At no point will C-g restore it to normal behaviour. Tried the same on ubuntu (except did not start it -Q), same result. Can reproduce? cheers jan In GNU Emacs 26.3 (build 1, x86_64-w64-mingw32) of 2019-08-29 built on CIRROCUMULUS Repository revision: 96dd0196c28bc36779584e47fffcca433c9309cd Windowing system distributor 'Microsoft Corp.', version 6.1.7601 Recent messages: Loading desktop...done Warning: desktop file appears to be in use by PID 3000. Using it may cause conflicts. Use it anyway? (y or n) n Desktop file in use; not loaded. For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... [2 times] Configured using: 'configure --without-dbus --host=x86_64-w64-mingw32 --without-compress-install 'CFLAGS=-O2 -static -g3'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS THREADS LCMS2 Important settings: value of $LANG: ENG locale-coding-system: cp1252 Major mode: Lisp Interaction Minor modes in effect: desktop-save-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-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 dired dired-loaddefs rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils elec-pair helm-gtags subr-x pulse which-func imenu helm-files helm-buffers helm-occur helm-tags helm-locate helm-grep helm-regexp format-spec helm-utils helm-help helm-types helm easy-mmode helm-source eieio-compat helm-multi-match helm-lib async edmacro kmacro desktop frameset cus-start cus-load finder-inf info 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 cl-loaddefs cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win 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 w32notify w32 lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 156269 6137) (symbols 48 25959 1) (miscs 40 37 100) (strings 32 48072 1094) (string-bytes 1 1466455) (vectors 16 22867) (vector-slots 8 590863 3372) (floats 8 86 31) (intervals 56 248 18) (buffers 992 12))