Re: bash/readline coredumps

From: Michiel Boland <michiel_at_boland.org>
Date: Tue, 21 Dec 2004 08:53:31 +0100
On Tue, Nov 30, 2004 at 09:18:04AM +0100, Michiel Boland wrote:
> Hi.
> Lately I am getting core dumps from bash (bash-2.05b.007_2 from ports).
> To reproduce: type a command that spans multiple lines, like
> 
> echo '
> '
> 
> Then bring up the last line with cursor-up or ^P and press enter.

Turns out the brokennes was caused by the Readline 5.0 import
on 2004/10/18, in particular by the following change in <readline/history.h>:

 typedef struct _hist_entry {
   char *line;
+  char *timestamp;             /* char * rather than time_t for read/write */
   histdata_t data;
 } HIST_ENTRY;

Upgrading to the new bash (bash-3.0.16_1) fixed this for me.
See also PR 75315.
Received on Tue Dec 21 2004 - 06:53:33 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:24 UTC