make install failed; dump core in mkdir
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 mkdir /usr/lsd/Linux/lib/bash ../../support/mkinstalldirs: line 74: 1822313 Segmentation fault (core dumped) mkdir "$pathcomp" make[1]: *** [Makefile:246: installdirs] Error 139 make[1]: Leaving directory '/export/home/tools/bash/bash-5.0/examples/loadables' make: [Makefile:824: install] Error 2 (ignored) trying without the bashrc function. Sigh... same result. bash/examples/loadables has a mkdir! Why would make install try to mkdir for the "current" directory? I removed mkdir from the Makefile and named it xx... make -f xx install worked! Any thoughts? George...
A possible bash bug.
Hi, I've been seeing these crashes randomly for the past month. This happens when I try to use filename completion. Is this a bash bug? Regards, George... This is the bash version: bash-5.0.7-3.fc31.x86_64 xpdAssertion 'pthread_mutex_init(>memfd_cache_mutex, NULL) == 0' failed at src/libsystemd/sd-bus/sd-bus.c:257, function sd_bus_new(). Aborting. Warning: Program '/bin/bash' crashed.
Is this a bug by any chance?
Hi, I just built the latest bash in an effort to determine if thie script shows a bug or a ufu. Can you help me please? I was expecting to see: 12345 Best regards AND thanks for your help, George... #!./bash -xv x="1 2 3 4 5" + x='1 2 3 4 5' for z in "$x" do echo "$z" done + for z in "$x" + echo '1 2 3 4 5' 1 2 3 4 5 exit 0 + exit 0