From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#45658: Infinite loop in run loop on macOS Date: Sun, 10 Jan 2021 00:01:31 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31903"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 45658@debbugs.gnu.org To: Jimmy Yuen Ho Wong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 10 01:02:14 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 1kyOBR-00089K-TK for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Jan 2021 01:02:14 +0100 Original-Received: from localhost ([::1]:33696 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kyOBQ-0007Ir-94 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Jan 2021 19:02:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45078) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kyOBG-0007Ij-Jb for bug-gnu-emacs@gnu.org; Sat, 09 Jan 2021 19:02:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41225) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kyOBF-00058N-PI for bug-gnu-emacs@gnu.org; Sat, 09 Jan 2021 19:02:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kyOBF-0004Fp-Ln for bug-gnu-emacs@gnu.org; Sat, 09 Jan 2021 19:02:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Jan 2021 00:02:01 +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.161023690416322 (code B ref 45658); Sun, 10 Jan 2021 00:02:01 +0000 Original-Received: (at 45658) by debbugs.gnu.org; 10 Jan 2021 00:01:44 +0000 Original-Received: from localhost ([127.0.0.1]:52771 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyOAx-0004FC-JX for submit@debbugs.gnu.org; Sat, 09 Jan 2021 19:01:43 -0500 Original-Received: from outbound.soverin.net ([116.202.65.218]:38887) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyOAu-0004Ev-AX for 45658@debbugs.gnu.org; Sat, 09 Jan 2021 19:01:41 -0500 Original-Received: from smtp.soverin.net (unknown [10.10.3.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id AACB360199 for <45658@debbugs.gnu.org>; Sun, 10 Jan 2021 00:01:33 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.142]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1610236893; bh=09p3MsAbnupqvQz8OFkiBu6MQGS9sVyRoqSu9KxV8fo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qr2RIeBkh3fgTD+dhZmaI9g0GA+F++8BIH+5507o5Zll+eeK60A0OVl7Iw9giQQNn ORn3fzIpf/686yhHobS1ejk16sSZ9Orah7fciDS7v3CnlaRgryALkKvruXO9FiXoId SGOou3uaGWiA3/pdTgp9nyAf9UaE48fCc9AtoOdO3IUQLA0cH+PmPF1JYWErP/nk1Z 9FJGwM/PSuXCEincQMScIApDUAldjS4G7ohyyh0qPcDUJ0SVfmEDN2r5Fe8HG828LR iu3u2SMCBtf8V3Akod3tqmCrsy2dOVtgH0sVWZWkziVx/ovq0H1tkfCuxBEIpfUo0Y YFTQESh/TjO0g== Original-Received: by breton.holly.idiocy.org (Postfix, from userid 501) id 4F7A22029C80D5; Sun, 10 Jan 2021 00:01:31 +0000 (GMT) Mail-Followup-To: Alan Third , Jimmy Yuen Ho Wong , 45658@debbugs.gnu.org Content-Disposition: inline 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:197578 Archived-At: 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