From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 17 15:45:15 2015 Received: (at submit) by debbugs.gnu.org; 17 Mar 2015 19:45:15 +0000 Received: from localhost ([127.0.0.1]:50374 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YXxQQ-0008Bm-Ss for submit@debbugs.gnu.org; Tue, 17 Mar 2015 15:45:15 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37673) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YXxQO-0008Be-UF for submit@debbugs.gnu.org; Tue, 17 Mar 2015 15:45:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXxQN-0006kp-Iv for submit@debbugs.gnu.org; Tue, 17 Mar 2015 15:45:12 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:40474) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXxQN-0006kP-Gr for submit@debbugs.gnu.org; Tue, 17 Mar 2015 15:45:11 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39378) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXxQM-0007pf-M6 for bug-gnu-emacs@gnu.org; Tue, 17 Mar 2015 15:45:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXxQJ-0006ea-Cg for bug-gnu-emacs@gnu.org; Tue, 17 Mar 2015 15:45:10 -0400 Received: from know-smtprelay-omc-10.server.virginmedia.net ([80.0.253.74]:37014) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXxQJ-0006Yg-3E for bug-gnu-emacs@gnu.org; Tue, 17 Mar 2015 15:45:07 -0400 Received: from JRWUBU2 ([81.103.224.4]) by know-smtprelay-10-imp with bizsmtp id 4jl51q00t06JmVd01jl59C; Tue, 17 Mar 2015 19:45:05 +0000 X-Originating-IP: [81.103.224.4] X-Spam: 0 X-Authority: v=2.1 cv=dY0O3Bne c=1 sm=1 tr=0 a=pLuj3OkTrmEUIJBpyvkqVg==:117 a=pLuj3OkTrmEUIJBpyvkqVg==:17 a=kj9zAlcOel0A:10 a=NLZqzBF-AAAA:8 a=FXRV2orG-g6AZUaOqv8A:9 a=CjuIK1q_8ugA:10 Date: Tue, 17 Mar 2015 19:45:04 +0000 From: Richard Wordingham To: bug-gnu-emacs@gnu.org Subject: 24.4; Bad regex in composition-function-table hangs Emacs Message-ID: <20150317194504.7a0fca78@JRWUBU2> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -4.3 (----) Loading an Emacs lisp file (e.g. by load-file in .emacs) containing the commands: (defvar tai-tham-composable-pattern (let ((table '( ("C" . "[\u1A20-\u1A54") ; Missing ']'! ("M" . "[\u1A55-\u1A5E\u1A61-\u1A7C\u1A7F]"); Mark ("H" . "\u1A60") ; sakot ("N" . "\u1A58"))) ; mai kang lai (regexp "C\\(M|HC\\)*\\(NC\\(M|HC\\)*\\)*N?")) (let ((case-fold-search nil)) (dolist (elt table) (setq regexp (replace-regexp-in-string (car elt) (cdr elt) regexp t t)))) regexp)) (let ((elt (list (vector tai-tham-composable-pattern 0 'font-shape-gstring) (vector "." 0 'font-shape-gstring) ))) (set-char-table-range composition-function-table '(#x1A20 . #x1AAD) elt)) causes Emacs to hang when a character in the range U+1A20 to U+1AAD needs to be rendered. Now, the value of tai-tham-composable-pattern is an unbalanced regex, so that may be the cause of the problem. The problem also occurs in Emacs 23.3. From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 02 08:36:02 2019 Received: (at 20128) by debbugs.gnu.org; 2 Aug 2019 12:36:02 +0000 Received: from localhost ([127.0.0.1]:56007 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htWmw-0006yB-Fw for submit@debbugs.gnu.org; Fri, 02 Aug 2019 08:36:02 -0400 Received: from quimby.gnus.org ([80.91.231.51]:58126) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htWmu-0006xk-MG for 20128@debbugs.gnu.org; Fri, 02 Aug 2019 08:36:01 -0400 Received: from 77.18.62.220.tmi.telenormobil.no ([77.18.62.220] helo=sandy) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1htWmq-0001yy-Kr; Fri, 02 Aug 2019 14:35:59 +0200 From: Lars Ingebrigtsen To: Richard Wordingham Subject: Re: bug#20128: 24.4; Bad regex in composition-function-table hangs Emacs References: <20150317194504.7a0fca78@JRWUBU2> Date: Fri, 02 Aug 2019 14:35:55 +0200 In-Reply-To: <20150317194504.7a0fca78@JRWUBU2> (Richard Wordingham's message of "Tue, 17 Mar 2015 19:45:04 +0000") Message-ID: <87blx7rbh0.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Richard Wordingham writes: > Loading an Emacs lisp file (e.g. by load-file in .emacs) containing the > commands: > > (defvar tai-tham-composable-pattern > (let ((table > '( > ("C" . "[\u1A20-\u1A54") ; Missing ']'! > ("M" . "[\ [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 20128 Cc: 20128@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: -1.0 (-) Richard Wordingham writes: > Loading an Emacs lisp file (e.g. by load-file in .emacs) containing the > commands: > > (defvar tai-tham-composable-pattern > (let ((table > '( > ("C" . "[\u1A20-\u1A54") ; Missing ']'! > ("M" . "[\u1A55-\u1A5E\u1A61-\u1A7C\u1A7F]"); Mark > ("H" . "\u1A60") ; sakot > ("N" . "\u1A58"))) ; mai kang lai > (regexp "C\\(M|HC\\)*\\(NC\\(M|HC\\)*\\)*N?")) > (let ((case-fold-search nil)) > (dolist (elt table) > (setq regexp (replace-regexp-in-string (car elt) (cdr elt) > regexp t t)))) > regexp)) > > (let ((elt (list (vector tai-tham-composable-pattern 0 > 'font-shape-gstring) > (vector "." 0 'font-shape-gstring) ))) > (set-char-table-range composition-function-table '(#x1A20 . #x1AAD) > elt)) > > causes Emacs to hang when a character in the range U+1A20 to U+1AAD > needs to be rendered. Now, the value of tai-tham-composable-pattern is > an unbalanced regex, so that may be the cause of the problem. (I'm going through old bug reports that unfortunately have not received any responses yet.) I don't think you can reasonably expect Emacs to work properly when you have put invalid regexps into a function like that, so I'm closing this bug as a "wontfix". -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 02 08:36:06 2019 Received: (at control) by debbugs.gnu.org; 2 Aug 2019 12:36:06 +0000 Received: from localhost ([127.0.0.1]:56010 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htWmz-0006yT-Pt for submit@debbugs.gnu.org; Fri, 02 Aug 2019 08:36:05 -0400 Received: from quimby.gnus.org ([80.91.231.51]:58144) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htWmy-0006yL-Ba for control@debbugs.gnu.org; Fri, 02 Aug 2019 08:36:04 -0400 Received: from 77.18.62.220.tmi.telenormobil.no ([77.18.62.220] helo=sandy) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1htWmv-0001z5-N9 for control@debbugs.gnu.org; Fri, 02 Aug 2019 14:36:03 +0200 Date: Fri, 02 Aug 2019 14:36:01 +0200 Message-Id: <87a7crrbgu.fsf@mouse.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #20128 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 20128 wontfix close 20128 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 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: -1.0 (-) tags 20128 wontfix close 20128 quit From unknown Sat Jun 21 10:13:13 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, 31 Aug 2019 11:24:05 +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