From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#75275: 30.0.92; `make-thread` bug on macOS 15.2 Date: Thu, 02 Jan 2025 15:45:16 +0100 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="3742"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 75275@debbugs.gnu.org, Alan Third To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 02 15:46:31 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 1tTMT0-0000vC-NU for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Jan 2025 15:46:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTMSa-0002SI-Q6; Thu, 02 Jan 2025 09:46:04 -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 1tTMSY-0002Rt-W6 for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 09:46:03 -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 1tTMSY-0002mk-O2 for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 09:46: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:Date:References:In-Reply-To:From:To:Subject; bh=Sra4zY2wDwO62QsFn7TSeb8hTIxQZUw/6QO6uOv0GoE=; b=OG0CRZnNwCdlAqbrd3WDmtrxfeUps+5+vECwIpx3i1JccQ009EremCbKCiF8WtcsigXVKQCISh2Pk1dSUgA7KXAgtylWXVVVwgpVu5FHyXS5iNqlOkgLTOp+e/iV7tGPU6Ia1w0a3ebYg8uzvjwMJ2c5KCYRPn96teNaFw+1AN/5cnAQTMuzCFf+OXS4sz4pn7KjPIJgdVnsrKXDrbZMSMFcyJ+k7h0ysGcdrP2gK6IAdlCyaGcl6fMok5yaAVHeEO39gF9+hBsyuOfGy0mxCpxfDiDupumWoHRJ6qsokbbC62GHT3uHUtGCmjN4VXo/kzaB6vXm6r9VB0SbTbuJOQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tTMSY-00049F-Ir for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 09:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Jan 2025 14:46: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.173582912115890 (code B ref 75275); Thu, 02 Jan 2025 14:46:02 +0000 Original-Received: (at 75275) by debbugs.gnu.org; 2 Jan 2025 14:45:21 +0000 Original-Received: from localhost ([127.0.0.1]:43363 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tTMRs-00048E-W7 for submit@debbugs.gnu.org; Thu, 02 Jan 2025 09:45:21 -0500 Original-Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:44207) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tTMRr-000485-8W for 75275@debbugs.gnu.org; Thu, 02 Jan 2025 09:45:19 -0500 Original-Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-436345cc17bso83191035e9.0 for <75275@debbugs.gnu.org>; Thu, 02 Jan 2025 06:45:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735829118; x=1736433918; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Sra4zY2wDwO62QsFn7TSeb8hTIxQZUw/6QO6uOv0GoE=; b=grqYeno9xql1DSHfIL1njzdVHQuJeEmrIlixic8mQf0RnJ8gAxjsxZdQMnZeXk2TAA Br+3X5gatDV59k3xAtgai5lbLrjDjB+uv6j7bfbg97n9feSIO7CMWoMPgjmT1ZZp3kCr LzDQ5mLp77I60KjGSJoBTaXyK3o6RPearBW+MyLEt2ZEHrVfJITQSKz5isrx3n5rCUuW v6pBt+/3iDW21Fpg3AnDfCqNWsiPGU0XEhcqHZTusjn1RMdGem6DNJS3B1v1Q21pClwO katGOd6V9d/aIEuqZ/Cdlankj9WGpHHkKsThi1v09HvB2zFM09sckaa694PJ+oHyu1sx Z9aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735829118; x=1736433918; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Sra4zY2wDwO62QsFn7TSeb8hTIxQZUw/6QO6uOv0GoE=; b=WygxJtJTMOZmrF0P3oii6UZ7XtMldghISGXrgZcvuxdJjsmjHyKAZW8NVfouqN2kOG JqplWew52rJjYpbOC65B0WoA8F/d8zfd78LEGQdwvdVnqEX2Uz5RXiZ3ITs5zt4taMKc ps4/dyRPY1lXjQIKlntDBCaAlJM8hdJdUZiXp21cyqQEGtTp4ZJXRLKrIwTyHUA8mztd V5Y/lteS2t47qnf0ne5LvNdTDY6JojhCIERlE+DnAgQgtpbuJRoU5q/jSKYo7+pu3ZMR wQTaw22RBNJRu5xRimX/UMT1P5sGqPK2X0ruZNqLC3LzkkpKNPYB1lxBAWEbT+0/CITX Fjww== X-Gm-Message-State: AOJu0Yw7PEXqjPUEUwf1GgiK28yVelYhZT9myTryJJppKfUfD91sn19T nrklraMFmyqXjoUgtoy/LdynxWcDrHQd71tA9HRQgkxVNoNpMZIj/oGj9A== X-Gm-Gg: ASbGncshaY2gYyJUgL0VwueQ8jqS4vUl5A47oFDCIGu7Fkebl7s8UPgcg8EG12BlWGI 7qrVEJI82xxmXoCfmp2zYZKUU2L8aUcsJHRAHi/cPmDBrEv2C5xYzGuXsESc/4UE9ikk/mrbJP5 WmlhVqiePmXiFd6obMkT+/2h04c9nca1AQpWuZ7bUWUzSTqIqZRppfZBURf04RKjYYtP0nfzsSE H+Obssw7e00OE0EBxUZ5wgS8B1Pd7DjJxK0YczqSm4rYSn3iwGqHZcZc1GtHuN9wU5MG1bPaszd GwPq9HW7a0MEa/Qs/YteEs2lVhyj2JrjuTuWru5hy9nxzxQi4n4fFRF7qg/VUCwR X-Google-Smtp-Source: AGHT+IE+fw7BdrdPQUH/gr2aIsZkSspjQ9HB0SVID/tJ3f+RhySdIa/uHSfl9fdMUHAkPHHNe0XdBA== X-Received: by 2002:a05:600c:19c6:b0:434:f2bf:1708 with SMTP id 5b1f17b1804b1-4366854740fmr332456815e9.7.1735829117615; Thu, 02 Jan 2025 06:45:17 -0800 (PST) Original-Received: from pro2 (p200300e0b7290d009d701914d6a76d9d.dip0.t-ipconnect.de. [2003:e0:b729:d00:9d70:1914:d6a7:6d9d]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43656b417afsm493574275e9.36.2025.01.02.06.45.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jan 2025 06:45:17 -0800 (PST) In-Reply-To: ("Gerd =?UTF-8?Q?M=C3=B6llmann?="'s message of "Thu, 02 Jan 2025 15:38:52 +0100") 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:298174 Archived-At: Gerd M=C3=B6llmann writes: > Stefan Kangas writes: > >> Thanks, I didn't have time to look into the above yet, but I noticed >> that the bug wasn't there on emacs-29 and bisected the issue: >> >> 4ac4cec652ffaca4333d8f297b8a6c0e5bd79c68 is the first bad commit >> commit 4ac4cec652ffaca4333d8f297b8a6c0e5bd79c68 >> Author: Gerd M=C3=B6llmann >> Date: Sat Mar 9 15:06:29 2024 +0100 >> >> Prevent freezes on macOS (bug#69561) > > Thanks, there he is, the culprit :-). > > I don't know what to do now. Maybe this one, after what Alan explained. Could you try it? 1 file changed, 2 insertions(+), 2 deletions(-) src/nsterm.m | 4 ++-- modified src/nsterm.m @@ -4875,8 +4875,8 @@ Function modeled after x_draw_glyph_string_box (). =20 if (![NSThread isMainThread] || (timeout && timeout->tv_sec =3D=3D 0 && timeout->tv_nsec =3D=3D 0= )) - thread_select (pselect, nfds, readfds, writefds, - exceptfds, timeout, sigmask); + return thread_select (pselect, nfds, readfds, writefds, + exceptfds, timeout, sigmask); else { struct timespec t =3D {0, 0};