From unknown Mon Aug 18 14:21:31 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#23040 <23040@debbugs.gnu.org> To: bug#23040 <23040@debbugs.gnu.org> Subject: Status: "Stack overflow in regexp matcher" when entering group Reply-To: bug#23040 <23040@debbugs.gnu.org> Date: Mon, 18 Aug 2025 21:21:31 +0000 retitle 23040 "Stack overflow in regexp matcher" when entering group reassign 23040 emacs,gnus submitter 23040 Nikolaus Rath severity 23040 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 17 11:24:49 2016 Received: (at submit) by debbugs.gnu.org; 17 Mar 2016 15:24:49 +0000 Received: from localhost ([127.0.0.1]:51197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1agZn7-00013E-AK for submit@debbugs.gnu.org; Thu, 17 Mar 2016 11:24:49 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:38764) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1agZn5-000135-2n for submit@debbugs.gnu.org; Thu, 17 Mar 2016 11:24:47 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id D8C9A20D50 for ; Thu, 17 Mar 2016 11:24:46 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute2.internal (MEProxy); Thu, 17 Mar 2016 11:24:46 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=pR5F852aDZPFOkQ8SfR6xfMJVGk=; b=DbYmH xeUymNeEmfwzSKr95yxwP/L8AbyOKfkhsV5lnt7WARvfikPQlfzlj++pocsKdN/F MYuWM7cJDnaU3Xw0X9SOMttI92LkrMQYxxMlUe9iZ2lqVgGi3bt7pXzWWTsGKd7q cxNIM8ED3psoh9rcYDoxA88jgCeHxKy2VFM9Xg= X-Sasl-enc: BqRreEdH/RKZuXVIdVm7rOijYvjXtLSw0sKls+TE/DZI 1458228286 Received: from ebox.rath.org (ebox.rath.org [45.79.69.51]) by mail.messagingengine.com (Postfix) with ESMTPA id 5FDA8680196 for ; Thu, 17 Mar 2016 11:24:46 -0400 (EDT) Received: from thinkpad.rath.org (thinkpad [192.168.12.2]) by ebox.rath.org (Postfix) with ESMTPS id 90B0F221D45 for ; Thu, 17 Mar 2016 15:24:45 +0000 (UTC) Received: by thinkpad.rath.org (Postfix, from userid 1000) id 53194C715A; Thu, 17 Mar 2016 08:24:45 -0700 (PDT) From: Nikolaus Rath To: submit@debbugs.gnu.org (The Gnus Bugfixing Girls + Boys) Subject: "Stack overflow in regexp matcher" when entering group X-Debbugs-Version: 5.130014 X-Debbugs-Package: gnus Date: Thu, 17 Mar 2016 08:24:45 -0700 Message-ID: <87lh5hp1oi.fsf@thinkpad.rath.org> User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.1 (/) X-Debbugs-Envelope-To: submit 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.1 (/) Hello, When attempting to enter an nnimap group, I'm getting the following error: Debugger entered--Lisp error: (error "Stack overflow in regexp matcher") re-search-forward("<.+@[a-z0-9]+\\.rath\\.org>" nil t) gnus-score-string((((touched nil) ("references" ("<.+@[a-z0-9]+\\.rath\\.= org>" nil nil r)))) "references" 736040 736012 nil) gnus-score-headers(("/home/nikratio/lib/gnus/Score/all.SCORE" "/home/nikr= atio/lib/gnus/Score/nnimap:Junk Mail.SCORE") nil) gnus-possibly-score-headers() (progn (gnus-possibly-score-headers)) (if gnus-use-scoring (progn (gnus-possibly-score-headers))) (cond ((not new-group) (gnus-set-global-variables) (if kill-buffer (progn= (gnus-kill-or-deaden-summary kill-buffer))) (gnus-configure-windows (quote= summary) (quote force)) (gnus-set-mode-line (quote summary)) (gnus-summary= -position-point) (message "") t) ((null did-select) (if (and (derived-mode-= p (quote gnus-summary-mode)) (not (equal (current-buffer) kill-buffer))) (p= rogn (kill-buffer (current-buffer)) (if (not quit-config) (progn (gnus-summ= ary-update-info) (set-buffer gnus-group-buffer) (gnus-group-jump-to-group g= roup) (gnus-group-next-unread-group 1)) (gnus-handle-ephemeral-exit quit-co= nfig)))) (if (null (gnus-list-of-unread-articles group)) (gnus-message 3 "G= roup %s contains no messages" group) (gnus-message 3 "Can't select group"))= nil) ((eq did-select (quote quit)) (and (derived-mode-p (quote gnus-summar= y-mode)) (not (equal (current-buffer) kill-buffer)) (kill-buffer (current-b= uffer))) (if kill-buffer (progn (gnus-kill-or-deaden-summary kill-buffer)))= (if (not quit-config) (progn (set-buffer gnus-group-buffer) (gnus-group-ju= mp-to-group group) (gnus-configure-windows (quote group) (quote force))) (g= nus-handle-ephemeral-exit quit-config)) (signal (quote quit) nil)) (t (gnus= -set-global-variables) (if (boundp (quote spam-install-hooks)) (progn (spam= -initialize))) (setq gnus-newsgroup-active (gnus-copy-sequence (symbol-valu= e (intern-soft gnus-newsgroup-name gnus-active-hashtb)))) (setq gnus-newsgr= oup-highest (cdr gnus-newsgroup-active)) (gnus-run-hooks (quote gnus-select= -group-hook)) (if (memq (quote summary) (gnus-update-format-specifications = nil (quote summary) (quote summary-mode) (quote summary-dummy))) (progn (gn= us-update-summary-mark-positions))) (if gnus-use-scoring (progn (gnus-possi= bly-score-headers))) (if gnus-build-sparse-threads (progn (gnus-build-spars= e-threads))) (if show-all (let ((gnus-newsgroup-dormant nil)) (gnus-summary= -initial-limit show-all)) (gnus-summary-initial-limit show-all)) (if no-dis= play nil (gnus-summary-prepare)) (if gnus-use-trees (progn (gnus-tree-open)= (setq gnus-summary-highlight-line-function (quote gnus-tree-highlight-arti= cle)))) (if (and (zerop (buffer-size)) (not no-display)) (progn (cond (gnus= -newsgroup-dormant (gnus-summary-limit-include-dormant)) ((and gnus-newsgro= up-scored show-all) (gnus-summary-limit-include-expunged t))))) (gnus-run-h= ooks (quote gnus-apply-kill-hook)) (if (and (zerop (buffer-size)) (not no-d= isplay)) (progn (gnus-summary-catchup-and-exit nil t) (gnus-message 6 "No u= nread news") (if kill-buffer (progn (gnus-kill-or-deaden-summary kill-buffe= r))) nil) (gnus-summary-maybe-hide-threads) (gnus-configure-windows (quote = summary)) (if kill-buffer (progn (gnus-kill-or-deaden-summary kill-buffer))= ) (gnus-summary-auto-select-subject) (if (and (not no-article) (not no-disp= lay) gnus-newsgroup-unreads gnus-auto-select-first) (progn (let ((art ...))= (if (and art gnus-plugged ... ...) (progn ...)))) (gnus-summary-position-p= oint) (gnus-configure-windows (quote summary) (quote force)) (gnus-set-mode= -line (quote summary))) (if (and gnus-auto-center-group (get-buffer-window = gnus-group-buffer t)) (progn (let ((owin ...)) (select-window (get-buffer-w= indow gnus-group-buffer t)) (if (gnus-group-goto-group group) (progn ...)) = (select-window owin)))) (setq gnus-newsgroup-prepared t) (gnus-run-hooks (q= uote gnus-summary-prepared-hook)) (if (gnus-ephemeral-group-p group) nil (g= nus-group-update-group group nil t)) t))) (let* ((new-group (gnus-summary-setup-buffer group)) (quit-config (gnus-g= roup-quit-config group)) (did-select (and new-group (gnus-select-newsgroup = group show-all select-articles)))) (cond ((not new-group) (gnus-set-global-= variables) (if kill-buffer (progn (gnus-kill-or-deaden-summary kill-buffer)= )) (gnus-configure-windows (quote summary) (quote force)) (gnus-set-mode-li= ne (quote summary)) (gnus-summary-position-point) (message "") t) ((null di= d-select) (if (and (derived-mode-p (quote gnus-summary-mode)) (not (equal (= current-buffer) kill-buffer))) (progn (kill-buffer (current-buffer)) (if (n= ot quit-config) (progn (gnus-summary-update-info) (set-buffer gnus-group-bu= ffer) (gnus-group-jump-to-group group) (gnus-group-next-unread-group 1)) (g= nus-handle-ephemeral-exit quit-config)))) (if (null (gnus-list-of-unread-ar= ticles group)) (gnus-message 3 "Group %s contains no messages" group) (gnus= -message 3 "Can't select group")) nil) ((eq did-select (quote quit)) (and (= derived-mode-p (quote gnus-summary-mode)) (not (equal (current-buffer) kill= -buffer)) (kill-buffer (current-buffer))) (if kill-buffer (progn (gnus-kill= -or-deaden-summary kill-buffer))) (if (not quit-config) (progn (set-buffer = gnus-group-buffer) (gnus-group-jump-to-group group) (gnus-configure-windows= (quote group) (quote force))) (gnus-handle-ephemeral-exit quit-config)) (s= ignal (quote quit) nil)) (t (gnus-set-global-variables) (if (boundp (quote = spam-install-hooks)) (progn (spam-initialize))) (setq gnus-newsgroup-active= (gnus-copy-sequence (symbol-value (intern-soft gnus-newsgroup-name gnus-ac= tive-hashtb)))) (setq gnus-newsgroup-highest (cdr gnus-newsgroup-active)) (= gnus-run-hooks (quote gnus-select-group-hook)) (if (memq (quote summary) (g= nus-update-format-specifications nil (quote summary) (quote summary-mode) (= quote summary-dummy))) (progn (gnus-update-summary-mark-positions))) (if gn= us-use-scoring (progn (gnus-possibly-score-headers))) (if gnus-build-sparse= -threads (progn (gnus-build-sparse-threads))) (if show-all (let ((gnus-news= group-dormant nil)) (gnus-summary-initial-limit show-all)) (gnus-summary-in= itial-limit show-all)) (if no-display nil (gnus-summary-prepare)) (if gnus-= use-trees (progn (gnus-tree-open) (setq gnus-summary-highlight-line-functio= n (quote gnus-tree-highlight-article)))) (if (and (zerop (buffer-size)) (no= t no-display)) (progn (cond (gnus-newsgroup-dormant (gnus-summary-limit-inc= lude-dormant)) ((and gnus-newsgroup-scored show-all) (gnus-summary-limit-in= clude-expunged t))))) (gnus-run-hooks (quote gnus-apply-kill-hook)) (if (an= d (zerop (buffer-size)) (not no-display)) (progn (gnus-summary-catchup-and-= exit nil t) (gnus-message 6 "No unread news") (if kill-buffer (progn (gnus-= kill-or-deaden-summary kill-buffer))) nil) (gnus-summary-maybe-hide-threads= ) (gnus-configure-windows (quote summary)) (if kill-buffer (progn (gnus-kil= l-or-deaden-summary kill-buffer))) (gnus-summary-auto-select-subject) (if (= and (not no-article) (not no-display) gnus-newsgroup-unreads gnus-auto-sele= ct-first) (progn (let (...) (if ... ...))) (gnus-summary-position-point) (g= nus-configure-windows (quote summary) (quote force)) (gnus-set-mode-line (q= uote summary))) (if (and gnus-auto-center-group (get-buffer-window gnus-gro= up-buffer t)) (progn (let (...) (select-window ...) (if ... ...) (select-wi= ndow owin)))) (setq gnus-newsgroup-prepared t) (gnus-run-hooks (quote gnus-= summary-prepared-hook)) (if (gnus-ephemeral-group-p group) nil (gnus-group-= update-group group nil t)) t)))) gnus-summary-read-group-1("nnimap:Junk Mail" nil nil nil nil nil) (or (gnus-summary-read-group-1 group show-all no-article kill-buffer no-d= isplay select-articles) (setq show-all nil select-articles nil)) (let ((gnus-auto-select-next nil)) (or (gnus-summary-read-group-1 group s= how-all no-article kill-buffer no-display select-articles) (setq show-all n= il select-articles nil))) (setq result (let ((gnus-auto-select-next nil)) (or (gnus-summary-read-gr= oup-1 group show-all no-article kill-buffer no-display select-articles) (se= tq show-all nil select-articles nil)))) (null (setq result (let ((gnus-auto-select-next nil)) (or (gnus-summary-r= ead-group-1 group show-all no-article kill-buffer no-display select-article= s) (setq show-all nil select-articles nil))))) (and group (null (setq result (let ((gnus-auto-select-next nil)) (or (gnu= s-summary-read-group-1 group show-all no-article kill-buffer no-display sel= ect-articles) (setq show-all nil select-articles nil))))) (eq gnus-auto-sel= ect-next (quote quietly))) (while (and group (null (setq result (let ((gnus-auto-select-next nil)) (= or (gnus-summary-read-group-1 group show-all no-article kill-buffer no-disp= lay select-articles) (setq show-all nil select-articles nil))))) (eq gnus-a= uto-select-next (quote quietly))) (set-buffer gnus-group-buffer) (if backwa= rd (progn (gnus-group-prev-unread-group 2))) (if (not (equal group (gnus-gr= oup-group-name))) (setq group (gnus-group-group-name)) (setq group nil))) (let (result) (while (and group (null (setq result (let ((gnus-auto-selec= t-next nil)) (or (gnus-summary-read-group-1 group show-all no-article kill-= buffer no-display select-articles) (setq show-all nil select-articles nil))= ))) (eq gnus-auto-select-next (quote quietly))) (set-buffer gnus-group-buff= er) (if backward (progn (gnus-group-prev-unread-group 2))) (if (not (equal = group (gnus-group-group-name))) (setq group (gnus-group-group-name)) (setq = group nil))) result) gnus-summary-read-group("nnimap:Junk Mail" nil nil nil nil nil nil) gnus-group-read-group(nil nil nil) gnus-topic-read-group(nil) call-interactively(gnus-topic-read-group nil nil) command-execute(gnus-topic-read-group) Ma Gnus v0.14 GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.5) of 2015-03-07 on trouble, modified by Debian Best, -Nikolaus --=20 GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F =C2=BBTime flies like an arrow, fruit flies like a Banana.=C2= =AB From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 27 11:34:31 2016 Received: (at 23040) by debbugs.gnu.org; 27 Apr 2016 15:34:32 +0000 Received: from localhost ([127.0.0.1]:50180 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avRTz-0005HH-QH for submit@debbugs.gnu.org; Wed, 27 Apr 2016 11:34:31 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:41717) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avRTx-0005H9-V1 for 23040@debbugs.gnu.org; Wed, 27 Apr 2016 11:34:30 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id AE4F720C3B for <23040@debbugs.gnu.org>; Wed, 27 Apr 2016 11:34:29 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute3.internal (MEProxy); Wed, 27 Apr 2016 11:34:29 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=SbIN3iw8kOLkmKzk8UQoAguNOh4=; b=WUcCi ZFz5oN6WHMFkYbQhzUSHJqjjx5WSQQBLl+g5hUY4/wKDF5+HdLZOg3Dy4xWpX7hX UmFfAhqxRR/8W/f6wiXp986us1/Zj9QOdelKNzCHBmd8Ku6VceAhpodC69nZoEQQ C6L1IlV0SJg8TNfB3iCmMk3yKBOm9/Uo0DD0DA= X-Sasl-enc: aXJxf8ejfmjqpLJ1hmPkZ0G+Ido92kIvPnGPskvUmtAV 1461771269 Received: from ebox.rath.org (ebox.rath.org [45.79.69.51]) by mail.messagingengine.com (Postfix) with ESMTPA id 638F8C00013 for <23040@debbugs.gnu.org>; Wed, 27 Apr 2016 11:34:29 -0400 (EDT) Received: from thinkpad.rath.org (thinkpad [192.168.12.2]) by ebox.rath.org (Postfix) with ESMTPS id A07862806B6 for <23040@debbugs.gnu.org>; Wed, 27 Apr 2016 15:34:28 +0000 (UTC) Received: by thinkpad.rath.org (Postfix, from userid 1000) id 591F2BFC79; Wed, 27 Apr 2016 08:34:28 -0700 (PDT) From: Nikolaus Rath To: 23040@debbugs.gnu.org Subject: Resolved Date: Wed, 27 Apr 2016 08:34:28 -0700 Message-ID: <8737q7kquz.fsf@thinkpad.rath.org> User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.1 (/) X-Debbugs-Envelope-To: 23040 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.1 (/) The problem here is that recently some spam has started to come with extremely long "References" headers, and that the regular expression used in one of my scoring rules is sub-optimal when applied to such long strings. In particular, the leading dot in "<.+@[a-z0-9]+\\.rath\\.org>" first matches the entire reference header, and then emacs presumably has to backtrack character by character (or something like that). Fixing the rule by restricting the match to one message id fixes the problem: "<[^<>@]+@[a-z0-9]+\\.rath\\.org>" Best, -Nikolaus --=20 GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F =C2=BBTime flies like an arrow, fruit flies like a Banana.=C2= =AB From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 26 18:04:59 2017 Received: (at control) by debbugs.gnu.org; 26 Jan 2017 23:04:59 +0000 Received: from localhost ([127.0.0.1]:46514 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWt6B-0002rp-Lv for submit@debbugs.gnu.org; Thu, 26 Jan 2017 18:04:59 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:60096) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWt6A-0002rh-67 for control@debbugs.gnu.org; Thu, 26 Jan 2017 18:04:58 -0500 Received: from 2.150.50.220.tmi.telenormobil.no ([2.150.50.220] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cWt68-0008QJ-0y for control@debbugs.gnu.org; Fri, 27 Jan 2017 00:04:57 +0100 From: Lars Ingebrigtsen To: control@debbugs.gnu.org Subject: control message for bug #23040 Message-ID: <874m0l5t5c.fsf@totally-fudged-out-message-id> Date: Fri, 27 Jan 2017 00:04:50 +0100 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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 (/) reassign 23040 emacs,gnus From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 26 18:05:18 2017 Received: (at 23040) by debbugs.gnu.org; 26 Jan 2017 23:05:18 +0000 Received: from localhost ([127.0.0.1]:46526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWt6U-0002tX-Ai for submit@debbugs.gnu.org; Thu, 26 Jan 2017 18:05:18 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:60114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWt6Q-0002tO-Fu for 23040@debbugs.gnu.org; Thu, 26 Jan 2017 18:05:16 -0500 Received: from 2.150.50.220.tmi.telenormobil.no ([2.150.50.220] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cWt6N-00015t-Oh; Fri, 27 Jan 2017 00:05:13 +0100 From: Lars Ingebrigtsen To: Nikolaus Rath Subject: Re: bug#23040: Resolved In-Reply-To: <8737q7kquz.fsf@thinkpad.rath.org> (Nikolaus Rath's message of "Wed, 27 Apr 2016 08:34:28 -0700") Date: Thu, 26 Jan 2017 23:55:25 +0100 Message-ID: <87y3xx4ejm.fsf@gnus.org> References: <87lh5hp1oi.fsf@thinkpad.rath.org> <8737q7kquz.fsf@thinkpad.rath.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 23040 Cc: 23040@debbugs.gnu.org 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 (/) Nikolaus Rath writes: > The problem here is that recently some spam has started to come with > extremely long "References" headers, and that the regular expression > used in one of my scoring rules is sub-optimal when applied to such long > strings. > > In particular, the leading dot in "<.+@[a-z0-9]+\\.rath\\.org>" first > matches the entire reference header, and then emacs presumably has to > backtrack character by character (or something like that). > > Fixing the rule by restricting the match to one message id fixes the > problem: "<[^<>@]+@[a-z0-9]+\\.rath\\.org>" Could you submit a patch for this problem? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 27 12:56:54 2017 Received: (at 23040) by debbugs.gnu.org; 27 Jan 2017 17:56:54 +0000 Received: from localhost ([127.0.0.1]:48522 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cXAlW-0004Zp-Vb for submit@debbugs.gnu.org; Fri, 27 Jan 2017 12:56:54 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:49170) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cXAlR-0004Zd-20 for 23040@debbugs.gnu.org; Fri, 27 Jan 2017 12:56:48 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 519D620870; Fri, 27 Jan 2017 12:56:41 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Fri, 27 Jan 2017 12:56:41 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= smtpout; bh=os7JYmgSUVFAyXUGEPnnV/rj+ls=; b=Nt5YiZqb/v9w945oz3Me Tp/YN2NtnZjn+owpxynPQ+8zy5tzuu99Bq+rJM3iY4fZmOKz7xvNSAhl5e6elc13 LB5yKx3G1rnXsq7WK4QfCDwz648HJPGN3whCPiXPouN0TA6yJERwfGUBQQzTc7D+ VxYfEhLSMEPya8hxdQlAb28= X-ME-Sender: X-Sasl-enc: aJfHfef1WngLNvuGp0kfCTSOOJyHYqTohJwmMXHN1n0w 1485539801 Received: from ebox.rath.org (ebox.rath.org [45.79.69.51]) by mail.messagingengine.com (Postfix) with ESMTPA id 1653D2442C; Fri, 27 Jan 2017 12:56:41 -0500 (EST) Received: from vostro.rath.org (vostro [192.168.12.4]) by ebox.rath.org (Postfix) with ESMTPS id 3FC24597; Fri, 27 Jan 2017 17:56:40 +0000 (UTC) Received: by vostro.rath.org (Postfix, from userid 1000) id 0CC9A1021A4; Fri, 27 Jan 2017 09:56:40 -0800 (PST) From: Nikolaus Rath To: Lars Ingebrigtsen Subject: Re: bug#23040: Resolved References: <87lh5hp1oi.fsf@thinkpad.rath.org> <8737q7kquz.fsf@thinkpad.rath.org> <87y3xx4ejm.fsf@gnus.org> Date: Fri, 27 Jan 2017 09:56:39 -0800 In-Reply-To: <87y3xx4ejm.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 26 Jan 2017 23:55:25 +0100") Message-ID: <87k29go088.fsf@vostro.rath.org> User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 23040 Cc: 23040@debbugs.gnu.org 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 (/) On Jan 26 2017, Lars Ingebrigtsen wrote: > Nikolaus Rath writes: > >> The problem here is that recently some spam has started to come with >> extremely long "References" headers, and that the regular expression >> used in one of my scoring rules is sub-optimal when applied to such long >> strings. >> >> In particular, the leading dot in "<.+@[a-z0-9]+\\.rath\\.org>" first >> matches the entire reference header, and then emacs presumably has to >> backtrack character by character (or something like that). >> >> Fixing the rule by restricting the match to one message id fixes the >> problem: "<[^<>@]+@[a-z0-9]+\\.rath\\.org>" > > Could you submit a patch for this problem?=20 If I understand the issue correctly, then it is caused by a sub-optimal regular expression in my local configuration that triggers problems in Emacs' regular expression engine. I think the former can't be patched in Gnus, and the latter is definitely beyond my area of expertise, sorry. Best, -Nikolaus --=20 GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F =C2=BBTime flies like an arrow, fruit flies like a Banana.=C2= =AB From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 27 14:09:25 2017 Received: (at 23040) by debbugs.gnu.org; 27 Jan 2017 19:09:25 +0000 Received: from localhost ([127.0.0.1]:48572 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cXBtl-0006Fp-0J for submit@debbugs.gnu.org; Fri, 27 Jan 2017 14:09:25 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:49185) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cXBti-0006Fh-LH for 23040@debbugs.gnu.org; Fri, 27 Jan 2017 14:09:23 -0500 Received: from 37.253.224.99.tmi.telenormobil.no ([37.253.224.99] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cXBtf-0005QA-RT; Fri, 27 Jan 2017 20:09:21 +0100 From: Lars Ingebrigtsen To: Nikolaus Rath Subject: Re: bug#23040: Resolved References: <87lh5hp1oi.fsf@thinkpad.rath.org> <8737q7kquz.fsf@thinkpad.rath.org> <87y3xx4ejm.fsf@gnus.org> <87k29go088.fsf@vostro.rath.org> Date: Fri, 27 Jan 2017 20:09:13 +0100 In-Reply-To: <87k29go088.fsf@vostro.rath.org> (Nikolaus Rath's message of "Fri, 27 Jan 2017 09:56:39 -0800") Message-ID: <87mvec8gme.fsf@mouse> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 23040 Cc: 23040@debbugs.gnu.org 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 (/) Nikolaus Rath writes: > If I understand the issue correctly, then it is caused by a sub-optimal > regular expression in my local configuration that triggers problems in > Emacs' regular expression engine. I think the former can't be patched in > Gnus, and the latter is definitely beyond my area of expertise, sorry. OK; closing. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 27 14:09:04 2017 Received: (at control) by debbugs.gnu.org; 27 Jan 2017 19:09:04 +0000 Received: from localhost ([127.0.0.1]:48569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cXBtP-0006FI-Pj for submit@debbugs.gnu.org; Fri, 27 Jan 2017 14:09:03 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:49171) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cXBtO-0006Eo-DF for control@debbugs.gnu.org; Fri, 27 Jan 2017 14:09:02 -0500 Received: from 37.253.224.99.tmi.telenormobil.no ([37.253.224.99] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cXBtM-0003p7-Ah for control@debbugs.gnu.org; Fri, 27 Jan 2017 20:09:01 +0100 Date: Fri, 27 Jan 2017 20:08:54 +0100 Message-Id: <87r33o8gmx.fsf@mouse> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #23040 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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 (/) close 23040 From unknown Mon Aug 18 14:21:31 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 25 Feb 2017 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator