GNU bug report logs - #9723
24.0.50; Emacs Clipboard crash

Previous Next

Package: emacs;

Reported by: Joseph Jones <josejones <at> expedia.com>

Date: Mon, 10 Oct 2011 23:43:02 UTC

Severity: normal

Found in version 24.0.50

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Joseph Jones <josejones <at> expedia.com>
Cc: 9723 <at> debbugs.gnu.org
Subject: Re: bug#9723: 24.0.50; Emacs Clipboard crash
Date: Fri, 28 Oct 2011 11:38:55 +0200
> From: Joseph Jones <josejones <at> expedia.com>
> CC: "9723 <at> debbugs.gnu.org" <9723 <at> debbugs.gnu.org>
> Date: Thu, 27 Oct 2011 11:28:31 -0700
> 
> Yes. Ctrl+h b is tied to ido-switch-buffer
> 
> 
> (gdb) print byte_stack_list
> $1 = (struct byte_stack *) 0x440
> (gdb) print stack
> $2 = {
>   pc = 0x58801d7 "",
>   byte_string = 59862065,
>   byte_string_start = 0x5880188 "╞\030╟╚        \"\210╞╔╩\217\210\bâ\032",
>   constants = 59899269,
>   next = 0x82eca4
> }
> (gdb)

So byte_stack_list isn't NULL, but is nevertheless garbage.
Hmm... some snafu during GC, perhaps?

If you still have that session in GDB, please copy the following two
functions to a file:

---------------------- cut here ----------------------
define xprintstr1
  set $data = (char *) $arg0->data
  output/c ($arg0->size > 1000) ? 0 : ($data[0])@($arg0->size_byte < 0 ? $arg0->size & ~gdb_array_mark_flag : $arg0->size_byte)
end

define xbytestack
  set $st = &stack
  while $st
    printf "0x%x => ", $st->byte_string
    xgetptr ($st->byte_string)
    set $x = (struct Lisp_String *) $ptr
    xprintstr1 $x
    echo \n
    set $st = $st->next
  end
end
---------------------- cut here ----------------------

Let's say the file's name is `foo', then type "source foo" at GDB
prompt, and then type these two commands:

  (gdb) frame 0
  (gdb) xbytestack

This must be _after_ you source .gdbinit, because xbytestack uses some
of the commands defined there, so if this is a new session, source
.gdbinit first.






This bug report was last modified 13 years and 7 days ago.

Previous Next


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