From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#55726: 28.1; emacs becomes unresponsive to input Date: Sun, 19 Jun 2022 08:38:23 +0300 Message-ID: <831qvlnrg0.fsf@gnu.org> References: <11874f4a-5f7c-4f88-923f-4a6310654697@www.fastmail.com> <83fskrjf6p.fsf@gnu.org> <49de370b-6c5b-4bd0-a998-4683d6103995@www.fastmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2562"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55726@debbugs.gnu.org To: "Jay Berkenbilt" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 19 07:39:24 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 1o2nee-0000TH-Bt for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Jun 2022 07:39:24 +0200 Original-Received: from localhost ([::1]:55544 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o2nec-0004M0-PI for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Jun 2022 01:39:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47546) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2neJ-0004La-HP for bug-gnu-emacs@gnu.org; Sun, 19 Jun 2022 01:39:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56542) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o2neH-0000WB-QB for bug-gnu-emacs@gnu.org; Sun, 19 Jun 2022 01:39:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o2neH-0007h7-Ls for bug-gnu-emacs@gnu.org; Sun, 19 Jun 2022 01:39:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Jun 2022 05: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.165561713329560 (code B ref 55726); Sun, 19 Jun 2022 05:39:01 +0000 Original-Received: (at 55726) by debbugs.gnu.org; 19 Jun 2022 05:38:53 +0000 Original-Received: from localhost ([127.0.0.1]:50439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o2ne8-0007gi-RX for submit@debbugs.gnu.org; Sun, 19 Jun 2022 01:38:53 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34348) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o2ne3-0007gQ-UU for 55726@debbugs.gnu.org; Sun, 19 Jun 2022 01:38:51 -0400 Original-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 ) 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==; Original-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 ) id 1o2ndw-00006s-IB; Sun, 19 Jun 2022 01:38:40 -0400 In-Reply-To: (ejb@ql.org) 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:234771 Archived-At: > Date: Sat, 18 Jun 2022 15:38:09 -0400 > From: "Jay Berkenbilt" > > 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 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.