all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 22012@debbugs.gnu.org, dgutov@yandex.ru
Subject: bug#22012: 25.1.50; gdb broken by (json-string-format "doesn't start with `\"'!")
Date: Sat, 28 Nov 2015 15:13:14 +0100	[thread overview]
Message-ID: <5659B67A.8030004@gmx.at> (raw)
In-Reply-To: <83io4ovjho.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 6862 bytes --]

 > Can you switch to that buffer and look what's at point?  And while at
 > that, post here the full contents of that buffer?

It just happened again while debugging xdisp.c.  The buffer is called
*partial-output-emacs.exe* (with a leading space) it contains 2295
characters and its position of point was 2.  The contents of that buffer
are hopefully in the attached file partial-output-emacs.txt (for reasons
that elude me I was not able to inline them with Thunderbird).

The contents of *backtrace* are:

Debugger entered--Lisp error: (json-string-format "doesn't start with `\"'!")
   signal(json-string-format ("doesn't start with `\"'!"))
   (if (char-equal (json-peek) 34) nil (message "%s ... %s" (current-buffer) (point)) (signal (quote json-string-format) (list "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 #<buffer *threads of emacs.exe*>) (apply (quote gdb-thread-list-handler) args))
   (with-current-buffer #<buffer *threads of emacs.exe*> (apply (quote gdb-thread-list-handler) args))
   (lambda (&rest args) (with-current-buffer #<buffer *threads of emacs.exe*> (apply (quote gdb-thread-list-handler) args)))()
   gdb-handle-reply(57)
   gdb-done-or-error("57" done "threads=[{id=\"3\",target-id=\"Thread 2608.0xa60\",frame={level=\"0\",addr=\"0x7c91eb94\",func=\"ntdll!LdrAccessResource\",args=[],from=\"C:\\\\WINDOWS\\\\system32\\\\ntdll.dll\"},state=\"stopped\"},{id=\"2\",target-id=\"Thread 2608.0xa64\",frame={level=\"0\",addr=\"0x7c91eb94\",func=\"ntdll!LdrAccessResource\",args=[],from=\"C:\\\\WINDOWS\\\\system32\\\\ntdll.dll\"},state=\"stopped\"},{id=\"1\",target-id=\"Thread 2608.0xb0c\",frame={level=\"0\",addr=\"0x0105ee62\",func=\"redisplay_internal\",args=[],file=\"../../src/xdisp.c\",fullname=\"c:\\\\emacs-git\\\\trunk\\\\src\\\\xdisp.c\",line=\"13512\"},state=\"stopped\"}],current-thread-id=\"1\"" t)
   gdb-done("57" "threads=[{id=\"3\",target-id=\"Thread 2608.0xa60\",frame={level=\"0\",addr=\"0x7c91eb94\",func=\"ntdll!LdrAccessResource\",args=[],from=\"C:\\\\WINDOWS\\\\system32\\\\ntdll.dll\"},state=\"stopped\"},{id=\"2\",target-id=\"Thread 2608.0xa64\",frame={level=\"0\",addr=\"0x7c91eb94\",func=\"ntdll!LdrAccessResource\",args=[],from=\"C:\\\\WINDOWS\\\\system32\\\\ntdll.dll\"},state=\"stopped\"},{id=\"1\",target-id=\"Thread 2608.0xb0c\",frame={level=\"0\",addr=\"0x0105ee62\",func=\"redisplay_internal\",args=[],file=\"../../src/xdisp.c\",fullname=\"c:\\\\emacs-git\\\\trunk\\\\src\\\\xdisp.c\",line=\"13512\"},state=\"stopped\"}],current-thread-id=\"1\"" t)
   gdbmi-bnf-incomplete-record-result("57" (gdb-done . progressive))
   #[0 "\302\300\301\242\"\207" ["57" ((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("~\"Continuing.\\n\"\n^running\n*running,thread-id=\"1\"\n(gdb) \n*running,thread-id=\"all\"\n&\"warning: frame 01b50060 (emacs@MACHNO) obscured\\n\"\n&\"\\n\"\n=breakpoint-modified,bkpt={number=\"3\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x0105ee62\",func=\"redisplay_internal\",file=\"../../src/xdisp.c\",fullname=\"c:\\\\\\\\emacs-git\\\\\\\\trunk\\\\\\\\src\\\\\\\\xdisp.c\",line=\"13512\",times=\"13\",original-location=\"xdisp.c:13512\"}\n~\"\\nBreakpoint \"\n~\"3, redisplay_internal () at ../../src/xdisp.c:13512\\n\"\n~\"13512\\t  if ((!NILP (echo_area_buffer[0]) && !display_last_displayed_message_p)\\n\"\n*stopped,reason=\"breakpoint-hit\",disp=\"keep\",bkptno=\"3\",frame={addr=\"0x0105ee62\",func=\"redisplay_internal\",args=[],file=\"../../s
 rc/xdisp.c\",fullname=\"c:\\\\emacs-git\\\\trunk\\\\src\\\\xdisp.c\",line=\"13512\"},thread-id=\"1\",stopped-threads=\"all\"\n(gdb) \n")
   apply(gud-gdbmi-marker-filter "~\"Continuing.\\n\"\n^running\n*running,thread-id=\"1\"\n(gdb) \n*running,thread-id=\"all\"\n&\"warning: frame 01b50060 (emacs@MACHNO) obscured\\n\"\n&\"\\n\"\n=breakpoint-modified,bkpt={number=\"3\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x0105ee62\",func=\"redisplay_internal\",file=\"../../src/xdisp.c\",fullname=\"c:\\\\\\\\emacs-git\\\\\\\\trunk\\\\\\\\src\\\\\\\\xdisp.c\",line=\"13512\",times=\"13\",original-location=\"xdisp.c:13512\"}\n~\"\\nBreakpoint \"\n~\"3, redisplay_internal () at ../../src/xdisp.c:13512\\n\"\n~\"13512\\t  if ((!NILP (echo_area_buffer[0]) && !display_last_displayed_message_p)\\n\"\n*stopped,reason=\"breakpoint-hit\",disp=\"keep\",bkptno=\"3\",frame={addr=\"0x0105ee62\",func=\"redisplay_internal\",args=[],file=\".
 ./../src/xdisp.c\",fullname=\"c:\\\\emacs-git\\\\trunk\\\\src\\\\xdisp.c\",line=\"13512\"},thread-id=\"1\",stopped-threads=\"all\"\n(gdb) \n")
   gud-marker-filter("~\"Continuing.\\n\"\n^running\n*running,thread-id=\"1\"\n(gdb) \n*running,thread-id=\"all\"\n&\"warning: frame 01b50060 (emacs@MACHNO) obscured\\n\"\n&\"\\n\"\n=breakpoint-modified,bkpt={number=\"3\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x0105ee62\",func=\"redisplay_internal\",file=\"../../src/xdisp.c\",fullname=\"c:\\\\\\\\emacs-git\\\\\\\\trunk\\\\\\\\src\\\\\\\\xdisp.c\",line=\"13512\",times=\"13\",original-location=\"xdisp.c:13512\"}\n~\"\\nBreakpoint \"\n~\"3, redisplay_internal () at ../../src/xdisp.c:13512\\n\"\n~\"13512\\t  if ((!NILP (echo_area_buffer[0]) && !display_last_displayed_message_p)\\n\"\n*stopped,reason=\"breakpoint-hit\",disp=\"keep\",bkptno=\"3\",frame={addr=\"0x0105ee62\",func=\"redisplay_internal\",args=[],file=\"../../src/xdi
 sp.c\",fullname=\"c:\\\\emacs-git\\\\trunk\\\\src\\\\xdisp.c\",line=\"13512\"},thread-id=\"1\",stopped-threads=\"all\"\n(gdb) \n")
   gud-filter(#<process gud-emacs.exe> "~\"Continuing.\\n\"\n^running\n*running,thread-id=\"1\"\n(gdb) \n*running,thread-id=\"all\"\n&\"warning: frame 01b50060 (emacs@MACHNO) obscured\\n\"\n&\"\\n\"\n=breakpoint-modified,bkpt={number=\"3\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x0105ee62\",func=\"redisplay_internal\",file=\"../../src/xdisp.c\",fullname=\"c:\\\\\\\\emacs-git\\\\\\\\trunk\\\\\\\\src\\\\\\\\xdisp.c\",line=\"13512\",times=\"13\",original-location=\"xdisp.c:13512\"}\n~\"\\nBreakpoint \"\n~\"3, redisplay_internal () at ../../src/xdisp.c:13512\\n\"\n~\"13512\\t  if ((!NILP (echo_area_buffer[0]) && !display_last_displayed_message_p)\\n\"\n*stopped,reason=\"breakpoint-hit\",disp=\"keep\",bkptno=\"3\",frame={addr=\"0x0105ee62\",func=\"redisplay_internal\",args=[],fi
 le=\"../../src/xdisp.c\",fullname=\"c:\\\\emacs-git\\\\trunk\\\\src\\\\xdisp.c\",line=\"13512\"},thread-id=\"1\",stopped-threads=\"all\"\n(gdb) \n")

martin

[-- Attachment #2: partial-output-emacs.txt --]
[-- Type: text/plain, Size: 2280 bytes --]

{{{"BreakpointTable":{"nr_rows":"3","nr_cols":"6","hdr":[{"width":"7","alignment":"-1","col_name":"number","colhdr":"Num"},{"width":"14","alignment":"-1","col_name":"type","colhdr":"Type"},{"width":"4","alignment":"-1",\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0,"colhdr":"Disp"},{"width":"3","alignment":"-1","col_name":"enabled","colhdr":"Enb"},{"width":"10","alignment":"-1","col_name":"addr","colhdr":"Address"},{"width":"40","alignment":"2","col_name":"what","colhdr":"What"}],"body":[{"number":"1","type":"breakpoint","disp":"keep","enabled":"y","addr":"0x01149dee","func":"terminate_due_to_signal","file":"../../src/emacs.c","fullname":"c:\\emacs-git\\trunk\\src\\emacs.c","line":"371","times":"0","original-location":"terminate_due_to_signal"},{"number":"2","type":"breakpoint","disp":"del","enabled":"y","addr":"0x01181b2e","func":"init_sys_modes","file":"../../src/sysdep.c","fullname":"c:\\emacs-git\\trunk\\src\\sysdep.c","line":"905","times":"0","script":["silent","xgetptr globals.f_Vinitial_window_system","xsymname $ptr","xgetptr $symname","set $tem = (struct Lisp_String *) $ptr","set $tem = (char *) $tem->data","if $tem[0] == 'x' && $tem[1] == '\0'","break x_error_quitter","end","continue"],"original-location":"init_sys_modes"},{"number":"3","type":"breakpoint","disp":"keep","enabled":"y","addr":"0x0105ee62","func":"redisplay_internal","file":"../../src/xdisp.c","fullname":"c:\\emacs-git\\trunk\\src\\xdisp.c","line":"13512","times":"11","original-location":"xdisp.c:13512"}]}}"frame":{"level":"0","addr":"0x0105ee62","func":"redisplay_internal","file":"../../src/xdisp.c","fullname":"c:\\emacs-git\\trunk\\src\\xdisp.c","line":"13512"}}"threads":[{"id":"3","target-id":"Thread 2608.0xa60","frame":{"level":"0","addr":"0x7c91eb94","func":"ntdll!LdrAccessResource","args":[],"from":"C:\\WINDOWS\\system32\\ntdll.dll"},"state":"stopped"},{"id":"2","target-id":"Thread 2608.0xa64","frame":{"level":"0","addr":"0x7c91eb94","func":"ntdll!LdrAccessResource","args":[],"from":"C:\\WINDOWS\\system32\\ntdll.dll"},"state":"stopped"},{"id":"1","target-id":"Thread 2608.0xb0c","frame":{"level":"0","addr":"0x0105ee62","func":"redisplay_internal","args":[],"file":"../../src/xdisp.c","fullname":"c:\\emacs-git\\trunk\\src\\xdisp.c","line":"13512"},"state":"stopped"}],"current-thread-id":"1"}

  reply	other threads:[~2015-11-28 14:13 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-25 17:49 bug#22012: 25.1.50; gdb broken by (json-string-format "doesn't start with `\"'!") martin rudalics
2015-11-26  2:34 ` Dmitry Gutov
2015-11-26  8:24   ` martin rudalics
2015-11-26 10:51     ` Dmitry Gutov
2015-11-26 13:31       ` martin rudalics
2015-11-26 14:26         ` Dmitry Gutov
2015-11-26 16:58           ` martin rudalics
2015-11-26 17:36             ` Dmitry Gutov
2015-11-26 17:58               ` Eli Zaretskii
2015-11-26 16:00         ` Eli Zaretskii
2015-11-28 14:13           ` martin rudalics [this message]
2015-11-28 14:34             ` Eli Zaretskii
2015-11-28 15:48               ` martin rudalics
2015-11-28 16:32                 ` Eli Zaretskii
2015-11-30 13:40                   ` martin rudalics
2015-11-30 15:56                     ` Eli Zaretskii
2015-11-26 15:49     ` Eli Zaretskii
2015-11-26 16:58       ` martin rudalics
2015-11-26 17:14         ` Eli Zaretskii
2018-02-13 10:22         ` martin rudalics

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

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

  git send-email \
    --in-reply-to=5659B67A.8030004@gmx.at \
    --to=rudalics@gmx.at \
    --cc=22012@debbugs.gnu.org \
    --cc=dgutov@yandex.ru \
    --cc=eliz@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.