From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jimmy Yuen Ho Wong Newsgroups: gmane.emacs.bugs Subject: bug#45658: Infinite loop in run loop on macOS Date: Sun, 10 Jan 2021 00:46:23 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18807"; mail-complaints-to="usenet@ciao.gmane.io" To: Alan Third , Jimmy Yuen Ho Wong , 45658@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 10 01:48:09 2021 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 1kyOtt-0004oC-PA for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Jan 2021 01:48:09 +0100 Original-Received: from localhost ([::1]:53466 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kyOts-0001sf-L4 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Jan 2021 19:48:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50372) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kyOtm-0001sY-EL for bug-gnu-emacs@gnu.org; Sat, 09 Jan 2021 19:48:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41252) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kyOtm-0003RV-6w for bug-gnu-emacs@gnu.org; Sat, 09 Jan 2021 19:48:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kyOtm-0005MJ-3k for bug-gnu-emacs@gnu.org; Sat, 09 Jan 2021 19:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jimmy Yuen Ho Wong Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Jan 2021 00:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45658 X-GNU-PR-Package: emacs Original-Received: via spool by 45658-submit@debbugs.gnu.org id=B45658.161023962920527 (code B ref 45658); Sun, 10 Jan 2021 00:48:02 +0000 Original-Received: (at 45658) by debbugs.gnu.org; 10 Jan 2021 00:47:09 +0000 Original-Received: from localhost ([127.0.0.1]:52796 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyOsu-0005L1-UA for submit@debbugs.gnu.org; Sat, 09 Jan 2021 19:47:09 -0500 Original-Received: from mail-lf1-f52.google.com ([209.85.167.52]:33594) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyOsr-0005KU-JO for 45658@debbugs.gnu.org; Sat, 09 Jan 2021 19:47:07 -0500 Original-Received: by mail-lf1-f52.google.com with SMTP id v67so4013372lfa.0 for <45658@debbugs.gnu.org>; Sat, 09 Jan 2021 16:47:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=LyyFJULT4pgKgZOK7ZSJS454/xAB2xaBMR6XLRcAumI=; b=aGiTLLKj7/5/M6Ztu1nrdR73aae3GWN8ads0CbDH37smtVJx6ff+HCTpSRO8jexcq1 yVBmNdSkvSRmNmr0ff5pMxW9TF9CrPzBWFp+qyESVMxt26Ttr/UwB46fj6kXMwMpMH+A kngxerI+6wdtW6RJDn7Nqc2H756cv8BgbbMoekqiikhMXUtp88SPlkMBdxBE3iNzXu4K sr49trsrFGKaltEg7arBPbeeA220VDrvo2cZNf8N2Y3hGDg1NnmLdd6V/p7AHj5+UkLi cPNBs5swDH+adbrrbsu9zqD8+wHCvSTFqP7cRcQ2x/yHysneuHSu9ed2liuhAGTRN/fG NSGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=LyyFJULT4pgKgZOK7ZSJS454/xAB2xaBMR6XLRcAumI=; b=uG5oQbMAg0WE6Y0yaIHLxFUxdkaMlNMAZ5KXjsfV5RNrDBd4apq9rZp15QQA77/Qzn NQTPKKOZ1QSzWLEwec/kYJ/p2SQTV3mnGot0PQ9aSL5DiGy1T52mrHNIEV0rWQSx7hHA SOs0pYYiKu+wBQHysa2ng4RS+C5wqsaMtDKjkCLAwR7SAuZLiOiJiO8Jjcmeo/UJMmS1 jr2jlayGzNHqTM0c9dwp2RWW1fGn0P5l4lRisVzGcHNTb8X0egWyNhZQceFb1aa3Tedo exsgpOGOF/fP3FiL1hJcMy4Sw9C9ei0MhWaOXAp8f3ndbk8lDhDYisIDot9EgBzoaZjW YLFg== X-Gm-Message-State: AOAM5337Nhik55Zkq9FxOAEZmFToFG3uekq9zExT1xAhQ8yabXuuckT/ tLyJsVxM/SSAeXfQOZcay+m7BI9VKu+t13T3Bvg= X-Google-Smtp-Source: ABdhPJwl2S8+b6w7kSsdgpB39F6xHx8hZUJkg4OAiqwrjDFbNgELJdf2mgPctB0hUwnM3fpR7W0rEkZanqPuSWZAa0o= X-Received: by 2002:ac2:4249:: with SMTP id m9mr4937506lfl.594.1610239619459; Sat, 09 Jan 2021 16:46:59 -0800 (PST) In-Reply-To: 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" Xref: news.gmane.io gmane.emacs.bugs:197579 Archived-At: The breakpoint at 4733 does get reached, there's no beach ball for this initially, just an unresponsive frame. I can't Cmd-TAB to it, I have to use the mouse to select it in Mission Control. The windows sometimes freeze, sometimes go blank then freeze. This bug can occasionally be produced by issuing `EDITOR=emacsclient git rebase -i HEAD~2` in the terminal, but not consistently. I'm on Catalina, not on Homebrew, I just checked out the emacs repo and switched to the emacs 27 branch. I'm on the latest commit. > Does 'emacs -q' also freeze up I don't have a way to reproduce this bug consistently so I don't know. Jimmy On Sun, Jan 10, 2021 at 12:01 AM Alan Third wrote: > > On Sat, Jan 09, 2021 at 11:21:48PM +0000, Jimmy Yuen Ho Wong wrote: > > Ok I've just reproduced this again, this time simply by opening a file > > in the terminal with emacsclient, in the hope Emacs.app will open it. > > I've switched to the thread running fd_handler (nsterm.m:6100:20 > > right?) This is the frame variables: > > That all looks pretty much like I'd expect. > > Can you check if it ever reaches the end of ns_select? You could > either stick a breakpoint at, say, like 4733 of nsterm.m, or make it > print to the console or whatever. > > I suspect that since you're seeing a spinning wheel it's not reaching > the end, but we may as well find out for sure. > > You're running macOS 10.15, yes? > > Do you use Homebrew or something else? > > Does 'emacs -q' also freeze up? > -- > Alan Third