From: Eli Zaretskii <eliz@gnu.org>
To: Daniel Clemente <n142857@gmail.com>
Cc: 71223@debbugs.gnu.org
Subject: bug#71223: 30.0.50; stack overflow after very fast opening and closing of frames
Date: Mon, 27 May 2024 15:23:01 +0300 [thread overview]
Message-ID: <86msobv3yy.fsf@gnu.org> (raw)
In-Reply-To: <CAJKAhPBwZPkLw=uevo5_WduWQPZdY+wrAuQBXeStd32UqTCyTg@mail.gmail.com> (message from Daniel Clemente on Mon, 27 May 2024 11:01:15 +0000)
> From: Daniel Clemente <n142857@gmail.com>
> Date: Mon, 27 May 2024 11:01:15 +0000
>
> (gdb) xbacktrace
> "sit-for" (0xffb4abf8)
> "server-return-error" (0xffb4adc0)
> "server-process-filter" (0xffb4b018)
> "sit-for" (0xffb4d108)
> "server-return-error" (0xffb4d2d0)
> "server-process-filter" (0xffb4d528)
> "sit-for" (0xffb4f618)
> "server-return-error" (0xffb4f7e0)
> "server-process-filter" (0xffb4fa38)
> "sit-for" (0xffb51b28)
> "server-return-error" (0xffb51cf0)
> "server-process-filter" (0xffb51f48)
> "sit-for" (0xffb54038)
> "server-return-error" (0xffb54200)
> "server-process-filter" (0xffb54458)
> "sit-for" (0xffb56548)
> "server-return-error" (0xffb56710)
> "server-process-filter" (0xffb56968)
> "sit-for" (0xffb58a58)
Does the patch below help?
diff --git a/lisp/server.el b/lisp/server.el
index b650532..e89a205 100644
--- a/lisp/server.el
+++ b/lisp/server.el
@@ -1159,7 +1159,7 @@ server-process-filter
;; it, in case the error written by emacsclient to stderr is not
;; visible for some reason.
(message "Authentication failed")
- (sit-for 2)
+ (sit-for 2 t)
(server-send-string
proc (concat "-error " (server-quote-arg "Authentication failed")))
(unless (eq system-type 'windows-nt)
@@ -1169,7 +1169,7 @@ server-process-filter
(delete-terminal terminal))))
;; Before calling `delete-process', give emacsclient time to
;; receive the error string and shut down on its own.
- (sit-for 1)
+ (sit-for 1 t)
(delete-process proc)
;; We return immediately.
(cl-return-from server-process-filter)))
@@ -1508,7 +1508,7 @@ server-return-error
;; it, in case the error written by emacsclient to stderr is not
;; visible for some reason.
(message (error-message-string err))
- (sit-for 2)
+ (sit-for 2 t)
(server-send-string
proc (concat "-error " (server-quote-arg
(error-message-string err))))
@@ -1520,7 +1520,7 @@ server-return-error
(delete-terminal terminal))))
;; Before calling `delete-process', give emacsclient time to
;; receive the error string and shut down on its own.
- (sit-for 5)
+ (sit-for 5 t)
(delete-process proc)))
(defun server-goto-line-column (line-col)
next prev parent reply other threads:[~2024-05-27 12:23 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-27 11:01 bug#71223: 30.0.50; stack overflow after very fast opening and closing of frames Daniel Clemente
2024-05-27 12:23 ` Eli Zaretskii [this message]
2024-05-27 12:36 ` Eli Zaretskii
2024-05-27 14:44 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-27 15:21 ` Eli Zaretskii
2024-05-27 17:49 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-27 18:15 ` Eli Zaretskii
2024-05-27 18:33 ` Eli Zaretskii
2024-05-29 0:30 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-29 11:48 ` Eli Zaretskii
2024-05-29 20:58 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-30 5:12 ` Eli Zaretskii
2024-05-30 13:40 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-30 15:29 ` Eli Zaretskii
2024-05-27 15:21 ` Daniel Clemente
2024-05-27 15:26 ` Eli Zaretskii
2024-05-29 0:28 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-29 10:54 ` Daniel Clemente
2024-05-29 19:56 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-30 4:56 ` Eli Zaretskii
2024-05-30 13:35 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-29 21:07 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-30 5:19 ` Eli Zaretskii
2024-05-30 16:09 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-30 16:49 ` Eli Zaretskii
2024-05-30 18:24 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-30 22:39 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-31 5:45 ` Eli Zaretskii
2024-05-31 12:41 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-30 11:22 ` Daniel Clemente
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86msobv3yy.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=71223@debbugs.gnu.org \
--cc=n142857@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).