From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: 23.0.60; Segmentation fault loading auto-lang.el Date: Tue, 08 Apr 2008 15:52:27 +0900 Message-ID: References: <87r6dg3oe2.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=ISO-2022-JP-2 X-Trace: ger.gmane.org 1207637598 13849 80.91.229.12 (8 Apr 2008 06:53:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Apr 2008 06:53:18 +0000 (UTC) Cc: intrigeri@boum.org, 103@emacsbugs.donarmstrong.com, emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 08 08:53:49 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jj7iH-0000xA-1i for ged-emacs-devel@m.gmane.org; Tue, 08 Apr 2008 08:53:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jj7he-00064O-56 for ged-emacs-devel@m.gmane.org; Tue, 08 Apr 2008 02:53:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jj7ha-00064I-1R for emacs-devel@gnu.org; Tue, 08 Apr 2008 02:53:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jj7hY-000646-CU for emacs-devel@gnu.org; Tue, 08 Apr 2008 02:53:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jj7hY-000643-5s for emacs-devel@gnu.org; Tue, 08 Apr 2008 02:53:04 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Jj7hX-0001VS-D5 for emacs-devel@gnu.org; Tue, 08 Apr 2008 02:53:03 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jj7hW-00040D-8E for emacs-devel@gnu.org; Tue, 08 Apr 2008 02:53:02 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id m386qcKu004841; Tue, 8 Apr 2008 15:52:39 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp3.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id m386qcUw020399; Tue, 8 Apr 2008 15:52:38 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id m386qSMB003166; Tue, 8 Apr 2008 15:52:28 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1Jj7gx-00039V-Vp; Tue, 08 Apr 2008 15:52:27 +0900 In-reply-to: <87r6dg3oe2.fsf@stupidchicken.com> (message from Chong Yidong on Tue, 08 Apr 2008 01:29:41 -0400) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-kernel: by mx20.gnu.org: Solaris 8 (1) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:94674 Archived-At: In article <87r6dg3oe2.fsf@stupidchicken.com>, Chong Yidong writes: > > - download http://www.marquardt-home.de/auto-lang.el to ~/.elisp/ > > - run emacs -Q > > - M-x load-file > > - choose file ~/.elisp/auto-lang.el > > => Emacs segfaults (same result with emacs -Q -nw) > This is due to an infinite nesting depth in regexp-opt, which can be > tracked down to the following problem: > (let ((str (string-as-unibyte "$(D+#(B"))) > (string-match (char-to-string (string-to-char str)) str)) > evaluates to 0 in Emacs 22, and to nil in Emacs 23. It turns out that > this screws up the use of all-completions in regexp-opt-group. > Anyone have any idea what's going on here? (string-as-unibyte "$(D+#(B") => "\303\244" (string-to-char "\303\244") => 195 (because ?\303 == 195) (char-to-string 195) => "$(D**(B" (because 195==0xC3 U+00C3=='$(D**(B') (string-match "$(D**(B" "$(D+#(B") => nil (obvious) Any Lisp program that depends on the result of string-as-unibyte (thus Emacs' internal character representation) won't work in Emacs 23. --- Kenichi Handa handa@ni.aist.go.jp