From unknown Sun Aug 10 08:07:41 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3809: 23.1.50; crash in abbrev mode Reply-To: Kenichi Handa , 3809@debbugs.gnu.org Resent-From: Kenichi Handa Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 10 Jul 2009 12:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 3809 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12472285583030 (code B ref -1); Fri, 10 Jul 2009 12:30:03 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 10 Jul 2009 12:22:38 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.2 required=4.0 tests=AWL,FOURLA,IMPRONONCABLE_2 autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 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 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 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 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 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) 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) 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) 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 From: Kenichi Handa To: emacs-pretest-bug@gnu.org Date: Fri, 10 Jul 2009 21:22:20 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: Solaris 9 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. From unknown Sun Aug 10 08:07:41 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3809: 23.1.50; crash in abbrev mode Reply-To: Chong Yidong , 3809@debbugs.gnu.org Resent-From: Chong Yidong Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 11 Jul 2009 15:45:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3809 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3809-submit@emacsbugs.donarmstrong.com id=B3809.124732675314577 (code B ref 3809); Sat, 11 Jul 2009 15:45:04 +0000 Received: (at 3809) by emacsbugs.donarmstrong.com; 11 Jul 2009 15:39:13 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.5 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from pantheon-po35.its.yale.edu (pantheon-po35.its.yale.edu [130.132.50.83]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6BFd8Vm014560 for <3809@emacsbugs.donarmstrong.com>; Sat, 11 Jul 2009 08:39:10 -0700 Received: from furry (COMPTON-FOUR-FORTY-EIGHT.MIT.EDU [18.109.6.193]) (authenticated bits=0) by pantheon-po35.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id n6BFd22H008025 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 11 Jul 2009 11:39:02 -0400 Received: by furry (Postfix, from userid 1000) id 299B5C09B; Sat, 11 Jul 2009 10:27:47 -0400 (EDT) From: Chong Yidong To: Kenichi Handa Cc: 3809@debbugs.gnu.org Date: Sat, 11 Jul 2009 10:27:47 -0400 Message-ID: <87zlbbz44c.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) > My Emacs (compiled with CFLAGS='-g -DENABLE_CHECKING') has > just crashed as this: > > % 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. I can't reproduce this, even with CFLAGS='-g -DENABLE_CHECKING'. But, you're right about this: > In the above code, at least we should have a ckeck of > SYMBOLP (sym). Could you go ahead and add this check, and if this fixes the crash for you, please close the bug. Thanks. From unknown Sun Aug 10 08:07:41 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: owner@emacsbugs.donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Kenichi Handa Subject: bug#3809 closed by Kenichi Handa (Re: bug#3809: 23.1.50; crash in abbrev mode) Message-ID: References: X-Emacs-PR-Message: they-closed 3809 X-Emacs-PR-Package: emacs Reply-To: 3809@debbugs.gnu.org Date: Mon, 13 Jul 2009 01:35:06 +0000 Content-Type: multipart/mixed; boundary="----------=_1247448906-16854-1" This is a multi-part message in MIME format... ------------=_1247448906-16854-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #3809: 23.1.50; crash in abbrev mode It has been closed by Kenichi Handa . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Kenichi Handa by replying to this email. --=20 3809: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D3809 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1247448906-16854-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 3809-done) by emacsbugs.donarmstrong.com; 13 Jul 2009 01:29:07 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.3 required=4.0 tests=AWL,HAS_BUG_NUMBER, SPF_HELO_PASS autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mx1.aist.go.jp (mx1.aist.go.jp [150.29.246.133]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6D1T0QC016019 for <3809-done@emacsbugs.donarmstrong.com>; Sun, 12 Jul 2009 18:29:04 -0700 Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id n6D1SwFR018157; Mon, 13 Jul 2009 10:28:58 +0900 (JST) env-from (handa@m17n.org) Received: from smtp4.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id n6D1SwmW019102; Mon, 13 Jul 2009 10:28:58 +0900 (JST) env-from (handa@m17n.org) Received: by smtp4.aist.go.jp with ESMTP id n6D1SuRV025234; Mon, 13 Jul 2009 10:28:56 +0900 (JST) env-from (handa@m17n.org) Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1MQALg-000309-CR; Mon, 13 Jul 2009 10:28:56 +0900 From: Kenichi Handa To: Chong Yidong Cc: 3809-done@debbugs.gnu.org Subject: Re: bug#3809: 23.1.50; crash in abbrev mode In-Reply-To: <87zlbbz44c.fsf@stupidchicken.com> (message from Chong Yidong on Sat, 11 Jul 2009 10:27:47 -0400) References: <87zlbbz44c.fsf@stupidchicken.com> Date: Mon, 13 Jul 2009 10:28:56 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In article <87zlbbz44c.fsf@stupidchicken.com>, Chong Yidong writes: > > My Emacs (compiled with CFLAGS='-g -DENABLE_CHECKING') has > > just crashed as this: > > > > % 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. > I can't reproduce this, even with CFLAGS='-g > -DENABLE_CHECKING'. Perhaps, that's because you don't have any alias settings in ~/.mailrc. > But, you're right about this: > > In the above code, at least we should have a ckeck of > > SYMBOLP (sym). > Could you go ahead and add this check, and if this fixes the crash for > you, please close the bug. Thanks. Ok. Just done. --- Kenichi Handa handa@m17n.org ------------=_1247448906-16854-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 10 Jul 2009 12:22:38 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.2 required=4.0 tests=AWL,FOURLA,IMPRONONCABLE_2 autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 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 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 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 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 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) 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) 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) 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 From: Kenichi Handa To: emacs-pretest-bug@gnu.org Subject: 23.1.50; crash in abbrev mode Date: Fri, 10 Jul 2009 21:22:20 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: Solaris 9 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. ------------=_1247448906-16854-1--