From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#3809: 23.1.50; crash in abbrev mode Date: Fri, 10 Jul 2009 21:22:20 +0900 Message-ID: Reply-To: Kenichi Handa , 3809@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 1247231087 1451 80.91.229.12 (10 Jul 2009 13:04:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Jul 2009 13:04:47 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 10 15:04:40 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 1MPFmI-0001Em-QD for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Jul 2009 15:04:39 +0200 Original-Received: from localhost ([127.0.0.1]:54422 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MPFmI-0008J7-8t for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Jul 2009 09:04:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MPFM9-00042F-2F for bug-gnu-emacs@gnu.org; Fri, 10 Jul 2009 08:37:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MPFM3-0003zY-H1 for bug-gnu-emacs@gnu.org; Fri, 10 Jul 2009 08:37:36 -0400 Original-Received: from [199.232.76.173] (port=37611 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MPFM2-0003z6-AY for bug-gnu-emacs@gnu.org; Fri, 10 Jul 2009 08:37:30 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:22872) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MPFM1-0003j0-TY for bug-gnu-emacs@gnu.org; Fri, 10 Jul 2009 08:37:30 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MPFM1-0003Hz-1x for bug-gnu-emacs@gnu.org; Fri, 10 Jul 2009 08:37:29 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6ACbRCl005486; Fri, 10 Jul 2009 05:37:27 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n6ACU3cC004015; Fri, 10 Jul 2009 05:30:03 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Kenichi Handa Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 10 Jul 2009 12:30:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 3809 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12472285583030 (code B ref -1); Fri, 10 Jul 2009 12:30:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 10 Jul 2009 12:22:38 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6ACMWLd003021 for ; Fri, 10 Jul 2009 05:22:34 -0700 Original-Received: from mail.gnu.org ([199.232.76.166]:37666 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MPF7X-0008Uo-Es for emacs-pretest-bug@gnu.org; Fri, 10 Jul 2009 08:22:31 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MPF7V-0000BV-3k for emacs-pretest-bug@gnu.org; Fri, 10 Jul 2009 08:22:30 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:62417) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MPF7U-0000AR-F0 for emacs-pretest-bug@gnu.org; Fri, 10 Jul 2009 08:22:29 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id n6ACMLCx015071 for ; Fri, 10 Jul 2009 21:22:21 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp3.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id n6ACMKMS010018 for ; Fri, 10 Jul 2009 21:22:20 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id n6ACMKJj013297 for ; Fri, 10 Jul 2009 21:22:20 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1MPF7M-0003jd-FL for emacs-pretest-bug@gnu.org; Fri, 10 Jul 2009 21:22:20 +0900 X-detected-operating-system: by monty-python.gnu.org: Solaris 9 X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Resent-Date: Fri, 10 Jul 2009 08:37:36 -0400 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:29296 gmane.emacs.pretest.bugs:24761 Archived-At: My Emacs (compiled with CFLAGS='-g -DENABLE_CHECKING') has just crashed as this: cmds.c:495: Emacs fatal error: assertion failed: SYMBOLP(sym) [Switching to Thread 0xb70e0700 (LWP 6775)] Breakpoint 1, abort () at emacs.c:433 (gdb) bt full #0 abort () at emacs.c:433 No locals. #1 0x083202c2 in die (msg=0x85ae1ec "assertion failed: SYMBOLP(sym)", file=0x85acc8e "cmds.c", line=495) at alloc.c:6221 No locals. #2 0x082ce57b in internal_self_insert (c=64, noautofill=0) at cmds.c:495 modiff = 135 sym = 164732765 hairy = 1 tem = -1080958120 synt = Spunct overwrite = 142900505 string = 0 len = 1 str = "@\000\000\000" chars_to_delete = 0 spaces_to_insert = 0 [...] (gdb) up 2 (gdb) list 490 sym = call0 (Qexpand_abbrev); 491 492 /* If we expanded an abbrev which has a hook, 493 and the hook has a non-nil `no-self-insert' property, 494 return right away--don't really self-insert. */ 495 if (! NILP (sym) && ! NILP (XSYMBOL (sym)->function) 496 && SYMBOLP (XSYMBOL (sym)->function)) 497 { 498 Lisp_Object prop; 499 prop = Fget (XSYMBOL (sym)->function, intern ("no-self-insert")); (gdb) pp sym (64 46 37 33 95 45) (gdb) FYI, (string 64 46 37 33 95 45) => "@.%!_-". This is reproducible by this scenario: % emacs -Q C-x m M-x message-mode handa@ Emacs crashes when I type the last "@" (in To: subject line). It seems that "handa" can be any other string. It is reproducible with EMACS_23_1_RC branch too. In the above code, at least we should have a ckeck of SYMBOLP (sym). --- Kenichi Handa handa@m17n.org In GNU Emacs 23.1.50.2 (i686-pc-linux-gnu, GTK+ Version 2.14.4) of 2009-07-08 on etlken Windowing system distributor `The X.Org Foundation', version 11.0.10502000 configured using `configure 'CFLAGS=-g'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ja_JP.UTF-8 value of $XMODIFIERS: @im=SCIM locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: display-time-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t Recent input: x r e p o e r t r t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a.