Subject: Re: bug#71525: 30.0.50; Spin in delete-region/interval_deletion_adjustment

From: Eli Zaretskii <[email-masked]>
Date: Thu, 13 Jun 2024 08:49:35 +0300

> Date: Wed, 12 Jun 2024 12:20:49 -0700
> From:  Steven Allen via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <[email-masked]>
> 
> After rebuilding today, enabling the eshell-tramp module and calling
> sudo is causing a `delete-region` subcall (presumably from within
> `tramp-wait-for-output`?) to spin within `interval_deletion_adjustment`
> (or it might be repeatedly calling it?).
> 
> NOTE: this happens after authentication.
> 
> To reproduce:
> 
> 1. `emacs -Q`
> 2. `M-x eval-expression RET (require 'eshell) RET`
> 3. `M-x eval-expression RET (add-to-list 'eshell-modules-list 'eshell-tramp)`.
> 4. `M-x eshell`
> 5. `sudo /usr/bin/echo`
> 6. Authenticate, press enter, and watch Emacs lock up and go to 100% CPU usage.
> 
> 
> I've collected two backtraces: one with native compilation
> (with-native-comp.txt) and one after re-evaluating (with-eval.txt) the
> appropriate files (tramp-sh.el, tramp.el) to rule out compilation
> issues. See attached.

Thanks, but please also start GDB from the Emacs src directory (or
type "source /path/to/emacs/src/.gdbinit" after starting GDB), and
show Lisp backtrace produced together with the C backtrace.  This will
make it easier to analyze the relevant Lisp code -- all those Ffuncall
and Fapply calls will show the Lisp symbols they call.