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: Mon, 20 Apr 2020 12:07:18 +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> <87ftd22uz1.fsf@gmail.com> <73b0b37b-2ae9-f9c0-c673-4eaafe4ea61a@iebesalu.cat> <864ktf8wgm.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------872814DB99CF2A5F37F7E6CF" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="117043"; 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 Cc: 40323@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 20 16:55:51 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 1jQXpv-000UMF-HW for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 20 Apr 2020 16:55:51 +0200 Original-Received: from localhost ([::1]:37254 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQXpu-0000jL-HB for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 20 Apr 2020 10:55:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52692 helo=eggs1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQXpA-0000Fy-11 for bug-gnu-emacs@gnu.org; Mon, 20 Apr 2020 10:55:04 -0400 Original-Received: from Debian-exim by eggs1p.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jQXp9-0005cL-1j for bug-gnu-emacs@gnu.org; Mon, 20 Apr 2020 10:55:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36699) by eggs1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jQXp8-0005cD-KU for bug-gnu-emacs@gnu.org; Mon, 20 Apr 2020 10:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jQXp8-0003RD-Ji for bug-gnu-emacs@gnu.org; Mon, 20 Apr 2020 10:55: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: Mon, 20 Apr 2020 14:55: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.158739449813182 (code B ref 40323); Mon, 20 Apr 2020 14:55:02 +0000 Original-Received: (at 40323) by debbugs.gnu.org; 20 Apr 2020 14:54:58 +0000 Original-Received: from localhost ([127.0.0.1]:48242 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jQXp3-0003QX-U9 for submit@debbugs.gnu.org; Mon, 20 Apr 2020 10:54:58 -0400 Original-Received: from mail-ed1-f49.google.com ([209.85.208.49]:45163) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jQTKo-0002TI-5H for 40323@debbugs.gnu.org; Mon, 20 Apr 2020 06:07:27 -0400 Original-Received: by mail-ed1-f49.google.com with SMTP id f12so6842302edn.12 for <40323@debbugs.gnu.org>; Mon, 20 Apr 2020 03:07:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iebesalu-cat.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=zif2F37D1gLaDl/RoM/yZvlv/e42jJUJz4D+se7Blqo=; b=lT72gx80YhlXv8xZvUqO3OmkXbH/iwD8VZwQC9l6JSZf3lEVNpsioXNea9nsD2SBlj M33lvbCt6wGt2dfIX5PxQyfynR+GyWMtEeuO8vcVoePNv2qBvBifJE2untxuW0TFIw06 kGP57iGlBn6cp1Mf2RqAxPL1QMPNlXt2dgLDGLg/55B42iGzO52psYCQ9Aozemfg5M+c ED10wusVSIhx2VNKsXzi/16qcKQhVrVFIH8c9mpLfuozepU3OZlgZF2AXLCxTrqvl34n dEzSnxa5HzScIDTsuwj0HEKK+Rd5+9F5qf09BnUMKL5UzxVfhiOrzBh3zsRzL9NMzUMI +3Hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=zif2F37D1gLaDl/RoM/yZvlv/e42jJUJz4D+se7Blqo=; b=lWLLunUw1+OkxbNDIvCBAGmyd6NNUWkxail0qoLpDQPQvvWRNvodQlbk6shR8SKS2A KOk75fyEB523eGx83urmV16iAsF14jymXuj6ypOtv+z8Dlb68ouWCMaNWkDPPeYYLHEZ Gg8Ux7rOUS4BjjznneS3qjuOE/58HT7S/N5tV7fbGAnnNtVe22uqN5TU9y+HhT63g9IG EX8xAOAvopMa9Lwm4o9NSWL15q4+l5vGTdfqOG2DA4x+zBUmAbqKCzEKS92VyXxQpH1j f74R0bhkurXg8mozVkv0pIVdoEJRbdsR/hTNJTthNdStrCVRciIM+01vMivQYMMj+N0a 4jEg== X-Gm-Message-State: AGi0PubVBdiP46H/wr2d9HxAF9WnX77TdbYc6Xjc9cSE3MMHBKgcb8Xl LYXNl8YQ9JWZrRwrWWUt3/je0Pqnn5s= X-Google-Smtp-Source: APiQypJPeQ3rm8v7BAfnva4ogT14msYieI5AnwYSEUDzcC/EMNsmXtJLv5xzmWnA3CXjyU3PT/BGjA== X-Received: by 2002:a50:c004:: with SMTP id r4mr12723365edb.110.1587377239853; Mon, 20 Apr 2020 03:07:19 -0700 (PDT) Original-Received: from [192.168.100.54] ([185.154.8.143]) by smtp.gmail.com with ESMTPSA id f21sm95109ejw.55.2020.04.20.03.07.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Apr 2020 03:07:19 -0700 (PDT) In-Reply-To: <864ktf8wgm.fsf@gmail.com> Content-Language: en-US X-Mailman-Approved-At: Mon, 20 Apr 2020 10:54:57 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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:178715 Archived-At: This is a multi-part message in MIME format. --------------872814DB99CF2A5F37F7E6CF Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit OK, I replaced the old function and now it outputs this: |====================================================================== 1 -> (comint-output-filter # "[04/20/20, 12:00:53:017] info: Store: FOREGROUND_APP ")(:comint-pmark nil) | 2 -> (set-marker # 34261)(:comint-pmark (# . #)) | 2 <- set-marker: #(:comint-pmark (# . #)) | 2 -> (set-marker # 34316)(:comint-pmark (# . #)) | 2 <- set-marker: #(:comint-pmark (# . #)) | 2 -> (ansi-color-process-output "[04/20/20, 12:00:53:017] info: Store: FOREGROUND_APP ")(:comint-pmark (# . #)) | 2 <- ansi-color-process-output: nil(:comint-pmark (# . #)) | 2 -> (set-marker # 34316)(:comint-pmark (# . #)) | 2 <- set-marker: #(:comint-pmark (# . #)) 1 <- comint-output-filter: #(:comint-pmark nil) | I should probably make a simple program that prints a bunch of stuff and then hangs, so I can have predictable and reproducible output, that might help. So what do you exactly mean by that the process is ending normally? Jacob On 2020-04-19 14:57, Noam Postavsky wrote: > Jacob Lagares Pozo writes: > >> OK, not sure if this is what we want, but this is an example output >> that looks interesting. >> >> If needed I'll dump the whole thing to a file, compress, it and post >> it here. >> *slack*<4>>(:comint-pmark #>) >> 1 <- comint-output-filter: #> in *slack*<4>>(:comint-pmark nil) > I think this just shows the process ending normally. And I made a > mistake in the tracing function, better to see both markers, as in: > > (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)) > (cons > comint-last-output-start > (process-mark (get-buffer-process (current-buffer))))))) --------------872814DB99CF2A5F37F7E6CF Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

OK, I replaced the old function and now it outputs this:

======================================================================
1 -> (comint-output-filter #<process slack> "[04/20/20, 12:00:53:017] info: Store: FOREGROUND_APPĀ 
")(:comint-pmark nil)
| 2 -> (set-marker #<marker at 34155 in *slack*> 34261)(:comint-pmark (#<marker at 34155 in *slack*> . #<marker at 34261 in *slack*>))
| 2 <- set-marker: #<marker at 34261 in *slack*>(:comint-pmark (#<marker at 34261 in *slack*> . #<marker at 34261 in *slack*>))
| 2 -> (set-marker #<marker at 34261 in *slack*> 34316)(:comint-pmark (#<marker at 34261 in *slack*> . #<marker at 34261 in *slack*>))
| 2 <- set-marker: #<marker at 34316 in *slack*>(:comint-pmark (#<marker at 34261 in *slack*> . #<marker at 34316 in *slack*>))
| 2 -> (ansi-color-process-output "[04/20/20, 12:00:53:017] info: Store: FOREGROUND_APPĀ 
")(:comint-pmark (#<marker at 34261 in *slack*> . #<marker at 34316 in *slack*>))
| 2 <- ansi-color-process-output: nil(:comint-pmark (#<marker at 34261 in *slack*> . #<marker at 34316 in *slack*>))
| 2 -> (set-marker #<marker (moves after insertion) at 34316 in *slack*> 34316)(:comint-pmark (#<marker at 34261 in *slack*> . #<marker at 34316 in *slack*>))
| 2 <- set-marker: #<marker (moves after insertion) at 34316 in *slack*>(:comint-pmark (#<marker at 34261 in *slack*> . #<marker at 34316 in *slack*>))
1 <- comint-output-filter: #<marker (moves after insertion) at 34316 in *slack*>(:comint-pmark nil)

I should probably make a simple program that prints a bunch of stuff and then hangs, so I can have predictable and reproducible output, that might help.

So what do you exactly mean by that the process is ending normally?

Jacob

On 2020-04-19 14:57, Noam Postavsky wrote:
Jacob Lagares Pozo <jlagarespo@iebesalu.cat> writes:

OK, not sure if this is what we want, but this is an example output
that looks interesting.

If needed I'll dump the whole thing to a file, compress, it and post
it here.
*slack*<4>>(:comint-pmark #<marker at 238675 in *slack*<4>>)
1 <- comint-output-filter: #<marker (moves after insertion) at 238675
in *slack*<4>>(:comint-pmark nil)
I think this just shows the process ending normally.  And I made a
mistake in the tracing function, better to see both markers, as in:

    (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))
                 (cons
                  comint-last-output-start
                  (process-mark (get-buffer-process (current-buffer)))))))
--------------872814DB99CF2A5F37F7E6CF--