Re: Memory Leak - Bash 4.3.x30

2024-03-28 Thread Jordi Ferrer
El 27/03/24 a les 18:51, Chet Ramey ha escrit: On 3/26/24 1:33 PM, Jordi Ferrer wrote: Just in case for people running old servers: This simple code cause a memory leak in bash: #!/bin/bash # Array=("S" "E") while [ 1 ]; do

Re: Memory Leak - Bash 4.3.x30

2024-03-27 Thread Chet Ramey
On 3/26/24 1:33 PM, Jordi Ferrer wrote: Just in case for people running old servers: This simple code cause a memory leak in bash: #!/bin/bash # Array=("S" "E") while [ 1 ]; do A=${Array[0]} done This was fixed by patch 40 to bash-4.3; if you're running a f

Memory Leak - Bash 4.3.x30

2024-03-26 Thread Jordi Ferrer
Just in case for people running old servers: This simple code cause a memory leak in bash: #!/bin/bash # Array=("S" "E") while [ 1 ]; do A=${Array[0]} done But, adding colons to the assignment it doesn't: #!/bin/bash # Array=("S" "E") while [ 1 ]; do