Date: Thu, 24 Aug 1995 07:57:51 -0700 (PDT) From: batie@agora.rdrop.com (Alan Batie) To: freebsd-bugs@freebsd.org Subject: sh memory leak? Message-ID: <m0sldjP-0003hVC@agora.rdrop.com>
next in thread | raw e-mail | index | archive | help
On FreeBSD 2.1.0-950726-SNAP, /bin/sh seems to have a problem. When running innwatch, basically a daemon shell script, after a period of time, it starts generating memory faults: + eval df -i . | awk 'NR == 2 { print $3 }' + df -i . + awk NR == 2 { print $3 } + VALUE=685209 + OK=n + [ ( -z -o != 38 -o n = y ) -a 685209 -lt 200 ] + [ = 38 -a ( throttle = throttle -o throttle = pause ) -a ! 685209 -lt 200 ] + read line + exec + exec + [ -n /var/log/news/news.crit -a -f /var/log/news/news.crit ] + [ ! -f /usr/local/news/locks/innwatch.time ] + ls -t /usr/local/news/locks/innwatch.time /var/log/news/news.crit + grep /var/log/news/news.crit + sed -e 1q + DOIT= + [ -n -a -s /var/log/news/news.crit ] + sleep 600 + wait + : + NEXTSLEEP=600 + test -f /usr/local/news/locks/LOCK.news.daily + ctlinnd -s -t 120 mode + false + cat /usr/local/news/innd/innd.pid + nPID=2055 + test -n 2055 -a 2055 -ne 2055 + VALUE=0 + PREVEXP= + exec + exec + LINE=0 + read line + expr 0 + 1 + LINE=1 + test -z ## $Revision: 1.3 $ + expr ## $Revision: 1.3 $ : \(.\).* + delim=# + test X# = X# + continue + read line + expr 1 + 1 + LINE=2 + test -z ## innwatch.ctl -- control file for innwatch. + expr ## innwatch.ctl -- control file for innwatch. : \(.\).* + delim=# + test X# = X# + continue + read line + expr 2 + 1 Memory fault - core dumped + LINE= + test -z ## Indicates what to run to test the state of the news system, and what Memory fault - core dumped + expr ## Indicates what to run to test the state of the news system, and what : \(.\).* Memory fault - core dumped + delim= + test X = X# Memory fault - core dumped Memory fault - core dumped + eval + test -z 38 Memory fault - core dumped + [ -z ] Memory fault - core dumped + X= + set -x X + shift + continue 2 + read line + expr + 1 Memory fault - core dumped + LINE= + test -z ## to do about it. Format: Memory fault - core dumped + expr ## to do about it. Format: : \(.\).* Memory fault - core dumped + delim= + test X = X# Memory fault - core dumped Memory fault - core dumped + eval + test -z 38 Memory fault - core dumped + [ -z ] Memory fault - core dumped + X= + set -x X + shift + continue 2 + read line + expr + 1 Memory fault - core dumped + LINE= + test -z ## !state!when!command!test!limit!command!reason/comment Memory fault - core dumped + expr ## !state!when!command!test!limit!command!reason/comment : \(.\).* Memory fault - core dumped + delim= + test X = X# -- Alan Batie ______ batie@agora.rdrop.com \ / Freedom for me to be and do +1 503 452-0960 \ / only what *you* approve of 45 28 59 N / 122 43 20 W / 440' MSL \/ is no freedom at all.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m0sldjP-0003hVC>