GNU bug report logs - #40323
28.0.50; error in process filter: Invalid search bound (wrong side of point)

Previous Next

Package: emacs;

Reported by: Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat>

Date: Mon, 30 Mar 2020 11:11:02 UTC

Severity: normal

Tags: moreinfo

Found in version 28.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 40323 in the body.
You can then email your comments to 40323 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#40323; Package emacs. (Mon, 30 Mar 2020 11:11:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 30 Mar 2020 11:11:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50; error in process filter: Invalid search bound (wrong side of
 point)
Date: Mon, 30 Mar 2020 13:04:50 +0200

I am currently using EXMW as my main window manager, and I have been
having some problems with ansi-color-apply-on-region.

I originally posted an issue to the EXWM github repository
(https://github.com/ch11ng/exwm/issues/729), where I got pointed to
submit a bug report here (because that is probably an Emacs bug, and not
an EXWM one).

My *Messages* buffer gets spammed all over with the two following error 
messages,
which freeze Emacs for a few seconds each time.

error in process filter: ansi-color-apply-on-region: Invalid search 
bound (wrong side of point)
error in process filter: Invalid search bound (wrong side of point)

This makes it really difficult to type commands or really do
anything. It happens when I open an EXWM window. I think when the
window outputs text (which goes to the *Async Shell Command* buffer) and
Emacs tries to colorize it, it fails for (possibly) a bug in
ansi-color-apply-on-region. Here is the backtrace if I enable
debug-on-error:

Debugger entered--Lisp error: (error "Invalid search bound (wrong side 
of point)")
re-search-forward("\33\\[[0-?]*[ -/]*[@-~]" #<marker at 1 in *Async 
Shell Command*> t)
ansi-color-apply-on-region(#<marker at 152 in *Async Shell Command*> 
#<marker at 1 in *Async Shell Command*>)
ansi-color-process-output("[03/29/20, 16:21:53:387] info: [FOCUS-EVENT] 
Clien...")
run-hook-with-args(ansi-color-process-output "[03/29/20, 16:21:53:387] 
info: [FOCUS-EVENT] Clien...")
comint-output-filter(#<process Shell> "[03/29/20, 16:21:53:387] info: 
[FOCUS-EVENT] Clien...")

I don't know if I can provide much more information than this, mainly
because my elisp-fu is not really something you can consider to be
"great". If there is anything else I could provide that could
potentially help solved the problem, please let me know about it.

Many thanks,
Jacob


In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 
3.24.14, cairo version 1.16.0)
of 2020-03-28 built on neocomputery
Repository revision: dceba13ce57ed0cb726e89566197f77359a38d91
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12007000
System Description: Debian GNU/Linux bullseye/sid

Recent messages:
error in process filter: Invalid search bound (wrong side of point)
error in process filter: ansi-color-apply-on-region: Invalid search 
bound (wrong side of point)
error in process filter: Invalid search bound (wrong side of point)
error in process filter: ansi-color-apply-on-region: Invalid search 
bound (wrong side of point)
error in process filter: Invalid search bound (wrong side of point)
error in process filter: ansi-color-apply-on-region: Invalid search 
bound (wrong side of point)
error in process filter: Invalid search bound (wrong side of point)
error in process filter: ansi-color-apply-on-region: Invalid search 
bound (wrong side of point)
error in process filter: Invalid search bound (wrong side of point)
user-error: End of history; no default available

Configured using:
'configure --prefix=/usr/local'

Configured features:
XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY
INOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS JSON PDUMPER LCMS2
GMP

Important settings:
value of $LC_ALL: POSIX
value of $LANG: en_US.UTF-8
locale-coding-system: nil

Major mode: EXWM

Minor modes in effect:
global-linum-mode: t
linum-mode: t
global-hl-line-mode: t
display-time-mode: t
delete-selection-mode: t
helm--remap-mouse-mode: t
smartparens-global-mode: t
smartparens-mode: t
pyvenv-mode: t
company-quickhelp-mode: t
company-quickhelp-local-mode: t
global-company-mode: t
company-mode: t
shell-dirtrack-mode: t
tooltip-mode: t
global-eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
buffer-read-only: t
transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny rfc822 mml mml-sec epa
epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils helm-command
helm-elisp helm-eval edebug backtrace find-func helm-info helm-mode
helm-files helm-tags helm-locate winner dired dired-loaddefs
helm-buffers helm-occur helm-grep helm-regexp helm-utils helm-help
helm-types disp-table init appareance linum hl-line atom-one-dark-theme
keybinds key-chord welcome misc time utility swiper ivy delsel colir
ivy-overlay helm derived helm-source eieio-compat helm-multi-match
helm-lib async dockerfile-mode sh-script smie executable smartparens
powerline powerline-separators color powerline-themes align glsl-mode
easy-mmode python-elpy cl-extra yasnippet highlight-indentation
flymake-proc flymake warnings help-fns radix-tree help-mode elpy advice
elpy-rpc pyvenv eshell esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg
esh-module esh-groups esh-util elpy-shell elpy-profile elpy-django
elpy-refactor python tramp-sh grep cus-edit cus-start cus-load wid-edit
cpp-ide company-oddmuse company-keywords company-etags etags fileloop
generator xref project company-gtags company-dabbrev-code
company-dabbrev company-files company-capf company-cmake company-xcode
company-clang company-semantic company-eclim company-template
company-bbdb company-quickhelp pos-tip company pcase rtags popup repeat
compile tramp tramp-loaddefs trampver tramp-integration files-x
tramp-compat shell pcomplete comint ansi-color ring parse-time iso8601
time-date ls-lisp format-spec asm-mode cc-mode cc-fonts cc-guess
cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs bookmark
text-property-search pp cmake-ide dash s levenshtein find-file
cmake-mode thingatpt rx code-style edmacro exwm-config ido exwm
exwm-input xcb-keysyms xcb-xkb exwm-manage exwm-floating xcb-cursor
xcb-render exwm-layout exwm-workspace exwm-core xcb-ewmh xcb-icccm xcb
xcb-xproto xcb-types xcb-debug kmacro server finder-inf info package
easymenu browse-url url-handlers url-parse auth-source cl-seq eieio
eieio-core cl-macs eieio-loaddefs password-cache json subr-x map
url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode
lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch
timer select scroll-bar mouse jit-lock font-lock syntax facemenu
font-core term/tty-colors frame minibuffer cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese composite charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote threads dbusbind
inotify lcms2 dynamic-setting system-font-setting font-render-setting
cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 485189 55779)
(symbols 48 38590 1)
(strings 32 137640 4402)
(string-bytes 1 4451964)
(vectors 16 63773)
(vector-slots 8 948631 40542)
(floats 8 296 541)
(intervals 56 1884 1420)
(buffers 1000 21))





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#40323; Package emacs. (Mon, 30 Mar 2020 14:52:02 GMT) Full text and rfc822 format available.

Message #8 received at 40323 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat>
Cc: 40323 <at> debbugs.gnu.org
Subject: Re: bug#40323: 28.0.50;
 error in process filter: Invalid search bound (wrong side of point)
Date: Mon, 30 Mar 2020 10:50:55 -0400
Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat> writes:

> Debugger entered--Lisp error: (error "Invalid search bound (wrong side of point)")
>   re-search-forward("\33\\[[0-?]*[ -/]*[@-~]" #<marker at 1 in *Async Shell Command*> t)
>   ansi-color-apply-on-region(#<marker at 152 in *Async Shell Command*> #<marker at 1 in *Async Shell Command*>)
>   ansi-color-process-output("[03/29/20, 16:21:53:387] info: [FOCUS-EVENT] Clien...")
>   run-hook-with-args(ansi-color-process-output "[03/29/20, 16:21:53:387] info: [FOCUS-EVENT] Clien...")
>   comint-output-filter(#<process Shell> "[03/29/20, 16:21:53:387] info: [FOCUS-EVENT] Clien...")

It looks like the start and end markers are the wrong way around.  Does
the patch below help?  If yes, the next question would be how they got
that way.  Perhaps that indicates a problem in comint.el?

--- i/lisp/ansi-color.el
+++ w/lisp/ansi-color.el
@@ -222,6 +222,10 @@ ansi-color-process-output
 			  comint-last-output-start
 			(point-min-marker)))
 	(end-marker (process-mark (get-buffer-process (current-buffer)))))
+    (when (> start-marker end-marker)
+      (let ((s start-marker))
+        (setq start-marker end-marker
+              end-marker s)))
     (cond ((eq ansi-color-for-comint-mode nil))
 	  ((eq ansi-color-for-comint-mode 'filter)
 	   (ansi-color-filter-region start-marker end-marker))





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#40323; Package emacs. (Mon, 30 Mar 2020 15:26:02 GMT) Full text and rfc822 format available.

Message #11 received at 40323 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 40323 <at> debbugs.gnu.org, Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat>
Subject: Re: bug#40323: 28.0.50; error in process filter: Invalid search
 bound (wrong side of point)
Date: Mon, 30 Mar 2020 17:25:03 +0200
On Mär 30 2020, Noam Postavsky wrote:

> Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat> writes:
>
>> Debugger entered--Lisp error: (error "Invalid search bound (wrong side of point)")
>>   re-search-forward("\33\\[[0-?]*[ -/]*[@-~]" #<marker at 1 in *Async Shell Command*> t)
>>   ansi-color-apply-on-region(#<marker at 152 in *Async Shell Command*> #<marker at 1 in *Async Shell Command*>)
>>   ansi-color-process-output("[03/29/20, 16:21:53:387] info: [FOCUS-EVENT] Clien...")
>>   run-hook-with-args(ansi-color-process-output "[03/29/20, 16:21:53:387] info: [FOCUS-EVENT] Clien...")
>>   comint-output-filter(#<process Shell> "[03/29/20, 16:21:53:387] info: [FOCUS-EVENT] Clien...")
>
> It looks like the start and end markers are the wrong way around.  Does
> the patch below help?  If yes, the next question would be how they got
> that way.  Perhaps that indicates a problem in comint.el?

Or another filter has moved the process mark.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#40323; Package emacs. (Mon, 30 Mar 2020 15:51:01 GMT) Full text and rfc822 format available.

Message #14 received at 40323 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Noam Postavsky <npostavs <at> gmail.com>, Jacob Lagares Pozo
 <jlagarespo <at> iebesalu.cat>
Cc: 40323 <at> debbugs.gnu.org
Subject: RE: bug#40323: 28.0.50; error in process filter: Invalid search bound
 (wrong side of point)
Date: Mon, 30 Mar 2020 08:49:54 -0700 (PDT)
> +      (let ((s start-marker))
> +        (setq start-marker end-marker
> +              end-marker s)))

A perhaps less clear but common cliche for that:

(setq start-marker (prog1 end-marker (setq end-marker start-marker)))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#40323; Package emacs. (Tue, 31 Mar 2020 23:01:02 GMT) Full text and rfc822 format available.

Message #17 received at 40323 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: 40323 <at> debbugs.gnu.org
Cc: Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat>
Subject: Re: bug#40323: 28.0.50; error in process filter: Invalid search
 bound (wrong side of point)
Date: Tue, 31 Mar 2020 19:00:39 -0400
[Message part 1 (text/plain, inline)]
[forwarding to list, please use "Reply All" to keep 40323 <at> debbugs.gnu.org on Cc]

[Message part 2 (message/rfc822, inline)]
From: Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat>
To: Noam Postavsky <npostavs <at> gmail.com>
Subject: Re: bug#40323: 28.0.50; error in process filter: Invalid search bound (wrong side of point)
Date: Tue, 31 Mar 2020 12:16:25 +0200
[Message part 3 (text/plain, inline)]
Hello Noam (and everyone else),

Thanks for your quick response.

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?

This is my list of installed packages, directly from package-list-packages:

|  atom-dark-theme    20181022.1602 installed             An Emacs port 
of the Atom Dark theme from Atom.io.
  atom-one-dark-theme 20190705.554  installed             Atom One Dark 
color theme
  avy                20200311.1106 installed             Jump to 
arbitrary positions in visible text and select text quickly.
  cmake-ide          20190731.1009 installed             Calls CMake to 
find out include paths and other compiler flags
  cmake-mode         20190710.1319 installed major-mode for editing 
CMake sources
  company-quickhelp  20180525.1003 installed             Popup 
documentation for completion candidates
  company-rtags      20191222.920  installed             RTags back-end 
for company
  dockerfile-mode    20200106.2126 installed             Major mode for 
editing Docker's Dockerfiles
  elpy               20200326.2207 installed             Emacs Python 
Development Environment
  exwm               0.23          installed             Emacs X Window 
Manager
  glsl-mode          20191017.2148 installed             major mode for 
Open GLSL shader files
  gruvbox-theme      20200307.1522 installed             A retro-groove 
colour theme for Emacs
  helm               20200325.757  installed             Helm is an 
Emacs incremental and narrowing framework
  key-chord          20160227.1238 installed             map pairs of 
simultaneously pressed keys to commands
  powerline          20200105.2053 installed             Rewrite of 
Powerline
  smartparens        20200324.2147 installed             Automatic 
insertion, wrapping and paredit-like navigation with user defined pairs.
  sudo-edit          20180731.1908 installed             Open files as 
another user
  swiper             20200319.1334 installed             Isearch with 
an overview. Oh, man!
  zerodark-theme     20190528.923  installed             A dark, medium 
contrast theme for Emacs
|

If needed I can post (potentially) relevant fragments of my 
configuration files.

Kind regards,

Jacob

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#40323; Package emacs. (Wed, 15 Apr 2020 02:26:01 GMT) Full text and rfc822 format available.

Message #20 received at 40323 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: 40323 <at> debbugs.gnu.org
Cc: Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat>
Subject: Re: bug#40323: 28.0.50; error in process filter: Invalid search
 bound (wrong side of point)
Date: Tue, 14 Apr 2020 22:25:12 -0400
> 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))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#40323; Package emacs. (Fri, 17 Apr 2020 11:46:02 GMT) Full text and rfc822 format available.

Message #23 received at 40323 <at> debbugs.gnu.org (full text, mbox):

From: Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat>
To: Noam Postavsky <npostavs <at> gmail.com>, 40323 <at> debbugs.gnu.org
Subject: Re: 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
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))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#40323; Package emacs. (Fri, 17 Apr 2020 11:46:02 GMT) Full text and rfc822 format available.

Message #26 received at 40323 <at> debbugs.gnu.org (full text, mbox):

From: Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat>
To: Noam Postavsky <npostavs <at> gmail.com>, 40323 <at> debbugs.gnu.org
Subject: Re: 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
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))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#40323; Package emacs. (Fri, 17 Apr 2020 11:50:01 GMT) Full text and rfc822 format available.

Message #29 received at 40323 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat>
Cc: 40323 <at> debbugs.gnu.org
Subject: Re: bug#40323: 28.0.50; error in process filter: Invalid search
 bound (wrong side of point)
Date: Fri, 17 Apr 2020 07:49:06 -0400
Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat> writes:

> 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.

Please compress before posting.  If you can find a spot where the
comint-last-output-start goes from a large number to 1, I think that
would probably be where the interesting part is.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#40323; Package emacs. (Fri, 17 Apr 2020 15:51:03 GMT) Full text and rfc822 format available.

Message #32 received at 40323 <at> debbugs.gnu.org (full text, mbox):

From: Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 40323 <at> debbugs.gnu.org
Subject: Re: bug#40323: 28.0.50; error in process filter: Invalid search bound
 (wrong side of point)
Date: Fri, 17 Apr 2020 16:13:25 +0200
[Message part 1 (text/plain, inline)]
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.

Many thanks,

Jacob

|======================================================================
1 -> (comint-output-filter #<process slack> "[04/17/20, 16:06:12:068] 
info: [CHECK-FOR-OLD-IMS] (TAVFB00JW) Within limit: 4
")(:comint-pmark nil)
| 2 -> (set-marker #<marker at 238540 in *slack*<4>> 
238595)(:comint-pmark #<marker at 238595 in *slack*<4>>)
| 2 <- set-marker: #<marker at 238595 in *slack*<4>>(:comint-pmark 
#<marker at 238595 in *slack*<4>>)
| 2 -> (set-marker #<marker at 238595 in *slack*<4>> 
238675)(:comint-pmark #<marker at 238595 in *slack*<4>>)
| 2 <- set-marker: #<marker at 238675 in *slack*<4>>(:comint-pmark 
#<marker at 238675 in *slack*<4>>)
| 2 -> (ansi-color-process-output "[04/17/20, 16:06:12:068] info: 
[CHECK-FOR-OLD-IMS] (TAVFB00JW) Within limit: 4
")(:comint-pmark #<marker at 238675 in *slack*<4>>)
| 2 <- ansi-color-process-output: nil(:comint-pmark #<marker at 238675 
in *slack*<4>>)
| 2 -> (set-marker #<marker (moves after insertion) at 238675 in 
*slack*<4>> 238675)(:comint-pmark #<marker at 238675 in *slack*<4>>)
| 2 <- set-marker: #<marker (moves after insertion) at 238675 in 
*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)
|

On 2020-04-17 13:49, Noam Postavsky wrote:
> Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat> writes:
>
>> 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.
> Please compress before posting.  If you can find a spot where the
> comint-last-output-start goes from a large number to 1, I think that
> would probably be where the interesting part is.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#40323; Package emacs. (Sun, 19 Apr 2020 12:58:02 GMT) Full text and rfc822 format available.

Message #35 received at 40323 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat>
Cc: 40323 <at> debbugs.gnu.org
Subject: Re: bug#40323: 28.0.50;
 error in process filter: Invalid search bound (wrong side of point)
Date: Sun, 19 Apr 2020 08:57:13 -0400
Jacob Lagares Pozo <jlagarespo <at> 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)))))))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#40323; Package emacs. (Mon, 20 Apr 2020 14:55:02 GMT) Full text and rfc822 format available.

Message #38 received at 40323 <at> debbugs.gnu.org (full text, mbox):

From: Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 40323 <at> debbugs.gnu.org
Subject: Re: 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 part 1 (text/plain, inline)]
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 <at> 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)))))))
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#40323; Package emacs. (Tue, 21 Apr 2020 02:31:02 GMT) Full text and rfc822 format available.

Message #41 received at 40323 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat>
Cc: 40323 <at> debbugs.gnu.org
Subject: Re: bug#40323: 28.0.50;
 error in process filter: Invalid search bound (wrong side of point)
Date: Mon, 20 Apr 2020 22:29:54 -0400
Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat> writes:

> 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.

It occurs to me that you should see a "non-local exit" in the trace when
the error triggers, and the traces just before that should hopefully
show the swapping of marker positions occuring.

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

Oh, hmm, I was still a bit confused.  I thought the (:comint-pmark nil)
meant the marker was deleted, but actually it's just because around the
call to comint-output-filter a different buffer is current (which makes
the check in the tracing function fail).  Maybe one more tweak to the
tracing function:

    (defun bug-40323-get-comint-output-marker ()
      (list :comint-pmark
            (let ((buf (and (markerp comint-last-output-start)
                            (marker-buffer comint-last-output-start))))
              (when (buffer-live-p buf)
                (cons
                 comint-last-output-start
                 (process-mark (get-buffer-process buf)))))))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#40323; Package emacs. (Tue, 05 May 2020 12:36:01 GMT) Full text and rfc822 format available.

Message #44 received at 40323 <at> debbugs.gnu.org (full text, mbox):

From: Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 40323 <at> debbugs.gnu.org
Subject: Re: bug#40323: 28.0.50; error in process filter: Invalid search bound
 (wrong side of point)
Date: Tue, 5 May 2020 14:01:08 +0200
[Message part 1 (text/plain, inline)]
Hello Noam,

I'm sorry for the late reply. I have been having some problems with the 
power source of my computer as of lately. Everything seems to be doing 
fine now though, so I'll get back to this.

I made a very simple program that just prints a bunch of stuff to stdout 
and stderr:

If I run it without your patches, it works surprisingly just fine (I 
noticed the original errors pop up most commonly on Slack I guess 
because it prints a lot more?), whereas if I evaluate said patches, this 
is the output of the trace buffer:

|======================================================================
1 -> (comint-output-filter #<process Shell> "stdout:
hello, world
Im gonna print some stuff
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
stderr:
AHHHH PANIC CATASTROPHIC FAILIURE!!!
The quick brown fox jumps over the lazy dog.
")(:comint-pmark nil)
| 2 -> (set-marker #<marker in no buffer> 1)(:comint-pmark nil)
| 2 <- set-marker: #<marker at 1 in *Async Shell Command*>(:comint-pmark 
(#<marker at 1 in *Async Shell Command*> . #<marker at 1 in *Async Shell 
Command*>))
| 2 -> (set-marker #<marker at 1 in *Async Shell Command*> 
191)(:comint-pmark (#<marker at 1 in *Async Shell Command*> . #<marker 
at 1 in *Async Shell Command*>))
| 2 <- set-marker: #<marker at 191 in *Async Shell 
Command*>(:comint-pmark (#<marker at 1 in *Async Shell Command*> . 
#<marker at 191 in *Async Shell Command*>))
| 2 -> (ansi-color-process-output "stdout:
hello, world
Im gonna print some stuff
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
stderr:
AHHHH PANIC CATASTROPHIC FAILIURE!!!
The quick brown fox jumps over the lazy dog.
")(:comint-pmark (#<marker at 1 in *Async Shell Command*> . #<marker at 
191 in *Async Shell Command*>))
| 2 <- ansi-color-process-output: nil(:comint-pmark (#<marker at 1 in 
*Async Shell Command*> . #<marker at 191 in *Async Shell Command*>))
| 2 -> (comint-adjust-window-point #<window 31 on *Async Shell Command*> 
#<process Shell>)(:comint-pmark (#<marker at 1 in *Async Shell Command*> 
. #<marker at 191 in *Async Shell Command*>))
| 2 <- comint-adjust-window-point: nil(:comint-pmark (#<marker at 1 in 
*Async Shell Command*> . #<marker at 191 in *Async Shell Command*>))
| 2 -> (set-marker #<marker (moves after insertion) at 191 in *Async 
Shell Command*> 191)(:comint-pmark (#<marker at 1 in *Async Shell 
Command*> . #<marker at 191 in *Async Shell Command*>))
| 2 <- set-marker: #<marker (moves after insertion) at 191 in *Async 
Shell Command*>(:comint-pmark (#<marker at 1 in *Async Shell Command*> . 
#<marker at 191 in *Async Shell Command*>))
1 <- comint-output-filter: #<marker (moves after insertion) at 191 in 
*Async Shell Command*>(:comint-pmark nil)
|

I am not sure what does this mean, perhaps it is some special character 
Slack uses for logging that messes with those markers, I don't know. 
Maybe I could try printing all of the ASCII characters sequentially and 
see what happens.

Regardless, I'm still not entirely sure what your code is doing anyway.

Thanks, Jacob

PS: I don't know if I might have accidentally sent the message halfway 
writing it; if you see anything weird in another message, that might be 
the reason why.

On 21/04/2020 04:29, Noam Postavsky wrote:
> Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat> writes:
>
>> 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.
> It occurs to me that you should see a "non-local exit" in the trace when
> the error triggers, and the traces just before that should hopefully
> show the swapping of marker positions occuring.
>
>> So what do you exactly mean by that the process is ending normally?
> Oh, hmm, I was still a bit confused.  I thought the (:comint-pmark nil)
> meant the marker was deleted, but actually it's just because around the
> call to comint-output-filter a different buffer is current (which makes
> the check in the tracing function fail).  Maybe one more tweak to the
> tracing function:
>
>      (defun bug-40323-get-comint-output-marker ()
>        (list :comint-pmark
>              (let ((buf (and (markerp comint-last-output-start)
>                              (marker-buffer comint-last-output-start))))
>                (when (buffer-live-p buf)
>                  (cons
>                   comint-last-output-start
>                   (process-mark (get-buffer-process buf)))))))
[Message part 2 (text/html, inline)]
[bbndlgkhocibkjda.png (image/png, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#40323; Package emacs. (Tue, 05 May 2020 17:34:01 GMT) Full text and rfc822 format available.

Message #47 received at 40323 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat>
Cc: 40323 <at> debbugs.gnu.org
Subject: Re: bug#40323: 28.0.50;
 error in process filter: Invalid search bound (wrong side of point)
Date: Tue, 05 May 2020 13:33:45 -0400
Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat> writes:

> If I run it without your patches, it works surprisingly just fine (I
> noticed the original errors pop up most commonly on Slack I guess
> because it prints a lot more?), whereas if I evaluate said patches,
> this is the output of the trace buffer:

I don't see anything unexpected in the trace either.

> I am not sure what does this mean, perhaps it is some special
> character Slack uses for logging that messes with those markers, I
> don't know. Maybe I could try printing all of the ASCII characters
> sequentially and see what happens.

Well, ideally we would want a trace from something that does trigger the
error.

> Regardless, I'm still not entirely sure what your code is doing anyway.

It's basically just printing out the values of the markers, so we might
hopefully notice when they get changed in an unexpected way.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#40323; Package emacs. (Tue, 12 May 2020 14:59:02 GMT) Full text and rfc822 format available.

Message #50 received at 40323 <at> debbugs.gnu.org (full text, mbox):

From: Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 40323 <at> debbugs.gnu.org
Subject: Re: bug#40323: 28.0.50; error in process filter: Invalid search bound
 (wrong side of point)
Date: Tue, 12 May 2020 13:11:25 +0200
[Message part 1 (text/plain, inline)]
Here is an example output from Slack, even though weirdly enough nothing 
seemed to trigger the error:

|======================================================================<br 
/>
1 -&gt; (comint-output-filter #&lt;process Shell&gt; &quot;[05/12/20, 
13:06:14:636] info: [DESKTOP-SIDE-EFFECT] Update from desktop for keys 
&nbsp;[\&quot;settings\&quot;]&nbsp;<br />
&quot;)(:comint-pmark nil)<br />
| 2 -&gt; (set-marker #&lt;marker at 37370 in *Async Shell Command*&gt; 
37469)(:comint-pmark (#&lt;marker at 37370 in *Async Shell Command*&gt; 
. #&lt;marker at 37469 in *Async Shell Command*&gt;))<br />
| 2 &lt;- set-marker: #&lt;marker at 37469 in *Async Shell 
Command*&gt;(:comint-pmark (#&lt;marker at 37469 in *Async Shell 
Command*&gt; . #&lt;marker at 37469 in *Async Shell Command*&gt;))<br />
| 2 -&gt; (set-marker #&lt;marker at 37469 in *Async Shell Command*&gt; 
37566)(:comint-pmark (#&lt;marker at 37469 in *Async Shell Command*&gt; 
. #&lt;marker at 37469 in *Async Shell Command*&gt;))<br />
| 2 &lt;- set-marker: #&lt;marker at 37566 in *Async Shell 
Command*&gt;(:comint-pmark (#&lt;marker at 37469 in *Async Shell 
Command*&gt; . #&lt;marker at 37566 in *Async Shell Command*&gt;))<br />
| 2 -&gt; (ansi-color-process-output &quot;[05/12/20, 13:06:14:636] 
info: [DESKTOP-SIDE-EFFECT] Update from desktop for keys 
&nbsp;[\&quot;settings\&quot;]&nbsp;<br />
&quot;)(:comint-pmark (#&lt;marker at 37469 in *Async Shell Command*&gt; 
. #&lt;marker at 37566 in *Async Shell Command*&gt;))<br />
| 2 &lt;- ansi-color-process-output: nil(:comint-pmark (#&lt;marker at 
37469 in *Async Shell Command*&gt; . #&lt;marker at 37566 in *Async 
Shell Command*&gt;))<br />
| 2 -&gt; (set-marker #&lt;marker (moves after insertion) at 37566 in 
*Async Shell Command*&gt; 37566)(:comint-pmark (#&lt;marker at 37469 in 
*Async Shell Command*&gt; . #&lt;marker at 37566 in *Async Shell 
Command*&gt;))<br />
| 2 &lt;- set-marker: #&lt;marker (moves after insertion) at 37566 in 
*Async Shell Command*&gt;(:comint-pmark (#&lt;marker at 37469 in *Async 
Shell Command*&gt; . #&lt;marker at 37566 in *Async Shell 
Command*&gt;))<br />
1 &lt;- comint-output-filter: #&lt;marker (moves after insertion) at 
37566 in *Async Shell Command*&gt;(:comint-pmark nil)<br />|

Because I am on the testing branch of Debian, is there any chance Emacs 
got updated and this bug fixed?

On 05/05/2020 19:33, Noam Postavsky wrote:
> Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat> writes:
>
>> If I run it without your patches, it works surprisingly just fine (I
>> noticed the original errors pop up most commonly on Slack I guess
>> because it prints a lot more?), whereas if I evaluate said patches,
>> this is the output of the trace buffer:
> I don't see anything unexpected in the trace either.
>
>> I am not sure what does this mean, perhaps it is some special
>> character Slack uses for logging that messes with those markers, I
>> don't know. Maybe I could try printing all of the ASCII characters
>> sequentially and see what happens.
> Well, ideally we would want a trace from something that does trigger the
> error.
>
>> Regardless, I'm still not entirely sure what your code is doing anyway.
> It's basically just printing out the values of the markers, so we might
> hopefully notice when they get changed in an unexpected way.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#40323; Package emacs. (Wed, 13 May 2020 01:22:02 GMT) Full text and rfc822 format available.

Message #53 received at 40323 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat>
Cc: 40323 <at> debbugs.gnu.org
Subject: Re: bug#40323: 28.0.50; error in process filter: Invalid search bound
 (wrong side of point)
Date: Tue, 12 May 2020 21:21:32 -0400
On Tue, 12 May 2020 at 07:11, Jacob Lagares Pozo
<jlagarespo <at> iebesalu.cat> wrote:
>
> Here is an example output from Slack, even though weirdly enough nothing seemed to trigger the error:

Do you mean you're not able to trigger the error at all now?

> Because I am on the testing branch of Debian, is there any chance Emacs got updated and this bug fixed?

Doubtful, but I thought you are running an Emacs from master (hence
the 28.0.50)? Or is it some snapshot package? I didn't think Debian
provided those.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#40323; Package emacs. (Fri, 15 May 2020 11:08:02 GMT) Full text and rfc822 format available.

Message #56 received at 40323 <at> debbugs.gnu.org (full text, mbox):

From: Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 40323 <at> debbugs.gnu.org
Subject: Re: bug#40323: 28.0.50; error in process filter: Invalid search bound
 (wrong side of point)
Date: Fri, 15 May 2020 13:06:57 +0200
Oh, I just realized what might have happened.

Do you remember I said earlier I had some problems with my computer? 
Well, before I had just built Emacs from master, but now, I think I 
installed it from the Debian repositories. My config is pretty much 
still the same (with some reorganization) but probably that's a bug with 
a newer version of Emacs.

Should I install the newer version with another prefix and try to 
reproduce it there?

On 13/05/2020 03:21, Noam Postavsky wrote:
> On Tue, 12 May 2020 at 07:11, Jacob Lagares Pozo
> <jlagarespo <at> iebesalu.cat> wrote:
>> Here is an example output from Slack, even though weirdly enough nothing seemed to trigger the error:
> Do you mean you're not able to trigger the error at all now?
>
>> Because I am on the testing branch of Debian, is there any chance Emacs got updated and this bug fixed?
> Doubtful, but I thought you are running an Emacs from master (hence
> the 28.0.50)? Or is it some snapshot package? I didn't think Debian
> provided those.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#40323; Package emacs. (Fri, 15 May 2020 15:47:02 GMT) Full text and rfc822 format available.

Message #59 received at 40323 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat>
Cc: 40323 <at> debbugs.gnu.org
Subject: Re: bug#40323: 28.0.50;
 error in process filter: Invalid search bound (wrong side of point)
Date: Fri, 15 May 2020 11:45:56 -0400
Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat> writes:

> Should I install the newer version with another prefix and try to
> reproduce it there?

Yes please.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#40323; Package emacs. (Sat, 16 May 2020 11:52:01 GMT) Full text and rfc822 format available.

Message #62 received at 40323 <at> debbugs.gnu.org (full text, mbox):

From: Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 40323 <at> debbugs.gnu.org
Subject: Re: bug#40323: 28.0.50; error in process filter: Invalid search bound
 (wrong side of point)
Date: Sat, 16 May 2020 13:50:56 +0200
[Message part 1 (text/plain, inline)]
|======================================================================
1 -&gt; (comint-output-filter #&lt;process Shell&gt; &quot;Initializing 
local storage instance at path: /home/sheep/.co\
nfig/Slack/local-settings.json
&quot;)(:comint-pmark nil)
| 2 -&gt; (set-marker #&lt;marker in no buffer&gt; 1)(:comint-pmark nil)
| 2 &lt;- set-marker: #&lt;marker at 1 in *Async Shell 
Command*&gt;(:comint-pmark (#&lt;marker at 1 in *Async Shell C\
ommand*&gt; . #&lt;marker at 1 in *Async Shell Command*&gt;))
| 2 -&gt; (set-marker #&lt;marker at 1 in *Async Shell Command*&gt; 
92)(:comint-pmark (#&lt;marker at 1 in *Async She\
ll Command*&gt; . #&lt;marker at 1 in *Async Shell Command*&gt;))
| 2 &lt;- set-marker: #&lt;marker at 92 in *Async Shell 
Command*&gt;(:comint-pmark (#&lt;marker at 1 in *Async Shell \
Command*&gt; . #&lt;marker at 92 in *Async Shell Command*&gt;))
| 2 -&gt; (ansi-color-process-output &quot;Initializing local storage 
instance at path: /home/sheep/.config/Slack\
/local-settings.json
&quot;)(:comint-pmark (#&lt;marker at 1 in *Async Shell Command*&gt; . 
#&lt;marker at 92 in *Async Shell Command*&gt;))
| 2 &lt;- ansi-color-process-output: #&lt;marker in no 
buffer&gt;(:comint-pmark (#&lt;marker at 1 in *Async Shell Com\
mand*&gt; . #&lt;marker at 92 in *Async Shell Command*&gt;))
| 2 -&gt; (comint-adjust-window-point #&lt;window 8 on *Async Shell 
Command*&gt; #&lt;process Shell&gt;)(:comint-pmark (\
#&lt;marker at 1 in *Async Shell Command*&gt; . #&lt;marker at 92 in 
*Async Shell Command*&gt;))
| 2 &lt;- comint-adjust-window-point: nil(:comint-pmark (#&lt;marker at 
1 in *Async Shell Command*&gt; . #&lt;marker \
at 92 in *Async Shell Command*&gt;))
| 2 -&gt; (set-marker #&lt;marker (moves after insertion) at 92 in 
*Async Shell Command*&gt; 92)(:comint-pmark (#&lt;\
marker at 1 in *Async Shell Command*&gt; . #&lt;marker at 92 in *Async 
Shell Command*&gt;))
| 2 &lt;- set-marker: #&lt;marker (moves after insertion) at 92 in 
*Async Shell Command*&gt;(:comint-pmark (#&lt;mark\
er at 1 in *Async Shell Command*&gt; . #&lt;marker at 92 in *Async Shell 
Command*&gt;))
1 &lt;- comint-output-filter: #&lt;marker (moves after insertion) at 92 
in *Async Shell Command*&gt;(:comint-pmark\
 nil)
|

This is on master, I can't seem to reproduce the bug, with or without 
the patch. This is getting progressively weirder; I remember perfectly 
how I launched just about anything and the error would start triggering 
immediately and it was super annoying.

All the packages are still the same. I am doing all the tests on Slack 
because it is the one I remembered that would trigger it more often. I 
have no clue what could be different this time around.

On 15/05/2020 17:45, Noam Postavsky wrote:
> Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat> writes:
>
>> Should I install the newer version with another prefix and try to
>> reproduce it there?
> Yes please.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#40323; Package emacs. (Wed, 20 May 2020 01:31:02 GMT) Full text and rfc822 format available.

Message #65 received at 40323 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat>
Cc: 40323 <at> debbugs.gnu.org
Subject: Re: bug#40323: 28.0.50; error in process filter: Invalid search
 bound (wrong side of point)
Date: Tue, 19 May 2020 21:29:52 -0400
Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat> writes:

> This is on master, I can't seem to reproduce the bug, with or without
> the patch. This is getting progressively weirder; I remember perfectly 
> how I launched just about anything and the error would start
> triggering immediately and it was super annoying.

Have you tried also without the tracing code enabled?  It's possible the
tracing changes the timing which could affect the reproduction.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#40323; Package emacs. (Sat, 23 Apr 2022 13:05:02 GMT) Full text and rfc822 format available.

Message #68 received at 40323 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 40323 <at> debbugs.gnu.org, Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat>
Subject: Re: bug#40323: 28.0.50; error in process filter: Invalid search
 bound (wrong side of point)
Date: Sat, 23 Apr 2022 15:03:51 +0200
Noam Postavsky <npostavs <at> gmail.com> writes:

>> This is on master, I can't seem to reproduce the bug, with or without
>> the patch. This is getting progressively weirder; I remember perfectly 
>> how I launched just about anything and the error would start
>> triggering immediately and it was super annoying.
>
> Have you tried also without the tracing code enabled?  It's possible the
> tracing changes the timing which could affect the reproduction.

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

This was a couple years ago -- Jacob, do you see this problem in more
recent versions of Emacs, or is it still apparently gone?  Parts of the
ansi code has been substantially rewritten over the past years...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 23 Apr 2022 13:05:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#40323; Package emacs. (Sun, 22 May 2022 11:28:01 GMT) Full text and rfc822 format available.

Message #73 received at 40323 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 40323 <at> debbugs.gnu.org, Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat>
Subject: Re: bug#40323: 28.0.50; error in process filter: Invalid search
 bound (wrong side of point)
Date: Sun, 22 May 2022 13:27:48 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> This was a couple years ago -- Jacob, do you see this problem in more
> recent versions of Emacs, or is it still apparently gone?  Parts of the
> ansi code has been substantially rewritten over the past years...

More information was requested, but no response was given within a
month, so I'm closing this bug report.  If the problem still exists,
please respond to this email and we'll reopen the bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 40323 <at> debbugs.gnu.org and Jacob Lagares Pozo <jlagarespo <at> iebesalu.cat> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 22 May 2022 11:29:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 20 Jun 2022 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 282 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.