Hi Andrej

I cloned and compiled dash (0.5.10.2-6) from 
https://salsa.debian.org/debian/dash

I did further testing and found my initial repro steps were incorrect. 
Offending script showing RSS growth is:
----------------------
#!/bin/sh
while true
do
  true || echo &
  sleep .1
done
----------------------
RSS will not grow if precedence is addressed like so: true || (echo &)
I interpret it as starting/terminating cycle of a background job is leaky.

Br Vitaly

-----Original Message-----
From: Andrej Shadura [mailto:and...@shadura.me] 
Sent: Sunday, March 15, 2020 6:47 PM
To: Vitaly Zuevsky; 953...@bugs.debian.org
Cc: Debian Bug Tracking System
Subject: Re: Bug#953421: dash: Resident Set Size growth is unbound (memory 
leak) on an infinite shell loop

Thanks for your report; this most likely is a bug in the upstream package. 
While I doubt it’s any of our patches that introduced this undesired behaviour, 
it would be great if you could verify this still happens with the latest 
upstream Git version of dash, and if it also does, if you followed up with the 
upstream at d...@vger.kernel.org.

If that’s too much work for you right now (it’s okay if it is), I can do that 
for you, but, unfortunately, I cannot provide a timeline at the moment.

--
Cheers,
  Andrej

Reply via email to