When pressing tab to autocomplete a command (e.g. cd) bash hangs for a couple of seconds before completing it.
- when using
set -xnothing is printed prior to the hang - When using a tty console from
Ctrl-Alt-FXXthere is no lag - strace reveals that the problem is in
rl_getc:
3428 11:03:21.516869 pselect6(1, [0], NULL, NULL, NULL, {[], 8}) = 1 (in [0]) <3.154249>
> /lib/x86_64-linux-gnu/libc-2.27.so(pselect+0x59) [0x116dc9]
> /bin/bash(rl_getc+0xb2) [0xc4032]
> /bin/bash(rl_read_key+0xc4) [0xc48c4]
> /bin/bash(readline_internal_char+0x77) [0xad187]
> /bin/bash(readline+0x45) [0xad945]
> /bin/bash(reader_loop+0x699) [0x32759]
> /bin/bash(decode_prompt_string+0x101d) [0x34b3d]
> /bin/bash(read_secondary_line+0x2aca) [0x37b8a]
> /bin/bash(yyparse+0x428) [0x3b308]
> /bin/bash(parse_command+0x36) [0x31ef6]
> /bin/bash(read_command+0x58) [0x31ff8]
> /bin/bash(reader_loop+0x119) [0x321d9]
> /bin/bash(main+0xecf) [0x30c8f]
> /lib/x86_64-linux-gnu/libc-2.27.so(__libc_start_main+0xe7) [0x21c87]
> /bin/bash(_start+0x2a) [0x3155a]
(logged with sudo strace -t -k -t -f -T -s9999 -p3428)
I have tried the steps here including uninstalling git and turning my sound off.
I have also commented out the contents of my .bashrc to no avail.
Any ideas on what could be the issue here?