From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Jay Berkenbilt" Newsgroups: gmane.emacs.bugs Subject: bug#55726: 28.1; emacs becomes unresponsive to input Date: Sat, 18 Jun 2022 15:38:09 -0400 Message-ID: References: <11874f4a-5f7c-4f88-923f-4a6310654697@www.fastmail.com> <83fskrjf6p.fsf@gnu.org> <49de370b-6c5b-4bd0-a998-4683d6103995@www.fastmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40003"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.7.0-alpha0-712-gb9e94258b0-fm-20220610.001-gb9e94258 To: 55726@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 18 21:39:13 2022 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 1o2eHn-000A2S-Jr for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Jun 2022 21:39:12 +0200 Original-Received: from localhost ([::1]:59406 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o2eHm-0006RA-17 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Jun 2022 15:39:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59610) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2eHe-0006Qb-4s for bug-gnu-emacs@gnu.org; Sat, 18 Jun 2022 15:39:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56155) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o2eHd-00024g-TC for bug-gnu-emacs@gnu.org; Sat, 18 Jun 2022 15:39:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o2eHd-0001RP-Je for bug-gnu-emacs@gnu.org; Sat, 18 Jun 2022 15:39:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Jay Berkenbilt" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Jun 2022 19:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55726 X-GNU-PR-Package: emacs Original-Received: via spool by 55726-submit@debbugs.gnu.org id=B55726.16555811255514 (code B ref 55726); Sat, 18 Jun 2022 19:39:01 +0000 Original-Received: (at 55726) by debbugs.gnu.org; 18 Jun 2022 19:38:45 +0000 Original-Received: from localhost ([127.0.0.1]:50052 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o2eHJ-0001Qp-K4 for submit@debbugs.gnu.org; Sat, 18 Jun 2022 15:38:44 -0400 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:45465) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o2eHE-0001QX-Jt for 55726@debbugs.gnu.org; Sat, 18 Jun 2022 15:38:40 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 578215C009D for <55726@debbugs.gnu.org>; Sat, 18 Jun 2022 15:38:30 -0400 (EDT) Original-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: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedruddvjedgudegfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesth dtredtreertdenucfhrhhomhepfdflrgihuceuvghrkhgvnhgsihhlthdfuceovghjsges qhhlrdhorhhgqeenucggtffrrghtthgvrhhnpeehtdevhfefvdffgfeifeduheefhfduhf egfffgffdtveelffehvddvheejffeukeenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpegvjhgssehqlhdrohhrgh X-ME-Proxy: Feedback-ID: ibd3147ef:Fastmail Original-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 In-Reply-To: <49de370b-6c5b-4bd0-a998-4683d6103995@www.fastmail.com> 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" Xref: news.gmane.io gmane.emacs.bugs:234763 Archived-At: 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@ql.org > > > Date: Mon, 30 May 2022 08:58:26 -0400 > > > From: "Jay Berkenbilt" > > > > >> . . . > > > > > > 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=, timeout=, 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=) 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=) 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=) 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=, timeout=, 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=, sigmask=) 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 ) at /home/ejb/tmp/net/emacs-28.1/src/lisp.h:3834 #4 thread_select (func=, 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=) 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=, prev_event=, local_getcjmp=, end_time=) 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=, prompt=0x0, dont_downcase_last=, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=) at keyboard.c:9635 #12 0x000055c3d76f1e9c in command_loop_1 () at keyboard.c:1392 #13 0x000055c3d7761a47 in internal_condition_case (bfun=bfun@entry=0x55c3d76f1ca0 , handlers=handlers@entry=0x90, hfun=hfun@entry=0x55c3d76e8490 ) 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 , 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=) 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.