From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lars Brinkhoff Newsgroups: gmane.emacs.devel Subject: Re: Recent change in master breaks async package update using paradox Date: Sat, 08 Apr 2017 20:21:22 +0200 Organization: nocrew Message-ID: <864lxy221p.fsf@molnjunk.nocrew.org> References: <86zifs139m.fsf@molnjunk.nocrew.org> <86k26v1jgv.fsf@molnjunk.nocrew.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1491675746 15744 195.159.176.226 (8 Apr 2017 18:22:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 8 Apr 2017 18:22:26 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 08 20:22:21 2017 Return-path: Envelope-to: ged-emacs-devel@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 1cwv06-0003KU-O6 for ged-emacs-devel@m.gmane.org; Sat, 08 Apr 2017 20:22:18 +0200 Original-Received: from localhost ([::1]:56182 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwv0C-00082t-Pz for ged-emacs-devel@m.gmane.org; Sat, 08 Apr 2017 14:22:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37523) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwuzZ-00082l-Ea for emacs-devel@gnu.org; Sat, 08 Apr 2017 14:21:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cwuzV-0003rZ-F5 for emacs-devel@gnu.org; Sat, 08 Apr 2017 14:21:45 -0400 Original-Received: from [195.159.176.226] (port=48343 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cwuzV-0003pS-7C for emacs-devel@gnu.org; Sat, 08 Apr 2017 14:21:41 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cwuzH-0006Hd-5j for emacs-devel@gnu.org; Sat, 08 Apr 2017 20:21:27 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:2OUePSW3GzB5OVT971GTDn0bdbc= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:213823 Archived-At: Kaushal Modi wrote: > Thanks a lot for the debug and fix. This was a tough bug to discover, > especially when working with async. If you don't mind, and when you > have time, can you please write about how you went about to debug this > issue? Well, half the credit should go to yourself for providing a good test case for reproducing the problem. Your backtrace pointed to the call to async-start in paradoc-execute.el. The problem was knowing what happened in the subordinate Emacs. I kind of expected there to be some kind of debugging tool, so I keept my eyes peeled for that. Sure enough, there was async-debug. First I only turned it on in the parent Emacs and got some intersting info. But the breakthrough came when I turned it on also in the subordinate. Then I got the full backtrace pinpointing the location of the error. It turned out that the error came from reading a huge string. So it still wasn't obvious what part of the string was wrong. But it was just a matter of removing substrings until only the one signalling an error remained.