Re: Bash leaks memory when doing function calls while reading from subshell as stdin

2017-12-17 Thread Øyvind Hvidsten
Awesome. Thanks! On 08/12/17 15:57, Chet Ramey wrote: 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

Re: Bash leaks memory when doing function calls while reading from subshell as stdin

2017-12-08 Thread Chet Ramey
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

Bash leaks memory when doing function calls while reading from subshell as stdin

2017-12-07 Thread Øyvind Hvidsten
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACK

Bash leaks memory when doing function calls while reading from subshell as stdin

2017-12-07 Thread Øyvind Hvidsten
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACK