[haiku-bugs] [Haiku] #4959: Tab-completion is crashing Bash.

  • From: "Haiku" <trac@xxxxxxxxxxxxxxxx>
  • Date: Sat, 14 Nov 2009 11:53:43 -0000

#4959: Tab-completion is crashing Bash.
-----------------------------------+----------------------------------------
 Reporter:  bga                    |       Owner:  jackburton    
     Type:  bug                    |      Status:  new           
 Priority:  high                   |   Milestone:  R1            
Component:  Applications/Terminal  |     Version:  R1/Development
 Keywords:                         |   Blockedby:                
 Platform:  All                    |    Blocking:                
-----------------------------------+----------------------------------------
 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.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/4959>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: