unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Basil L. Contovounesios" <contovob@tcd.ie>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: 48629@debbugs.gnu.org
Subject: bug#48629: 28.0.50; GUI emacsclient frames stop accepting keyboard input around recv
Date: Wed, 26 May 2021 16:58:17 +0100	[thread overview]
Message-ID: <87pmxd32sm.fsf@tcd.ie> (raw)
In-Reply-To: <87bl8x8ql0.fsf@tcd.ie> (Basil L. Contovounesios's message of "Wed, 26 May 2021 16:25:31 +0100")

[-- Attachment #1: Type: text/plain, Size: 445 bytes --]

"Basil L. Contovounesios" <contovob@tcd.ie> writes:

> I then entered 'n' a few times followed unfortunately by C-c, which
> killed the process (I would have tried 'thread apply all bt full' next).
>
> So it looks like it's actually pselect that's blocking?

It happened again, with the attached 'thread apply all bt full' output.

I'll try to keep the session alive this time, in case anyone has any
debugging suggestions.

Thanks,

-- 
Basil


[-- Attachment #2: gdb.txt --]
[-- Type: text/plain, Size: 5744 bytes --]

$ gdb -p 46955
GNU gdb (Debian 10.1-1.7) 10.1.90.20210103-git
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word".
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=<optimized out>, sigmask=0x7ffc49234130) at ../sysdeps/unix/sysv/linux/pselect.c:48
48      ../sysdeps/unix/sysv/linux/pselect.c: No such file or directory.
(gdb) set logging on
Copying output to gdb.txt.
Copying debug output to gdb.txt.
(gdb) thread apply all bt full

Thread 4 (Thread 0x7fb2f5b5a700 (LWP 46958) "gdbus"):
#0  0x00007fb2fa7ac3ff in __GI___poll (fds=0x7fb2e8016990, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
        resultvar = 18446744073709551100
        sc_cancel_oldtype = 0
#1  0x00007fb2fb4ad0ae in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fb2fb4ad40b in g_main_loop_run () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fb2fb727a36 in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007fb2fb4d60bd in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fb2faa3dea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
        ret = <optimized out>
        pd = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140406603228928, 6863267776147330063, 140406611616302, 140406611616303, 140406603224768, 8396800, -6891964528408030193, -6891970972744707057}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = 0
#6  0x00007fb2fa7b6def in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fb2f635b700 (LWP 46957) "dconf worker"):
#0  0x00007fb2fa7ac3ff in __GI___poll (fds=0x55dfc862dac0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
        resultvar = 18446744073709551100
        sc_cancel_oldtype = 0
#1  0x00007fb2fb4ad0ae in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fb2fb4ad1cf in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fb2f636a38d in  () at /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
#4  0x00007fb2fb4d60bd in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fb2faa3dea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
        ret = <optimized out>
        pd = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140406611621632, 6863267776147330063, 140721535523102, 140721535523103, 140406611617472, 8396800, -6891961230410017777, -6891970972744707057}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = 0
#6  0x00007fb2fa7b6def in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fb2f6b94700 (LWP 46956) "gmain"):
#0  0x00007fb2fa7ac3ff in __GI___poll (fds=0x55dfc72bdf30, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
        resultvar = 18446744073709551100
        sc_cancel_oldtype = 0
#1  0x00007fb2fb4ad0ae in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fb2fb4ad1cf in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fb2fb4ad221 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fb2fb4d60bd in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fb2faa3dea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
        ret = <optimized out>
        pd = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140406620243712, 6863267776147330063, 140721535537518, 140721535537519, 140406620239552, 8396800, -6891962223084334065, -6891970972744707057}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = 0
#6  0x00007fb2fa7b6def in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fb2f78e9040 (LWP 46955) "emacs"):
#0  0x00007fb2fa7ae9c6 in __pselect (nfds=24, readfds=0x7ffc492342e0, writefds=0x7ffc49234360, exceptfds=0x0, timeout=<optimized out>, 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 ()
#8  0x000055dfc62f63d7 in internal_condition_case ()
#9  0x000055dfc62793e4 in command_loop_2 ()
#10 0x000055dfc62f89d3 in internal_catch ()
#11 0x000055dfc6279383 in command_loop ()
#12 0x000055dfc627e976 in recursive_edit_1 ()
#13 0x000055dfc627eca1 in Frecursive_edit ()
#14 0x000055dfc619409e in main ()

  reply	other threads:[~2021-05-26 15:58 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-24 16:14 bug#48629: 28.0.50; GUI emacsclient frames stop accepting keyboard input around recv Basil L. Contovounesios
2021-05-24 16:36 ` Eli Zaretskii
2021-05-24 16:56   ` Basil L. Contovounesios
2021-05-24 16:59     ` Eli Zaretskii
2021-05-24 17:12       ` Basil L. Contovounesios
2021-05-24 17:45     ` Andreas Schwab
2021-05-24 18:38       ` Basil L. Contovounesios
2021-05-24 19:00         ` Andreas Schwab
2021-05-26 15:25         ` Basil L. Contovounesios
2021-05-26 15:58           ` Basil L. Contovounesios [this message]
2021-05-26 17:24             ` Eli Zaretskii
2021-05-26 18:10               ` Basil L. Contovounesios
2021-05-26 18:59                 ` Eli Zaretskii
2021-06-03 13:18                 ` Basil L. Contovounesios
2021-05-26 17:21           ` Eli Zaretskii
2022-07-15 10:24 ` Lars Ingebrigtsen
2022-07-24  3:54   ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-07-24  9:25     ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pmxd32sm.fsf@tcd.ie \
    --to=contovob@tcd.ie \
    --cc=48629@debbugs.gnu.org \
    --cc=schwab@linux-m68k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).