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: Wed, 20 Oct 2021 21:39:10 +0100 Message-ID: References: Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4109"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Po Lu , 45658@debbugs.gnu.org To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 20 22:40:27 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 1mdINv-0000iw-HB for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Oct 2021 22:40:27 +0200 Original-Received: from localhost ([::1]:52954 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdINt-00034A-Sj for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Oct 2021 16:40:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52642) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdINZ-00033z-2w for bug-gnu-emacs@gnu.org; Wed, 20 Oct 2021 16:40:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44022) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mdINW-00081i-Jm for bug-gnu-emacs@gnu.org; Wed, 20 Oct 2021 16:40:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mdINW-0000TP-H5 for bug-gnu-emacs@gnu.org; Wed, 20 Oct 2021 16:40:02 -0400 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: Wed, 20 Oct 2021 20:40: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.16347623591764 (code B ref 45658); Wed, 20 Oct 2021 20:40:02 +0000 Original-Received: (at 45658) by debbugs.gnu.org; 20 Oct 2021 20:39:19 +0000 Original-Received: from localhost ([127.0.0.1]:55568 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdIMp-0000SO-Bt for submit@debbugs.gnu.org; Wed, 20 Oct 2021 16:39:19 -0400 Original-Received: from mail-wr1-f42.google.com ([209.85.221.42]:41550) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdIMn-0000SB-B2 for 45658@debbugs.gnu.org; Wed, 20 Oct 2021 16:39:18 -0400 Original-Received: by mail-wr1-f42.google.com with SMTP id t2so42072wrb.8 for <45658@debbugs.gnu.org>; Wed, 20 Oct 2021 13:39:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:subject:from:in-reply-to:cc :date:message-id:references:to; bh=cqUPqLfvGt73Mk24qpzjctOkVRArmfO1DqlIiyoMaa8=; b=qPV9nE+wiQ9Omew5dorauss+uHMB0MChbwBnqt09Ol9HMUkJk4x5+Q1AMdiASfLuwT VMMqu8rFQm+JBIch6NZl0N6cRggNhfjXGNoGSwy8DdPsL0cUqdjkLtPz+P86ZThnlXkd Oxr8e/27ixAcepqUH6LzzmXqbepSlLHkukzoktXBgtWaTofa+O1wWcp92lC2vMykWq4X sEQieMewGe07UarXOx5fVzUC+GY6GZVzf2e0A8KFUP3M9gNkCLdfg3C3KvBZQ4/0BQNY xG1ocnA2eWxW2gUEK3UjTbR1NlJgaFPwBRaLHoYAlCPzUuAnWWpFY3g3dK2Na3lWoGHS jlZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:content-transfer-encoding:mime-version:subject :from:in-reply-to:cc:date:message-id:references:to; bh=cqUPqLfvGt73Mk24qpzjctOkVRArmfO1DqlIiyoMaa8=; b=7OoXA3WV3koTnPIw5YXcl8e+S98kXIZ5jcIqyXCJ4NvhWl9UXu/2fqyx5kLd/GajLV ylc4cJxH0TVxbuKB4de4a4JU/bLKtPMsyGkOBQJY6QfVreND8bb4Y0dsNGZUQg61ywVD oLNZCXUWOLbNRFTXU3lH5zv9ysHIcRBURjElMvrxpJU21wGzsSYesTrqHr4htXm2QDOk HVnBu/HWuDifU0SLY7J+tJfJTm8G02sAO36ezYPM/5vH7aaoQsh9PJlOZRxdcs3XaWfZ QULJKCh0OAlmpVn8aoHuRPeClgg51Figl7D+IHiEFySumxa6JMf7hqiiVzGuijg8SuY4 4dmA== X-Gm-Message-State: AOAM5302cmx5RHbydqw+xjsEjJjuDTqA/NAimHT+f5GGgt7dR0mtUf+n 0kIdGvY4CvdHmmNQpa1aaQQ= X-Google-Smtp-Source: ABdhPJxMW2PnJeQCjcQ89BZyYe/2bxpb3kvHZx+P3cJd48GQHf6L3eKcCMK6UwoE9Jc/yPEFJ2n3AA== X-Received: by 2002:adf:b19b:: with SMTP id q27mr1838828wra.125.1634762351354; Wed, 20 Oct 2021 13:39:11 -0700 (PDT) Original-Received: from smtpclient.apple ([152.37.76.19]) by smtp.gmail.com with ESMTPSA id g2sm3049650wrb.20.2021.10.20.13.39.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Oct 2021 13:39:11 -0700 (PDT) In-Reply-To: X-Mailer: iPhone Mail (19A404) 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:217715 Archived-At: I haven't seen this for quite some time now, but then I've switched to emacs= 28 some time ago too. I'm not sure if it's still a problem on emacs 27. > On 20 Oct 2021, at 9:24 pm, Alan Third wrote: > =EF=BB=BFOn Wed, Oct 20, 2021 at 10:02:23AM +0800, Po Lu wrote: >> Alan Third writes: >>=20 >>> 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. >>=20 >>>> 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=3D0x000000010525e180, _cmd=3D"run") at nsterm.m:5602:9 >>>> frame #12: 0x000000010036a8eb Emacs`ns_select(nfds=3D30, >>>> readfds=3D0x00007ffeefbfd1f0, writefds=3D0x00007ffeefbfd170, >>>> exceptfds=3D0x0000000000000000, timeout=3D0x00007ffeefbfd148, >>>> sigmask=3D0x0000000000000000) at nsterm.m:4690:3 >>=20 >> 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 :( >=20 > It doesn't make any sense to me for it to happen anywhere. ;) >=20 > 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. > --=20 > Alan Third