GNU bug report logs - #4567
console mode assertion failure on keyboard.c (c == event->code)

Previous Next

Packages: emacs, w32;

Reported by: Juanma Barranquero <lekktu <at> gmail.com>

Date: Sun, 27 Sep 2009 23:35:06 UTC

Severity: serious

Done: Jason Rumney <jasonr <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 4567 in the body.
You can then email your comments to 4567 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com:
bug#4567; Package emacs,w32. (Sun, 27 Sep 2009 23:35:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Juanma Barranquero <lekktu <at> gmail.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com.

Your message had a Version: pseudo-header with an invalid package version:

23.1,23.1.50

please either use found or fixed to the control server with a correct version, or reply to this report indicating the correct version so the maintainer (or someone else) can correct it for you.

(Sun, 27 Sep 2009 23:35:06 GMT) Full text and rfc822 format available.


Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Emacs Bug Tracker <submit <at> debbugs.gnu.org>
Subject: console mode assertion failure on keyboard.c (c == event->code)
Date: Mon, 28 Sep 2009 01:29:29 +0200
Package: emacs,w32
Version: 23.1,23.1.50

This happens on Windows; code page is 437 or 850.

emacs -Q -nw
ñ             ;; or ç, º, etc; any non-ASCII character in the keyboard

keyboard.c:5548: Emacs fatal error: assertion failed: c == event->code

Breakpoint 1, w32_abort () at w32fns.c:7344
7344      button = MessageBox (NULL,
(gdb) bt
#0  w32_abort () at w32fns.c:7344
#1  0x0104d032 in die (msg=0x14f5970 "assertion failed: c ==
event->code", file=0x14ed02c "keyboard.c", line=5548) at alloc.c:6254
#2  0x01012fac in make_lispy_event (event=0x160e1d0) at keyboard.c:5548
#3  0x010112e5 in kbd_buffer_get_event (kbp=0x82f69c,
used_mouse_menu=0x82fa04, end_time=0x0) at keyboard.c:4312
#4  0x0100d511 in read_char (commandflag=1, nmaps=2, maps=0x82f820,
prev_event=48273409, used_mouse_menu=0x82fa04, end_time=0x0)
    at keyboard.c:3059
#5  0x0101eb2a in read_key_sequence (keybuf=0x82fc4c, bufsize=30,
prompt=48273409, dont_downcase_last=0, can_return_switch_frame=1,
    fix_current_buffer=1) at keyboard.c:9461
#6  0x01007a9a in command_loop_1 () at keyboard.c:1640
#7  0x01039cba in internal_condition_case (bfun=0x1007276
<command_loop_1>, handlers=48337089, hfun=0x10069ec <cmd_error>) at
eval.c:1513
#8  0x01006e85 in command_loop_2 () at keyboard.c:1357
#9  0x01039713 in internal_catch (tag=48333209, func=0x1006e65
<command_loop_2>, arg=48273409) at eval.c:1249
#10 0x01006e3c in command_loop () at keyboard.c:1336
#11 0x01006143 in recursive_edit_1 () at keyboard.c:951
#12 0x01006618 in Frecursive_edit () at keyboard.c:1013
#13 0x01002a8d in main (argc=3, argv=0xa92808) at emacs.c:1827
(gdb) frame 2
#2  0x01012fac in make_lispy_event (event=0x160e1d0) at keyboard.c:5548
5548                eassert (c == event->code);
(gdb) p c
$1 = 164
(gdb) p event->code
$2 = -92
(gdb)



Severity set to 'serious' from 'normal' Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> debbugs.gnu.org. (Mon, 25 Jan 2010 23:26:02 GMT) Full text and rfc822 format available.

Reply sent to Jason Rumney <jasonr <at> gnu.org>:
You have taken responsibility. (Wed, 27 Jan 2010 23:27:02 GMT) Full text and rfc822 format available.

Notification sent to Juanma Barranquero <lekktu <at> gmail.com>:
bug acknowledged by developer. (Wed, 27 Jan 2010 23:27:02 GMT) Full text and rfc822 format available.

Message #12 received at 4567-done <at> debbugs.gnu.org (full text, mbox):

From: Jason Rumney <jasonr <at> gnu.org>
To: 4567-done <at> debbugs.gnu.org
Subject: Keyboard input on w32 console fixed
Date: Thu, 28 Jan 2010 07:26:14 +0800

> I'm the only one that sees #4567, an assertion failure on console mode
> on Windows?

I've fixed this by using Unicode for keyboard input and marking
characters above 127 as MULTIBYTE rather than ASCII.




bug archived. Request was from Debbugs Internal Request <bug-gnu-emacs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 25 Feb 2010 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 198 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.