Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15690

Re: make install failed; dump core in mkdir

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: make install failed; dump core in mkdir
Date 2019-12-02 13:41 -0500
Organization ITS, Case Western Reserve University
Message-ID <mailman.150.1575312082.1979.bug-bash@gnu.org> (permalink)
References <742858147.7229097.1575213654608.ref@mail.yahoo.com> <742858147.7229097.1575213654608@mail.yahoo.com> <002024f3-19ab-4779-b428-6c433ebe7729@case.edu>

Show all headers | View raw


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/

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: make install failed; dump core in mkdir Chet Ramey <chet.ramey@case.edu> - 2019-12-02 13:41 -0500

csiph-web