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 06:55:51 +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="28104"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 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 06:57:40 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 1tTEDD-0007CB-Jf for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Jan 2025 06:57:39 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTECi-0001Vd-Sh; Thu, 02 Jan 2025 00:57:09 -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 1tTECd-0001Uv-Lv for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 00:57:04 -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 1tTECd-0004Hc-C4 for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 00:57:03 -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=2vsTVzeLx3SACGXQYLGSKdqP2/XsRJ6qlmyc2oBd2DU=; b=nPnZ86jsUnIGTo5S7rokDHQVCQqmORFij2+zinmlLVpQYL3tUOsu61WRPMbIcTroExC1qU8/cSIjmPEXOFdrOFVCtOfsREfEvRSupVPr3DdPGRAp5HpKxKr7/PdJLWbj2Pd37/cdF9YNr2hXEJCNaV5/NM6UENf9UEifVeLgQLn/Kor7dfVB6lHwRWNVSpwf8FxsYiGRPUfN6w3yyewXcZSht9Yf4GUqq8NfsMkGqQODDZ1fCjkHohSgE30QfuEhCEMs12q+J2EbR2usfXOF741cF3G3moyRn9zahNqTcNwYMpgTR8YHVGvKvqsLtfjPIWULI/3O2hraQ+i+QDxjxg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tTECd-0005LE-5M for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 00:57:03 -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 05:57:03 +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.173579736220425 (code B ref 75275); Thu, 02 Jan 2025 05:57:03 +0000 Original-Received: (at 75275) by debbugs.gnu.org; 2 Jan 2025 05:56:02 +0000 Original-Received: from localhost ([127.0.0.1]:42354 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tTEBe-0005J9-4X for submit@debbugs.gnu.org; Thu, 02 Jan 2025 00:56:02 -0500 Original-Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]:51630) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tTEBc-0005Io-AA for 75275@debbugs.gnu.org; Thu, 02 Jan 2025 00:56:00 -0500 Original-Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-aaf8f0ea963so115221066b.3 for <75275@debbugs.gnu.org>; Wed, 01 Jan 2025 21:56:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735797353; x=1736402153; 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=2vsTVzeLx3SACGXQYLGSKdqP2/XsRJ6qlmyc2oBd2DU=; b=YtZwegONPOWqbow+4KfD9Rcwxd9jpNPMG+vNi6pLhCNFXcT58zizXwrWxOmndjWfGn tycMHR+cj5Xsr3OYykvGkaauoh9vUIuJsx0OMADerC9RdEDXMx/ANwCtwolQou4XdBeV ESvNf0RldtoIYSvYhYZ7yv+cbKYTY/n3gkRHjsZrVX0IF0ftFpeeMlAajNpUYAUbTwW+ BJQEGVBWUyVIb40maCPLoAO2Gy4UyaaF/eQDaPOeDhnVvnp7kUKOX3JEgzMNTbzCkjOL AkhSD4LRTNRzcM0lP2z0p8AdQWSdHtl8B7NFQmW0xJaDUvVLkT5XgNWStoJoYepzy85n HBVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735797353; x=1736402153; 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=2vsTVzeLx3SACGXQYLGSKdqP2/XsRJ6qlmyc2oBd2DU=; b=kgbPVcPhgeeuZH2I9XrBGpqmZ/3E+XyeZAjnHTNy8rxp3beFXHIHAdFcmInEo/HpBZ Hf0RtmP5nNu3fJgv2NqrgxsQDPOu84s5uDylp4ivUJnCbeJjKnBV8GPBIkxxXqE9YXGE u3OmlR/+gr600XWYuX/RgsJ503sTSErJMiiHsEJMwEvUwqptT5mRoNF5QZnbVZWf3ENJ dO0j/TX549Krbzz9r0K59G28QrKEhP/Ww+zORp90/UbYEebt7x3HiuD+t9pQGpXvh26I La/+SLaYxJ0biPfQDUN7szTI6Pq6GwRa0TrpgcFSSUMU0pk+ZalNv3it5vsF4GksZE6+ hQ0A== X-Gm-Message-State: AOJu0YwKAkpVtPZLw8i8yh21moleQ6UYgVIqM8pqKhaf02hwvgvBusrm igA2QzK3ppb5fys9EuIO1KoX6jVSQVCuALZ2/13JNfwYPym5oSz937Ailg== X-Gm-Gg: ASbGncsmi54daJKDKv44uXLh2sfVh0jTfpBAr70mTUAVkd6QeRIiwuD7Awr4XpvAB+z Hn2q2+hobGS6Ehc+8jNOq/+A0vzBnbA1b5+2SNR2XNISNWs/UIJ0S/I9isSnSG3OYozXHZpqWOH 4B6ly2lEaAAgnoP5RaG5OHynFsL8DlpQHxagLehIf+lhylFMQmpuhuyT55S4VL51WmT54NWzVFp YvDN8jA8UpvxoZ9xe9iaxn3nbiQ3Isjq5lUeOM1+IFcymktFbxAHP7D9d/oX0VxMKlxKErvA3CR l6a06swJ3QBDAcw5okzl7hoigN9pPmSdpq/ccaLDk27pHvGOMHdwroqufh+YVtwf X-Google-Smtp-Source: AGHT+IEG2yGioQK29Ui8gyfzvGav5fhw/zaAM7OCJEAkLYuyHaX0bfyJ/KxV4F8uGdxVVNU3YM0U2A== X-Received: by 2002:a17:907:1c2a:b0:aa6:92de:ddae with SMTP id a640c23a62f3a-aac2ad80068mr3888411366b.16.1735797353311; Wed, 01 Jan 2025 21:55:53 -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 a640c23a62f3a-aac0f029072sm1727028766b.170.2025.01.01.21.55.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jan 2025 21:55:52 -0800 (PST) In-Reply-To: ("Gerd =?UTF-8?Q?M=C3=B6llmann?="'s message of "Thu, 02 Jan 2025 06:46:19 +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:298121 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? > >> 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? This is what Apple says about Cocoa thread-safety https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/= Multithreading/ThreadSafetySummary/ThreadSafetySummary.html#:~:text=3DGuide= lines%20for%20using%20Cocoa%20from,are%20generally%20not%20thread%2Dsafe.