bug-bash
[Top][All Lists]
Advanced

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

Re: null pointer in make_bare_word at make_cmd.c:90


From: Chet Ramey
Subject: Re: null pointer in make_bare_word at make_cmd.c:90
Date: Mon, 14 Feb 2005 11:45:26 -0500

> > > Description:
> > >         GNU bash, version 3.00.0(1)-release (i686-pc-linux-gnu)
> > >         (and
> > >         GNU bash, version 2.05b.0(1)-release (i386-redhat-linux-gnu)
> > > 
> > >         dumps a core because of a null pointer "in make_bare_word 
> > >         at make_cmd.c:90" (see gdb output below)
> > 
> > Thanks for the report.  Here's a quick fix:
> > 
> > *** arrayfunc.c~    Sat Nov  6 15:08:29 2004
> > --- arrayfunc.c     Mon Jan 31 11:56:21 2005
> > ***************
> > *** 709,713 ****
> >       return ((char *)NULL);
> >     }
> > !       else if (var == 0)
> >     return ((char *)NULL);
> >         else if (array_p (var) == 0)
> > --- 709,713 ----
> >       return ((char *)NULL);
> >     }
> > !       else if (var == 0 || value_cell (var) == 0)
> >     return ((char *)NULL);
> >         else if (array_p (var) == 0)
> > 
> 
> Thanks, but the context shows me that the original file (6.11.2004) was
> not taken from the distribution.
>       http://ftp.gnu.org/gnu/bash/bash-3.0.tar.gz
> Where can I find all your patches for bash 3 ?

The patches are available at ftp://ftp.cwru.edu/pub/bash/bash-3.0-patches.

> Please add this info to the bash FAQ.

It's already on the web page:  
http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html,
and that is in the FAQ.

I will add it to the distribution information in the FAQ, though.

> Nevertheless I applied this patch by hand and it does not fix the problem.

It solves the problem when I test the fully-patched bash.  Please apply the
patches and test again.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                                Live...Laugh...Love
Chet Ramey, ITS, CWRU    address@hidden    http://tiswww.tis.cwru.edu/~chet/




reply via email to

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