GNU bug report logs - #12814
24.3.50; Emacs crash in event_to_kboard at keyboard.c:3421

Previous Next

Package: emacs;

Reported by: Tassilo Horn <thorn <at> fastmail.fm>

Date: Tue, 6 Nov 2012 11:00:01 UTC

Severity: normal

Found in version 24.3.50

Done: Tassilo Horn <tsdh <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #50 received at 12814 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Tassilo Horn <tsdh <at> gnu.org>
Cc: eggert <at> cs.ucla.edu, 12814 <at> debbugs.gnu.org
Subject: Re: bug#12814: 24.3.50;
	Emacs crash in event_to_kboard at keyboard.c:3421
Date: Wed, 07 Nov 2012 19:17:31 +0200
> From: Tassilo Horn <tsdh <at> gnu.org>
> Cc: eggert <at> cs.ucla.edu,  12814 <at> debbugs.gnu.org
> Date: Wed, 07 Nov 2012 12:39:01 +0100
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x00000000005437a4 in event_to_kboard (event=0xbc0660 <kbd_buffer+18944>)
>     at keyboard.c:3421
> 3421	  if (WINDOWP (obj))
> (gdb) p obj
> $1 = 7652357
> (gdb) xtype 
> Lisp_Vectorlike
> Cannot access memory at address 0x74c400

Hmm... probably a window or frame that were deleted and recycled.

> Program received signal SIGSEGV, Segmentation fault.
> 0x00000000005437a4 in event_to_kboard (event=0xbc0660 <kbd_buffer+18944>)
>     at keyboard.c:3421
> 3421	  if (WINDOWP (obj))
> (gdb) p obj
> $1 = 7652357
> (gdb) xtype 
> Lisp_Vectorlike
> Cannot access memory at address 0x74c400
> (gdb) bt full
> #0  0x00000000005437a4 in event_to_kboard (event=0xbc0660 <kbd_buffer+18944>)
>     at keyboard.c:3421
>         obj = 7652357

So what kind of event is this?  Try these commands:

 (gdb) p *event
 (gdb) p event->arg
 (gdb) xtype

The last command will probably say it's a cons cell, in which case you
can use the "xcar" and "xcdr" commands to show the contents.  For each
component, type "xtype" followed by the command suitable for the type
that is shown: "xstring" for a string, "xsymbol" for a symbol, etc.

(Usually, just "pp event->arg" would display the whole thing, but it
is dangerous to use that command in a crashed session, you could screw
up the entire debugging session.)

Thanks.




This bug report was last modified 12 years and 255 days ago.

Previous Next


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