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

From: Eli Zaretskii <[email-masked]>
Date: Tue, 06 Nov 2012 21:08:55 +0200

> From: Tassilo Horn <[email-masked]>
> Cc: [email-masked]
> Date: Tue, 06 Nov 2012 19:27:46 +0100
> 
> Tassilo Horn <[email-masked]> writes:
> 
> >>> 3421	  if (WINDOWP (obj))
> >>
> >> What is 'obj' here?  Why does it cause a segfault?
> >
> > I'll tell you the next time the crash occurs.  Shouldn't take too
> > long.
> 
> Um, it's an integer (which is also visible in the other backtraces).
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x0000000000543714 in event_to_kboard (event=0xbd2ba0 <kbd_buffer+98112>)
>     at keyboard.c:3421
> 3421	  if (WINDOWP (obj))
> (gdb) p obj
> $1 = 1666821

All Lisp objects look like integers, but aren't.  What does "xtype"
say about it?  Like this:

 (gdb) p obj
 (gdb) xtype