From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Jacob Lagares Pozo Newsgroups: gmane.emacs.bugs Subject: bug#40323: 28.0.50; error in process filter: Invalid search bound (wrong side of point) Date: Fri, 17 Apr 2020 13:43:52 +0200 Message-ID: References: <35ec6e03-5df2-3b35-9076-3421d7a3f2c9@iebesalu.cat> <87bloci0yw.fsf@gmail.com> <87v9m132pj.fsf@gmail.com> <9861d97d-9e7e-5ac8-bd71-f52caad92024@iebesalu.cat> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="93280"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 To: Noam Postavsky , 40323@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 17 13:46:28 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jPPS0-000OAg-Dz for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 17 Apr 2020 13:46:28 +0200 Original-Received: from localhost ([::1]:45988 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPPRz-0006SW-Gb for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 17 Apr 2020 07:46:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49336) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPPRd-0006D7-4r for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2020 07:46:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jPPRb-0001G1-Hf for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2020 07:46:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56796) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jPPRa-0001FR-G1 for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2020 07:46:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jPPRa-000821-FD for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2020 07:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jacob Lagares Pozo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 Apr 2020 11:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40323 X-GNU-PR-Package: emacs Original-Received: via spool by 40323-submit@debbugs.gnu.org id=B40323.158712394830844 (code B ref 40323); Fri, 17 Apr 2020 11:46:02 +0000 Original-Received: (at 40323) by debbugs.gnu.org; 17 Apr 2020 11:45:48 +0000 Original-Received: from localhost ([127.0.0.1]:40108 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jPPRL-00081K-Mu for submit@debbugs.gnu.org; Fri, 17 Apr 2020 07:45:48 -0400 Original-Received: from mail-ej1-f50.google.com ([209.85.218.50]:37262) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jPPPb-0007xz-Q5 for 40323@debbugs.gnu.org; Fri, 17 Apr 2020 07:44:00 -0400 Original-Received: by mail-ej1-f50.google.com with SMTP id re23so1350044ejb.4 for <40323@debbugs.gnu.org>; Fri, 17 Apr 2020 04:43:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iebesalu-cat.20150623.gappssmtp.com; s=20150623; h=subject:from:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=doxn0lJJm6CQIIphh2M/tjOR60j/UiXMyuWNSjjosSo=; b=WFhqH7eGbIOLwrZC6CHWOlvdnt6qcuC1+qDZWWunwh17FWeL9WlEZFlxTpqteHXokz YeAa5pfgVxybkjxoKoZmzkve3V0zYRTt4CtMchXcKT98Eo4o5B+/6VyuaBY8wWGsvN4d vuZi4obsjW2onQ5wzj1HdvjSiVF5+3oEXzHgjoEuaswCkrwiksCyuwcolVleVNS9NwtQ uLUJ0EFGRRTn7sIsQH5ibFfBbEx0RY1H8AFsIjBLl3EmlXLlOqUi1S3DzZSH0CGdEyDv Go5ubs72/6Q4bY45cBaWN0aeQuTa3WTX2v9t9zTKMkCwStcJrCnoDK38g/yAnwrXE4Qp wP/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=doxn0lJJm6CQIIphh2M/tjOR60j/UiXMyuWNSjjosSo=; b=LYOrgpezSx7ilSl7t0mBcM2T5yvZZ9EE233hZh/2gH1q02Lz6EOG4FBL8hP4VTsYwv vyoM/ffuvVgBwVcbXWleCE7z/HRBIlaLSNGEcAmI2XRMMgOQVT3WK9Ksl7YkSGv7htki NBlhJxJOuqzxIRZ01XwLqVf+uKgE8KDFvCqadTggWmSp1c1q3wHJd4LKP2aE0qTqHsRx 6O6yYv3Tp0gk7836THQRgKN7NPok11JS4Lw3jiR4Ucdfc8xX93E4aXwE1jyITlt9+LDp IJIFgntBTALsL0o59/Soy/hYJjVpt7rvxlWH2KMDf66kfnBfwc+hKb7k9930rE+DwUC8 seUg== X-Gm-Message-State: AGi0PuYtTl9ClXPuwxzcBxWwE/wL3e3Jyo0hk8rmhheXIfTY+VHsvf8Z olFN/E+jMFBesHJZ5aAk47kO4nRZCMA= X-Google-Smtp-Source: APiQypIx9kA5je8WS9plL2s44vdlbM28zHFoIuppDN2h2caAx/H0MgNruVnn1SQh1SJ7NvnVkRM0FA== X-Received: by 2002:a17:906:d14b:: with SMTP id br11mr2615684ejb.213.1587123833730; Fri, 17 Apr 2020 04:43:53 -0700 (PDT) Original-Received: from [192.168.100.54] ([185.154.8.143]) by smtp.gmail.com with ESMTPSA id bs8sm3460411ejb.92.2020.04.17.04.43.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Apr 2020 04:43:53 -0700 (PDT) In-Reply-To: <9861d97d-9e7e-5ac8-bd71-f52caad92024@iebesalu.cat> Content-Language: en-US X-Mailman-Approved-At: Fri, 17 Apr 2020 07:45:46 -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: 209.51.188.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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:178506 Archived-At: Also, I should mention that I tried reinstalling Emacs and a few packages, just in case something was corrupted. Doesn't seem like the case, it seems like a legitimate bug. On 2020-04-17 13:39, Jacob Lagares Pozo wrote: > Hello Noam, > > I'm sorry for the late response. > > It looks like your patch does indeed work and logs a bunch of stuff to > the *trace-output* buffer every time a program running on the async > buffer outputs something. > > For brevity, I'll just post just a single one of them, because the > whole buffer is 172k characters and growing. I hope it's enough; if it > is not, please let me know and I'll post the whole thing. > > Jacob > > On 2020-04-15 04:25, Noam Postavsky wrote: >>> The patch you provided does indeed seem to fix the issue, or at least >>> it hasn't happened for the time I tested it (I can verify various >>> processes were running and outputting things to the async buffer). >>> >>> I do not have any idea as to why did those markers get swapped >>> around. Is there any specific place that deals with them that I could >>> check? Could this be a bug with comint mode, maybe clashing with >>> another package? >> Try reproducing the issue after evaluating the code below, perhaps >> *trace-output* will have some useful clues. >> >>      (load-library "comint.el") ;; Can only trace set-marker from >> Lisp source. >> >>      (defun bug-40323-get-comint-output-marker () >>        (list :comint-pmark >>              (and (markerp comint-last-output-start) >>                   (eq (marker-buffer comint-last-output-start) >>                       (current-buffer)) >>                   (process-mark (get-buffer-process >> (current-buffer)))))) >> >>      (dolist (fun '(set-marker >>                     comint-send-input >>                     comint-output-filter >>                     comint-adjust-window-point >>                     comint-adjust-point >>                     ansi-color-process-output)) >>        (trace-function fun nil #'bug-40323-get-comint-output-marker))