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: Wed, 20 Oct 2021 21:24:44 +0100 Message-ID: References: <878ryoe9n4.fsf@yahoo.com> 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="9097"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 45658@debbugs.gnu.org, Jimmy Yuen Ho Wong To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 20 22:25:19 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 1mdI9H-00027I-0F for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Oct 2021 22:25:19 +0200 Original-Received: from localhost ([::1]:48722 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdI9F-00080Z-1u for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Oct 2021 16:25:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50544) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdI91-00080Q-Ec for bug-gnu-emacs@gnu.org; Wed, 20 Oct 2021 16:25:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44009) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mdI8z-0006mx-Pb for bug-gnu-emacs@gnu.org; Wed, 20 Oct 2021 16:25:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mdI8z-00006t-LZ for bug-gnu-emacs@gnu.org; Wed, 20 Oct 2021 16:25:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Oct 2021 20:25: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.1634761495408 (code B ref 45658); Wed, 20 Oct 2021 20:25:01 +0000 Original-Received: (at 45658) by debbugs.gnu.org; 20 Oct 2021 20:24:55 +0000 Original-Received: from localhost ([127.0.0.1]:55555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdI8t-00006V-HW for submit@debbugs.gnu.org; Wed, 20 Oct 2021 16:24:55 -0400 Original-Received: from outbound.soverin.net ([116.202.126.228]:36035) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdI8r-00006G-Qq for 45658@debbugs.gnu.org; Wed, 20 Oct 2021 16:24:54 -0400 Original-Received: from smtp.soverin.net (unknown [10.10.3.24]) (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 76EE951; Wed, 20 Oct 2021 20:24:47 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.138]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1634761486; bh=2bwKbKPVRxTM8tL5cAAZVU19TD1wRdMtFVS+Dq3MVOY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dxBYNSOg8v9GFgEjxoaALV4jjjad6rLD62BqBxNpk5bIdMKEJexNYdziW19w9+dx0 ebrW75jeeTe4ja7/lqCH6b+GlI8+eWhHWligBxIuzgMVGcefbDeMKhBUSaQvIVaEpd ydW87ELKrKyc0MPuvMj9Jl/FkePf9e6lDRaXgX36b8ng/1szUEiRbf9C/9o6n0/hox nxt99bT+gfmu537KD9silYiys+/w9ZNkBdaMS64SQhI+tWyblECb60KOyx3He1DiQh RvawbCWrI0CFOi/SkMOmYD3lH2ey6X2xUVCHCC+3kosKE0GW50HHXbtnB9wdXFhtOq oJOTSvvFdQ36w== Original-Received: from alan by faroe.holly.idiocy.org with local (Exim 4.95-RC2) (envelope-from ) id 1mdI8i-000c0z-6r; Wed, 20 Oct 2021 21:24:44 +0100 Mail-Followup-To: Alan Third , Po Lu , Jimmy Yuen Ho Wong , 45658@debbugs.gnu.org Content-Disposition: inline In-Reply-To: <878ryoe9n4.fsf@yahoo.com> 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:217712 Archived-At: On Wed, Oct 20, 2021 at 10:02:23AM +0800, Po Lu wrote: > Alan Third writes: > > > ns_send_appdefined somewhere. Can you switch to the thread that's > > running fd_handler and see what it's doing? There are only two > > branches, so it should be easy to work out which one is in use. > > >> frame #8: 0x00007fff2d14c039 AppKit`_DPSNextEvent + 883 > >> frame #9: 0x00007fff2d14a880 AppKit`-[NSApplication(NSEvent) > >> _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1352 > >> frame #10: 0x00007fff2d13c58e AppKit`-[NSApplication run] + 658 > >> frame #11: 0x000000010036c5fa Emacs`-[EmacsApp > >> run](self=0x000000010525e180, _cmd="run") at nsterm.m:5602:9 > >> frame #12: 0x000000010036a8eb Emacs`ns_select(nfds=30, > >> readfds=0x00007ffeefbfd1f0, writefds=0x00007ffeefbfd170, > >> exceptfds=0x0000000000000000, timeout=0x00007ffeefbfd148, > >> sigmask=0x0000000000000000) at nsterm.m:4690:3 > > Does it also make sense for this to occur on GNUstep? I have just seen > a very similar bug there, but I lost the backtrace :( It doesn't make any sense to me for it to happen anywhere. ;) If it happens on macOS I don't see why it shouldn't happen on GNUstep, unless it's a bug in Cocoa and not in GNUstep. I wasn't able to replicate the crash and I don't have any real clue what was causing it for Jimmy. -- Alan Third