bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: free: called with unallocated block argument


From: Chet Ramey
Subject: Re: free: called with unallocated block argument
Date: Sun, 22 Feb 2009 17:20:11 -0500
User-agent: Thunderbird 2.0.0.19 (Macintosh/20081209)

address@hidden wrote:

> Bash Version: 4.0
> Patch Level: 0
> Release Status: release
> 
> Description:
> Problem with auto completion :
>       ls[space][TAB]
> gives the follwing abort :
>       malloc: /Users/chet/src/bash/src/parse.y:5561: assertion botched
>       free: called with unallocated block argument
>       last command: ls
>       Aborting...Abandon
> 
> If /etc/bash_completion is suppressed, problem disapears.
> My bash_completion is : 
>       $Id: bash_completion,v 1.872 2006/03/01 16:20:18 ianmacd Exp $
> 
> Repeat-By:
>       ls[space] [TAB]
> or 
>       cd[space][TAB]
> and several other commands.

My fault; I dropped a line from a submitted patch.  The attached
patch corrects it for me; see if it works for you.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/
*** ../bash-4.0/pcomplete.c     2009-02-01 17:12:31.000000000 -0500
--- pcomplete.c 2009-02-22 17:08:25.000000000 -0500
***************
*** 1033,1036 ****
--- 1033,1037 ----
  
    pps = &ps;
+   save_parser_state (pps);
    begin_unwind_frame ("gen-shell-function-matches");
    add_unwind_protect (restore_parser_state, (char *)pps);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]