From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#71223: 30.0.50; stack overflow after very fast opening and closing of frames Date: Thu, 30 May 2024 19:49:22 +0300 Message-ID: <868qzrqm7h.fsf@gnu.org> References: <868qzrswpw.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37273"; mail-complaints-to="usenet@ciao.gmane.io" Cc: n142857@gmail.com, cyd@stupidchicken.com, 71223@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 30 19:13:12 2024 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 1sCjKx-0009UG-Tu for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 May 2024 19:13:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sCjKg-0007ed-14; Thu, 30 May 2024 13:12:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sCjKe-0007e1-JS for bug-gnu-emacs@gnu.org; Thu, 30 May 2024 13:12:52 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sCjKe-0004S4-Bh for bug-gnu-emacs@gnu.org; Thu, 30 May 2024 13:12:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sCjKo-0007K6-GU for bug-gnu-emacs@gnu.org; Thu, 30 May 2024 13:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 May 2024 17:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71223 X-GNU-PR-Package: emacs Original-Received: via spool by 71223-submit@debbugs.gnu.org id=B71223.171708912728048 (code B ref 71223); Thu, 30 May 2024 17:13:02 +0000 Original-Received: (at 71223) by debbugs.gnu.org; 30 May 2024 17:12:07 +0000 Original-Received: from localhost ([127.0.0.1]:47494 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sCjJu-0007II-U7 for submit@debbugs.gnu.org; Thu, 30 May 2024 13:12:07 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36110) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sCjJs-0007Hj-17 for 71223@debbugs.gnu.org; Thu, 30 May 2024 13:12:06 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sCiy6-0008A5-Hv; Thu, 30 May 2024 12:49:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Yo9u3F+o76P/sWZSPPS9C64fQ7nEHxXeKCSTmQiN3KM=; b=gLkI1ZuwwRCP bh8JuOXIaFeMFgoCeo94JX0zt5r0s62bzUvOXar7fqB2jO/mSuWmWCRjjJIxsw5PIRmm1unpLoiqd BDOp5ahvqBTbihbsUAVK1ey4liMxdRpZ+GL/tsuDbKk3ObNoqORvhUdSA/6gonLy5BWlHSMtMd8Kh TRzjozPp2mwpwqPENnkr4BxL9SlSHvC3qEuJpQHsUNbxt3aCiYoMw47ZUNbMB4Nhf8miTJmNz7W5v PgXd3+WWyt6Sw3QLA/z/HH2GOt0D5YIsVDsVMaG4kwk7ZbeGbvw7+MhQGvDmw8p0WiTzluNpcCm5t W6xMygESLe3ES3Mg8g22lg==; In-Reply-To: (message from Stefan Monnier on Thu, 30 May 2024 12:09:30 -0400) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:286238 Archived-At: > From: Stefan Monnier > Cc: cyd@stupidchicken.com, n142857@gmail.com, 71223@debbugs.gnu.org > Date: Thu, 30 May 2024 12:09:30 -0400 > > > AFAIR, the waits are for 2 purposes: > > > > . let the user of emacsclient see the error messages sent by the > > server (because deleting the process clears the terminal); > > In my patch these are mostly kept except they are short-circuited when > there's already some other emacsclient process filtering pending. > In practice this should rarely make a difference: you need to have at > least 3 more-or-less-concurrent emacsclients for the difference to show > up (the first is processed normally, and if there's no 3rd, then by the > time we process the second there's no other thing pending). I'm talking about the mostly-normal situation when a single client connects and that results in an error. > > . let the server and the client have enough time to undo the > > terminal settings they did when the session started, so that the > > terminal is left in workable condition after the client exits. > > These are kept in the form of timers instead of `sit-for`. > > > The bug(s) in question should tell the details. > > I don't know which bugs these are, sadly. "git log -L" indicates that it's bug#63629. > [ I must say I don't understand why we need to wait and then call > `delete-process`. ] Because delete-process disconnects us from the terminal, and if we do that too soon, then neither the error message we sent to the client nor even the terminal resetting commands will get to their destination. Or so I concluded at the time; I don't consider myself an expert on this stuff.