GNU bug report logs - #55726
28.1; emacs becomes unresponsive to input

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: "Jay Berkenbilt" <ejb@HIDDEN>; dated Mon, 30 May 2022 13:00:03 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 55726 <at> debbugs.gnu.org:


Received: (at 55726) by debbugs.gnu.org; 28 Jan 2023 19:12:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 28 14:12:56 2023
Received: from localhost ([127.0.0.1]:41592 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pLqdE-0002N7-LZ
	for submit <at> debbugs.gnu.org; Sat, 28 Jan 2023 14:12:56 -0500
Received: from out3-smtp.messagingengine.com ([66.111.4.27]:35407)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ejb@HIDDEN>) id 1pLqdA-0002Mo-AU
 for 55726 <at> debbugs.gnu.org; Sat, 28 Jan 2023 14:12:55 -0500
Received: from compute6.internal (compute6.nyi.internal [10.202.2.47])
 by mailout.nyi.internal (Postfix) with ESMTP id 42B5D5C006A;
 Sat, 28 Jan 2023 14:12:47 -0500 (EST)
Received: from imap49 ([10.202.2.99])
 by compute6.internal (MEProxy); Sat, 28 Jan 2023 14:12:47 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ql.org; h=cc:cc
 :content-type:date:date:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:references:reply-to:sender:subject
 :subject:to:to; s=fm3; t=1674933167; x=1675019567; bh=bm4NmUu4ue
 dPvW4I7syiaiYSI45xeRh7fc0A6Qr7YSM=; b=MK+B42U2TXcxxNU7sdJmazuPoq
 ocFa6XkOteXx0ie+BQa7+zGKj1a5t5qZb8CzRa5IWQExivkVGxgWvS5f8njyHXrs
 9JMBWnWD4MpjwmLxWmLEncfvtmeo/43YsyTQgho1x0m2QWJeSXmFPI7AcpLoH6ex
 qP1Gmc9iEQOy6OtA19rtG2W7IaXusWIQ8QjfVokLSnpxycEeqzOYGCTIsSwMUz6b
 o53nd4AExNPdngJQCxeIQuDLHnMw+BWdZ0nnxRnSJEEuaBVKWYQJ6FdxBD4EN9gx
 Zx33IcCZ2Uwk8bmV0E4SMc3Iznk23sfEhtnqrXMAJprTmJaUb+icGEPdTL8Q==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-type:date:date:feedback-id
 :feedback-id:from:from:in-reply-to:in-reply-to:message-id
 :mime-version:references:reply-to:sender:subject:subject:to:to
 :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=
 fm3; t=1674933167; x=1675019567; bh=bm4NmUu4uedPvW4I7syiaiYSI45x
 eRh7fc0A6Qr7YSM=; b=NxaBGvl3DEXswbtp2gsyWKpRMTEL9MKBOsrxWJxPFESg
 mmPC8v8zuiTmmol6qUa2JyzzpgR9RU8XHdsdWwCz1SjVyLM0tTS6+f11vGMzHH+U
 2h9sXH0QT6QCUlIoz30eIokSC87iCFEovSq/amc6Nc+cFUkgxD9g8YeQiJ5iUUfZ
 /N7wDppktoPHaRI835NGjN3ykm3GmhJd15ihFBQAnNeyznAUnKWnUH+gmgWHExvd
 CN06khl/nWI9xyIofA5qie2R4NpkjJH0iNdbkbPakNbfUNfYPKoBj7YFTZdIcmli
 iB9u37OgtUQ4BUi3DxxIxGTYqB/J9QzN7YGi2g0lWA==
X-ME-Sender: <xms:rnPVYx-w2NHJFkxfp1zGDqhqwMFTU_gR5FD5SpJnTFhBhxS9kYz0FA>
 <xme:rnPVY1vzCI4H-Ko0GuMDrLC3yquMkMk7TbkVzeWrVxmTqWEizhhDXaXHWhh-NF68x
 mL9V4l61sjArUdTgj0>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedruddvkedguddvudcutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh
 necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd
 enucfjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdfl
 rgihuceuvghrkhgvnhgsihhlthdfuceovghjsgesqhhlrdhorhhgqeenucggtffrrghtth
 gvrhhnpedugeetieehgfefueevgffgueefledvheelteekgfdvudefieeuieejgeelfedt
 veenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegvjh
 gssehqlhdrohhrgh
X-ME-Proxy: <xmx:rnPVY_C3t70P9crTnXcfp2bgP3UnFsGJFjGeC37hvIj0UQORzwl2Rw>
 <xmx:rnPVY1ddnszRWJf5YOahySUnZdljRbCqYToXxgM_QBZ4py0_jKh-lA>
 <xmx:rnPVY2OswSHyly7-53DWNlRrV-fBOQ134FR83IVKdkXInpS_EMR71w>
 <xmx:r3PVYwXj6V2vrSyU8OH50KhG5xjrQvf22lI0DTgasbBTpBKKkLnKfw>
Feedback-ID: ibd3147ef:Fastmail
Received: by mailuser.nyi.internal (Postfix, from userid 501)
 id B390415A008E; Sat, 28 Jan 2023 14:12:46 -0500 (EST)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.9.0-alpha0-85-gd6d859e0cf-fm-20230116.001-gd6d859e0
Mime-Version: 1.0
Message-Id: <90b3f5a6-187c-4770-a5a5-b58d9237ed4a@HIDDEN>
In-Reply-To: <87czf4ke16.fsf@HIDDEN>
References: <11874f4a-5f7c-4f88-923f-4a6310654697@HIDDEN>
 <83fskrjf6p.fsf@HIDDEN>
 <aa78fc87-b4e8-4629-be45-466967885a55@HIDDEN>
 <49de370b-6c5b-4bd0-a998-4683d6103995@HIDDEN>
 <a0f0ec53-21c7-46d9-9dc5-cf150ab1c0a3@HIDDEN>
 <831qvlnrg0.fsf@HIDDEN> <87czf4ke16.fsf@HIDDEN>
Date: Sat, 28 Jan 2023 14:12:26 -0500
From: "Jay Berkenbilt" <ejb@HIDDEN>
To: "Basil L. Contovounesios" <contovob@HIDDEN>, "Eli Zaretskii" <eliz@HIDDEN>
Subject: Re: bug#55726: 28.1; emacs becomes unresponsive to input
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 55726
Cc: 55726 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

On Sun, Jun 19, 2022, at 8:56 AM, Basil L. Contovounesios wrote:
> Eli Zaretskii [2022-06-19 08:38 +0300] wrote:
> 
> > Not sure how to continue from here.  xgselect.c had some changes
> > lately, so maybe you could try using Emacs 29 for a while and see if
> > these hangs don't happen there?
> 
> FWIW, I run master as my daily driver, and I'm pretty sure I've run into
> this maybe once, at most twice since the latest relevant xgselect.c
> changes.
> 
> -- 
> Basil
> 

Just to keep this alive, I still run into this on a regular basis. I
am pretty close to being able to come up with a formula to reproduce
it. I just have to take the time to do it. It always happens to me
when I exit an ediff session, and if I pause some time between using
"q" to exit the ediff session (which causes the little ediff frame to
disappear) and answering "y" to confirm that I want to exit the
session, this seems to greatly reduce the likelihood of a lockup.

I may spend some time on this. The last time there was a bug that was
causing emacs to crash on me regularly was around the release of
emacs 20. Thank goodness for the emacsclient -t workaround. At least
that way I am able to save my state fully before killing and restarting
emacs.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#55726; Package emacs. Full text available.

Message received at 55726 <at> debbugs.gnu.org:


Received: (at 55726) by debbugs.gnu.org; 19 Jun 2022 12:56:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 19 08:56:35 2022
Received: from localhost ([127.0.0.1]:50837 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1o2uTj-0002gO-Em
	for submit <at> debbugs.gnu.org; Sun, 19 Jun 2022 08:56:35 -0400
Received: from mail-ed1-f53.google.com ([209.85.208.53]:36672)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <contovob@HIDDEN>) id 1o2uTd-0002fz-Tc
 for 55726 <at> debbugs.gnu.org; Sun, 19 Jun 2022 08:56:33 -0400
Received: by mail-ed1-f53.google.com with SMTP id e2so744761edv.3
 for <55726 <at> debbugs.gnu.org>; Sun, 19 Jun 2022 05:56:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=2JzeMGzg7SYfkTdlgLy0mRRN7s2aJmNmBvz9L1ncZP8=;
 b=WweeaZGYLskj0Bbx17uS8HjkZZPZcExY2D1yyMxim3+72V+Iu0+LYoI/lRMnLdetFD
 q5ClrmV2nyTnmMBurEej7c7j6O224H+I+VZnfaqiDxqpCoFh8LyJ6e6mUqV9XmTWjU7N
 eb0Wou+D9EOQ6AZ7RdYPsNk9GZ/3dTBUWnXfVENXUQdyLSw7koXDds2XUCbBjwm9N8f1
 DyqZ6wjFMFixQbHsdkV1vwdM2IZ9hyWoZOrCzzj2KjEbJfZNUZLFuMzde0mjhIyz3gb6
 mIjlzmoi+noUdb4H0DCMftrRGSSz+YerpLz0Nlc27aAm5MAGNNJx4Dl6xW6Kb6nQvShD
 Ubmw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=2JzeMGzg7SYfkTdlgLy0mRRN7s2aJmNmBvz9L1ncZP8=;
 b=c/dZErN/+IcKo6ie4oawOJSHkDMGIPTsSvWHTcouZNM5RZviOQ8yD9HaSaZtelDnlT
 huuhMQe5Z1Nm2mniROal7EUozbS80JuGvHJpqmTPz8MI8MOfUIuIMWLDldLo89TflSQo
 LMbHfHQoBDnfUVyUGQZdp4vpQi8To9SnjQmXzG/S60MKfXtCXNg49MpIXCZSm2S7r07Q
 7jjsbRBjH8xORxUpmre22gjbJoTUNRFh+Y/wohXB3gYiXE2ujY0UlDEpuzP0xkzDLZAU
 9IHzAg0dOkiZ6llRMX2iLmH5ThjWKaAY09GmxGjITHD7WUwXAo6UB0YTiluKx4LCdB+s
 UMcQ==
X-Gm-Message-State: AJIora+1dZhKiBvLxHFQp8MIfn8eCp2Uysv3gb2OA6MYDx44e7dBWzxE
 90Z+aDfFCw9sdex9GW6Y2ameRw==
X-Google-Smtp-Source: AGRyM1sOu0FSrv+z4Bc9JJ+jk9xAgVV//VTAHn+z25ntcIUcVCXYZYy8bLN96uTVjKbmrZWvk6FFNg==
X-Received: by 2002:aa7:cb10:0:b0:434:e908:373 with SMTP id
 s16-20020aa7cb10000000b00434e9080373mr23560960edt.367.1655643383693; 
 Sun, 19 Jun 2022 05:56:23 -0700 (PDT)
Received: from localhost ([2a02:587:322b:6f5e:dc92:136a:a7c4:dc8c])
 by smtp.gmail.com with ESMTPSA id
 jy20-20020a170907763400b006fedcb78854sm4503184ejc.164.2022.06.19.05.56.22
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 19 Jun 2022 05:56:22 -0700 (PDT)
From: "Basil L. Contovounesios" <contovob@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#55726: 28.1; emacs becomes unresponsive to input
References: <11874f4a-5f7c-4f88-923f-4a6310654697@HIDDEN>
 <83fskrjf6p.fsf@HIDDEN>
 <aa78fc87-b4e8-4629-be45-466967885a55@HIDDEN>
 <49de370b-6c5b-4bd0-a998-4683d6103995@HIDDEN>
 <a0f0ec53-21c7-46d9-9dc5-cf150ab1c0a3@HIDDEN>
 <831qvlnrg0.fsf@HIDDEN>
Date: Sun, 19 Jun 2022 15:56:21 +0300
In-Reply-To: <831qvlnrg0.fsf@HIDDEN> (Eli Zaretskii's message of "Sun, 19 Jun
 2022 08:38:23 +0300")
Message-ID: <87czf4ke16.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 55726
Cc: Jay Berkenbilt <ejb@HIDDEN>, 55726 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii [2022-06-19 08:38 +0300] wrote:

> Not sure how to continue from here.  xgselect.c had some changes
> lately, so maybe you could try using Emacs 29 for a while and see if
> these hangs don't happen there?

FWIW, I run master as my daily driver, and I'm pretty sure I've run into
this maybe once, at most twice since the latest relevant xgselect.c
changes.

-- 
Basil




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#55726; Package emacs. Full text available.

Message received at 55726 <at> debbugs.gnu.org:


Received: (at 55726) by debbugs.gnu.org; 19 Jun 2022 05:38:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 19 01:38:53 2022
Received: from localhost ([127.0.0.1]:50439 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1o2ne8-0007gi-RX
	for submit <at> debbugs.gnu.org; Sun, 19 Jun 2022 01:38:53 -0400
Received: from eggs.gnu.org ([209.51.188.92]:34348)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1o2ne3-0007gQ-UU
 for 55726 <at> debbugs.gnu.org; Sun, 19 Jun 2022 01:38:51 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:52018)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1o2ndx-0000VH-6I; Sun, 19 Jun 2022 01:38:42 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=n1NJdUpJTK0F4xv4zbWmLBLYMnOotosEaOU+Wf+cibI=; b=EcvyR3pdFoog
 9erHyVXhjqQDbGtGSZCwLu953BdQNjk+DYVpUR+cPUoAdPuKh2V3nVUtxPOkEy5TTgNdOccosX25W
 dN09bxeU2z1UgUPH+g/Bw5PZ3Jtu0vt5Pcpx0HDAP7C12dqRWofnR6+s0FJBBFdatOg/xQik8g8rD
 fA+vPvhLsNLBfXnNKvIoVhQd3OniijWwdzzwIhRsmfvsXhaXb/3pP1OBf6pGzqJxV+pe7DuYYJiRa
 p3ujBDjVmsoXRfvRjm3TLSEZE0OCnTKkMnPtwwjqLlmSIaKiof66//p1Vza0nrqVGNDt0AJ25VNqw
 N+eYI9JCVjANg219yFqlXg==;
Received: from [87.69.77.57] (port=2112 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1o2ndw-00006s-IB; Sun, 19 Jun 2022 01:38:40 -0400
Date: Sun, 19 Jun 2022 08:38:23 +0300
Message-Id: <831qvlnrg0.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: "Jay Berkenbilt" <ejb@HIDDEN>
In-Reply-To: <a0f0ec53-21c7-46d9-9dc5-cf150ab1c0a3@HIDDEN>
 (ejb@HIDDEN)
Subject: Re: bug#55726: 28.1; emacs becomes unresponsive to input
References: <11874f4a-5f7c-4f88-923f-4a6310654697@HIDDEN>
 <83fskrjf6p.fsf@HIDDEN>
 <aa78fc87-b4e8-4629-be45-466967885a55@HIDDEN>
 <49de370b-6c5b-4bd0-a998-4683d6103995@HIDDEN>
 <a0f0ec53-21c7-46d9-9dc5-cf150ab1c0a3@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 55726
Cc: 55726 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Sat, 18 Jun 2022 15:38:09 -0400
> From: "Jay Berkenbilt" <ejb@HIDDEN>
> 
> Thread 4 (Thread 0x7f7bf0917640 (LWP 3621) "dconf worker"):
> #0  0x00007f7bf6427d7f in __GI___poll (fds=0x55c3d85854c0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
> #1  0x00007f7bf7bcc696 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #2  0x00007f7bf7b753c3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #3  0x00007f7bf0a3133d in  () at /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
> #4  0x00007f7bf7ba6a41 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #5  0x00007f7bf63a3b43 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
> #6  0x00007f7bf6435a00 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
> 
> Thread 3 (Thread 0x7f7bf12bd640 (LWP 3503) "gdbus"):
> #0  0x00007f7bf6427d7f in __GI___poll (fds=0x55c3d843aea0, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
> #1  0x00007f7bf7bcc696 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #2  0x00007f7bf7b77293 in g_main_loop_run () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #3  0x00007f7bf7dd2c1a in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
> #4  0x00007f7bf7ba6a41 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #5  0x00007f7bf63a3b43 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
> #6  0x00007f7bf6435a00 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
> 
> Thread 2 (Thread 0x7f7bf1b36640 (LWP 3410) "gmain"):
> #0  0x00007f7bf6427d7f in __GI___poll (fds=0x55c3d8055490, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
> #1  0x00007f7bf7bcc696 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #2  0x00007f7bf7b753c3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #3  0x00007f7bf7b75411 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #4  0x00007f7bf7ba6a41 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #5  0x00007f7bf63a3b43 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
> #6  0x00007f7bf6435a00 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
> 
> Thread 1 (Thread 0x7f7bf358c000 (LWP 3403) "emacs"):
> #0  pselect64_syscall (sigmask=<optimized out>, timeout=<optimized out>, exceptfds=0x0, writefds=0x7ffdfac20990, readfds=0x7ffdfac20910, nfds=19) at ../sysdeps/unix/sysv/linux/pselect.c:34
> #1  __pselect (nfds=19, readfds=0x7ffdfac20910, writefds=0x7ffdfac20990, exceptfds=0x0, timeout=<optimized out>, sigmask=<optimized out>) at ../sysdeps/unix/sysv/linux/pselect.c:56
> #2  0x000055c3d77cf035 in really_call_select (arg=0x7ffdfac20800) at thread.c:596
> #3  0x000055c3d77cfe73 in flush_stack_call_func (arg=0x7ffdfac20800, func=0x55c3d77cefc0 <really_call_select>) at /home/ejb/tmp/net/emacs-28.1/src/lisp.h:3834
> #4  thread_select (func=<optimized out>, max_fds=max_fds@entry=19, rfds=rfds@entry=0x7ffdfac20910, wfds=wfds@entry=0x7ffdfac20990, efds=efds@entry=0x0, timeout=timeout@entry=0x7ffdfac20f50, sigmask=0x0) at thread.c:628
> #5  0x000055c3d77ed8d1 in xg_select (fds_lim=19, rfds=rfds@entry=0x7ffdfac21060, wfds=wfds@entry=0x7ffdfac210e0, efds=efds@entry=0x0, timeout=timeout@entry=0x7ffdfac20f50, sigmask=sigmask@entry=0x0) at xgselect.c:147

Some GLib-related deadlock, perhaps?  The GLib context locking is a
can of worms; we do some jumping through hoops in xgselect.c to avoid
problems, but maybe that's not enough?

> > It is also important to know whether Emacs is stuck or inflooping.  Do
> > you happen to know if it was using the CPU while in this state?  The
> > strategy to dig into the problem depends on whether Emacs hangs (which
> > might mean some kind of deadlock), or infloops in some code.
> 
> It was hanging. CPU was 0% on all the threads.

A.k.a. "deadlock".

Not sure how to continue from here.  xgselect.c had some changes
lately, so maybe you could try using Emacs 29 for a while and see if
these hangs don't happen there?

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#55726; Package emacs. Full text available.

Message received at 55726 <at> debbugs.gnu.org:


Received: (at 55726) by debbugs.gnu.org; 18 Jun 2022 19:38:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 18 15:38:45 2022
Received: from localhost ([127.0.0.1]:50052 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1o2eHJ-0001Qp-K4
	for submit <at> debbugs.gnu.org; Sat, 18 Jun 2022 15:38:44 -0400
Received: from out1-smtp.messagingengine.com ([66.111.4.25]:45465)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ejb@HIDDEN>) id 1o2eHE-0001QX-Jt
 for 55726 <at> debbugs.gnu.org; Sat, 18 Jun 2022 15:38:40 -0400
Received: from compute4.internal (compute4.nyi.internal [10.202.2.44])
 by mailout.nyi.internal (Postfix) with ESMTP id 578215C009D
 for <55726 <at> debbugs.gnu.org>; Sat, 18 Jun 2022 15:38:30 -0400 (EDT)
Received: from imap49 ([10.202.2.99])
 by compute4.internal (MEProxy); Sat, 18 Jun 2022 15:38:30 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ql.org; h=cc
 :content-type:date:date:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:references:reply-to:sender:subject
 :subject:to:to; s=fm2; t=1655581110; x=1655667510; bh=2v6EbNbzvp
 xoASQi7UnMHqDytCh7zDLw3myQBGNkfLc=; b=FY0EP9nXCzNI2Cczaco8LHnomD
 LHMOUaKQOgJFAfMhmRL7TgBMjg3PifFLe/QqbjY0FzclRStH3p+AvF7t+NXoqWcv
 8Md8fn9jdtOKc5eq/CMNC8b52s/mA/ClyyB1vv241At7vpXNYeYmdnJqL6Sa2wF2
 IM99ZuxJKjSaJFISUthZWRvjRtktRxhCEd76nzrDhhpP/xK1+pTEpmnVxlhJ4NCU
 jH6oRwQUoLGxWVqwfh77/YUa1+2rT/HRQUq6/Q6Cyb5YFhLywt+fE86FDAFSuSJK
 p/TVZ364kNy7ecFXQ58oOfwrUVfAClJUoDuei0Ni3FGx3QM6dP5j7ZJHUGHw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-type:date:date:feedback-id
 :feedback-id:from:from:in-reply-to:in-reply-to:message-id
 :mime-version:references:reply-to:sender:subject:subject:to:to
 :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=
 fm2; t=1655581110; x=1655667510; bh=2v6EbNbzvpxoASQi7UnMHqDytCh7
 zDLw3myQBGNkfLc=; b=Oi5jB8AioecDPyKB8q+2N8i041DtuyAp6sXQVUTV3oRP
 C9hIIO/TlBAO2BwfK7VvV5CKpiRoQ7oxxzz3Ty/ND13ZsUaS1yc8IKQ+bGsdIexX
 08AtZZxTCc1cLNKbFXiWM8y71mkLzgkR4md4rMuQm86NuAMW5bbfhq5lzpfl9rov
 ch4Qq3ceoUrepCVVsFgL2UOxz2ITu8I0sippvs2w3AnAVKxNyTckrnqUrqeajjex
 EDR2Wy49+e0stg0QC/QWZAdauHtm4uzuNO/5MwysJeFdoJlNkrjrJGyt3Wee9ICf
 DLZ/gOarP2PocHXt+/AgPj/UoXXNZHW/ptu7a1Ztlg==
X-ME-Sender: <xms:timuYh8p21gSAQ-4jQMIMpcEioegwOKEgT4gvjYOrgfGKFB_9niUkw>
 <xme:timuYlt4zM5MAAlY66rkrVXJA38lDSGFQle6En_-ow23Tc5tdtghw7yIU9zM978ud
 UybC4NhU9TuMNZB5Nk>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedruddvjedgudegfecutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh
 necuuegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesth
 dtredtreertdenucfhrhhomhepfdflrgihuceuvghrkhgvnhgsihhlthdfuceovghjsges
 qhhlrdhorhhgqeenucggtffrrghtthgvrhhnpeehtdevhfefvdffgfeifeduheefhfduhf
 egfffgffdtveelffehvddvheejffeukeenucevlhhushhtvghrufhiiigvpedtnecurfgr
 rhgrmhepmhgrihhlfhhrohhmpegvjhgssehqlhdrohhrgh
X-ME-Proxy: <xmx:timuYvBYdZbnQfv5X-vwQCwfx5yEEJ40NEITXS00Y08QIpsGhC1jjA>
 <xmx:timuYlfqAeA5Ut5xjQ8FdEWPRPbAfMePw09Ya7whRJwGRJZk5gBQkA>
 <xmx:timuYmO10s92F7uZKWZGQaF390TJ3iNQq4yW650Ga1dFpkmqifX4oQ>
 <xmx:timuYsb4lVE7-NM2eNlJwSz4toG4JBImFJOQqCl57OTE0HTLAJE3iQ>
Feedback-ID: ibd3147ef:Fastmail
Received: by mailuser.nyi.internal (Postfix, from userid 501)
 id 11E4F15A0080; Sat, 18 Jun 2022 15:38:30 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.7.0-alpha0-712-gb9e94258b0-fm-20220610.001-gb9e94258
Mime-Version: 1.0
Message-Id: <a0f0ec53-21c7-46d9-9dc5-cf150ab1c0a3@HIDDEN>
In-Reply-To: <49de370b-6c5b-4bd0-a998-4683d6103995@HIDDEN>
References: <11874f4a-5f7c-4f88-923f-4a6310654697@HIDDEN>
 <83fskrjf6p.fsf@HIDDEN>
 <aa78fc87-b4e8-4629-be45-466967885a55@HIDDEN>
 <49de370b-6c5b-4bd0-a998-4683d6103995@HIDDEN>
Date: Sat, 18 Jun 2022 15:38:09 -0400
From: "Jay Berkenbilt" <ejb@HIDDEN>
To: 55726 <at> debbugs.gnu.org
Subject: Re: bug#55726: 28.1; emacs becomes unresponsive to input
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 55726
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

The issue finally happened again. I was exiting M-x ediff-revision. I
think ediff definitely seems to increase the odds.

> On Mon, May 30, 2022, at 9:57 AM, Eli Zaretskii wrote:
> > > Cc: ejb@HIDDEN
> > > Date: Mon, 30 May 2022 08:58:26 -0400
> > > From: "Jay Berkenbilt" <ejb@HIDDEN>
> > >
> >> . . .
> > >
> > > My emacs is built from source using default configure options, so I was
> > > able to attach my running emacs process in gdb and get a stack trace.
> > > Here is the stack trace:
> > >
> > > . . .
> >
> > This says that Emacs's main thread is just waiting for input, either
> > from the keyboard or from any other sources, like the window-system or
> > subprocesses.
> >
> > If this session is still alive under GDB, please type this command:
> >
> >   (gdb) thread apply all bt
> >
> > and show the output -- it will tell us what the other threads are
> > doing.  If you already killed that session, then do the above next
> > time it happens.

Attaching to process 3403
[New LWP 3410]
[New LWP 3503]
[New LWP 3621]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
pselect64_syscall (sigmask=<optimized out>, timeout=<optimized out>, exceptfds=0x0, writefds=0x7ffdfac20990, readfds=0x7ffdfac20910, nfds=19) at ../sysdeps/unix/sysv/linux/pselect.c:34
34	../sysdeps/unix/sysv/linux/pselect.c: No such file or directory.

Thread 4 (Thread 0x7f7bf0917640 (LWP 3621) "dconf worker"):
#0  0x00007f7bf6427d7f in __GI___poll (fds=0x55c3d85854c0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f7bf7bcc696 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f7bf7b753c3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f7bf0a3133d in  () at /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
#4  0x00007f7bf7ba6a41 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f7bf63a3b43 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#6  0x00007f7bf6435a00 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 3 (Thread 0x7f7bf12bd640 (LWP 3503) "gdbus"):
#0  0x00007f7bf6427d7f in __GI___poll (fds=0x55c3d843aea0, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f7bf7bcc696 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f7bf7b77293 in g_main_loop_run () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f7bf7dd2c1a in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007f7bf7ba6a41 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f7bf63a3b43 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#6  0x00007f7bf6435a00 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 2 (Thread 0x7f7bf1b36640 (LWP 3410) "gmain"):
#0  0x00007f7bf6427d7f in __GI___poll (fds=0x55c3d8055490, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f7bf7bcc696 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f7bf7b753c3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f7bf7b75411 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f7bf7ba6a41 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f7bf63a3b43 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#6  0x00007f7bf6435a00 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 1 (Thread 0x7f7bf358c000 (LWP 3403) "emacs"):
#0  pselect64_syscall (sigmask=<optimized out>, timeout=<optimized out>, exceptfds=0x0, writefds=0x7ffdfac20990, readfds=0x7ffdfac20910, nfds=19) at ../sysdeps/unix/sysv/linux/pselect.c:34
#1  __pselect (nfds=19, readfds=0x7ffdfac20910, writefds=0x7ffdfac20990, exceptfds=0x0, timeout=<optimized out>, sigmask=<optimized out>) at ../sysdeps/unix/sysv/linux/pselect.c:56
#2  0x000055c3d77cf035 in really_call_select (arg=0x7ffdfac20800) at thread.c:596
#3  0x000055c3d77cfe73 in flush_stack_call_func (arg=0x7ffdfac20800, func=0x55c3d77cefc0 <really_call_select>) at /home/ejb/tmp/net/emacs-28.1/src/lisp.h:3834
#4  thread_select (func=<optimized out>, max_fds=max_fds@entry=19, rfds=rfds@entry=0x7ffdfac20910, wfds=wfds@entry=0x7ffdfac20990, efds=efds@entry=0x0, timeout=timeout@entry=0x7ffdfac20f50, sigmask=0x0) at thread.c:628
#5  0x000055c3d77ed8d1 in xg_select (fds_lim=19, rfds=rfds@entry=0x7ffdfac21060, wfds=wfds@entry=0x7ffdfac210e0, efds=efds@entry=0x0, timeout=timeout@entry=0x7ffdfac20f50, sigmask=sigmask@entry=0x0) at xgselect.c:147
#6  0x000055c3d77acb15 in wait_reading_process_output (time_limit=time_limit@entry=0, nsecs=nsecs@entry=0, read_kbd=read_kbd@entry=-1, do_display=true, wait_for_cell=wait_for_cell@entry=0x0, wait_proc=wait_proc@entry=0x0, just_wait_proc=0) at process.c:5591
#7  0x000055c3d76ede6c in kbd_buffer_get_event (end_time=0x0, used_mouse_menu=0x7ffdfac218eb, kbp=<synthetic pointer>) at keyboard.c:3926
#8  read_event_from_main_queue (used_mouse_menu=0x7ffdfac218eb, local_getcjmp=0x7ffdfac214f0, end_time=0x0) at keyboard.c:2198
#9  read_decoded_event_from_main_queue (used_mouse_menu=<optimized out>, prev_event=<optimized out>, local_getcjmp=<optimized out>, end_time=<optimized out>) at keyboard.c:2262
#10 read_char (commandflag=1, map=0x55c3d96ec313, prev_event=0x0, used_mouse_menu=0x7ffdfac218eb, end_time=0x0) at keyboard.c:2892
#11 0x000055c3d76f04d4 in read_key_sequence (keybuf=<optimized out>, prompt=0x0, dont_downcase_last=<optimized out>, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=<optimized out>) at keyboard.c:9635
#12 0x000055c3d76f1e9c in command_loop_1 () at keyboard.c:1392
#13 0x000055c3d7761a47 in internal_condition_case (bfun=bfun@entry=0x55c3d76f1ca0 <command_loop_1>, handlers=handlers@entry=0x90, hfun=hfun@entry=0x55c3d76e8490 <cmd_error>) at eval.c:1450
#14 0x000055c3d76e24be in command_loop_2 (handlers=handlers@entry=0x90) at keyboard.c:1133
#15 0x000055c3d7761989 in internal_catch (tag=tag@entry=0xe850, func=func@entry=0x55c3d76e2490 <command_loop_2>, arg=arg@entry=0x90) at eval.c:1181
#16 0x000055c3d76e2459 in command_loop () at keyboard.c:1111
#17 0x000055c3d76e8080 in recursive_edit_1 () at keyboard.c:720
#18 0x000055c3d76e83d9 in Frecursive_edit () at keyboard.c:803
#19 0x000055c3d75f7054 in main (argc=1, argv=<optimized out>) at emacs.c:2354
Detaching from program: /usr/local/emacs-28.1/bin/emacs-28.1, process 3403
[Inferior 1 (process 3403) detached]

> It is also important to know whether Emacs is stuck or inflooping.  Do
> you happen to know if it was using the CPU while in this state?  The
> strategy to dig into the problem depends on whether Emacs hangs (which
> might mean some kind of deadlock), or infloops in some code.

It was hanging. CPU was 0% on all the threads.

The suggestion of running emacsclient -t to save state was very
helpful. I used emacsclient -t, M-x desktop-save, M-x kill-emacs. Then
I started a new emacs and did M-x desktop-read to restore my previous
state.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#55726; Package emacs. Full text available.

Message received at 55726 <at> debbugs.gnu.org:


Received: (at 55726) by debbugs.gnu.org; 17 Jun 2022 03:30:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 16 23:30:06 2022
Received: from localhost ([127.0.0.1]:43489 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1o22gN-0007Lm-0j
	for submit <at> debbugs.gnu.org; Thu, 16 Jun 2022 23:30:06 -0400
Received: from mail-qk1-f169.google.com ([209.85.222.169]:36713)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dick.r.chiang@HIDDEN>) id 1o21AZ-00054i-QM
 for 55726 <at> debbugs.gnu.org; Thu, 16 Jun 2022 21:53:08 -0400
Received: by mail-qk1-f169.google.com with SMTP id c83so2295887qke.3
 for <55726 <at> debbugs.gnu.org>; Thu, 16 Jun 2022 18:53:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=Y35CDf/9ZlxvvLV1HBLlrwusKpXaj3VUzo2l9YaRM4U=;
 b=jqK/FoLGptiwLUM9lPno4butpJUpaTNfTG7qRaYd8nyxTk7dG8s1DWdaV4sF03Bebd
 wMlokCgVW2n/i2BFtbPlRrckYqskrMLkCJgMevxHC4jjbwmj80Tt9xuKVGslxdX3623/
 9j36NIQ/J3DeGdUQ0/QWacoHx164k8M5T7SLbUHszZODlccf8QqtWavY7/3Y4pdcKUqF
 w5mAyv8+pTieIkh9vHZWwkoXeTOKM3SHdMSvZ+le8ZpM49u1WBX6bO6wEdPjkoWffKRT
 KcTWCcJo61hgre7m5nT4g1ReSewG8Xh3TS9aSWm/1Ow9ovviN24ac0jvCF04bg8rZoxZ
 ww0w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=Y35CDf/9ZlxvvLV1HBLlrwusKpXaj3VUzo2l9YaRM4U=;
 b=DwKdUkE4mOEIPI9IsKdgewbVlJ+3mSFMC+Jgw8DHJqGZQyDuGGu/f0FJ+V9uqML328
 BqD0yikQO/5/yMPcmCJWMx1xhDdYA6DGoYfa1IFJP73T2SS1QA5XnFlT6pDfZwDpcNnE
 bzuKTOjqlgX/2yIH8VWGS3xIvQrCznjBnqtHCuun3U53jlSxEsGoxYqvSV1CHXq3j9tJ
 FRpY/wvx+oAGEgkFe/Zw+meUmnGNlAGDnQC9yYL5JihEi2vPBCxB4YvnlC7FR+2/Ctv5
 JhUeFFrsC69xfKH4YFgg1k90udT+8ChOTlDek3NSP0jfEseDa8iCceNiIfdhA/vyskGu
 m22Q==
X-Gm-Message-State: AJIora8XUgjKwW7tvbWAlh7f7+nOmDs0bd/bl6/hkamo5nEwa4ef5WaA
 yTD1b6GS54jOdiQXIdHq7cynTyV0/PI=
X-Google-Smtp-Source: AGRyM1vFBfyj1xxXP0sKdSQY3BbrDu+1syTDvP7/V2F4ITZE/BISqW2oHlEYMxy/RO9SnVHZcBGT9Q==
X-Received: by 2002:a05:620a:b8d:b0:6a7:1c42:8f02 with SMTP id
 k13-20020a05620a0b8d00b006a71c428f02mr5580792qkh.602.1655430782174; 
 Thu, 16 Jun 2022 18:53:02 -0700 (PDT)
Received: from localhost (pool-108-6-130-155.nycmny.fios.verizon.net.
 [108.6.130.155]) by smtp.gmail.com with ESMTPSA id
 k20-20020a05620a415400b006a6f1c30701sm3303085qko.115.2022.06.16.18.53.01
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 16 Jun 2022 18:53:01 -0700 (PDT)
From: dick <dick.r.chiang@HIDDEN>
To: "Jay Berkenbilt" <ejb@HIDDEN>
Subject: Re: bug#55726: 28.1; emacs becomes unresponsive to input
References: <11874f4a-5f7c-4f88-923f-4a6310654697@HIDDEN>
Date: Thu, 16 Jun 2022 21:53:00 -0400
In-Reply-To: <11874f4a-5f7c-4f88-923f-4a6310654697@HIDDEN> (Jay
 Berkenbilt's message of "Mon, 30 May 2022 08:58:26 -0400")
Message-ID: <8735g4njib.fsf@dick>
User-Agent: Gnus/5.14 (Gnus v5.14) Commercial/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 55726
X-Mailman-Approved-At: Thu, 16 Jun 2022 23:30:01 -0400
Cc: 55726 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

It's happened to me twice in the last two weeks, both times in a
recursive edit within the minibuffer.

Your witnessing the same with emacs-28.1 conflicts with my impulse to
blame changes within the last month.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#55726; Package emacs. Full text available.

Message received at 55726 <at> debbugs.gnu.org:


Received: (at 55726) by debbugs.gnu.org; 30 May 2022 15:18:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 30 11:18:31 2022
Received: from localhost ([127.0.0.1]:45767 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nvhA7-0003sf-5A
	for submit <at> debbugs.gnu.org; Mon, 30 May 2022 11:18:31 -0400
Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:41611)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ejb@HIDDEN>) id 1nvhA4-0003sQ-Rm
 for 55726 <at> debbugs.gnu.org; Mon, 30 May 2022 11:18:29 -0400
Received: from compute4.internal (compute4.nyi.internal [10.202.2.44])
 by mailout.west.internal (Postfix) with ESMTP id E9C993200657
 for <55726 <at> debbugs.gnu.org>; Mon, 30 May 2022 11:18:22 -0400 (EDT)
Received: from imap49 ([10.202.2.99])
 by compute4.internal (MEProxy); Mon, 30 May 2022 11:18:23 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ql.org; h=cc
 :content-type:date:date:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:references:reply-to:sender:subject
 :subject:to:to; s=fm1; t=1653923902; x=1654010302; bh=NY+QIH0W8M
 0CyFmUigCSgZ9EdZLOBFqRN/tfW4AMnto=; b=F3PAlanmE1I78WrG7bvqMXpS4w
 aVn28Wn87vy05SPLvU4ViBcQAKfu/LbIp/9yN7RLMv//RWVG4N+l/lGBPY+uzr/F
 LIrNvR7J9JwHPFSBpHbRdhoSmctRlJ5O/dEKwdgbtV0+BIrI0tAfCct478NnZJqa
 HD+78UiJg1VQPoqkJDeDl1NY4VtM7yHWgLl5bEqwIiPLEwb+BuLQ1t9rsKrcCo6K
 7b+L5MtA7qZ4UY+IU63foQxANFP7JRYgTWz24n5qn3qmq9USwyZ4ZlxiRZBXWqHf
 ntQzuz+wiP5khXsf+IIFbisYrY5QBlCqI90PgTTGilGtXh4JR+meUxhom8kg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-type:date:date:feedback-id
 :feedback-id:from:from:in-reply-to:in-reply-to:message-id
 :mime-version:references:reply-to:sender:subject:subject:to:to
 :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=
 fm1; t=1653923902; x=1654010302; bh=NY+QIH0W8M0CyFmUigCSgZ9EdZLO
 BFqRN/tfW4AMnto=; b=BcpCZDTlpr6orB4Ked9Rt+LP9uLPfmc4TFnKPnxK7PJU
 qYnWs5q9qyGYXkR3ENxMTT4jimK5+4C9yo3xTvRwLRYGFWV2dXJOzcbIiMCOUDwI
 XHUEnLol4yL8rieLJUBQEbtQe6PrzTVxF8iaX+NKpFaQ3ob4cxV79A5I+AGkUh36
 kfwRiaWj7jwXclgPx3rV8htifV9jqTnFMWOHABsAR4H1EdNEAc0eC4koN5NZU+13
 AEnsQlO0iNiyyrJrNisxAIcY5Q5S3qM4ONtlXC/PqC0EiGJAd8a4MfjFegq0qjQ8
 ioO+aX+VoLclJ9TpAxeRpxDbPgfQB0/LTb3P8CERNQ==
X-ME-Sender: <xms:PuCUYjwIXXA5olIdWgeh7eNQiz2p3M6-6afuYga7kkjuzxfUChbs8Q>
 <xme:PuCUYrSFSFTy3C1FNRI1blskgKfA62cjKeQH9YZ3EGU19ZPL4s8LLuBBJsDLbN_QZ
 LaiAgDSK53zGN9o9_c>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrkeeigdekfecutefuodetggdotefrodftvf
 curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
 uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesthdtre
 dtreertdenucfhrhhomhepfdflrgihuceuvghrkhgvnhgsihhlthdfuceovghjsgesqhhl
 rdhorhhgqeenucggtffrrghtthgvrhhnpeehtdevhfefvdffgfeifeduheefhfduhfegff
 fgffdtveelffehvddvheejffeukeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgr
 mhepmhgrihhlfhhrohhmpegvjhgssehqlhdrohhrgh
X-ME-Proxy: <xmx:PuCUYtX9UFzlZiorfLFK0IGo4qptw1iB3FDbIcKz_CV-aEzRIN-Bvg>
 <xmx:PuCUYtjdyA1JM1HtRzvkSEojNR56wZROKlAa3JmZ1-M3SpEzATXHow>
 <xmx:PuCUYlBJOmUBuVMtKYAbWiaV-Boj11ZyQCILuBc8OK3olm9W_9t4Gg>
 <xmx:PuCUYoO-F0Wnauxz7tjUzfeqviOdET_0AsYQ5yq7uJYlu6QI3Thhtw>
Feedback-ID: ibd3147ef:Fastmail
Received: by mailuser.nyi.internal (Postfix, from userid 501)
 id 2F39315A0080; Mon, 30 May 2022 11:18:22 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.7.0-alpha0-591-gfe6c3a2700-fm-20220427.001-gfe6c3a27
Mime-Version: 1.0
Message-Id: <49de370b-6c5b-4bd0-a998-4683d6103995@HIDDEN>
In-Reply-To: <aa78fc87-b4e8-4629-be45-466967885a55@HIDDEN>
References: <11874f4a-5f7c-4f88-923f-4a6310654697@HIDDEN>
 <83fskrjf6p.fsf@HIDDEN>
 <aa78fc87-b4e8-4629-be45-466967885a55@HIDDEN>
Date: Mon, 30 May 2022 11:18:01 -0400
From: "Jay Berkenbilt" <ejb@HIDDEN>
To: 55726 <at> debbugs.gnu.org
Subject: Re: bug#55726: 28.1; emacs becomes unresponsive to input
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 55726
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

oops -- accidentally left bug address off my previous reply...

On Mon, May 30, 2022, at 9:57 AM, Eli Zaretskii wrote:
> > Cc: ejb@HIDDEN
> > Date: Mon, 30 May 2022 08:58:26 -0400
> > From: "Jay Berkenbilt" <ejb@HIDDEN>
> > 
>> . . .
> > 
> > My emacs is built from source using default configure options, so I was
> > able to attach my running emacs process in gdb and get a stack trace.
> > Here is the stack trace:
> > 
> > . . .
> 
> This says that Emacs's main thread is just waiting for input, either
> from the keyboard or from any other sources, like the window-system or
> subprocesses.
> 
> If this session is still alive under GDB, please type this command:
> 
>   (gdb) thread apply all bt
> 
> and show the output -- it will tell us what the other threads are
> doing.  If you already killed that session, then do the above next
> time it happens.

I will do it next time it happens. Thanks.

> It is also important to know whether Emacs is stuck or inflooping.  Do
> you happen to know if it was using the CPU while in this state?  The
> strategy to dig into the problem depends on whether Emacs hangs (which
> might mean some kind of deadlock), or infloops in some code.

I don't think the CPU was spinning, but I can't guarantee. I will also
check this the next time it happens.

> > Load-path shadows:
> > /home/ejb/elisp/startup hides /usr/local/emacs-28.1/share/emacs/28.1/lisp/startup
> 
> Did you build your own Emacs, and if so, is it possible that this
> startup.el, which shadows the standard one, was dumped into the
> executable?  If so, it could be part of the puzzle.

I don't think it is. My elisp/startup.el defines a function called
"qstartup". If I run emacs -Q, (fboundp 'qstartup) is nil, and if I
run with my environment, (fboundp qstartup) is t. Anyway, I don't
think there's anything in the build process that would read my .emacs,
and my .emacs has been loading ~/elisp/startup.el for decades. I'm not
aware of this ever having caused a problem, but I could consider
renaming the file. I'll wait to make that change until I have a
reliable way to reproduce the problem. Thanks -- this is definitely
something to account for.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#55726; Package emacs. Full text available.

Message received at 55726 <at> debbugs.gnu.org:


Received: (at 55726) by debbugs.gnu.org; 30 May 2022 15:00:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 30 11:00:59 2022
Received: from localhost ([127.0.0.1]:45741 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nvgt9-0003E4-FM
	for submit <at> debbugs.gnu.org; Mon, 30 May 2022 11:00:59 -0400
Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:37335)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ejb@HIDDEN>) id 1nvgt5-0003Dg-Mr
 for 55726 <at> debbugs.gnu.org; Mon, 30 May 2022 11:00:58 -0400
Received: from compute4.internal (compute4.nyi.internal [10.202.2.44])
 by mailout.west.internal (Postfix) with ESMTP id D13CB3200916;
 Mon, 30 May 2022 11:00:48 -0400 (EDT)
Received: from imap49 ([10.202.2.99])
 by compute4.internal (MEProxy); Mon, 30 May 2022 11:00:49 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ql.org; h=cc:cc
 :content-type:date:date:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:references:reply-to:sender:subject
 :subject:to:to; s=fm1; t=1653922848; x=1654009248; bh=NlgkS3o9Yt
 8r2PLAK8ujKWoo6iUzucrGp8oW6A3rcv0=; b=BhWWUHKyMYHwNmlYOUlH/T/muV
 SRdCXj+ZHXOcLTDEQHsyODrTHF+BlRZfvYKwImuAvn7UtJTL3UfE7lfUaZQIKy54
 RCLssPqSAeWW2cckwsmFAbxC8I1sDcjJteXbqLoEQbmKXv+FQTaRmHcDHVQpT85s
 F31jWt8ZMlsrAlW9xelxE8JPakkzwD6sRyq2+jXnUAHxYamUYqi96C7/fzwG/4bx
 n5SClybnwQZRb14qm3t9mZbhgHuqVWVpG797dxq8RBG9fix2/JIeXCseGl9Ud/xv
 S+sPdVtLmq9mBVBqJJuqpVUlgxlEJpTMXVdpNDL2j643FUU+lEjawRb0UiwA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-type:date:date:feedback-id
 :feedback-id:from:from:in-reply-to:in-reply-to:message-id
 :mime-version:references:reply-to:sender:subject:subject:to:to
 :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=
 fm1; t=1653922848; x=1654009248; bh=NlgkS3o9Yt8r2PLAK8ujKWoo6iUz
 ucrGp8oW6A3rcv0=; b=YLvhL3vXp43hrREXEApnp9TRCt8XVajZhk454veXW2Vt
 6emO0dvwlq2Ky47GeiNw1Wkh+ltonrKFZQeyw8EXnJg49g5rm9r3IrqOR2ZU8MM0
 3MY8xhG5X5gHzSFpKb1ux6Js1SGoLhykcnJw/XARzIpPsEUHOvQDuIGGdoEdpyyI
 5qgzn0CMNd0VCq/T2m1X4Jkh/UwPS8B92cpO9PnYEUF5BNkiEv9x0XcDLWioHc5r
 DdmfGQ7Qghz6hfsa5pwhcIMT/8vupMcaAp9lebyUuR/xnJTrQE0e0V6rmGot9d2I
 TtsMBALStY+elD+RaXw9lv9x2TOCfr6Z6/tKFUW5kw==
X-ME-Sender: <xms:H9yUYnMa4AxSm3u1pZ0PTxi1S5NAUI4NiNjyvtSdFpK4br4WDhEihg>
 <xme:H9yUYh-xKDe0fM4iTQFeTTECaHFrlAEx36-U5qLX6IuKvdiECf23k_Lw2nBYiD15w
 q87cnj0gY-9BZslxQ0>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrkeeigdejlecutefuodetggdotefrodftvf
 curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
 uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc
 fjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdflrgih
 uceuvghrkhgvnhgsihhlthdfuceovghjsgesqhhlrdhorhhgqeenucggtffrrghtthgvrh
 hnpeejffekjeevkeeigefhtdejtdekhfdugeeltefftefgffdvffekudeiueeugffhteen
 ucffohhmrghinhepghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrh
 grmhepmhgrihhlfhhrohhmpegvjhgssehqlhdrohhrgh
X-ME-Proxy: <xmx:H9yUYmScaS396G35hcBWKKllCUdmSUfmvew4cK8fLszDUHaXND7xqA>
 <xmx:H9yUYrvajGE3NlgjG7ae8whYql1Ebzx_wBjLDnYIRVqvMvs5EleAdg>
 <xmx:H9yUYvfnJCCRZzAbIiUkbdzupKXZ3cSYMKeQdOWRSgyx1gR69YFP4Q>
 <xmx:INyUYtpIgKznVhAD5tl3axKmUNaQP1a1B9FuX9IKTg5ncudPqSZ48Q>
Feedback-ID: ibd3147ef:Fastmail
Received: by mailuser.nyi.internal (Postfix, from userid 501)
 id B153D15A0080; Mon, 30 May 2022 11:00:47 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.7.0-alpha0-591-gfe6c3a2700-fm-20220427.001-gfe6c3a27
Mime-Version: 1.0
Message-Id: <93bfe4a8-b57e-47fa-be43-af22e54c72c8@HIDDEN>
In-Reply-To: <87ee0bw0i4.fsf@HIDDEN>
References: <11874f4a-5f7c-4f88-923f-4a6310654697@HIDDEN>
 <87ee0bw0i4.fsf@HIDDEN>
Date: Mon, 30 May 2022 11:00:27 -0400
From: "Jay Berkenbilt" <ejb@HIDDEN>
To: "Basil L. Contovounesios" <contovob@HIDDEN>
Subject: Re: bug#55726: 28.1; emacs becomes unresponsive to input
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 55726
Cc: 55726 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)



On Mon, May 30, 2022, at 10:36 AM, Basil L. Contovounesios wrote:
> Jay Berkenbilt [2022-05-30 08:58 -0400] wrote:
> 
> > Problem description: I'm typing along, and all of a sudden, emacs
> > becomes completely unresponsive to mouse and keyboard events. It still
> > refreshes properly. I haven't been able to find any way out of this
> > other than to kill the process.
> 
> Have you tried attaching to the frozen Emacs instance from a terminal?
> 
> I ask about attaching from the terminal because your description and
> stacktrace remind me of my experience in https://bugs.gnu.org/48629,
> which I have run into once or twice in the last few months of infrequent
> Emacs usage.
> 
> HTH,
> 
> -- 
> Basil
> 

I haven't tried that. That's a great idea for a potential workaround
while we're tracking this down. I'll try it next time.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#55726; Package emacs. Full text available.

Message received at 55726 <at> debbugs.gnu.org:


Received: (at 55726) by debbugs.gnu.org; 30 May 2022 14:36:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 30 10:36:48 2022
Received: from localhost ([127.0.0.1]:45703 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nvgVj-0002Hd-Iz
	for submit <at> debbugs.gnu.org; Mon, 30 May 2022 10:36:47 -0400
Received: from mail-ej1-f49.google.com ([209.85.218.49]:33378)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <contovob@HIDDEN>) id 1nvgVf-0002HE-Bs
 for 55726 <at> debbugs.gnu.org; Mon, 30 May 2022 10:36:46 -0400
Received: by mail-ej1-f49.google.com with SMTP id f9so21295015ejc.0
 for <55726 <at> debbugs.gnu.org>; Mon, 30 May 2022 07:36:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=/CUDRo/oJwV0a0kNT0Xc24wUhQMd25WqAEWwTf1OZwc=;
 b=fYDQy6iDXF1z+EUxafXngScwO9aRRVBIH5HcdTwjEwl6QbPg8IOmfxwMZTrrY3XpJv
 UymYpL2FCzz6N+vTrtY6o2TrHFNXRXRaVJ7r8qeyD+DvuXZYaBzHg+98KBs4arn6F5U7
 4vcQMAHpc5Zgizi94jTOjb4n4WPELXP3QplyR1NsEQ12a+OpcVaBKY1sw/a4+ei1o+W6
 K3Gq4Hd2edwPdaWCCi7uiXDq77Aa4G0qn8gm/U49noBfEWZ7yme1+/71zkHM8L+cv4sv
 GIKV7m4Wf0aH5KJLE0YYrCaRO4Qtyl3b9ret3tjMxj4aTWfP0sTAybpPo7uLfxsDxgm4
 f0Ig==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=/CUDRo/oJwV0a0kNT0Xc24wUhQMd25WqAEWwTf1OZwc=;
 b=fG+xAvaWEz8QSBWWiGbrWqAodV2cOsskCj4JLnfBdb+KuUK+RQRa1qAZMBj5bl2/kM
 NbuQxP+5jxg8pYcVVmNyYbkAbj1Zvqs6ScLaVHfTgAnOr11GXPMe3KRSZATDJ2BnZ+H7
 1fXz1TVu9l2mxEKj5CFYmj6ELBMKkzqk6o5KiNJHEHMn9dWW3yq8c9UoZBlw5gZ24QYf
 D5UfDRrYZ3wJM2zZQgHoKSsO+Q38Rr1fJsledWJOXe/QTomPR9Vv/j5jJ+KeKL2Hf2uW
 JWwEWhXSyR41wLqy+M3GY/X3QRR8jPPzRdPDSvz1XsrNa2CIE5NHr6b5T/Hyd9BzcV+4
 NkgA==
X-Gm-Message-State: AOAM531YWS3Vhn7/7XXp7e3OEwdaRH+4VavF+auTZZn7Ot/C24rX1Lw1
 lg3jz/LWNH1+mluxf9Ua0E5YbQ==
X-Google-Smtp-Source: ABdhPJwL+btC4Qr1aMVShrxz8XCR4ViMmGKfUN3ECP1nlTAjtoXMxUrsrJhLU4NY7ZNH4UbJap044g==
X-Received: by 2002:a17:907:1621:b0:6fe:fc8f:21f1 with SMTP id
 hb33-20020a170907162100b006fefc8f21f1mr30201646ejc.359.1653921397301; 
 Mon, 30 May 2022 07:36:37 -0700 (PDT)
Received: from localhost ([2a02:587:3216:d0ea:8f2b:6e45:a8b7:3d13])
 by smtp.gmail.com with ESMTPSA id
 z16-20020a50cd10000000b0042bac9df764sm6812779edi.27.2022.05.30.07.36.36
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 30 May 2022 07:36:36 -0700 (PDT)
From: "Basil L. Contovounesios" <contovob@HIDDEN>
To: "Jay Berkenbilt" <ejb@HIDDEN>
Subject: Re: bug#55726: 28.1; emacs becomes unresponsive to input
References: <11874f4a-5f7c-4f88-923f-4a6310654697@HIDDEN>
Date: Mon, 30 May 2022 17:36:35 +0300
In-Reply-To: <11874f4a-5f7c-4f88-923f-4a6310654697@HIDDEN> (Jay
 Berkenbilt's message of "Mon, 30 May 2022 08:58:26 -0400")
Message-ID: <87ee0bw0i4.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 55726
Cc: 55726 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Jay Berkenbilt [2022-05-30 08:58 -0400] wrote:

> Problem description: I'm typing along, and all of a sudden, emacs
> becomes completely unresponsive to mouse and keyboard events. It still
> refreshes properly. I haven't been able to find any way out of this
> other than to kill the process.

Have you tried attaching to the frozen Emacs instance from a terminal?

> My emacs is built from source using default configure options, so I was
> able to attach my running emacs process in gdb and get a stack trace.
> Here is the stack trace:
>
> #0  pselect64_syscall (sigmask=<optimized out>, timeout=<optimized out>, exceptfds=0x0, writefds=0x7fff68e9c1f0, readfds=0x7fff68e9c170, nfds=15) at ../sysdeps/unix/sysv/linux/pselect.c:34
> #1  __pselect (nfds=15, readfds=0x7fff68e9c170, writefds=0x7fff68e9c1f0, exceptfds=0x0, timeout=<optimized out>, sigmask=<optimized out>) at ../sysdeps/unix/sysv/linux/pselect.c:56
> #2  0x000055c1bad0f035 in really_call_select (arg=0x7fff68e9c060) at thread.c:596
> #3  0x000055c1bad0fe73 in flush_stack_call_func (arg=0x7fff68e9c060, func=0x55c1bad0efc0 <really_call_select>) at /home/ejb/tmp/net/emacs-28.1/src/lisp.h:3834
> #4  thread_select (func=<optimized out>, max_fds=max_fds@entry=15, rfds=rfds@entry=0x7fff68e9c170, wfds=wfds@entry=0x7fff68e9c1f0, efds=efds@entry=0x0, timeout=timeout@entry=0x7fff68e9c7b0, sigmask=0x0) at thread.c:628
> #5  0x000055c1bad2d8d1 in xg_select (fds_lim=15, rfds=rfds@entry=0x7fff68e9c8c0, wfds=wfds@entry=0x7fff68e9c940, efds=efds@entry=0x0, timeout=timeout@entry=0x7fff68e9c7b0, sigmask=sigmask@entry=0x0) at xgselect.c:147
> #6  0x000055c1bacecb15 in wait_reading_process_output (time_limit=time_limit@entry=0, nsecs=nsecs@entry=0, read_kbd=read_kbd@entry=-1, do_display=true, wait_for_cell=wait_for_cell@entry=0x0, wait_proc=wait_proc@entry=0x0, just_wait_proc=0) at process.c:5591
> #7  0x000055c1bac2de6c in kbd_buffer_get_event (end_time=0x0, used_mouse_menu=0x7fff68e9d14b, kbp=<synthetic pointer>) at keyboard.c:3926
> #8  read_event_from_main_queue (used_mouse_menu=0x7fff68e9d14b, local_getcjmp=0x7fff68e9cd50, end_time=0x0) at keyboard.c:2198
> #9  read_decoded_event_from_main_queue (used_mouse_menu=<optimized out>, prev_event=<optimized out>, local_getcjmp=<optimized out>, end_time=<optimized out>) at keyboard.c:2262
> #10 read_char (commandflag=1, map=0x55c1bc5e5ae3, prev_event=0x0, used_mouse_menu=0x7fff68e9d14b, end_time=0x0) at keyboard.c:2892
> #11 0x000055c1bac304d4 in read_key_sequence (keybuf=<optimized out>, prompt=0x0, dont_downcase_last=<optimized out>, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=<optimized out>) at keyboard.c:9635
> #12 0x000055c1bac31e9c in command_loop_1 () at keyboard.c:1392
> #13 0x000055c1baca1a47 in internal_condition_case (bfun=bfun@entry=0x55c1bac31ca0 <command_loop_1>, handlers=handlers@entry=0x90, hfun=hfun@entry=0x55c1bac28490 <cmd_error>) at eval.c:1450
> #14 0x000055c1bac224be in command_loop_2 (handlers=handlers@entry=0x90) at keyboard.c:1133
> #15 0x000055c1baca1989 in internal_catch (tag=tag@entry=0xe850, func=func@entry=0x55c1bac22490 <command_loop_2>, arg=arg@entry=0x90) at eval.c:1181
> #16 0x000055c1bac22459 in command_loop () at keyboard.c:1111
> #17 0x000055c1bac28080 in recursive_edit_1 () at keyboard.c:720
> #18 0x000055c1bac283d9 in Frecursive_edit () at keyboard.c:803
> #19 0x000055c1bab37054 in main (argc=1, argv=<optimized out>) at emacs.c:2354

I ask about attaching from the terminal because your description and
stacktrace remind me of my experience in https://bugs.gnu.org/48629,
which I have run into once or twice in the last few months of infrequent
Emacs usage.

HTH,

-- 
Basil




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#55726; Package emacs. Full text available.

Message received at 55726 <at> debbugs.gnu.org:


Received: (at 55726) by debbugs.gnu.org; 30 May 2022 13:58:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 30 09:58:05 2022
Received: from localhost ([127.0.0.1]:45577 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nvfuH-0000iU-Ag
	for submit <at> debbugs.gnu.org; Mon, 30 May 2022 09:58:05 -0400
Received: from eggs.gnu.org ([209.51.188.92]:45252)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1nvfu6-0000hZ-Mo
 for 55726 <at> debbugs.gnu.org; Mon, 30 May 2022 09:58:04 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:38328)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1nvfu1-0002dx-6N; Mon, 30 May 2022 09:57:49 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=Ihyb+k/sAGaQ4paSJs6vm6OCUYINOJ7FVVhA2R/6pxA=; b=muRRf8kc07DV
 6EJH8j3QMsaiuPjmjKmneYe0lqj629TjH0Fbsuv4IUKLd9Kxhyw+LQyCoUsp/bvZEDMrB1ijcP9V7
 k0F7f3KOrzVKWZHZIt9dR2caNjRUcW6ORMUTpDKtc56w+ZPxMLJOHRHCwB2Z+NgwdaNptVQv0YvNu
 YN0B03CnIh/A2AzyOayaJ6JuPLhUeEglrLw4r32QXh4SBxiEcgihiVSyK8h01I+3CvDXhrDlpb23A
 jDXUl248Gt9umHZM3UAfyOPAddQDtisf5NlyInPHUOnttdOsDvvCL5058rmNdfx2E+VfkGM86jmva
 +8hJgtMCDVZFTCER43WwrA==;
Received: from [87.69.77.57] (port=2520 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1nvftz-00006q-W3; Mon, 30 May 2022 09:57:48 -0400
Date: Mon, 30 May 2022 16:57:50 +0300
Message-Id: <83fskrjf6p.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: "Jay Berkenbilt" <ejb@HIDDEN>
In-Reply-To: <11874f4a-5f7c-4f88-923f-4a6310654697@HIDDEN>
 (ejb@HIDDEN)
Subject: Re: bug#55726: 28.1; emacs becomes unresponsive to input
References: <11874f4a-5f7c-4f88-923f-4a6310654697@HIDDEN>
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 55726
Cc: 55726 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Cc: ejb@HIDDEN
> Date: Mon, 30 May 2022 08:58:26 -0400
> From: "Jay Berkenbilt" <ejb@HIDDEN>
> 
> My hunch is that is a race condition that gets triggered when I am
> typing as buffers, windows, or frames are being rearranged in some way.
> I have been using gnu emacs since 1987 and move around in it very fast.
> A lot of my emacs usage is somewhat beneath the level of conscious
> awareness. Typically when this happens, I'm in the midst of some
> operation and don't notice for a few seconds that emacs is not
> responsive, so there's no way for me to be sure exactly what I was doing
> at the moment that it became unresponsive. Just now when this happened,
> I had taken two sections of a buffer and copied them into two temporary
> buffers, then run M-x ediff-buffers on those buffers. When I got what I
> wanted, I exited the ediff session, killed the two buffers one after the
> other, did C-x 1 to make the original file the single buffer in its
> window (and frame), and started typing in and navigating around the
> buffer only to see that emacs had become unresponsive. All this
> manipulation probably happened within one or two seconds.
> (q y C-x k C-x k C-x 1 typie-typie-typie)
> 
> My emacs is built from source using default configure options, so I was
> able to attach my running emacs process in gdb and get a stack trace.
> Here is the stack trace:
> 
> #0  pselect64_syscall (sigmask=<optimized out>, timeout=<optimized out>, exceptfds=0x0, writefds=0x7fff68e9c1f0, readfds=0x7fff68e9c170, nfds=15) at ../sysdeps/unix/sysv/linux/pselect.c:34
> #1  __pselect (nfds=15, readfds=0x7fff68e9c170, writefds=0x7fff68e9c1f0, exceptfds=0x0, timeout=<optimized out>, sigmask=<optimized out>) at ../sysdeps/unix/sysv/linux/pselect.c:56
> #2  0x000055c1bad0f035 in really_call_select (arg=0x7fff68e9c060) at thread.c:596
> #3  0x000055c1bad0fe73 in flush_stack_call_func (arg=0x7fff68e9c060, func=0x55c1bad0efc0 <really_call_select>) at /home/ejb/tmp/net/emacs-28.1/src/lisp.h:3834
> #4  thread_select (func=<optimized out>, max_fds=max_fds@entry=15, rfds=rfds@entry=0x7fff68e9c170, wfds=wfds@entry=0x7fff68e9c1f0, efds=efds@entry=0x0, timeout=timeout@entry=0x7fff68e9c7b0, sigmask=0x0) at thread.c:628
> #5  0x000055c1bad2d8d1 in xg_select (fds_lim=15, rfds=rfds@entry=0x7fff68e9c8c0, wfds=wfds@entry=0x7fff68e9c940, efds=efds@entry=0x0, timeout=timeout@entry=0x7fff68e9c7b0, sigmask=sigmask@entry=0x0) at xgselect.c:147
> #6  0x000055c1bacecb15 in wait_reading_process_output (time_limit=time_limit@entry=0, nsecs=nsecs@entry=0, read_kbd=read_kbd@entry=-1, do_display=true, wait_for_cell=wait_for_cell@entry=0x0, wait_proc=wait_proc@entry=0x0, just_wait_proc=0) at process.c:5591
> #7  0x000055c1bac2de6c in kbd_buffer_get_event (end_time=0x0, used_mouse_menu=0x7fff68e9d14b, kbp=<synthetic pointer>) at keyboard.c:3926
> #8  read_event_from_main_queue (used_mouse_menu=0x7fff68e9d14b, local_getcjmp=0x7fff68e9cd50, end_time=0x0) at keyboard.c:2198
> #9  read_decoded_event_from_main_queue (used_mouse_menu=<optimized out>, prev_event=<optimized out>, local_getcjmp=<optimized out>, end_time=<optimized out>) at keyboard.c:2262
> #10 read_char (commandflag=1, map=0x55c1bc5e5ae3, prev_event=0x0, used_mouse_menu=0x7fff68e9d14b, end_time=0x0) at keyboard.c:2892
> #11 0x000055c1bac304d4 in read_key_sequence (keybuf=<optimized out>, prompt=0x0, dont_downcase_last=<optimized out>, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=<optimized out>) at keyboard.c:9635

This says that Emacs's main thread is just waiting for input, either
from the keyboard or from any other sources, like the window-system or
subprocesses.

If this session is still alive under GDB, please type this command:

  (gdb) thread apply all bt

and show the output -- it will tell us what the other threads are
doing.  If you already killed that session, then do the above next
time it happens.

It is also important to know whether Emacs is stuck or inflooping.  Do
you happen to know if it was using the CPU while in this state?  The
strategy to dig into the problem depends on whether Emacs hangs (which
might mean some kind of deadlock), or infloops in some code.

> Load-path shadows:
> /home/ejb/elisp/startup hides /usr/local/emacs-28.1/share/emacs/28.1/lisp/startup

Did you build your own Emacs, and if so, is it possible that this
startup.el, which shadows the standard one, was dumped into the
executable?  If so, it could be part of the puzzle.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#55726; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 30 May 2022 12:59:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 30 08:59:51 2022
Received: from localhost ([127.0.0.1]:43188 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nvezu-0006Sh-Pc
	for submit <at> debbugs.gnu.org; Mon, 30 May 2022 08:59:51 -0400
Received: from lists.gnu.org ([209.51.188.17]:56448)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ejb@HIDDEN>) id 1nvezs-0006SZ-Do
 for submit <at> debbugs.gnu.org; Mon, 30 May 2022 08:59:49 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:39634)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ejb@HIDDEN>) id 1nvezs-0002V4-3s
 for bug-gnu-emacs@HIDDEN; Mon, 30 May 2022 08:59:48 -0400
Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:39211)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ejb@HIDDEN>) id 1nvezo-0005nm-9M
 for bug-gnu-emacs@HIDDEN; Mon, 30 May 2022 08:59:47 -0400
Received: from compute4.internal (compute4.nyi.internal [10.202.2.44])
 by mailout.west.internal (Postfix) with ESMTP id 852443200124
 for <bug-gnu-emacs@HIDDEN>; Mon, 30 May 2022 08:59:40 -0400 (EDT)
Received: from imap49 ([10.202.2.99])
 by compute4.internal (MEProxy); Mon, 30 May 2022 08:59:40 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ql.org; h=cc
 :content-type:date:date:from:from:in-reply-to:message-id
 :mime-version:reply-to:sender:subject:subject:to:to; s=fm1; t=
 1653915580; x=1654001980; bh=YoKDVsunjBx+PU0OGfz7R0cTtzfNJZ+rfFT
 SRyQ/1Sg=; b=NcIHIsm9s6YCDOPsfG4hfYTQ/0AAXSBRyGZasknVtDlLY50SieI
 FhwL7dVZCmxrxah+/zHqdPbNvV+iGybtHI9GqF8W6AZLH7IzU0FLXESB9yqkH2xO
 VFdbjbU0Yu317HJdEEzTp8Zh2Pa5urjcR/8nprv7RnsR87jbl0MAQhJqSDUH6u+y
 U1AvLowZGpcDoiHiLQZ4vjFz1b/LAHBviFT5OfIVPYzyF3zjdj1szRTJxtc+WiE7
 agiPERqkn7C5E4EBoYKQiRheFP5bE7Uf3OmqvqCmVsNK7F/zcqxgw/HWVlpHbYNu
 vnaW9OvrKDA/T0ciHG7b5tNtEzeSaiTEiTA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-type:date:date:feedback-id
 :feedback-id:from:from:in-reply-to:message-id:mime-version
 :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1653915580; x=
 1654001980; bh=YoKDVsunjBx+PU0OGfz7R0cTtzfNJZ+rfFTSRyQ/1Sg=; b=x
 qLqlvjSg4wY2rWXnJvRic2v6encpnoGEhlS0X0jkTsOOVj0UadKBNWyxETYT2UPe
 NWYGXDXvAZJCoAOg0mFK/jDEGVlVUJXmbuQJfNvucrP/5C+l/qdYJ9LCDC3JR7E2
 LezQyyAsF1hkL9WigqpTMglH7a32278ufy+FZ8DBlmElLATDO+Lsh/NUSoQS+Fou
 MqOwtcj6Ra/87H2n+3Uv1CCsUhCIT6C15wz8SYLBWD9ykEZTE3pXAafoAEjev276
 qfE69zEl4JcTzFoPRj9LtSCPBsrCg68byJcuOTKV7C4bVfi5tMbVEVfbJmfqXQyn
 WicOc3bSZSEZIg3tPbKiQ==
X-ME-Sender: <xms:u7-UYgYGdTMIeK72MyiUZoMQNUmsW2zIMKdVr-MZCQe5Cq2F_Yxkbw>
 <xme:u7-UYrYQuxVxoLMg-Dz72_KGD0wbXlo1emtGb0_L3H--pdRV2dySmxm_d_KmVs9pp
 AeE3Uu2VKfe6PvItx8>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrkeeigdehiecutefuodetggdotefrodftvf
 curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
 uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgesthdtredtre
 ertdenucfhrhhomhepfdflrgihuceuvghrkhgvnhgsihhlthdfuceovghjsgesqhhlrdho
 rhhgqeenucggtffrrghtthgvrhhnpeekhffhleelkeeigfetleduhfelteekffdvhfegje
 duieeigeevheevueejfeejteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep
 mhgrihhlfhhrohhmpegvjhgssehqlhdrohhrgh
X-ME-Proxy: <xmx:u7-UYq_50YS1zznzKYprInoHpwu2WxkyJaZcfWSLjgVynLPzmzcMKA>
 <xmx:u7-UYqr18WcrVbrJdR19EDVpQW9b2soYzZrR8PUPcuAzEgwKFAX2Tw>
 <xmx:u7-UYroZuMXNT3e2a9uJ607jHaw-_JpSca-gg5DRGbmHTrQzK1MMTg>
 <xmx:vL-UYo3rAXakuoG69dYrgpuzsFjQ4CXbjoODMP1CKnqCoXeqx6v2tQ>
Feedback-ID: ibd3147ef:Fastmail
Received: by mailuser.nyi.internal (Postfix, from userid 501)
 id C5C4B15A0083; Mon, 30 May 2022 08:59:39 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.7.0-alpha0-591-gfe6c3a2700-fm-20220427.001-gfe6c3a27
Mime-Version: 1.0
Message-Id: <11874f4a-5f7c-4f88-923f-4a6310654697@HIDDEN>
Date: Mon, 30 May 2022 08:58:26 -0400
From: "Jay Berkenbilt" <ejb@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 28.1; emacs becomes unresponsive to input
Content-Type: text/plain
Received-SPF: pass client-ip=64.147.123.19; envelope-from=ejb@HIDDEN;
 helo=wout3-smtp.messagingengine.com
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.7 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.7 (--)

X-Debbugs-CC: ejb@HIDDEN

I must apologize in advance for what is going to be a vague bug report.
Please understand that I am a developer and an advanced emacs user, and
with some prompting, I'm sure I will be able to provide more helpful
information. I ask you to bear with me and help me help you figure out
what's going on.

Problem description: I'm typing along, and all of a sudden, emacs
becomes completely unresponsive to mouse and keyboard events. It still
refreshes properly. I haven't been able to find any way out of this
other than to kill the process.

At this time, I haven't been able to discern any pattern of when emacs
gets into this state, so I don't have a recipe to reproduce it from
emacs -Q or from my environment. I have been unable to reproduce it on
demand. I have been running emacs 28.1 since a day or two after it was
released, and I have had this happen maybe half a dozen times since
then. I am in emacs all day most days, so this happens infrequently.

My hunch is that is a race condition that gets triggered when I am
typing as buffers, windows, or frames are being rearranged in some way.
I have been using gnu emacs since 1987 and move around in it very fast.
A lot of my emacs usage is somewhat beneath the level of conscious
awareness. Typically when this happens, I'm in the midst of some
operation and don't notice for a few seconds that emacs is not
responsive, so there's no way for me to be sure exactly what I was doing
at the moment that it became unresponsive. Just now when this happened,
I had taken two sections of a buffer and copied them into two temporary
buffers, then run M-x ediff-buffers on those buffers. When I got what I
wanted, I exited the ediff session, killed the two buffers one after the
other, did C-x 1 to make the original file the single buffer in its
window (and frame), and started typing in and navigating around the
buffer only to see that emacs had become unresponsive. All this
manipulation probably happened within one or two seconds.
(q y C-x k C-x k C-x 1 typie-typie-typie)

My emacs is built from source using default configure options, so I was
able to attach my running emacs process in gdb and get a stack trace.
Here is the stack trace:

#0  pselect64_syscall (sigmask=<optimized out>, timeout=<optimized out>, exceptfds=0x0, writefds=0x7fff68e9c1f0, readfds=0x7fff68e9c170, nfds=15) at ../sysdeps/unix/sysv/linux/pselect.c:34
#1  __pselect (nfds=15, readfds=0x7fff68e9c170, writefds=0x7fff68e9c1f0, exceptfds=0x0, timeout=<optimized out>, sigmask=<optimized out>) at ../sysdeps/unix/sysv/linux/pselect.c:56
#2  0x000055c1bad0f035 in really_call_select (arg=0x7fff68e9c060) at thread.c:596
#3  0x000055c1bad0fe73 in flush_stack_call_func (arg=0x7fff68e9c060, func=0x55c1bad0efc0 <really_call_select>) at /home/ejb/tmp/net/emacs-28.1/src/lisp.h:3834
#4  thread_select (func=<optimized out>, max_fds=max_fds@entry=15, rfds=rfds@entry=0x7fff68e9c170, wfds=wfds@entry=0x7fff68e9c1f0, efds=efds@entry=0x0, timeout=timeout@entry=0x7fff68e9c7b0, sigmask=0x0) at thread.c:628
#5  0x000055c1bad2d8d1 in xg_select (fds_lim=15, rfds=rfds@entry=0x7fff68e9c8c0, wfds=wfds@entry=0x7fff68e9c940, efds=efds@entry=0x0, timeout=timeout@entry=0x7fff68e9c7b0, sigmask=sigmask@entry=0x0) at xgselect.c:147
#6  0x000055c1bacecb15 in wait_reading_process_output (time_limit=time_limit@entry=0, nsecs=nsecs@entry=0, read_kbd=read_kbd@entry=-1, do_display=true, wait_for_cell=wait_for_cell@entry=0x0, wait_proc=wait_proc@entry=0x0, just_wait_proc=0) at process.c:5591
#7  0x000055c1bac2de6c in kbd_buffer_get_event (end_time=0x0, used_mouse_menu=0x7fff68e9d14b, kbp=<synthetic pointer>) at keyboard.c:3926
#8  read_event_from_main_queue (used_mouse_menu=0x7fff68e9d14b, local_getcjmp=0x7fff68e9cd50, end_time=0x0) at keyboard.c:2198
#9  read_decoded_event_from_main_queue (used_mouse_menu=<optimized out>, prev_event=<optimized out>, local_getcjmp=<optimized out>, end_time=<optimized out>) at keyboard.c:2262
#10 read_char (commandflag=1, map=0x55c1bc5e5ae3, prev_event=0x0, used_mouse_menu=0x7fff68e9d14b, end_time=0x0) at keyboard.c:2892
#11 0x000055c1bac304d4 in read_key_sequence (keybuf=<optimized out>, prompt=0x0, dont_downcase_last=<optimized out>, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=<optimized out>) at keyboard.c:9635
#12 0x000055c1bac31e9c in command_loop_1 () at keyboard.c:1392
#13 0x000055c1baca1a47 in internal_condition_case (bfun=bfun@entry=0x55c1bac31ca0 <command_loop_1>, handlers=handlers@entry=0x90, hfun=hfun@entry=0x55c1bac28490 <cmd_error>) at eval.c:1450
#14 0x000055c1bac224be in command_loop_2 (handlers=handlers@entry=0x90) at keyboard.c:1133
#15 0x000055c1baca1989 in internal_catch (tag=tag@entry=0xe850, func=func@entry=0x55c1bac22490 <command_loop_2>, arg=arg@entry=0x90) at eval.c:1181
#16 0x000055c1bac22459 in command_loop () at keyboard.c:1111
#17 0x000055c1bac28080 in recursive_edit_1 () at keyboard.c:720
#18 0x000055c1bac283d9 in Frecursive_edit () at keyboard.c:803
#19 0x000055c1bab37054 in main (argc=1, argv=<optimized out>) at emacs.c:2354

I'm hoping you can give me some advice as to how to help track this
down including other information I can capture next time, possible
commands I can run in gdb to get it unstuck, etc.

The information below was generated from the emacs I used to create this
bug report, not the one that crashed (obviously). They are the same
emacs executable with my same emacs lisp environment, but the runtime
information will be different. I had not been in emacs very long today
when this happened, and I had just a handful of C++ source files loaded
up and some text files. I had run M-x compile a few times and M-x ediff
a few times.

-----


In GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0)
 of 2022-04-23 built on soup
Windowing system distributor 'The X.Org Foundation', version 11.0.12101003
System Description: Ubuntu 22.04 LTS

Configured using:
 'configure --prefix=/usr/local/emacs-28.1'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY
INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS
X11 XDBE XIM XPM GTK3 ZLIB

Important settings:
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Text

Minor modes in effect:
  pyvenv-mode: t
  shell-dirtrack-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  auto-fill-function: do-auto-fill

Load-path shadows:
/home/ejb/elisp/startup hides /usr/local/emacs-28.1/share/emacs/28.1/lisp/startup
/usr/local/emacs-28.1/share/emacs/28.1/lisp/net/sasl hides /usr/share/emacs/site-lisp/flim/sasl

Features:
(shadow sort flyspell ispell mail-extr emacsbug sendmail yasnippet
highlight-indentation flymake-proc flymake warnings thingatpt
company-capf company pcase help-fns radix-tree elpy edmacro kmacro
elpy-rpc pyvenv eshell esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg
esh-module esh-groups esh-util elpy-shell elpy-profile elpy-django s
elpy-refactor python tramp-sh tramp tramp-loaddefs trampver
tramp-integration tramp-compat shell pcomplete parse-time iso8601
ls-lisp format-spec ido grep files-x etags fileloop generator xref
project cus-edit pp wid-edit cl-extra help-mode use-package-ensure
use-package-core clang-format xml w3m-load vc-svn vc vc-dispatcher qmime
qmime-compose qmime-view filecache server compile-eslint rx compile
ange-ftp comint ansi-color ring message rmc puny dired dired-loaddefs
rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail
rmail-loaddefs text-property-search time-date mm-decode mm-bodies
mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums
mail-prsvr mailabbrev mail-utils gmm-utils mailheader cc-styles cc-align
cc-engine cc-vars cc-defs jka-compr cus-load advice info package
browse-url url url-proxy url-privacy url-expand url-methods url-history
url-cookie url-domsuf url-util mailcap url-handlers url-parse
auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs
password-cache json subr-x map url-vars seq byte-opt gv bytecomp
byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc paren
electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel
term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu
timer select scroll-bar mouse jit-lock font-lock syntax font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite emoji-zwj charscript charprop case-table
epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice
button loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote threads dbusbind inotify lcms2
dynamic-setting system-font-setting font-render-setting cairo
move-toolbar gtk x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 173419 10743)
 (symbols 48 19029 1)
 (strings 32 58491 3447)
 (string-bytes 1 1986291)
 (vectors 16 31087)
 (vector-slots 8 343387 21026)
 (floats 8 88 47)
 (intervals 56 266 0)
 (buffers 992 11))




Acknowledgement sent to "Jay Berkenbilt" <ejb@HIDDEN>:
New bug report received and forwarded. Copy sent to ejb@HIDDEN, bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to ejb@HIDDEN, bug-gnu-emacs@HIDDEN:
bug#55726; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 28 Jan 2023 19:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.