I see the exact same behaviour on amd64 machine.
On i386 machine, bash actually crashes, producing the following error message:
~$ cd <tab pressed here>
malloc: ../bash/parse.y:5561: assertion botched
free: called with unallocated block argument
last command: gdb bash
Aborting...
Warning: Program '/bin/bash' crashed.
gdb does not produce helpful backtrace. With valgrind, I got the following
output after pressing tab:
==5031== Conditional jump or move depends on uninitialised value(s)
==5031== at 0x8064EEF: restore_parser_state (in /bin/bash)
==5031== by 0x80AF07A: gen_compspec_completions (in /bin/bash)
==5031== by 0x80AF9A2: programmable_completions (in /bin/bash)
==5031== by 0x80A7766: (within /bin/bash)
==5031== by 0x80D2419: (within /bin/bash)
==5031== by 0x80D35F4: rl_complete_internal (in /bin/bash)
==5031== by 0x80CBACD: _rl_dispatch_subseq (in /bin/bash)
==5031== by 0x80CBEB4: _rl_dispatch (in /bin/bash)
==5031== by 0x80CC24B: readline_internal_char (in /bin/bash)
==5031== by 0x80CC654: readline (in /bin/bash)
==5031== by 0x806C950: (within /bin/bash)
==5031== by 0x8066A5A: (within /bin/bash)
==5031== Uninitialised value was created by a stack allocation
==5031== at 0x80AEEB6: gen_compspec_completions (in /bin/bash)
==5031==
==5031== Use of uninitialised value of size 4
==5031== at 0x8064EF1: restore_parser_state (in /bin/bash)
==5031== by 0x80AF07A: gen_compspec_completions (in /bin/bash)
==5031== by 0x80AF9A2: programmable_completions (in /bin/bash)
==5031== by 0x80A7766: (within /bin/bash)
==5031== by 0x80D2419: (within /bin/bash)
==5031== by 0x80D35F4: rl_complete_internal (in /bin/bash)
==5031== by 0x80CBACD: _rl_dispatch_subseq (in /bin/bash)
==5031== by 0x80CBEB4: _rl_dispatch (in /bin/bash)
==5031== by 0x80CC24B: readline_internal_char (in /bin/bash)
==5031== by 0x80CC654: readline (in /bin/bash)
==5031== by 0x806C950: (within /bin/bash)
==5031== by 0x8066A5A: (within /bin/bash)
==5031== Uninitialised value was created by a stack allocation
==5031== at 0x80AEEB6: gen_compspec_completions (in /bin/bash)
malloc: ../bash/parse.y:5561: assertion botched
free: called with unallocated block argument
last command: gdb bash
Aborting...==5031==
uninstalling bash-completions does not seem to help here.
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]