From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#75275: 30.0.92; `make-thread` bug on macOS 15.2 Date: Thu, 2 Jan 2025 00:47:06 -0600 Message-ID: References: Mime-Version: 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="1175"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 75275@debbugs.gnu.org To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 02 07:48:17 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 1tTF0D-0000Bf-2R for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Jan 2025 07:48:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTEzz-0000kU-Fx; Thu, 02 Jan 2025 01:48:03 -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 1tTEzy-0000kL-K7 for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 01:48: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 1tTEzy-0004pR-C2 for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 01:48:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:MIME-Version:References:In-Reply-To:From:To:Subject; bh=BsUTKt2R1cgpTFxehdnc4zis+7kbfL9R3ISBd0aSPQ0=; b=XphHT2tW46dV5myc6eyqP92SuVXZ0+D5RczjAK9ZADUIF3N4noVivmIiP4OREn6r03+cZZwvr7O2OY4Ntu2Ge1ULH63QeaDjuJeErmY4X1aWVuoVExmQ5aF89jvS0n3BjjtkMF1ly0S/fr230Hpcy0SWOhMiEjZ/b2PpfOCF5wIkjcg56A1k8uNIG4sx0JfowHAPrvJ60OSUmjYrLJXc5sStH/hHoJLlPPzsEVv+igG+7qEelMmv7mhqrf49PY+XNLv5atTyDq4+5MUr8kdR4tg1ZapMuk/dkv3gJVGiwI05fKebbFNkt4J68J28TP7rhVbHgIZp+x9Bz0+wGhZg8g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tTEzy-0007sh-69 for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 01:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Jan 2025 06:48: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.173580043030230 (code B ref 75275); Thu, 02 Jan 2025 06:48:02 +0000 Original-Received: (at 75275) by debbugs.gnu.org; 2 Jan 2025 06:47:10 +0000 Original-Received: from localhost ([127.0.0.1]:42482 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tTEz8-0007rW-FF for submit@debbugs.gnu.org; Thu, 02 Jan 2025 01:47:10 -0500 Original-Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]:45187) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tTEz6-0007rM-CI for 75275@debbugs.gnu.org; Thu, 02 Jan 2025 01:47:09 -0500 Original-Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-5d122cf8dd1so18998706a12.2 for <75275@debbugs.gnu.org>; Wed, 01 Jan 2025 22:47:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735800427; x=1736405227; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:from:to:cc:subject:date :message-id:reply-to; bh=BsUTKt2R1cgpTFxehdnc4zis+7kbfL9R3ISBd0aSPQ0=; b=QJvaImW65KEfbZIM9c2JCs1bEPeU8M/RjoQHKrVp3uBtv6kPhT3RSJAQZy+b8Do+2L 4+bBi5WES5Iyw80CC1YCfM1o9Tu5KUQZMR5gCOXGDzDpypPcbAHHRZqVpvON5pM6Edl0 HNyqRdhrNQeiDFzmTL3MKArVh5iCpXjLAZeVGd5RVffgO1P+MDKPxp6GLI/aelswm9sE FiHGcrywsMxdz7MfXfYLUBXw30iogCRbvEG9U7kvAJ8gA+miao7pTINyXZmsuwjeiLWA GLLwvSDPRPWnb1Ts2XGXm05L4+Os+Yi562DxoD215MDSp4cdj03pRLczfBsImL8fw4x6 cmWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735800427; x=1736405227; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=BsUTKt2R1cgpTFxehdnc4zis+7kbfL9R3ISBd0aSPQ0=; b=o0oJLe3IybFJmEHoC7tKe9W4tSf4v8RNwRgmLFMdoqM9aGstoXD6RmmWgh8hYIszRM b+os82CrZZPypI3pKtcd/QzMBNleDA/C8govQphRpKCiH52q/4l7S/3mC13FB6713xtO NOK9vBDqCmMDj2api7zmizfqPRtUhOiUQpH5aoruN2H26Ir0FCFyTqdYuvI5JmoLRCag 16A2FnQJSUg4sfBsigXsTD974srkBep2hwz7p/d31qeYKc0YcXrXpRpHOVQ16HduB3Mf /LWjF6bn4PLQnQhIJNk2I+zGNImV8K/JqI+JzEwwpjfpRlhPcfFD6d+tie4KwcYHLPPy zrwg== X-Gm-Message-State: AOJu0YxFMcbexbW4INoiLdis8eOIaYAPbuWbpr/o5SYCNUUYjglkKxDB nS+WDdbm2LkDb5WMBEurltbVfyTI8TIvK4FUOLSdReB0HyqKWecQaMpL26bDaFue6aQdh92CHzA ri9uRUdJl1EkrYGy1O+T4o3S15S8= X-Gm-Gg: ASbGncs5D5AQNVnHZZIF7663AjuX89XE+WwPnV0QRobDxvopOdz/Ne8s9BjnPpOFsjp jc/3Oz2jEVOcbPLCeEq4sy8K8UY2+Oq+qMtRIfqXS X-Google-Smtp-Source: AGHT+IEC39VKdKmJh5ZwKVllbg5TsvQ0+flpTlJYb5GYDeOG4JR2sY6xjRMTmT/bekz+aBiztPwDEMdO7UaXLRo8A/o= X-Received: by 2002:a05:6402:2809:b0:5d1:2677:b047 with SMTP id 4fb4d7f45d1cf-5d81de2dc3emr46645311a12.28.1735800426943; Wed, 01 Jan 2025 22:47:06 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 2 Jan 2025 00:47:06 -0600 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:298131 Archived-At: Gerd M=C3=B6llmann 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=3D0x0000000156610fe0, _cmd=3D"run") at nsterm.m:5938:7 >> frame #13: 0x00000001004024b0 emacs`ns_select_1(nfds=3D0, >> readfds=3D0x00000001708c26bc, writefds=3D0x00000001708c263c, >> exceptfds=3D0x0000000000000000, timeout=3D0x00000001708c2610, >> sigmask=3D0x0000000000000000, run_loop_only=3DNO) at nsterm.m:4954:3 >> frame #14: 0x000000010040202c emacs`ns_select(nfds=3D0, >> readfds=3D0x00000001708c26bc, writefds=3D0x00000001708c263c, >> exceptfds=3D0x0000000000000000, timeout=3D0x00000001708c2610, >> sigmask=3D0x0000000000000000) 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?