From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#22012: 25.1.50; gdb broken by (json-string-format "doesn't start with `\"'!") Date: Thu, 26 Nov 2015 19:36:38 +0200 Message-ID: <56574326.1070403@yandex.ru> References: <5655F4AD.4020503@gmx.at> <56566FD1.2050305@yandex.ru> <5656C1BE.400@gmx.at> <5656E430.8030809@yandex.ru> <565709C9.8080306@gmx.at> <56571697.50702@yandex.ru> <56573A2E.5000809@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1448559450 25246 80.91.229.3 (26 Nov 2015 17:37:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Nov 2015 17:37:30 +0000 (UTC) To: martin rudalics , 22012@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 26 18:37:13 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a20Tj-0004l5-Nj for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Nov 2015 18:37:07 +0100 Original-Received: from localhost ([::1]:52584 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a20Tm-0000qs-3x for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Nov 2015 12:37:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37211) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a20Th-0000qm-Kg for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2015 12:37:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a20Te-0004MB-F3 for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2015 12:37:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36681) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a20Te-0004M7-Bf for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2015 12:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a20Te-00017K-53 for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2015 12:37:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Nov 2015 17:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22012 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22012-submit@debbugs.gnu.org id=B22012.14485594044266 (code B ref 22012); Thu, 26 Nov 2015 17:37:02 +0000 Original-Received: (at 22012) by debbugs.gnu.org; 26 Nov 2015 17:36:44 +0000 Original-Received: from localhost ([127.0.0.1]:54622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a20TM-00016k-6d for submit@debbugs.gnu.org; Thu, 26 Nov 2015 12:36:44 -0500 Original-Received: from mail-wm0-f41.google.com ([74.125.82.41]:36023) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a20TK-00016a-BO for 22012@debbugs.gnu.org; Thu, 26 Nov 2015 12:36:42 -0500 Original-Received: by wmww144 with SMTP id w144so29558739wmw.1 for <22012@debbugs.gnu.org>; Thu, 26 Nov 2015 09:36:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=UJ3zbxwMjsZHsn6H9GX2fblPbqvkbJgYNtPDYguBCzQ=; b=ac7zS/4bZgf6UVkFqUhsrRaizwsHYf8IL0s3WhtY+BT1gMyqO+3+93QF3zo0TJ8rnj 1ETWcrwnFl+I+bvg96UE3/z3mbdiNjLN3uXcYktJklev5fu/PHSbEbGoEPDzhGWNa1tq fY1Yx/OalmWGw4LFUObt524CwGhKRrnpqH4Exux/XKj2nvVCD/o7I5+pNxxyitPgNtAH v0tdJN5y8SLVCFkJJzQzSsw69CDF1tGU20nqOwBZc+//6y8I55OZXv0XWooYL3PeIvcY xzSXkGU9TYOElz3n9FX13aCoZwoQN0EXrDyDtjfEJQj5zihHwoOiumrKrwf1KLMVuAK7 rL9A== X-Received: by 10.194.47.134 with SMTP id d6mr50885429wjn.27.1448559401506; Thu, 26 Nov 2015 09:36:41 -0800 (PST) Original-Received: from [10.9.0.103] (nat.webazilla.com. [78.140.128.228]) by smtp.googlemail.com with ESMTPSA id c194sm3681106wmd.13.2015.11.26.09.36.39 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 26 Nov 2015 09:36:40 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Thunderbird/42.0 In-Reply-To: <56573A2E.5000809@gmx.at> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:109303 Archived-At: On 11/26/2015 06:58 PM, martin rudalics wrote: > Debugging the debugger while debugging? Just debugging the debugger, I'd say. > You mean there's none? json.el is written in Lisp, so there are many ways you can get the needed information. All of them are relatively easy, IMHO. > But what is the use of the above signal when it doesn't tell me where to > find the source of the problem? I agree that it can be improved. > >> should report the current buffer and its value of point. > > > > I wouldn't mind if it did. Though that would need to be done in all > such places. > > Which places? Every place in json.el that contains "(signal 'json-", probably. We should be consistent. > > But for the purposes of debugging, you can modify just that > function's definition to report what's required. > > I do so already. Now it stopped complaining. Yet another Heisenbug. Too bad. > >> Anyway, if I understand the backtrace correctly, the current buffer > >> should have been "*breakpoints of emacs.exe*". > > > > I'm not sure what that implies. Does it have JSON content? > > What is JSON content? String in JSON format. Basically, the question is whether we're calling json-read in a wrong buffer, or if the buffer is right but contains unparseable content, or if we fail to parse valid JSON.