From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" 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 09:40:40 -0400 Message-ID: References: <86msobv3yy.fsf@gnu.org> <86le3vv3cc.fsf@gnu.org> <86a5kbuvq5.fsf@gnu.org> <86zfsbt93c.fsf@gnu.org> <86y17vt88l.fsf@gnu.org> <8634q0u9d7.fsf@gnu.org> <86a5k7sx1k.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37737"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: n142857@gmail.com, 71223@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 30 15:42:17 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 1sCg2q-0009bC-PD for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 May 2024 15:42:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sCg2U-0002MN-V9; Thu, 30 May 2024 09:41: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 1sCg2S-0002LE-5n for bug-gnu-emacs@gnu.org; Thu, 30 May 2024 09:41: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 1sCg2R-0004eJ-UL for bug-gnu-emacs@gnu.org; Thu, 30 May 2024 09:41:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sCg2b-00041x-RJ for bug-gnu-emacs@gnu.org; Thu, 30 May 2024 09:42:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 May 2024 13:42:01 +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.171707646115391 (code B ref 71223); Thu, 30 May 2024 13:42:01 +0000 Original-Received: (at 71223) by debbugs.gnu.org; 30 May 2024 13:41:01 +0000 Original-Received: from localhost ([127.0.0.1]:36176 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sCg1d-000403-8g for submit@debbugs.gnu.org; Thu, 30 May 2024 09:41:01 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:31504) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sCg1a-0003zV-Gl for 71223@debbugs.gnu.org; Thu, 30 May 2024 09:40:59 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 91F58442504; Thu, 30 May 2024 09:40:42 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1717076441; bh=v+khDhejO4bTmJX2FxpPT83VbhPtZ9JcJSwsqTboaAA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=NuxDW2N1bTxUnyPdmneUR1tEttDA7vxqPtD9TzSPyYaRfeHQfYbnmzGhGw+AHPR0S pc8F5O6k3gZMi04eGXm4n2Z8VaR8pn2w/Ux0YHKilkmGsX6auThO8eN+cMbJYw3aQX 4nFQpJRB5HLBH2xuGcG0mrpKr0l/xDSwLJAfj2+arpvxGi52JBNo1rtvBgEI++UJd+ feebv6dS9rKg4Jyt9cgjrNxE1UXwCwUW/uX0Rae5WdKy+hAtXwoNPncI1t8cyVVZvw TijCDvIrsTgE8VhdnYkw7FSkP/pgxqKZ8gHeThF7udv3EvHIasm7fl814B0cvZM7xF i8SODBNrjn0lw== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 19D5C442251; Thu, 30 May 2024 09:40:41 -0400 (EDT) Original-Received: from pastel (unknown [24.140.236.196]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id E08E01203CD; Thu, 30 May 2024 09:40:40 -0400 (EDT) In-Reply-To: <86a5k7sx1k.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 30 May 2024 08:12:23 +0300") 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:286225 Archived-At: > Then please explain why you think "any kind of waiting" is a source of > problems in Emacs. As I tried to explain in my last email, I did not say that any kind of waiting is a source of problems in Emacs. I said that (in this specific case) "if at all possible, I'd rather not wait". And I said that the `sit-for` way of waiting is a source of problems in Emacs (as a general rule). >> > Queueing timers will not solve the problem, I suspect, but will likely >> > get us into a different one, since timers are run by the main loop. >> Why would running them from the main loop be a problem? > Because the main loop uses the same pselect call that reacts to input > from sub-processes which is called by sit-for, and moreover, adding > timers makes the main loop increase its looping rate. None of which sound like problems to me, so I must be missing something. Stefan