GNU bug report logs - #77942
31.0.50; replace-region-contents gets stuck

Previous Next

Package: emacs;

Reported by: Gerd Möllmann <gerd.moellmann <at> gmail.com>

Date: Sun, 20 Apr 2025 15:30:07 UTC

Severity: normal

Found in version 31.0.50

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Gerd Möllmann <gerd.moellmann <at> gmail.com>,
 Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 77942 <at> debbugs.gnu.org
Subject: Re: bug#77942: 31.0.50; replace-region-contents gets stuck
Date: Sun, 20 Apr 2025 19:06:44 +0300
> From: Gerd Möllmann <gerd.moellmann <at> gmail.com>
> Date: Sun, 20 Apr 2025 17:28:51 +0200
> 
> To reproduce with emacs -Q, define this function
> 
> (defun elb-replace-region-contents-entry ()
>   (with-temp-buffer
>     (let ((step (apply #'concat (make-list 2000 "🙂été👶🏿 "))))
>       (dotimes (_ (/ 10000000 (length step)))
>         (insert step)))
> 
>     (dotimes (_ 100)
>       (let* ((a (1+ (random (point-max))))
> 	     (b (1+ (random (point-max))))
> 	     (beg (min a b))
> 	     (end (max a b)))
> 	(replace-region-contents beg end "🙂été👶🏿 🙂été👶🏿 ")))))
> 
> and evaluate
> 
>   /elb-replace-region-contents-entry)
> 
> This enters an (infinite?) loop that cannot be interrupted with C-g in
> the GUI version. If started with -nw, C-g eventually crashes Emacs,
> without printing anything on stdout or stderr.

Adding Stefan.




This bug report was last modified 56 days ago.

Previous Next


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