From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Zhongwei Yao Newsgroups: gmane.emacs.bugs Subject: bug#28392: 26.0.50; gdb-mi runs into error with tramp Date: Fri, 8 Sep 2017 18:52:48 +0800 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a11411b84bc3e920558ab60ce" X-Trace: blaine.gmane.org 1504879485 29763 195.159.176.226 (8 Sep 2017 14:04:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 8 Sep 2017 14:04:45 +0000 (UTC) To: 28392@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 08 16:04:32 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dqJtG-0006Ko-DF for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Sep 2017 16:04:15 +0200 Original-Received: from localhost ([::1]:45596 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqJtL-0006d0-9P for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Sep 2017 10:04:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44623) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqJt7-0006a8-CU for bug-gnu-emacs@gnu.org; Fri, 08 Sep 2017 10:04:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dqJt4-0004H1-85 for bug-gnu-emacs@gnu.org; Fri, 08 Sep 2017 10:04:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47405) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dqJt4-0004Gq-3O for bug-gnu-emacs@gnu.org; Fri, 08 Sep 2017 10:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dqJt3-00037q-QI for bug-gnu-emacs@gnu.org; Fri, 08 Sep 2017 10:04:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Zhongwei Yao Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Sep 2017 14:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28392 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.150487938511948 (code B ref -1); Fri, 08 Sep 2017 14:04:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Sep 2017 14:03:05 +0000 Original-Received: from localhost ([127.0.0.1]:56086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dqJs8-00036d-BV for submit@debbugs.gnu.org; Fri, 08 Sep 2017 10:03:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46992) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dqGuT-00058j-QS for submit@debbugs.gnu.org; Fri, 08 Sep 2017 06:53:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dqGuI-0001Vu-Ep for submit@debbugs.gnu.org; Fri, 08 Sep 2017 06:53:12 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:47382) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dqGuI-0001Vi-Bh for submit@debbugs.gnu.org; Fri, 08 Sep 2017 06:53:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37903) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqGuB-00019u-ET for bug-gnu-emacs@gnu.org; Fri, 08 Sep 2017 06:53:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dqGu4-0001NK-Ti for bug-gnu-emacs@gnu.org; Fri, 08 Sep 2017 06:52:59 -0400 Original-Received: from mail-lf0-x234.google.com ([2a00:1450:4010:c07::234]:36112) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dqGu4-0001MR-DP for bug-gnu-emacs@gnu.org; Fri, 08 Sep 2017 06:52:52 -0400 Original-Received: by mail-lf0-x234.google.com with SMTP id m199so4812375lfe.3 for ; Fri, 08 Sep 2017 03:52:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=x/z7Ljw0GM4WxfqCUbQXzLevHEY9EdWj3q86Nnx7NgA=; b=lpbhmYVPyeZ7KfnIwfFuF4tcUGCi6dRYL7lHs/UGJrPJjyrGw0+hLsgHvRGNjaNp3C y4l0NphiafkfQkzPg7WPszQvZy2kZ+M8U1GbsahV9S7a1hkPWwlhfvpTFM9mGDU5zwX5 6aI/dCJWGosmRIGQRB7YKukxyip8SYpVdWtX6hKpyyeahMBqPGiz+uFw79EM70p8cMvF vS7LQHirjJ0TI4saYFsYF6rifewqv3qTdKQLwEcFK2c7U7gW5dlU2JQnLkubmB/6mc7r nk94AjWnYIeUUUAtH4b+n8FtWFHJarQJK/mASF6PHD661Jp3pFmhaq3jxzVVDEt7zr/Q 4Jkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=x/z7Ljw0GM4WxfqCUbQXzLevHEY9EdWj3q86Nnx7NgA=; b=AO7GZhUzZ2ijBNG43AxouKb2wgRPS3OuSlyVnMrleEfvEWWLH4Q3bj3eLdZufVMUTa tGgD0SBQ5iZHks5fr3TbaUcre9jOCucWZHPk9EXFg/x4hK+iGEB1NezYkIuzawJq0T97 w+HzoF2kfpF8CsI1hXNDSHbRz7BUS78sBzi1u8Rps/sG+Gl1/LX0Hu/t2yhVwHBtCf2b LmrPy2HmSRrIzo7qfWaqA82q96Ei2cFQD8EQtEC1nMV7nosE8BcGDqK8+cS7rsvadcVK ALlmkq9uhFWjDoMTPZ9K3I2L5ft7Zg5e4As2J8GFtAoMMN3PQS6yxCmzQWCnGnhbcX1e +IgA== X-Gm-Message-State: AHPjjUhE8X29wEcSeiNxktfost8t/5zQKn5M22uxzhJa5yybRVHHa0mN PBCQKAs5HiCO+MXliBTAi89BffCvJ9XO27E= X-Google-Smtp-Source: AOwi7QAySNbSfWovCOw/eWyrgdEdHgIv1OEx3OJz9gyRtM1Lw+sgXcV3xJWpxv4759e3PM++uvvuUg7QSLJ7pmnkoUE= X-Received: by 10.46.71.72 with SMTP id u69mr752351lja.182.1504867969153; Fri, 08 Sep 2017 03:52:49 -0700 (PDT) Original-Received: by 10.25.42.87 with HTTP; Fri, 8 Sep 2017 03:52:48 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Fri, 08 Sep 2017 10:03:02 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:136684 Archived-At: --001a11411b84bc3e920558ab60ce Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable emacs runs on Mac with tramp . And I have a test project on a remote machine (dev-sever): /home/xxx/project/test_gdb/. It has a simple file: test.c. test.c is compiled by gcc with -O0 -g to test_bin. test.c: 1 int foo(int a, int b) { 2 int c =3D a + b; 3 return c; 4 } 5 6 int main(void) { 7 return foo(3, 4); 8 } Steps: 1. Open test.c on dev-server in emacs 2. run 'M-x gdb' gdb -i=3Dmi test_bin and open gdb-many-window mode. 3. In *gud-test* buffer, run: break 7 4. Run: run and gdb stop at line 7 5. Step into line 7 But the cursor of source buffer will not move at all. And then emacs become irresponsive after running several step commands. I press Ctrl-G several times. Then it returns error: json-read-string: Bad string format: "doesn't start with `\"'!" Here is the backtrace for above error: Debugger entered--Lisp error: (json-string-format "doesn't start with `\"'!") signal(json-string-format ("doesn't start with `\"'!")) json-read-string() json-read-object() apply(json-read-object nil) json-read() gdb-json-read-buffer(nil nil) gdb-json-partial-output() gdb-thread-list-handler-custom() gdb-thread-list-handler() apply(gdb-thread-list-handler nil) (save-current-buffer (set-buffer #) (apply (quote gdb-thread-list-handler) args)) (with-current-buffer # (apply (quote gdb-thread-list-handler) args)) (lambda (&rest args) (with-current-buffer # (apply (quote gdb-thread-list-handler) args)))() gdb-handle-reply(27) gdb-done-or-error("27" done "threads=3D[{id=3D\"1\",target-id=3D\"process 25128\",name=3D\"test\",frame=3D{level=3D\"0\",addr=3D\"0x00000000004004f4\= ",func=3D\"main\",args=3D[],file=3D\"test.c\",fullname=3D\"/home/xxx/projec= ts/tests/test_gdb/test.c\",line=3D\"7\"},state=3D\"stopped\",core=3D\"24\"}= ],current-thread-id=3D\"1\"" t) gdb-done("27" "threads=3D[{id=3D\"1\",target-id=3D\"process 25128\",name=3D\"test\",frame=3D{level=3D\"0\",addr=3D\"0x00000000004004f4\= ",func=3D\"main\",args=3D[],file=3D\"test.c\",fullname=3D\"/home/xxx/projec= ts/tests/test_gdb/test.c\",line=3D\"7\"},state=3D\"stopped\",core=3D\"24\"}= ],current-thread-id=3D\"1\"" t) gdbmi-bnf-incomplete-record-result("27" (gdb-done . progressive)) #[0 "\302\300\301\242\"\207" ["27" ((gdb-done . progressive)) gdbmi-bnf-incomplete-record-result] 3]() gdbmi-bnf-result-and-async-record-impl() gdbmi-bnf-async-record() gdbmi-bnf-out-of-band-record() gdbmi-bnf-output() gud-gdbmi-marker-filter("27^done,threads=3D[{id=3D\"1\",target-id=3D\"pro= cess 25128\",name=3D\"test\",frame=3D{level=3D\"0\",addr=3D\"0x00000000004004f4\= ",func=3D\"main\",args=3D[],file=3D\"test.c\",fullname=3D\"/home/xxx/projec= ts/tests/test_gdb/test.c\",line=3D\"7\"},state=3D\"stopped\",core=3D\"24\"}= ],current-thread-id=3D\"1\"\n(gdb) \n28^done,BreakpointTable=3D{nr_rows=3D\"1\",nr_cols=3D\"6\",hdr=3D[{width= =3D\"7\",alignment=3D\"-1\",col_name=3D\"number\",colhdr=3D\"Num\"},{width= =3D\"14\",alignment=3D\"-1\",col_name=3D\"type\",colhdr=3D\"Type\"},{width= =3D\"4\",alignment=3D\"-1\",col_name=3D\"disp\",colhdr=3D\"Disp\"},{width= =3D\"3\",alignment=3D\"-1\",col_name=3D\"enabled\",colhdr=3D\"Enb\"},{width= =3D\"18\",alignment=3D\"-1\",col_name=3D\"addr\",colhdr=3D\"Address\"},{wid= th=3D\"40\",alignment=3D\"2\",col_name=3D\"what\",colhdr=3D\"What\"}],body= =3D[bkpt=3D{number=3D\"1\",type=3D\"breakpoint\",disp=3D\"keep\",enabled=3D= \"y\",addr=3D\"0x00000000004004f4\",func=3D\"main\",file=3D\"test.c\",fulln= ame=3D\"/home/xxx/projects/tests/test_gdb/test.c\",line=3D\"7\",thread-grou= ps=3D[\"i1\"],times=3D\"1\",original-location=3D\"/home/xxx/projects/tests/= test_gdb/test.c:7\"}]}\n(gdb) \n29^done,locals=3D[]\n(gdb) \n30^done,stack=3D[frame=3D{level=3D\"0\",addr= =3D\"") apply(gud-gdbmi-marker-filter "27^done,threads=3D[{id=3D\"1\",target-id=3D\"process 25128\",name=3D\"test\",frame=3D{level=3D\"0\",addr=3D\"0x00000000004004f4\= ",func=3D\"main\",args=3D[],file=3D\"test.c\",fullname=3D\"/home/xxx/projec= ts/tests/test_gdb/test.c\",line=3D\"7\"},state=3D\"stopped\",core=3D\"24\"}= ],current-thread-id=3D\"1\"\n(gdb) \n28^done,BreakpointTable=3D{nr_rows=3D\"1\",nr_cols=3D\"6\",hdr=3D[{width= =3D\"7\",alignment=3D\"-1\",col_name=3D\"number\",colhdr=3D\"Num\"},{width= =3D\"14\",alignment=3D\"-1\",col_name=3D\"type\",colhdr=3D\"Type\"},{width= =3D\"4\",alignment=3D\"-1\",col_name=3D\"disp\",colhdr=3D\"Disp\"},{width= =3D\"3\",alignment=3D\"-1\",col_name=3D\"enabled\",colhdr=3D\"Enb\"},{width= =3D\"18\",alignment=3D\"-1\",col_name=3D\"addr\",colhdr=3D\"Address\"},{wid= th=3D\"40\",alignment=3D\"2\",col_name=3D\"what\",colhdr=3D\"What\"}],body= =3D[bkpt=3D{number=3D\"1\",type=3D\"breakpoint\",disp=3D\"keep\",enabled=3D= \"y\",addr=3D\"0x00000000004004f4\",func=3D\"main\",file=3D\"test.c\",fulln= ame=3D\"/home/xxx/projects/tests/test_gdb/test.c\",line=3D\"7\",thread-grou= ps=3D[\"i1\"],times=3D\"1\",original-location=3D\"/home/xxx/projects/tests/= test_gdb/test.c:7\"}]}\n(gdb) \n29^done,locals=3D[]\n(gdb) \n30^done,stack=3D[frame=3D{level=3D\"0\",addr= =3D\"") gud-marker-filter("27^done,threads=3D[{id=3D\"1\",target-id=3D\"process 25128\",name=3D\"test\",frame=3D{level=3D\"0\",addr=3D\"0x00000000004004f4\= ",func=3D\"main\",args=3D[],file=3D\"test.c\",fullname=3D\"/home/xxx/projec= ts/tests/test_gdb/test.c\",line=3D\"7\"},state=3D\"stopped\",core=3D\"24\"}= ],current-thread-id=3D\"1\"\n(gdb) \n28^done,BreakpointTable=3D{nr_rows=3D\"1\",nr_cols=3D\"6\",hdr=3D[{width= =3D\"7\",alignment=3D\"-1\",col_name=3D\"number\",colhdr=3D\"Num\"},{width= =3D\"14\",alignment=3D\"-1\",col_name=3D\"type\",colhdr=3D\"Type\"},{width= =3D\"4\",alignment=3D\"-1\",col_name=3D\"disp\",colhdr=3D\"Disp\"},{width= =3D\"3\",alignment=3D\"-1\",col_name=3D\"enabled\",colhdr=3D\"Enb\"},{width= =3D\"18\",alignment=3D\"-1\",col_name=3D\"addr\",colhdr=3D\"Address\"},{wid= th=3D\"40\",alignment=3D\"2\",col_name=3D\"what\",colhdr=3D\"What\"}],body= =3D[bkpt=3D{number=3D\"1\",type=3D\"breakpoint\",disp=3D\"keep\",enabled=3D= \"y\",addr=3D\"0x00000000004004f4\",func=3D\"main\",file=3D\"test.c\",fulln= ame=3D\"/home/xxx/projects/tests/test_gdb/test.c\",line=3D\"7\",thread-grou= ps=3D[\"i1\"],times=3D\"1\",original-location=3D\"/home/xxx/projects/tests/= test_gdb/test.c:7\"}]}\n(gdb) \n29^done,locals=3D[]\n(gdb) \n30^done,stack=3D[frame=3D{level=3D\"0\",addr= =3D\"") gud-filter(# "27^done,threads=3D[{id=3D\"1\",target-id=3D\"process 25128\",name=3D\"test\",frame=3D{level=3D\"0\",addr=3D\"0x00000000004004f4\= ",func=3D\"main\",args=3D[],file=3D\"test.c\",fullname=3D\"/home/xxx/projec= ts/tests/test_gdb/test.c\",line=3D\"7\"},state=3D\"stopped\",core=3D\"24\"}= ],current-thread-id=3D\"1\"\n(gdb) \n28^done,BreakpointTable=3D{nr_rows=3D\"1\",nr_cols=3D\"6\",hdr=3D[{width= =3D\"7\",alignment=3D\"-1\",col_name=3D\"number\",colhdr=3D\"Num\"},{width= =3D\"14\",alignment=3D\"-1\",col_name=3D\"type\",colhdr=3D\"Type\"},{width= =3D\"4\",alignment=3D\"-1\",col_name=3D\"disp\",colhdr=3D\"Disp\"},{width= =3D\"3\",alignment=3D\"-1\",col_name=3D\"enabled\",colhdr=3D\"Enb\"},{width= =3D\"18\",alignment=3D\"-1\",col_name=3D\"addr\",colhdr=3D\"Address\"},{wid= th=3D\"40\",alignment=3D\"2\",col_name=3D\"what\",colhdr=3D\"What\"}],body= =3D[bkpt=3D{number=3D\"1\",type=3D\"breakpoint\",disp=3D\"keep\",enabled=3D= \"y\",addr=3D\"0x00000000004004f4\",func=3D\"main\",file=3D\"test.c\",fulln= ame=3D\"/home/xxx/projects/tests/test_gdb/test.c\",line=3D\"7\",thread-grou= ps=3D[\"i1\"],times=3D\"1\",original-location=3D\"/home/xxx/projects/tests/= test_gdb/test.c:7\"}]}\n(gdb) \n29^done,locals=3D[]\n(gdb) \n30^done,stack=3D[frame=3D{level=3D\"0\",addr= =3D\"") In GNU Emacs 26.0.50 (build 1, x86_64-apple-darwin13.4.0, NS appkit-1265.21 Version 10.9.5 (Build 13F1911)) of 2017-06-11 built on builder10-9.local Windowing system distributor 'Apple', version 10.3.1504 Recent messages: Warning: arch-dependent data dir =E2=80=99/Users/build/workspace/Emacs-Multi-Build/label/mavericks/emacs-sou= rce/nextstep/Emacs.app/Contents/MacOS/libexec/=E2=80=99: No such file or directory For information about GNU Emacs and the GNU system, type C-h C-a. user-error: Beginning of history; no preceding item user-error: End of history; no default available Quit Configured using: 'configure --with-ns '--enable-locallisppath=3D/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules' Configured features: NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES Important settings: value of $LC_ALL: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message subr-x puny seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils thingatpt time-date tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 203699 7694) (symbols 48 19849 1) (miscs 40 71 164) (strings 32 18182 5316) (string-bytes 1 600826) (vectors 16 34880) (vector-slots 8 694435 4243) (floats 8 49 67) (intervals 56 194 0) (buffers 976 12)) --001a11411b84bc3e920558ab60ce Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
emacs runs on Mac with tramp . And I have a test proj= ect on a remote
machine (dev-sever): /home/xxx/project/test_gdb/.= It has a simple file: test.c. test.c is compiled by gcc with -O0 -g to tes= t_bin.=C2=A0

test.c:
1 int foo(int a, in= t b) {
2 =C2=A0int c =3D a + b;
3 =C2=A0return c;
=
4 }
5
6 int main(void) {
7 =C2=A0return = foo(3, 4);
8 }

Steps:
1. Open = test.c on dev-server in emacs
2. run 'M-x gdb' =C2=A0gdb = -i=3Dmi test_bin and open gdb-many-window mode.
3. In *gud-test* = buffer, run: break 7
4. Run: run and gdb stop at line 7
5. Step into line 7

But the cursor of source buff= er will not move at all. And then emacs become irresponsive after running s= everal step commands. I press Ctrl-G several times. Then it returns error: = json-read-string: Bad string format: "doesn't start with `\"&= #39;!"

Here is the backtrace for above error:=

Debugger entered--Lisp error: (json-string-format= "doesn't start with `\"'!")
=C2=A0 signal= (json-string-format ("doesn't start with `\"'!"))
=C2=A0 json-read-string()
=C2=A0 json-read-object()
=
=C2=A0 apply(json-read-object nil)
=C2=A0 json-read()
<= div>=C2=A0 gdb-json-read-buffer(nil nil)
=C2=A0 gdb-json-partial-= output()
=C2=A0 gdb-thread-list-handler-custom()
=C2=A0= gdb-thread-list-handler()
=C2=A0 apply(gdb-thread-list-handler n= il)
=C2=A0 (save-current-buffer (set-buffer #<buffer *threads = of test*>) (apply (quote gdb-thread-list-handler) args))
=C2= =A0 (with-current-buffer #<buffer *threads of test*> (apply (quote gd= b-thread-list-handler) args))
=C2=A0 (lambda (&rest args) (wi= th-current-buffer #<buffer *threads of test*> (apply (quote gdb-threa= d-list-handler) args)))()
=C2=A0 gdb-handle-reply(27)
= =C2=A0 gdb-done-or-error("27" done "threads=3D[{id=3D\"= 1\",target-id=3D\"process 25128\",name=3D\"test\",= frame=3D{level=3D\"0\",addr=3D\"0x00000000004004f4\",fu= nc=3D\"main\",args=3D[],file=3D\"test.c\",fullname=3D\&= quot;/home/xxx/projects/tests/test_gdb/test.c\",line=3D\"7\"= },state=3D\"stopped\",core=3D\"24\"}],current-thread-id= =3D\"1\"" t)
=C2=A0 gdb-done("27" "= threads=3D[{id=3D\"1\",target-id=3D\"process 25128\",na= me=3D\"test\",frame=3D{level=3D\"0\",addr=3D\"0x00= 000000004004f4\",func=3D\"main\",args=3D[],file=3D\"tes= t.c\",fullname=3D\"/home/xxx/projects/tests/test_gdb/test.c\"= ;,line=3D\"7\"},state=3D\"stopped\",core=3D\"24\&q= uot;}],current-thread-id=3D\"1\"" t)
=C2=A0 gdbmi-= bnf-incomplete-record-result("27" (gdb-done . progressive))
=
=C2=A0 #[0 "\302\300\301\242\"\207" ["27" ((g= db-done . progressive)) gdbmi-bnf-incomplete-record-result] 3]()
= =C2=A0 gdbmi-bnf-result-and-async-record-impl()
=C2=A0 gdbmi-bnf-= async-record()
=C2=A0 gdbmi-bnf-out-of-band-record()
= =C2=A0 gdbmi-bnf-output()
=C2=A0 gud-gdbmi-marker-filter("27= ^done,threads=3D[{id=3D\"1\",target-id=3D\"process 25128\&qu= ot;,name=3D\"test\",frame=3D{level=3D\"0\",addr=3D\&quo= t;0x00000000004004f4\",func=3D\"main\",args=3D[],file=3D\&qu= ot;test.c\",fullname=3D\"/home/xxx/projects/tests/test_gdb/test.c= \",line=3D\"7\"},state=3D\"stopped\",core=3D\"= ;24\"}],current-thread-id=3D\"1\"\n(gdb) \n28^done,Breakpoin= tTable=3D{nr_rows=3D\"1\",nr_cols=3D\"6\",hdr=3D[{width= =3D\"7\",alignment=3D\"-1\",col_name=3D\"number\&q= uot;,colhdr=3D\"Num\"},{width=3D\"14\",alignment=3D\&qu= ot;-1\",col_name=3D\"type\",colhdr=3D\"Type\"},{wi= dth=3D\"4\",alignment=3D\"-1\",col_name=3D\"disp\&= quot;,colhdr=3D\"Disp\"},{width=3D\"3\",alignment=3D\&q= uot;-1\",col_name=3D\"enabled\",colhdr=3D\"Enb\"},= {width=3D\"18\",alignment=3D\"-1\",col_name=3D\"ad= dr\",colhdr=3D\"Address\"},{width=3D\"40\",alignme= nt=3D\"2\",col_name=3D\"what\",colhdr=3D\"What\&qu= ot;}],body=3D[bkpt=3D{number=3D\"1\",type=3D\"breakpoint\&qu= ot;,disp=3D\"keep\",enabled=3D\"y\",addr=3D\"0x000= 00000004004f4\",func=3D\"main\",file=3D\"test.c\",= fullname=3D\"/home/xxx/projects/tests/test_gdb/test.c\",line=3D\&= quot;7\",thread-groups=3D[\"i1\"],times=3D\"1\",or= iginal-location=3D\"/home/xxx/projects/tests/test_gdb/test.c:7\"}= ]}\n(gdb) \n29^done,locals=3D[]\n(gdb) \n30^done,stack=3D[frame=3D{level=3D= \"0\",addr=3D\"")
=C2=A0 apply(gud-gdbmi-mark= er-filter "27^done,threads=3D[{id=3D\"1\",target-id=3D\"= ;process 25128\",name=3D\"test\",frame=3D{level=3D\"0\&= quot;,addr=3D\"0x00000000004004f4\",func=3D\"main\",arg= s=3D[],file=3D\"test.c\",fullname=3D\"/home/xxx/projects/tes= ts/test_gdb/test.c\",line=3D\"7\"},state=3D\"stopped\&q= uot;,core=3D\"24\"}],current-thread-id=3D\"1\"\n(gdb) \= n28^done,BreakpointTable=3D{nr_rows=3D\"1\",nr_cols=3D\"6\&q= uot;,hdr=3D[{width=3D\"7\",alignment=3D\"-1\",col_name= =3D\"number\",colhdr=3D\"Num\"},{width=3D\"14\&quo= t;,alignment=3D\"-1\",col_name=3D\"type\",colhdr=3D\&qu= ot;Type\"},{width=3D\"4\",alignment=3D\"-1\",col_n= ame=3D\"disp\",colhdr=3D\"Disp\"},{width=3D\"3\&qu= ot;,alignment=3D\"-1\",col_name=3D\"enabled\",colhdr=3D= \"Enb\"},{width=3D\"18\",alignment=3D\"-1\",c= ol_name=3D\"addr\",colhdr=3D\"Address\"},{width=3D\&quo= t;40\",alignment=3D\"2\",col_name=3D\"what\",colhd= r=3D\"What\"}],body=3D[bkpt=3D{number=3D\"1\",type=3D\&= quot;breakpoint\",disp=3D\"keep\",enabled=3D\"y\",= addr=3D\"0x00000000004004f4\",func=3D\"main\",file=3D\&= quot;test.c\",fullname=3D\"/home/xxx/projects/tests/test_gdb/test= .c\",line=3D\"7\",thread-groups=3D[\"i1\"],times= =3D\"1\",original-location=3D\"/home/xxx/projects/tests/test= _gdb/test.c:7\"}]}\n(gdb) \n29^done,locals=3D[]\n(gdb) \n30^done,stack= =3D[frame=3D{level=3D\"0\",addr=3D\"")
=C2=A0= gud-marker-filter("27^done,threads=3D[{id=3D\"1\",target-id= =3D\"process 25128\",name=3D\"test\",frame=3D{level=3D\= "0\",addr=3D\"0x00000000004004f4\",func=3D\"main\&= quot;,args=3D[],file=3D\"test.c\",fullname=3D\"/home/xxx/pro= jects/tests/test_gdb/test.c\",line=3D\"7\"},state=3D\"s= topped\",core=3D\"24\"}],current-thread-id=3D\"1\"= \n(gdb) \n28^done,BreakpointTable=3D{nr_rows=3D\"1\",nr_cols=3D\&= quot;6\",hdr=3D[{width=3D\"7\",alignment=3D\"-1\",= col_name=3D\"number\",colhdr=3D\"Num\"},{width=3D\"= ;14\",alignment=3D\"-1\",col_name=3D\"type\",colhd= r=3D\"Type\"},{width=3D\"4\",alignment=3D\"-1\&quo= t;,col_name=3D\"disp\",colhdr=3D\"Disp\"},{width=3D\&qu= ot;3\",alignment=3D\"-1\",col_name=3D\"enabled\",c= olhdr=3D\"Enb\"},{width=3D\"18\",alignment=3D\"-1\= ",col_name=3D\"addr\",colhdr=3D\"Address\"},{width= =3D\"40\",alignment=3D\"2\",col_name=3D\"what\&quo= t;,colhdr=3D\"What\"}],body=3D[bkpt=3D{number=3D\"1\",t= ype=3D\"breakpoint\",disp=3D\"keep\",enabled=3D\"y= \",addr=3D\"0x00000000004004f4\",func=3D\"main\",f= ile=3D\"test.c\",fullname=3D\"/home/xxx/projects/tests/test_= gdb/test.c\",line=3D\"7\",thread-groups=3D[\"i1\"]= ,times=3D\"1\",original-location=3D\"/home/xxx/projects/test= s/test_gdb/test.c:7\"}]}\n(gdb) \n29^done,locals=3D[]\n(gdb) \n30^done= ,stack=3D[frame=3D{level=3D\"0\",addr=3D\"")
= =C2=A0 gud-filter(#<process gud-test> "27^done,threads=3D[{id=3D= \"1\",target-id=3D\"process 25128\",name=3D\"test\= ",frame=3D{level=3D\"0\",addr=3D\"0x00000000004004f4\&q= uot;,func=3D\"main\",args=3D[],file=3D\"test.c\",fullna= me=3D\"/home/xxx/projects/tests/test_gdb/test.c\",line=3D\"7= \"},state=3D\"stopped\",core=3D\"24\"}],current-th= read-id=3D\"1\"\n(gdb) \n28^done,BreakpointTable=3D{nr_rows=3D\&q= uot;1\",nr_cols=3D\"6\",hdr=3D[{width=3D\"7\",alig= nment=3D\"-1\",col_name=3D\"number\",colhdr=3D\"Nu= m\"},{width=3D\"14\",alignment=3D\"-1\",col_name= =3D\"type\",colhdr=3D\"Type\"},{width=3D\"4\"= ,alignment=3D\"-1\",col_name=3D\"disp\",colhdr=3D\"= ;Disp\"},{width=3D\"3\",alignment=3D\"-1\",col_nam= e=3D\"enabled\",colhdr=3D\"Enb\"},{width=3D\"18\&q= uot;,alignment=3D\"-1\",col_name=3D\"addr\",colhdr=3D\&= quot;Address\"},{width=3D\"40\",alignment=3D\"2\",= col_name=3D\"what\",colhdr=3D\"What\"}],body=3D[bkpt=3D= {number=3D\"1\",type=3D\"breakpoint\",disp=3D\"kee= p\",enabled=3D\"y\",addr=3D\"0x00000000004004f4\",= func=3D\"main\",file=3D\"test.c\",fullname=3D\"/ho= me/xxx/projects/tests/test_gdb/test.c\",line=3D\"7\",thread-= groups=3D[\"i1\"],times=3D\"1\",original-location=3D\&q= uot;/home/xxx/projects/tests/test_gdb/test.c:7\"}]}\n(gdb) \n29^done,l= ocals=3D[]\n(gdb) \n30^done,stack=3D[frame=3D{level=3D\"0\",addr= =3D\"")



In= GNU Emacs 26.0.50 (build 1, x86_64-apple-darwin13.4.0, NS appkit-1265.21 V= ersion 10.9.5 (Build 13F1911))
=C2=A0of 2017-06-11 built on build= er10-9.local
Windowing system distributor 'Apple', versio= n 10.3.1504
Recent messages:
Warning: arch-dependent da= ta dir =E2=80=99/Users/build/workspace/Emacs-Multi-Build/label/mavericks/em= acs-source/nextstep/Emacs.app/Contents/MacOS/libexec/=E2=80=99: No such fil= e or directory

For information about GNU Emacs and= the GNU system, type C-h C-a.
user-error: Beginning of history; = no preceding item
user-error: End of history; no default availabl= e
Quit

Configured using:
=C2= =A0'configure --with-ns '--enable-locallisppath=3D/Library/Applicat= ion
=C2=A0Support/Emacs/${version}/site-lisp:/Library/Application=
=C2=A0Support/Emacs/site-lisp' --with-modules'

Configured features:
NOTIFY ACL GNUTLS LIBXML2 ZL= IB TOOLKIT_SCROLL_BARS NS MODULES

Important settin= gs:
=C2=A0 value of $LC_ALL: en_US.UTF-8
=C2=A0 value o= f $LANG: en_US.UTF-8
=C2=A0 locale-coding-system: utf-8-unix

Major mode: Fundamental

Minor= modes in effect:
=C2=A0 tooltip-mode: t
=C2=A0 global-= eldoc-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mou= se-wheel-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-ba= r-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global= -font-lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 a= uto-composition-mode: t
=C2=A0 auto-encryption-mode: t
= =C2=A0 auto-compression-mode: t
=C2=A0 buffer-read-only: t
<= div>=C2=A0 line-number-mode: t
=C2=A0 transient-mark-mode: t

Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug message sub= r-x puny seq byte-opt gv
bytecomp byte-compile cconv cl-loaddefs = cl-lib dired dired-loaddefs
format-spec rfc822 mml easymenu mml-s= ec password-cache epa derived epg
epg-config gnus-util rmail rmai= l-loaddefs mm-decode mm-bodies mm-encode
mail-parse rfc2231 maila= bbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm= -util mail-prsvr mail-utils thingatpt time-date
tooltip eldoc ele= ctric uniquify ediff-hook vc-hooks lisp-float-type
mwheel term/ns= -win ns-win ucs-normalize mule-util term/common-win
tool-bar dnd = fontset image regexp-opt fringe tabulated-list replace
newcomment= text-mode elisp-mode lisp-mode prog-mode register page
menu-bar = rfn-eshadow isearch timer select scroll-bar mouse jit-lock
font-l= ock syntax facemenu font-core term/tty-colors frame cl-generic
ch= am georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
=
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese composite charscript char= prop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray= minibuffer
cl-preloaded nadvice loaddefs button faces cus-face m= acroexp files
text-properties overlay sha1 md5 base64 format env = code-pages mule
custom widget hashtable-print-readable backquote = kqueue cocoa ns
multi-tty make-network-process emacs)
<= br>
Memory information:
((conses 16 203699 7694)
<= div>=C2=A0(symbols 48 19849 1)
=C2=A0(miscs 40 71 164)
= =C2=A0(strings 32 18182 5316)
=C2=A0(string-bytes 1 600826)
=
=C2=A0(vectors 16 34880)
=C2=A0(vector-slots 8 694435 4243)<= /div>
=C2=A0(floats 8 49 67)
=C2=A0(intervals 56 194 0)
=
=C2=A0(buffers 976 12))

--001a11411b84bc3e920558ab60ce--