Opened 10 years ago

Closed 10 years ago

#4959 closed bug (duplicate)

Tab-completion is crashing Bash.

Reported by: bga Owned by: jackburton
Priority: high Milestone: R1
Component: Applications/Terminal Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

Tab completion is Bash seems to be completely broken. Sometime it works, sometimes it just closes the Terminal window without any errors or anything and, sometimes, it actually gives this crash:

Thread 409 called debugger(): _numBlocks > 0
Reading symbols from /boot/system/runtime_loader...done.
Loaded symbols for /boot/system/runtime_loader
Reading symbols from /boot/system/lib/libroot.so...done.
Loaded symbols for /boot/system/lib/libroot.so
[tcsetpgrp failed in terminal_inferior: Invalid Argument]
[Switching to team /bin/sh --login (409) thread sh (409)]
0xffff0114 in ?? ()
(gdb) bt
#0  0xffff0114 in ?? ()
#1  0x002dd3c6 in debugger () from /boot/system/lib/libroot.so
#2  0x002e6ff9 in __assert_fail () from /boot/system/lib/libroot.so
#3  0x002f1263 in BPrivate::processHeap::free ()
   from /boot/system/lib/libroot.so
#4  0x002f2afd in free () from /boot/system/lib/libroot.so
#5  0x00225052 in restore_parser_state ()
#6  0x0025a698 in gen_shell_function_matches ()
#7  0x0025abd7 in gen_compspec_completions ()
#8  0x0025aecc in programmable_completions ()
#9  0x002516ef in attempt_shell_completion ()
#10 0x002683dd in gen_completion_matches ()
#11 0x00269448 in rl_complete_internal ()
#12 0x00267602 in rl_complete ()
#13 0x00262e2c in _rl_dispatch_subseq ()
#14 0x00262cb5 in _rl_dispatch ()
#15 0x00262960 in readline_internal_char ()
#16 0x002629d1 in readline_internal_charloop ()
#17 0x00262a05 in readline_internal ()
#18 0x002624d0 in readline ()
#19 0x0021dffd in yy_readline_get ()
#20 0x0021df1e in yy_getc ()
#21 0x0021eb19 in shell_getc ()
#22 0x0021f75e in read_token ()
#23 0x0021f152 in yylex ()
#24 0x0021c3dc in yyparse ()
#25 0x00227d13 in parse_command ()
#26 0x00227e0e in read_command ()
#27 0x00227ab5 in reader_loop ()
#28 0x00225b4a in main ()
(gdb) 

This is with GCC2, BTW.

Change History (2)

comment:1 Changed 10 years ago by bga

I just got an different behavior. This time Terminal hang and bash started using almost 100% of one of my cores. I had to kill bash with process controller.

comment:2 Changed 10 years ago by korli

Resolution: duplicate
Status: newclosed

dup of #4945

Note: See TracTickets for help on using tickets.