bash/readline coredumps

Michiel Boland michiel at boland.org
Mon Dec 20 23:53:33 PST 2004


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.


More information about the freebsd-current mailing list