From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#9723: 24.0.50; Emacs Clipboard crash Date: Fri, 28 Oct 2011 11:38:55 +0200 Message-ID: <834nytbgls.fsf@gnu.org> References: <81B49A9E5708D84A96259A96D480EE4902A4F888DE@CHC-CCR01.SEA.CORP.EXPECN.COM> <81B49A9E5708D84A96259A96D480EE4902A4F88DED@CHC-CCR01.SEA.CORP.EXPECN.COM> <83d3e3xvl5.fsf@gnu.org> <81B49A9E5708D84A96259A96D480EE4902A4F88EFC@CHC-CCR01.SEA.CORP.EXPECN.COM> <83aa97xrqi.fsf@gnu.org> <81B49A9E5708D84A96259A96D480EE4902A504B784@CHC-CCR01.SEA.CORP.EXPECN.COM> <83pqhzjvoi.fsf@gnu.org> <81B49A9E5708D84A96259A96D480EE4902A50E421A@CHC-CCR01.SEA.CORP.EXPECN.COM> <83mxd3jm3l.fsf@gnu.org> <81B49A9E5708D84A96259A96D480EE4902A50E49DF@CHC-CCR01.SEA.CORP.EXPECN.COM> <8362jnwlne.fsf@gnu.org> <81B49A9E5708D84A96259A96D480EE4902A524911A@CHC-CCR01.SEA.CORP.EXPECN.COM> <834nz7wjwp.fsf@gnu.org> <81B49A9E5708D84A96259A96D480EE4902A52492F6@CHC-CCR01.SEA.CORP.EXPECN.COM> <83y5wjuze5.fsf@gnu.org> <81B49A9E5708D84A96259A96D480EE4902A5249332@CHC-CCR01.SEA.CORP.EXPECN.COM> <83wrc3ufp8.fsf@gnu.org> <81B49A9E5708D84A96259A96D480EE4902A5390073@CHC-CCR01.SEA.CORP.EXPECN.COM> <838voesp9w.fsf@gnu.org> <837h3yso46.fsf@gnu.org> <81B49A9E5708D84A96259A96D480EE4902A5390492@CHC-CCR01.SEA.CORP.EXPECN.COM> <83r526qoth.fsf@gnu.org> <81B49A9E5708D84A96259A96D480EE4902A55ADB0A@CHC-CCR01.SEA.CORP.EXPECN.COM> <8362jbd3fh.fsf@gnu.org> <81B49A9E5708D84A96259A96D480EE4902A55AE167@CHC-CCR01.SEA.CORP.EXPECN.COM> <81B49A9E5708D84A96259A96D480EE4902A55AE452@CHC-CCR01.SEA.CORP.EXPECN.COM> <83pqhibajf.fsf@gnu.org> <81B49A9E5708D84A96259A96D480EE4902A55AE597@CHC-CCR01.SEA.CORP.EXPECN.COM> <83mxcmb96n.fsf@gnu.org> <81B49A9E5708D84A96259A96D480EE4902A55AE64B@CHC-CCR01.SEA.CORP.EXPECN.COM> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: dough.gmane.org 1319794823 25174 80.91.229.12 (28 Oct 2011 09:40:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 28 Oct 2011 09:40:23 +0000 (UTC) Cc: 9723@debbugs.gnu.org To: Joseph Jones Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 28 11:40:15 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RJiv9-0007Hy-9H for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Oct 2011 11:40:15 +0200 Original-Received: from localhost ([::1]:56913 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJiv8-0000tO-TJ for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Oct 2011 05:40:14 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:47504) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJiv5-0000tG-Ig for bug-gnu-emacs@gnu.org; Fri, 28 Oct 2011 05:40:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJiv4-0002ho-CL for bug-gnu-emacs@gnu.org; Fri, 28 Oct 2011 05:40:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35927) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJiv3-0002hk-TQ for bug-gnu-emacs@gnu.org; Fri, 28 Oct 2011 05:40:10 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RJiws-0002lV-F9 for bug-gnu-emacs@gnu.org; Fri, 28 Oct 2011 05:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Oct 2011 09:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9723 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9723-submit@debbugs.gnu.org id=B9723.131979489710595 (code B ref 9723); Fri, 28 Oct 2011 09:42:02 +0000 Original-Received: (at 9723) by debbugs.gnu.org; 28 Oct 2011 09:41:37 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RJiwT-0002kq-0N for submit@debbugs.gnu.org; Fri, 28 Oct 2011 05:41:37 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RJiwP-0002kg-Mb for 9723@debbugs.gnu.org; Fri, 28 Oct 2011 05:41:35 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LTR00L00S472M00@a-mtaout21.012.net.il> for 9723@debbugs.gnu.org; Fri, 28 Oct 2011 11:38:46 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.124.212.197]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LTR00KWGS4LY240@a-mtaout21.012.net.il>; Fri, 28 Oct 2011 11:38:46 +0200 (IST) In-reply-to: <81B49A9E5708D84A96259A96D480EE4902A55AE64B@CHC-CCR01.SEA.CORP.EXPECN.COM> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 28 Oct 2011 05:42:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:53240 Archived-At: > From: Joseph Jones > CC: "9723@debbugs.gnu.org" <9723@debbugs.gnu.org> > Date: Thu, 27 Oct 2011 11:28:31 -0700 >=20 > Yes. Ctrl+h b is tied to ido-switch-buffer >=20 >=20 > (gdb) print byte_stack_list > $1 =3D (struct byte_stack *) 0x440 > (gdb) print stack > $2 =3D { > pc =3D 0x58801d7 "", > byte_string =3D 59862065, > byte_string_start =3D 0x5880188 "=E2=95=9E\030=E2=95=9F=E2=95= =9A \"\210=E2=95=9E=E2=95=94=E2=95=A9\217\210\b=C3=A2\032", > constants =3D 59899269, > next =3D 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 =3D (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 =3D &stack while $st printf "0x%x =3D> ", $st->byte_string xgetptr ($st->byte_string) set $x =3D (struct Lisp_String *) $ptr xprintstr1 $x echo \n set $st =3D $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 som= e of the commands defined there, so if this is a new session, source =2Egdbinit first.