On 7/12/14, 6:51 PM, Bernie Innocenti wrote:

> Bash Version: 4.3
> Patch Level: 18
> Release Status: release
> 
> Description:
> 
> A similar crash has already been reported in Launchpad:
>   https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1294669

They are not the same; the stack tracebacks are very different.  The bug
in that launchpad report was fixed with bash-4.3 patch 9 and had to do with
history expansion.  This bug has to do with the behavior of readline's
revert-all-at-newline option.

> My bash binary contains patches 9 through 11 which supposedly fixed this,
> but I'm still getting occasional crashes with a binary built off git head:

There is a fix for this in the devel git branch, but there has not been any
official patch released yet.  It was just reported a couple of weeks ago
while I was on vacation.

I have attached a patch originally from Jared Yanovich that should fix the
problem.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/
*** ../bash-4.3-patched/lib/readline/misc.c	2012-09-01 18:03:11.000000000 -0400
--- lib/readline/misc.c	2014-06-30 13:41:19.000000000 -0400
***************
*** 462,465 ****
--- 462,466 ----
  	  /* Set up rl_line_buffer and other variables from history entry */
  	  rl_replace_from_history (entry, 0);	/* entry->line is now current */
+ 	  entry->data = 0;			/* entry->data is now current undo list */
  	  /* Undo all changes to this history entry */
  	  while (rl_undo_list)
***************
*** 469,473 ****
  	  FREE (entry->line);
  	  entry->line = savestring (rl_line_buffer);
- 	  entry->data = 0;
  	}
        entry = previous_history ();
--- 470,473 ----

Reply via email to