[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bash leaks memory when doing function calls while reading from subsh
From: |
Chet Ramey |
Subject: |
Re: Bash leaks memory when doing function calls while reading from subshell as stdin |
Date: |
Fri, 8 Dec 2017 09:57:50 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 |
On 12/7/17 7:41 AM, Øyvind Hvidsten wrote:
> Bash Version: 4.4
> Patch Level: 12
> Release Status: release
>
> Description:
> Somehow the included script causes a memory leak. Memory usage will
> grow huge over a very short timeframe.
Thanks for the report. It's the return in f2 that causes the problem.
This will be fixed in the next devel branch push. If you want to play
around with the fix, I've attached a patch.
Chet
--
``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/
saved-fifo-memleak.patch
Description: Text document