From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: assertion failed: c == event->code Date: Fri, 14 Dec 2007 09:24:15 +0000 Message-ID: <47624BBF.4000602@gnu.org> References: <47613EC3.7020004@gnu.org> <47615FD1.5080009@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1197625574 23643 80.91.229.12 (14 Dec 2007 09:46:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Dec 2007 09:46:14 +0000 (UTC) Cc: Stefan Monnier , Emacs-Devel To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 14 10:46:25 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J377g-0002Db-Qh for ged-emacs-devel@m.gmane.org; Fri, 14 Dec 2007 10:46:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J377O-00073W-EX for ged-emacs-devel@m.gmane.org; Fri, 14 Dec 2007 04:46:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J36mN-0004z1-U3 for emacs-devel@gnu.org; Fri, 14 Dec 2007 04:24:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J36mM-0004yO-3Z for emacs-devel@gnu.org; Fri, 14 Dec 2007 04:24:23 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J36mK-0004xo-WE for emacs-devel@gnu.org; Fri, 14 Dec 2007 04:24:21 -0500 Original-Received: from mk-outboundfilter-3-a-1.mail.uk.tiscali.com ([212.74.114.7]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J36mK-0007Cr-ML for emacs-devel@gnu.org; Fri, 14 Dec 2007 04:24:20 -0500 Original-X-Trace: 1022161/mk-outboundfilter-1.mail.uk.tiscali.com/F2S/$ACCEPTED/freedom2Surf-customers/83.67.23.108 X-SBRS: None X-RemoteIP: 83.67.23.108 X-IP-MAIL-FROM: jasonr@gnu.org X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAH/aYUdTQxds/2dsb2JhbAAIqSE Original-Received: from i-83-67-23-108.freedom2surf.net (HELO [192.168.249.28]) ([83.67.23.108]) by smtp.f2s.tiscali.co.uk with ESMTP/TLS/DHE-RSA-AES256-SHA; 14 Dec 2007 09:24:19 +0000 User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) In-Reply-To: X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:85144 Archived-At: Juanma Barranquero wrote: > On Dec 13, 2007 5:37 PM, Jason Rumney wrote: > > I can try to debug it, if you explain to me what to look for and where. > If you reproduce the bug, you get this backtrace: keyboard.c:5548: Emacs fatal error: assertion failed: c == event->code Breakpoint 1, w32_abort () at w32fns.c:9127 9127 button = MessageBox (NULL, (gdb) bt #0 w32_abort () at w32fns.c:9127 #1 0x0101f2fb in die (msg=0x13598f8 "assertion failed: c == event->code", file=0x135686a "keyboard.c", line=5548) at alloc.c:6287 #2 0x01091bfc in read_char (commandflag=1, nmaps=2, maps=0x82fb70, prev_event=25171969, used_mouse_menu=0x82fc18, end_time=0x0) at keyboard.c:5548 #3 0x010928d1 in read_key_sequence (keybuf=0x82fce4, bufsize=30, prompt=25171969, dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1) at keyboard.c:9459 "frame 2" takes you to the point in keyboard.c where the assertion was triggered. "print c", "print event->code" will print the values of the respective variables. >From there, you can go further up the stack and print other related variables to see where event->code became greater than 0xff.