From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#75275: 30.0.92; `make-thread` bug on macOS 15.2 Date: Thu, 02 Jan 2025 09:53:01 +0200 Message-ID: <868qrtlkiq.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27080"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, 75275@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 02 08:54:16 2025 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 1tTG23-0006uJ-IQ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Jan 2025 08:54:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTG1u-0005mN-4j; Thu, 02 Jan 2025 02:54:06 -0500 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 1tTG1q-0005lw-Q7 for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 02:54:02 -0500 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 1tTG1q-0000YW-7h for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 02:54:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:References:In-Reply-To:From:Date:To:Subject; bh=PEqRgwpStu4tDDgatcnTn49+IY38mJ+qjEkGmcs2Z8I=; b=CZoMAGRJaXuhpSzmgPEDSGZ4VuUutyHRS2ajGbFxwlxPZkfvZRplUxeL08ghqtzo9Cn5/Nexz8htcTGekRLoWBvAvI1eZsw8dYZTUNkEogFycg4GzwaH28RffZsYFSxY06/7D8XN1rqyvvFDj4t7AI+s4WsY43LTjVh/shNyOlRQ8TX1kCzSv1uHaATSTW07+eF9ZyBAKVS8sRUnJ+/C14sugu7dVjfhJ4mmGs/0niyLvRnttRVDptnydXImP4cBACb9ar1N3b9bnNviDIVxXTHq+iX4Jh9xxhQtAenDyZC4k7iwerFBhqG3AR2AcVz5TGR/qjpJ1yN8tW5HMTsnrA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tTG1q-0002Pi-1v for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 02:54:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Jan 2025 07:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75275 X-GNU-PR-Package: emacs Original-Received: via spool by 75275-submit@debbugs.gnu.org id=B75275.17358043939210 (code B ref 75275); Thu, 02 Jan 2025 07:54:02 +0000 Original-Received: (at 75275) by debbugs.gnu.org; 2 Jan 2025 07:53:13 +0000 Original-Received: from localhost ([127.0.0.1]:42618 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tTG13-0002OU-0v for submit@debbugs.gnu.org; Thu, 02 Jan 2025 02:53:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54046) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tTG0z-0002O8-J6 for 75275@debbugs.gnu.org; Thu, 02 Jan 2025 02:53:11 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tTG0u-0000Ub-8e; Thu, 02 Jan 2025 02:53:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=PEqRgwpStu4tDDgatcnTn49+IY38mJ+qjEkGmcs2Z8I=; b=ZarOUWQd0TRC6AXRaPwg RU43hdtW7T0ARv7xY8Ho/VlhISx6zICpz1f1Pn1V6gwvQKQ0OOJHmULzBrd7X9NOZVWW72Zdru3a+ AC8XvKEGCS/KvVBwy2f/QzoPiZ0EhQTVd5IUVPHAUnFM7F4bccmAae9M08pPWv+JHi3PW8Bq4oGK+ CUh7h/LkUvgG8UB6FitL0k2O0NDTrDvNleIKhkV25Pmmt2Hu85Deogt2d+ph3pM7YPvfk21IrM0k4 5B/HajQn7X0RdpTXyDo2h24az0PvDB3Aai3GVhO3MLT1LmmxPFwOvNAE0zIAwoX+pVw/QMMewe0CI JDIfGYsTCJFFwg==; In-Reply-To: (message from Stefan Kangas on Thu, 2 Jan 2025 00:47:06 -0600) 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:298141 Archived-At: > Cc: 75275@debbugs.gnu.org > From: Stefan Kangas > Date: Thu, 2 Jan 2025 00:47:06 -0600 > > Gerd Möllmann writes: > > > Stefan Kangas writes: > > > >> I have run into a bug with make-thread on macOS 15.2, running on an M2. > >> > >> I can reproduce the issue consistently both on emacs-30 and master by > >> evaluating this in emacs -Q: > >> > >> (make-thread (lambda () (sleep-for 1)) "bug") > >> > >> This leads to Emacs freezing up completely within a fraction of a > >> second. I have time to move point once or maybe twice before it gets > >> non-responsive, let's say within a few tenths of a second. > > > > Curious question: Do you see a beach ball? > > Yes, I do see a beach ball. It takes a second or so to show up, which I > guess is expected. > > >> When I kill the process in the lldb window with Ctrl+C, I can get the > >> following (this is on emacs-30): > >> > >> frame #12: 0x0000000100403fec emacs`-[EmacsApp > >> run](self=0x0000000156610fe0, _cmd="run") at nsterm.m:5938:7 > >> frame #13: 0x00000001004024b0 emacs`ns_select_1(nfds=0, > >> readfds=0x00000001708c26bc, writefds=0x00000001708c263c, > >> exceptfds=0x0000000000000000, timeout=0x00000001708c2610, > >> sigmask=0x0000000000000000, run_loop_only=NO) at nsterm.m:4954:3 > >> frame #14: 0x000000010040202c emacs`ns_select(nfds=0, > >> readfds=0x00000001708c26bc, writefds=0x00000001708c263c, > >> exceptfds=0x0000000000000000, timeout=0x00000001708c2610, > >> sigmask=0x0000000000000000) at nsterm.m:5006:10 > > > > I'm asking because of bug#72496. The part of the backtrace above reminds > > me a bit of what I trued to describe in that bug: EmacsApp.run never > > returning to ns_select_1. Can you see if it ever returns? > > After recompiling with NSTRACE_ENABLED, and based on reading at the > terminal output, it seems like it does not return to ns_select_1 after > the first line that reads > > nextEventMatchingMask should only be called from the Main Thread! > > Is there a better way to see if it returns to that function? Who calls nextEventMatchingMask? I don't see it in the backtraces you posted.