unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Tassilo Horn <tsdh@gnu.org>
Cc: eggert@cs.ucla.edu, 12814@debbugs.gnu.org
Subject: bug#12814: 24.3.50; Emacs crash in event_to_kboard at keyboard.c:3421
Date: Wed, 07 Nov 2012 19:17:31 +0200	[thread overview]
Message-ID: <83obj91ges.fsf@gnu.org> (raw)
In-Reply-To: <87bof93ane.fsf@thinkpad.tsdh.de>

> From: Tassilo Horn <tsdh@gnu.org>
> Cc: eggert@cs.ucla.edu,  12814@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.





  reply	other threads:[~2012-11-07 17:17 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-06 10:56 bug#12814: 24.3.50; Emacs crash in event_to_kboard at keyboard.c:3421 Tassilo Horn
2012-11-06 15:13 ` Tassilo Horn
2012-11-06 16:16   ` Eli Zaretskii
2012-11-06 18:11     ` Tassilo Horn
2012-11-06 18:27       ` Tassilo Horn
2012-11-06 19:08         ` Eli Zaretskii
2012-11-06 20:01           ` Tassilo Horn
2012-11-06 20:21             ` Eli Zaretskii
2012-11-06 20:50               ` Paul Eggert
2012-11-06 20:54                 ` Tassilo Horn
2012-11-06 21:04                   ` Paul Eggert
2012-11-06 21:20                     ` Tassilo Horn
2012-11-06 21:29                   ` Eli Zaretskii
2012-11-07 11:39                     ` Tassilo Horn
2012-11-07 17:17                       ` Eli Zaretskii [this message]
2012-11-07 18:45                         ` Tassilo Horn
2012-11-07 19:19                           ` Eli Zaretskii
2012-11-08  7:56                             ` Tassilo Horn
2012-11-08  9:30                               ` Dmitry Antipov
2012-11-08 10:55                                 ` Tassilo Horn
2012-11-12  7:34                                   ` Tassilo Horn
2012-11-06 21:27                 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83obj91ges.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=12814@debbugs.gnu.org \
    --cc=eggert@cs.ucla.edu \
    --cc=tsdh@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).