From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#2435: Bug 2435 Date: Tue, 03 Mar 2009 11:40:26 -0500 Message-ID: <87zlg2a7b9.fsf@cyd.mit.edu> References: <87fxhvcmvf.fsf@cyd.mit.edu> Reply-To: Chong Yidong , 2435@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1236100141 23270 80.91.229.12 (3 Mar 2009 17:09:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Mar 2009 17:09:01 +0000 (UTC) Cc: 2435@emacsbugs.donarmstrong.com To: Kenichi Handa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 03 18:10:17 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LeY7z-0006Kk-W6 for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Mar 2009 18:10:01 +0100 Original-Received: from localhost ([127.0.0.1]:33030 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LeY6e-0006Lj-P6 for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Mar 2009 12:08:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LeY20-00039v-PR for bug-gnu-emacs@gnu.org; Tue, 03 Mar 2009 12:03:48 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LeY1x-000357-Fm for bug-gnu-emacs@gnu.org; Tue, 03 Mar 2009 12:03:47 -0500 Original-Received: from [199.232.76.173] (port=59568 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LeY1x-00034j-9G for bug-gnu-emacs@gnu.org; Tue, 03 Mar 2009 12:03:45 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:58924) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LeY1v-0004jn-FT for bug-gnu-emacs@gnu.org; Tue, 03 Mar 2009 12:03:44 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n23H3dGG017000; Tue, 3 Mar 2009 09:03:40 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n23Gj4xe011467; Tue, 3 Mar 2009 08:45:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Chong Yidong Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 03 Mar 2009 16:45:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2435 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 2435-submit@emacsbugs.donarmstrong.com id=B2435.12360983639716 (code B ref 2435); Tue, 03 Mar 2009 16:45:04 +0000 Original-Received: (at 2435) by emacsbugs.donarmstrong.com; 3 Mar 2009 16:39:23 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n23GdJcC009709 for <2435@emacsbugs.donarmstrong.com>; Tue, 3 Mar 2009 08:39:21 -0800 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 85E0957E20B; Tue, 3 Mar 2009 11:40:26 -0500 (EST) In-Reply-To: (Kenichi Handa's message of "Tue, 03 Mar 2009 16:51:44 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 03 Mar 2009 12:03:47 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:25943 Archived-At: Kenichi Handa writes: >> I get a crash with the following recipe, and I think it's related to the >> new composition code: >> >> emacs -Q >> M-x customize-group RET whitespace RET >> C-v C-v > > I can't reproduce the crash with that. It doesn't happen all the time---about once every three or four attempts. Quite strange. > It seems that the regular expression > tibetan-composable-pattern (which starts with "[\340\275..." > and the byte length is surely 88) is being compiled. > Parhaps the display routine is going to display #xF20 > (tibetan character). But, in my case, regex_compile never > calls analyse_first at line 2853. > > 2846 if (many_times_ok) > 2847 { > 2848 boolean simple = skip_one_char (laststart) == b; > 2849 unsigned int startoffset = 0; > 2850 re_opcode_t ofj = > 2851 /* Check if the loop can match the empty string. */ > 2852 (simple || !analyse_first (laststart, b, NULL, 0)) > 2853 ? on_failure_jump : on_failure_jump_loop; > > Here, "simple" is always set to 1, so analyse_first is not > called. When I get the crash, simple is set to 0. (gdb) p b $4 = (unsigned char *) 0x8b927b7 "" (gdb) p laststart $5 = (unsigned char *) 0x8b92786 "\a\201\f" The return value of `skip_one_char (laststart)' is NULL. > Could you please try: > ESC : (re-search-forward tibetan-composable-pattern) RET > in some buffer and checks if analyse_first is called? It's called, not for the search itself but in the error handler: #0 analyse_first ( p=0x8860bc0 "\t\002\037Previous command was not a yank\n\001\005eval-\0164", pend=0x8860be4 "\005eval-\0164", fastmap=0x83e3984 "", multibyte=0) at regex.c:4022 #1 0x081aa0b5 in re_compile_fastmap (bufp=0x83e3960) at regex.c:4339 #2 0x081aa2c2 in re_search_2 (bufp=0x83e3960, str1=0x0, size1=0, str2=0x89fa230 "Search failed: \"[\340\275\200-\340\275\251\340\275\252][\340\276\220-\340\276\271\340\276\272\340\276\273\340\276\274]*[\340\275\260\366\220\202\216\340\275\261\340\275\262-\340\275\275\340\276\200\340\276\201\340\276\204]*[\340\275\276\340\276\202\340\276\203\340\276\206-\340\276\213\340\274\231\340\274\265\340\274\267]*\"", size2=105, startpos=0, range=105, regs=0x0, stop=105) at regex.c:4487 #3 0x081aa18c in re_search (bufp=0x83e3960, string=0x89fa230 "Search failed: \"[\340\275\200-\340\275\251\340\275\252][\340\276\220-\340\276\271\340\276\272\340\276\273\340\276\274]*[\340\275\260\366\220\202\216\340\275\261\340\275\262-\340\275\275\340\276\200\340\276\201\340\276\204]*[\340\275\276\340\276\202\340\276\203\340\276\206-\340\276\213\340\274\231\340\274\265\340\274\267]*\"", size=105, startpos=0, range=105, regs=0x0) at regex.c:4393 #4 0x081972f1 in fast_string_match (regexp=139244403, string=138652283) at search.c:505 #5 0x081d3fb6 in skip_debugger (conditions=138346117, data=141320317) at eval.c:1862 #6 0x081d4097 in maybe_call_debugger (conditions=138346117, sig=138556777, data=141320309) at eval.c:1889 #7 0x081d41e0 in find_handler_clause (handlers=138402201, conditions=138346117, sig=138556777, data=141320309) at eval.c:1961 #8 0x081d3c34 in Fsignal (error_symbol=138556777, data=141320309) at eval.c:1700