Arnold, Scott mentioned in comment 1 that memory consumption eventually peaks. Does the memory get freed after the loop ends or only once you close the bash session? What kind of memory consumption do you see for
for j in $(seq 1 10); do echo "Loop $j"; for i in $(seq 1 1000000); do true ; done; done In karmic, both invocations give essentially the same result for me. memory consumption peaks at around 110-120MB. Memory isn't released in either case until the bash session is close. Scott, the $() invocation seemed to work fine for you when you originally reported the issue. Can you please take a look at what is current status in this regard for you in Jaunty? FWIW, memory consumption in dash peaks at around 15MB (and the loop finishes much faster). Memory is released once the loop ends. Based on this information, I'm resetting back to triaged status, but ask Scott and Arnold to add the requested information. BTW, has this ever been reported upstream? ** Changed in: bash (Ubuntu) Assignee: Rolf Leggewie (r0lf) => (unassigned) ** Tags added: jaunty karmic memoryleak ** Changed in: bash (Ubuntu) Status: Incomplete => Triaged -- bash is not freeing memory of backticked output https://bugs.launchpad.net/bugs/82123 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs