[BusyBox 0001398]: possible memory leak

bugs at busybox.net bugs at busybox.net
Sun Jul 8 22:12:48 UTC 2007


A NOTE has been added to this issue. 
====================================================================== 
http://busybox.net/bugs/view.php?id=1398 
====================================================================== 
Reported By:                weedy
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   1398
Category:                   Other
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             06-20-2007 23:12 PDT
Last Modified:              07-08-2007 15:12 PDT
====================================================================== 
Summary:                    possible memory leak
Description: 
I am running this script on a operwrt router with BusyBox v1.4.2 and the
mem usage just keeps rising. is there a way around this?

VPNlist="/etc/storelist" #tunnel list
while :; do
        ping -c 3 4.2.2.2 >&- 2>&- || continue
        # if 4.2.2.2 exists ping will have a exitcode equal to 0 (only
need this check once)

        while read IP STORE JUNK; do # may not need JUNK, but it doesn't
hurt
                ping -c 2 "$IP" >&- 2>&- && continue
                ping -c 3 4.2.2.2 >&- 2>&- || continue
                # if ${IP} doesn't exist ping will have a exitcode not
equal to 0
                ipsec auto --replace $STORE >&- 2>&-
                ipsec auto --up $STORE >&- 2>&- &
        done < "$VPNlist"
done

====================================================================== 

---------------------------------------------------------------------- 
 vda - 06-21-07 06:32  
---------------------------------------------------------------------- 
What shell do you use? 

---------------------------------------------------------------------- 
 weedy - 06-21-07 09:54  
---------------------------------------------------------------------- 
/bin/sh -> busybox 

---------------------------------------------------------------------- 
 weedy - 07-08-07 15:08  
---------------------------------------------------------------------- 
anything? 

---------------------------------------------------------------------- 
 bernhardf - 07-08-07 15:12  
---------------------------------------------------------------------- 
Your comment does not tell us what shell you are using.
So.. What shell do you use? 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-20-07 23:12  weedy          New Issue                                    
06-20-07 23:12  weedy          Status                   new => assigned     
06-20-07 23:12  weedy          Assigned To               => BusyBox         
06-21-07 06:32  vda            Note Added: 0002494                          
06-21-07 09:54  weedy          Note Added: 0002495                          
07-08-07 15:08  weedy          Note Added: 0002578                          
07-08-07 15:12  bernhardf      Note Added: 0002579                          
======================================================================




More information about the busybox-cvs mailing list