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:39:45 +0200 Message-ID: <9861d97d-9e7e-5ac8-bd71-f52caad92024@iebesalu.cat> References: <35ec6e03-5df2-3b35-9076-3421d7a3f2c9@iebesalu.cat> <87bloci0yw.fsf@gmail.com> <87v9m132pj.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="92226"; 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:15 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 1jPPRn-000Ns4-JR for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 17 Apr 2020 13:46:15 +0200 Original-Received: from localhost ([::1]:45984 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPPRm-0006Dt-ES for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 17 Apr 2020 07:46:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49334) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPPRc-0006Cc-Ut for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2020 07:46:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jPPRb-0001Fv-H0 for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2020 07:46:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56795) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jPPRa-0001FE-2Y for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2020 07:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jPPRa-00081t-29 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.158712394730837 (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:47 +0000 Original-Received: from localhost ([127.0.0.1]:40106 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jPPRL-00081I-DU for submit@debbugs.gnu.org; Fri, 17 Apr 2020 07:45:47 -0400 Original-Received: from mail-ej1-f52.google.com ([209.85.218.52]:41436) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jPPLd-0007rw-Bp for 40323@debbugs.gnu.org; Fri, 17 Apr 2020 07:39:54 -0400 Original-Received: by mail-ej1-f52.google.com with SMTP id x1so1332680ejd.8 for <40323@debbugs.gnu.org>; Fri, 17 Apr 2020 04:39:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iebesalu-cat.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=Q8ek9JmjRDTFcNUoVUc+zCjtosDMSZOG/jiO6PjdeOw=; b=OTNMN9uNdmiC/EPkRk1nMaC9sVRxkLc0BPP55DjxaWK4zqH5/q0AtxzVwodzhuXt8A qcX93dQARb6pvwy7eCIgCknQLYOBdlaB1GJlmn+yZsHScvpLpgCxmudmMZ7cYnl3Qbix GUMrcZ3Zp880kiSAJPRyZJPNqMcnXSx/Nz7xT9i5dCSvYYEZ2j4eXgtOjTY2u+k/iPkZ NZNuiFocAL/V8ivNKptBC75g2yK+UR92OyX7iSZa1rHr9uOIiz2Uy/hR//hB0HSU493c S+laUhUjK+a0kxpCZNtTZCOqRRZ33kJEcKuHERgmYFP5qGlyLN5bTBxIupskF+TDJhao cprQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=Q8ek9JmjRDTFcNUoVUc+zCjtosDMSZOG/jiO6PjdeOw=; b=AcJz8iZLlWfV44ox9H1bWNzm5WKWaGkue7YL9bHTRLjaj93mKUhSOR9P28QKRc37W5 HojujYZ0VXiiI2eNkrhSD2F/fQ42JovTAP12I57EhuPcpN9g88JWe2rCxNIImJNt2r1w jkL8tGKlHqHx1wvzrZ7nfZ2sBwvB+I1b6mtURDHc3Lf2Ke6y1skrwKsLuzseZV3BBfef 2bjI3ffwqGzMpQ3amryQN6eDf9RzvXwa3PMkMvnRfvmGrxwjEwzI61AlbhEWwRFtDMNR 0c7ihre66JivGLKdbP8fnX+Dgx8rxkt6/6YfYKEVE7g8awBQoRAQogjH+NheqXcEBi68 O6JQ== X-Gm-Message-State: AGi0PubFuQC/RO4DJGfGFKnUkViLE0KJmTnDFCKMyRJJQx/fouwnrvDj NkZc4k8zUg+XJmumxI7LO4B2jOfNe50= X-Google-Smtp-Source: APiQypK/fvLEgpW8M0edRT49OBpxmPoTs3N4gxklxx16GByRSNbtYqLcfwslmfigufhuATZa0spQEA== X-Received: by 2002:a17:906:412:: with SMTP id d18mr2407445eja.54.1587123587085; Fri, 17 Apr 2020 04:39:47 -0700 (PDT) Original-Received: from [192.168.100.54] ([185.154.8.143]) by smtp.gmail.com with ESMTPSA id s9sm458751edy.33.2020.04.17.04.39.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Apr 2020 04:39:46 -0700 (PDT) In-Reply-To: <87v9m132pj.fsf@gmail.com> 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:178505 Archived-At: 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))