bug-bash
[Top][All Lists]
Advanced

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

Re: make install failed; dump core in mkdir


From: Chet Ramey
Subject: Re: make install failed; dump core in mkdir
Date: Mon, 2 Dec 2019 13:41:11 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.9.1

On 12/1/19 10:20 AM, George R Goffe via Bug reports for the GNU Bourne
Again SHell wrote:
> Hi,
> 
> This is really strange. I just did a buld of bash-5.0 from ftp.gnu.org. build 
> went well... but make install coredumped in mkdir. mkdir is in my 
> bashrc...This is not a new change to the bash rc file. 
> 
> 
> mkdir ()
> { 
> dirs="$@";
> for dir in $dirs;
> do
> /bin/mkdir -p "$dir";
> done
> }
> 
> 
> 
> make[1]: Leaving directory '/export/home/tools/bash/bash-5.0/po'
> ( cd /tools/bash/bash-5.0/examples/loadables && make  DESTDIR= install )
> make[1]: Entering directory 
> '/export/home/tools/bash/bash-5.0/examples/loadables'
> ../../support/mkinstalldirs: line 53: 1822305 Segmentation fault      (core 
> dumped) mkdir -p -- . 2> /dev/null

You're dumping core in a shell script, so unless your mkdir function is
exported, or if you've arranged for non-interactive shells to read your
startup files, it's uklikely that your function has anything to do with it.

I'd check your $PATH: if `.' is in your path before /bin and /usr/bin,
which is a terrible idea for all sets of reasons, you could be resolving
`mkdir' to `./mkdir' and attempting to execute a loadable shared object.


-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

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