From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.bugs Subject: bug#48629: 28.0.50; GUI emacsclient frames stop accepting keyboard input around recv Date: Wed, 26 May 2021 19:10:30 +0100 Message-ID: <87a6ohpdrd.fsf@tcd.ie> References: <87y2c4rtvh.fsf@tcd.ie> <83wnroccmi.fsf@gnu.org> <8735ucnk93.fsf@tcd.ie> <875yz8gh4e.fsf@igel.home> <87fsyckmdm.fsf@tcd.ie> <87bl8x8ql0.fsf@tcd.ie> <87pmxd32sm.fsf@tcd.ie> <83h7ip9zne.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9774"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 48629@debbugs.gnu.org, schwab@linux-m68k.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 26 20:26:26 2021 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 1llyEc-0002NL-5U for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 May 2021 20:26:26 +0200 Original-Received: from localhost ([::1]:48462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llyEa-0000mT-W4 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 May 2021 14:26:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57686) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llxzi-0000Um-RQ for bug-gnu-emacs@gnu.org; Wed, 26 May 2021 14:11:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38336) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1llxzi-0005ZG-Jf for bug-gnu-emacs@gnu.org; Wed, 26 May 2021 14:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1llxzi-0007sb-Ei for bug-gnu-emacs@gnu.org; Wed, 26 May 2021 14:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 May 2021 18:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48629 X-GNU-PR-Package: emacs Original-Received: via spool by 48629-submit@debbugs.gnu.org id=B48629.162205264030252 (code B ref 48629); Wed, 26 May 2021 18:11:02 +0000 Original-Received: (at 48629) by debbugs.gnu.org; 26 May 2021 18:10:40 +0000 Original-Received: from localhost ([127.0.0.1]:49882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llxzL-0007rs-QL for submit@debbugs.gnu.org; Wed, 26 May 2021 14:10:40 -0400 Original-Received: from mail-wm1-f44.google.com ([209.85.128.44]:42801) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llxzK-0007re-Gr for 48629@debbugs.gnu.org; Wed, 26 May 2021 14:10:39 -0400 Original-Received: by mail-wm1-f44.google.com with SMTP id f75-20020a1c1f4e0000b0290171001e7329so1040350wmf.1 for <48629@debbugs.gnu.org>; Wed, 26 May 2021 11:10:38 -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=Q3eJ/xwN/+T7Hxh1oYNqo9hJaAmlOY0N6pXn5siporw=; b=cjpv4YAI00VWpS4lfkE2YVKOUfWsKj41HXXw6kKudsC7qqN9trKp+TP4fft4J1JK/j 6TgyN9d+TTfslPfB9ySpLg/oxi+RyxPkUcE3aN1oxs4dq8yXga+4RZ9Y3uJHlTrruaoP bqD0jc54NNSDtE9Udddxs6GPf/IWRf8dXamQ9cGc7+9SHof8WftJaeiWKJfL7iwS7mw9 V6zu6qKwgOfj/nXhCd+MifjD3SHMIvAdJ/dLVT7Olgmbzy4lcV6dgwvAiXHLcoBwSje/ 0paKRInQobbQmo/maOdDw7SLKVfqRDSNQYIjve1qKw4b0idWh/MsYhwKXmWxa64Knocg mi0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Q3eJ/xwN/+T7Hxh1oYNqo9hJaAmlOY0N6pXn5siporw=; b=Vw9Y++LDAMhkIEdDbODjrgxItavyY34aLaLsL9SVdOYjjWF6ggqwRIcBL85ugEacS9 OFUDOcUnAH//NrOE3F6x5M+hSvCdMftt9w78NWK03syNbwBF/pAgbMOggWPTmxm3kt4h /FS8UmLX0F7NJzyJaJqK95UTsFDm2XaL+eOWgobky9efye3/bEfeSEvDKSBtvU6zrfLF JtVOHeOyS5Z1ACQGSoK3OJPbuDyi7QYTCEn/cJnvdlkzBWk22ivT1O+dPaRX6KmIzHMs whJPIigBfErNoOmF6cLfG8r2OaQm/pN0kv5GP+59iZNYPM3KIGuZrO/A1unkNiVtZ98W WFwg== X-Gm-Message-State: AOAM53232rITC1gdsae3GNz312b7rPKjOGX6HNrX0TZwtTKWJBlIb6ed FHndXV/qA+3Pu7L6BjOjbkWKtw== X-Google-Smtp-Source: ABdhPJyE/nF3IEUUt0JJmHYNYKP4y1Xxirod5Ugkb0O86gWPe9bqIIzpw06drGL+r1W3K760A+vMsg== X-Received: by 2002:a1c:9a89:: with SMTP id c131mr17391787wme.49.1622052632587; Wed, 26 May 2021 11:10:32 -0700 (PDT) Original-Received: from localhost ([2a02:8084:20e2:c380:d15:339e:aa10:60f1]) by smtp.gmail.com with ESMTPSA id a11sm21323076wrx.38.2021.05.26.11.10.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 May 2021 11:10:31 -0700 (PDT) In-Reply-To: <83h7ip9zne.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 26 May 2021 20:24:21 +0300") 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:207308 Archived-At: Eli Zaretskii writes: >> From: "Basil L. Contovounesios" >> Cc: Eli Zaretskii , 48629@debbugs.gnu.org >> Date: Wed, 26 May 2021 16:58:17 +0100 >> >> Thread 1 (Thread 0x7fb2f78e9040 (LWP 46955) "emacs"): >> #0 0x00007fb2fa7ae9c6 in __pselect (nfds=24, readfds=0x7ffc492342e0, >> writefds=0x7ffc49234360, exceptfds=0x0, timeout=, >> sigmask=0x7ffc49234130) at ../sysdeps/unix/sysv/linux/pselect.c:48 >> resultvar = 18446744073709551102 >> sc_cancel_oldtype = 0 >> tval = {tv_sec = 14, tv_nsec = 461936780} >> data = {ss = 0, ss_len = 8} >> #1 0x000055dfc63615b6 in really_call_select () >> #2 0x000055dfc6362320 in thread_select () >> #3 0x000055dfc637ef58 in xg_select () >> #4 0x000055dfc633f89d in wait_reading_process_output () >> #5 0x000055dfc62843e8 in read_char () >> #6 0x000055dfc6286822 in read_key_sequence () >> #7 0x000055dfc628822c in command_loop_1 () > > This is slightly more interesting, because it shows that timeout for > pselect was 14 sec plus change. So the interesting question is what > happens after the timeout expires? > > IOW, when you find Emacs stuck in pselect, type "finish" and let Emacs > exit the pselect call. I did this, and it returned zero after a while: Attaching to process 46955 [New LWP 46956] [New LWP 46957] [New LWP 46958] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". 0x00007fb2fa7ae9c6 in __pselect (nfds=24, readfds=0x7ffc492342e0, writefds=0x7ffc49234360, exceptfds=0x0, timeout=, sigmask=0x7ffc49234130) at ../sysdeps/unix/sysv/linux/pselect.c:48 48 ../sysdeps/unix/sysv/linux/pselect.c: No such file or directory. (gdb) finish Run till exit from #0 0x00007fb2fa7ae9c6 in __pselect (nfds=24, readfds=0x7ffc492342e0, writefds=0x7ffc49234360, exceptfds=0x0, timeout=, sigmask=0x7ffc49234130) at ../sysdeps/unix/sysv/linux/pselect.c:48 0x000055dfc63615b6 in really_call_select () Value returned is $1 = 0 > Then step through the code and see what it does and why it doesn't > respond to keyboard input. I guess I need debugging symbols for this, because at this point step/next progressively and slowly climb frames, without any indication of the surrounding code or values (GDB maintains that it's in pselect.c the whole time). > Is the keyboard descriptor in the set of descriptors pselect waits > for? How do I determine what the keyboard descriptor is? Thanks, -- Basil