Description of problem: process substitution in bash leaks memory with the 39 update. Version-Release number of selected component (if applicable): bash-4.3.39-1.fc22.x86_64 Steps to Reproduce: $ cat test-script.sh #!/bin/bash cat <(echo foo) $ valgrind --leak-check=full ./test-script.sh ==8235== 12 bytes in 1 blocks are definitely lost in loss record 85 of 255 ==8235== at 0x4C28C0F: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==8235== by 0x18928F: xmalloc (xmalloc.c:112) ==8235== by 0x18306A: set_default_locale (locale.c:81) ==8235== by 0x1360B0: main (shell.c:410) ==8235== ==8235== 17 bytes in 1 blocks are definitely lost in loss record 119 of 255 ==8235== at 0x4C28C0F: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==8235== by 0x18925A: xmalloc (xmalloc.c:112) ==8235== by 0x16B8F4: make_dev_fd_filename (subst.c:5025) ==8235== by 0x16B8F4: process_substitute (subst.c:5084) ==8235== by 0x16B8F4: expand_word_internal (subst.c:8278) ==8235== by 0x16E430: shell_expand_word_list (subst.c:9586) ==8235== by 0x16E430: expand_word_list_internal (subst.c:9706) ==8235== by 0x134457: execute_simple_command (execute_cmd.c:4012) ==8235== by 0x14C20B: execute_command_internal (execute_cmd.c:799) ==8235== by 0x14DC61: execute_command (execute_cmd.c:394) ==8235== by 0x1384EC: reader_loop (eval.c:161) ==8235== by 0x136F61: main (shell.c:766) ==8235== Additional info: bash-4.3.33-2.fc22.x86_64 does not have this bug. No custom bashrc present here. I tried compiling bash from git but I get linker errors with the fedora configure options. fedpkg local doesn't work with the f22 tree (conftest is missing?) manually running configure and make with the options from the specfile didn't reproduce the leak.
It seem that set_default_locale() leaks a pointer when ./configure --with-bash-malloc=no is used...
bash-4.3.39-4.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/bash-4.3.39-4.fc22
bash-4.3.39-4.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/bash-4.3.39-4.fc21
*** Bug 1241533 has been marked as a duplicate of this bug. ***
Package bash-4.3.39-4.fc21: * should fix your issue, * was pushed to the Fedora 21 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing bash-4.3.39-4.fc21' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-11260/bash-4.3.39-4.fc21 then log in and leave karma (feedback).
just tried the -4 package in F22 and it still shows the issue
bash-4.3.39-4.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
Thanks, I'll re-check.
bash-4.3.39-5.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/bash-4.3.39-5.fc21
bash-4.3.39-5.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/bash-4.3.39-5.fc22
thanks, leak is fixed now
Package bash-4.3.39-5.fc21: * should fix your issue, * was pushed to the Fedora 21 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing bash-4.3.39-5.fc21' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-11698/bash-4.3.39-5.fc21 then log in and leave karma (feedback).
bash-4.3.39-5.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
bash-4.3.39-5.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.