From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Herbert Euler Newsgroups: gmane.emacs.bugs Subject: bug#3794: Error in json from gdb-ui Date: Thu, 9 Jul 2009 20:14:27 +0800 Message-ID: Reply-To: Herbert Euler , 3794@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="_848dc0c8-68f9-4201-8f64-e853ada3301d_" X-Trace: ger.gmane.org 1247143096 15195 80.91.229.12 (9 Jul 2009 12:38:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Jul 2009 12:38:16 +0000 (UTC) To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 09 14:38:08 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MOst4-0005zW-3I for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Jul 2009 14:38:06 +0200 Original-Received: from localhost ([127.0.0.1]:42650 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOst3-0003G3-Fg for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Jul 2009 08:38:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MOssY-0002rq-G5 for bug-gnu-emacs@gnu.org; Thu, 09 Jul 2009 08:37:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MOssT-0002nk-KA for bug-gnu-emacs@gnu.org; Thu, 09 Jul 2009 08:37:34 -0400 Original-Received: from [199.232.76.173] (port=43791 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOssT-0002nU-Eu for bug-gnu-emacs@gnu.org; Thu, 09 Jul 2009 08:37:29 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:52307) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MOssS-00060h-V0 for bug-gnu-emacs@gnu.org; Thu, 09 Jul 2009 08:37:29 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n69CbQeF026769; Thu, 9 Jul 2009 05:37:27 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n69CK4lY023919; Thu, 9 Jul 2009 05:20:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Herbert Euler Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 09 Jul 2009 12:20:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 3794 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124714168023029 (code B ref -1); Thu, 09 Jul 2009 12:20:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 9 Jul 2009 12:14:40 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n69CEYf7023023 for ; Thu, 9 Jul 2009 05:14:36 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MOsWI-0007bS-CI for bug-gnu-emacs@gnu.org; Thu, 09 Jul 2009 08:14:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MOsWD-0007Ra-Hh for bug-gnu-emacs@gnu.org; Thu, 09 Jul 2009 08:14:33 -0400 Original-Received: from [199.232.76.173] (port=44475 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOsWD-0007RQ-E4 for bug-gnu-emacs@gnu.org; Thu, 09 Jul 2009 08:14:29 -0400 Original-Received: from bay0-omc2-s40.bay0.hotmail.com ([65.54.246.176]:38429) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MOsWC-00024O-RK for bug-gnu-emacs@gnu.org; Thu, 09 Jul 2009 08:14:29 -0400 Original-Received: from BAY143-W19 ([65.55.154.54]) by bay0-omc2-s40.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 9 Jul 2009 05:14:28 -0700 X-Originating-IP: [124.127.101.0] Importance: Normal X-OriginalArrivalTime: 09 Jul 2009 12:14:28.0192 (UTC) FILETIME=[CE6A7600:01CA008E] X-detected-operating-system: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 09 Jul 2009 08:37:33 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:29274 Archived-At: --_848dc0c8-68f9-4201-8f64-e853ada3301d_ Content-Type: multipart/alternative; boundary="_e2deff4e-24f6-406d-8616-eacd29f4fbeb_" --_e2deff4e-24f6-406d-8616-eacd29f4fbeb_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Package: emacs Version: 23.1.50.11 (This is the CVS HEAD version of emacs.) I tried M-x gdb to run emacs under gdb. The command line was gdb -i=3Dmi ~/src/emacs/src/emacs and I got the error '(json-object-format ":" 44). Here is the backtrace: Debugger entered--Lisp error: (json-object-format ":" 44) signal(json-object-format (":" 44)) json-read-object() apply(json-read-object nil) json-read() json-read-object() apply(json-read-object nil) json-read() json-read-array() apply(json-read-array nil) json-read() json-read-object() apply(json-read-object nil) json-read() json-read-object() apply(json-read-object nil) json-read() json-partial-output("bkpt") gdb-breakpoints-list-handler-custom() gdb-breakpoints-list-handler() gdb-done-or-error("BreakpointTable=3D{nr_rows=3D\"2\"=2Cnr_cols=3D\"6\"= =2Chdr=3D[{width=3D\"7\"=2Calignment=3D\... gud-gdbmi-marker-filter("colhdr=3D\"Address\"}=2C{width=3D\"40\"=2Calignm= ent=3D\"2\"=2Ccol_name=3D\"what\"=2C... apply(gud-gdbmi-marker-filter "colhdr=3D\"Address\"}=2C{width=3D\"40\"=2C= alignment=3D\"2\"=2Ccol_name=3D\"w... gud-marker-filter("colhdr=3D\"Address\"}=2C{width=3D\"40\"=2Calignment=3D= \"2\"=2Ccol_name=3D\"what\"=2Ccolhdr... gud-filter(# "colhdr=3D\"Address\"}=2C{width=3D\"40\"= =2Calignment=3D\"2\"=2Ccol_name=3D\... The content of buffer *partial-output-emacs* is attached=2C evaluating (let ((json-array-type 'list)) (json-read)) reproduces the error. The above expression is the last one of `json-partia= l-output' in gdb-mi.el Regards=2C Guanpeng Xu _________________________________________________________________ Drag n=92 drop=97Get easy photo sharing with Windows Live=99 Photos. http://www.microsoft.com/windows/windowslive/products/photos.aspx= --_e2deff4e-24f6-406d-8616-eacd29f4fbeb_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Package: emacs
Version: 23.1.50.11

(This is the CVS HEAD version = of emacs.)

I tried M-x gdb to run emacs under gdb. =3B The comma= nd line was

 =3B gdb -i=3Dmi ~/src/emacs/src/emacs

and I = got the error '(json-object-format ":" 44). =3B Here is the backtrace:<= br>
Debugger entered--Lisp error: (json-object-format ":" 44)
 = =3B signal(json-object-format (":" 44))
 =3B json-read-object()
&= nbsp=3B apply(json-read-object nil)
 =3B json-read()
 =3B jso= n-read-object()
 =3B apply(json-read-object nil)
 =3B json-re= ad()
 =3B json-read-array()
 =3B apply(json-read-array nil) =3B json-read()
 =3B json-read-object()
 =3B apply(jso= n-read-object nil)
 =3B json-read()
 =3B json-read-object() =3B apply(json-read-object nil)
 =3B json-read()
 =3B = json-partial-output("bkpt")
 =3B gdb-breakpoints-list-handler-custom= ()
 =3B gdb-breakpoints-list-handler()
 =3B gdb-done-or-error= ("BreakpointTable=3D{nr_rows=3D\"2\"=2Cnr_cols=3D\"6\"=2Chdr=3D[{width=3D\"= 7\"=2Calignment=3D\...
 =3B gud-gdbmi-marker-filter("colhdr=3D\"Addr= ess\"}=2C{width=3D\"40\"=2Calignment=3D\"2\"=2Ccol_name=3D\"what\"=2C... =3B apply(gud-gdbmi-marker-filter "colhdr=3D\"Address\"}=2C{width=3D\= "40\"=2Calignment=3D\"2\"=2Ccol_name=3D\"w...
 =3B gud-marker-filter= ("colhdr=3D\"Address\"}=2C{width=3D\"40\"=2Calignment=3D\"2\"=2Ccol_name=3D= \"what\"=2Ccolhdr...
 =3B gud-filter(#<=3Bprocess gud-emacs>=3B = "colhdr=3D\"Address\"}=2C{width=3D\"40\"=2Calignment=3D\"2\"=2Ccol_name=3D\= ...

The content of buffer *partial-output-emacs* is attached=2C eval= uating

 =3B (let ((json-array-type 'list)) (json-read))

r= eproduces the error. =3B The above expression is the last one of `json-= partial-output'
in gdb-mi.el

Regards=2C
Guanpeng Xu

<= hr />What can you do with the new Windows Live? Find out = --_e2deff4e-24f6-406d-8616-eacd29f4fbeb_-- --_848dc0c8-68f9-4201-8f64-e853ada3301d_ Content-Type: application/octet-stream Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="json-data" eyJCcmVha3BvaW50VGFibGUiOnsibnJfcm93cyI6IjIiLCJucl9jb2xzIjoiNiIsImhkciI6W3si d2lkdGgiOiI3IiwiYWxpZ25tZW50IjoiLTEiLCJjb2xfbmFtZSI6Im51bWJlciIsImNvbGhkciI6 Ik51bSJ9LHsid2lkdGgiOiIxNCIsImFsaWdubWVudCI6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