[BusyBox 0001398]: possible memory leak

bugs at busybox.net bugs at busybox.net
Thu Jun 21 16:54:24 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:              06-21-2007 09:54 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 

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                          
======================================================================




More information about the busybox-cvs mailing list