bash is not freeing memory of backticked output
Bug #82123 reported by
Arnold J Noronha
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash (Ubuntu) |
Invalid
|
Low
|
Unassigned |
Bug Description
Binary package hint: bash
In feisty, when a command is called with backtick, there is apparently a memory leak which is fixed only once the correspong bash session is closed.
How to reproduce:
1. for i in `seq 1 100000` ; do true ; done
in a bash session (even gnome-terminal would do)
You can see the memory increasing, repeat this few times to observe that it is actually
increasing and not getting freed.
On the other hand
for i in $(seq 1 100000) ; do true; done
works fine.
My system is Feisty (upgraded from edgy, which was upgraded from dapper, from breezy)
--Arnold
Changed in bash: | |
status: | Unconfirmed → Confirmed |
Changed in bash: | |
importance: | Undecided → Low |
Changed in bash: | |
status: | Confirmed → Triaged |
summary: |
- bash (feisty) is not freeing memory of backticked output + bash is not freeing memory of backticked output |
To post a comment you must log in.
I can confirm this on Edgy. If you increase the number of iterations, the result is more dramatic. In Edgy, it occurs for both syntaxes.
I noticed, however, that memory usage seems to peak. If you repeatedly run the loop, bashs memory footprint will eventually stop growing.