From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Richard Newsgroups: gmane.emacs.bugs Subject: bug#21633: 25.0.50; assertion failure, self-insert-command with negative argument Date: Tue, 06 Oct 2015 11:11:58 +0200 Message-ID: <87k2r0cqe9.fsf@members.fsf.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1444123163 15114 80.91.229.3 (6 Oct 2015 09:19:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Oct 2015 09:19:23 +0000 (UTC) To: 21633@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 06 11:19:10 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZjOOr-0007rw-0D for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Oct 2015 11:19:09 +0200 Original-Received: from localhost ([::1]:49768 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjOOq-0002cq-IV for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Oct 2015 05:19:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjOOn-0002cg-SR for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2015 05:19:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZjOOk-0007vv-L9 for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2015 05:19:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38740) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjOOk-0007vp-IV for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2015 05:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZjOOk-0005l6-83 for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2015 05:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nicolas Richard Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Oct 2015 09:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21633 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.144412310522088 (code B ref -1); Tue, 06 Oct 2015 09:19:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Oct 2015 09:18:25 +0000 Original-Received: from localhost ([127.0.0.1]:55944 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZjOO9-0005kB-2J for submit@debbugs.gnu.org; Tue, 06 Oct 2015 05:18:25 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52829) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZjOO8-0005k4-43 for submit@debbugs.gnu.org; Tue, 06 Oct 2015 05:18:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZjOO7-0007OQ-76 for submit@debbugs.gnu.org; Tue, 06 Oct 2015 05:18:24 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:51707) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjOO7-0007OM-45 for submit@debbugs.gnu.org; Tue, 06 Oct 2015 05:18:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34586) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjOO6-0002aI-2d for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2015 05:18:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZjOO2-0007H9-Rb for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2015 05:18:22 -0400 Original-Received: from mxin.ulb.ac.be ([164.15.128.112]:22935) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjOO2-0007EY-La for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2015 05:18:18 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqEIAKyQE1akD4Xx/2dsb2JhbABeglWBJm6pQwEBAQEBAQYFljQZiAYBAQEBAQGBC4U8JDQBBIkKmlmkIoYsinCEFwWHNYcEhwtAlheSbmOBSgwBOh2BVjwziD8BAQE Original-Received: from mathsrv4.ulb.ac.be (HELO localhost) ([164.15.133.241]) by smtp.ulb.ac.be with ESMTP; 06 Oct 2015 11:11:19 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:107359 Archived-At: Using the build mentionned below (i.e. built today) : emacs -Q Hit: C-- * (or C-- C-1 *) => crash (assertion failed) Here's my gdb session, when setting a breakpoint : Breakpoint 3, Fself_insert_command (n=9223372036854775807) at cmds.c:308 308 CHECK_NUMBER (n); (gdb) p n $10 = 9223372036854775807 (gdb) xpr Lisp_Int1 $11 = -1 (gdb) p CHECK_NUMBER (n) $12 = void (gdb) n 310 if (XFASTINT (n) < 0) (gdb) p XFASTINT (n) $13 = 4611686018427387903 (gdb) xpr Lisp_Misc warning: value truncated Cannot access memory at address 0xffffffff At this point I realize I understand nothing about C and gdb. Anyway, I say "next" and see that the above `if' statement failed to find the obvious error : (gdb) n 313 if (XFASTINT (n) < 2) (gdb) l 308 CHECK_NUMBER (n); 309 310 if (XFASTINT (n) < 0) 311 error ("Negative repetition argument %"pI"d", XFASTINT (n)); 312 313 if (XFASTINT (n) < 2) 314 remove_excessive_undo_boundaries (); 315 316 /* Barf if the key that invoked this was not a character. */ 317 if (!CHARACTERP (last_command_event)) (gdb) Now I don't know what to do. In GNU Emacs 25.0.50.2 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2015-10-06 Repository revision: 25b4572073179c8d6dc980ce2df3db4d96cd692f Windowing system distributor 'The X.Org Foundation', version 11.0.11604000 System Description: Gentoo Base System release 2.2 Configured using: 'configure --with-x-toolkit=lucid --enable-checking --with-wide-int 'CFLAGS= -O0 -g3'' Configured features: XAW3D XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 Important settings: value of $LANG: fr_FR.UTF-8 locale-coding-system: utf-8-unix -- Nicolas Richard