Subject: bug#12814: 24.3.50; Emacs crash in event_to_kboard at keyboard.c:3421

From: Tassilo Horn <[email-masked]>
Date: Wed, 07 Nov 2012 19:45:21 +0100

Eli Zaretskii <[email-masked]> writes:

Hi Eli,

the next crash occured.  This time not while typing but while scrolling
(<down>) in an info buffer.

>> (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:

--8<---------------cut here---------------start------------->8---
Program received signal SIGSEGV, Segmentation fault.
0x00000000005437a4 in event_to_kboard (event=0xbd2ca0 <kbd_buffer+94272>)
    at keyboard.c:3421
3421	  if (WINDOWP (obj))
(gdb) p obj
$1 = 2922261
(gdb) xtype
Lisp_Vectorlike
Cannot access memory at address 0x2c9710
(gdb) xvector
$2 = (struct Lisp_Vector *) 0x2c9710
Cannot access memory at address 0x2c9710
(gdb) p *event
$3 = {
  kind = SELECTION_REQUEST_EVENT, 
  code = 54395952, 
  part = 23068704, 
  modifiers = 0, 
  x = 400, 
  y = 322, 
  timestamp = 356, 
  frame_or_window = 2922261, 
  arg = 12766914
}
(gdb) p event->arg
$4 = 12766914
(gdb) xtype
Lisp_Symbol
(gdb) xsymbol
$5 = (struct Lisp_Symbol *) 0xc2cec0
"nil"
(gdb) p event->code
$6 = 54395952
(gdb) xtype
Lisp_Int0
(gdb) xint
$7 = 13598988
(gdb) p event->part
$8 = 23068704
(gdb) xtype
Lisp_Int0
(gdb) xint
$9 = 5767176
(gdb) p event->frame_or_window
$10 = 2922261
(gdb) xtype
Lisp_Vectorlike
Cannot access memory at address 0x2c9710
(gdb) xvector 
$11 = (struct Lisp_Vector *) 0x2c9710
Cannot access memory at address 0x2c9710
--8<---------------cut here---------------end--------------->8---

Bye,
Tassilo