[En-Nut-Discussion] Need help regarding PPPoE leads to memory leak

Lasse Conrad lasse.conrad at tonica.dk
Thu Jun 19 14:46:53 CEST 2008


Hi Jayadeep

Try to narrow in the problem area with some code like this.

//In global scope
...
size_t g_heapSizeBefore=0;
size_t g_heapSizeAfter=0;


// Then in your code.


Void Somefunction(void)
{
   ...
   g_heapSizeBefore = NutHeapAvailable();
   ...
   Calls to untrusted code which may cause memory leak..
   ...
   g_heapSizeAfter = NutHeapAvailable();

   if(g_heapSizeBefore!=g_heapSizeAfter)
   {
      // Add a break point here or even better some trace out to the debug
      port.

      printf("Memory leak found here !!\n");

   }	
}

Good bug hunting.

Lasse


-----Oprindelig meddelelse-----
Fra: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] På vegne af
jayadeep_bantwal at agilent.com
Sendt: Wednesday, June 18, 2008 11:07 AM
Til: en-nut-discussion at egnite.de
Cc: rajeev_s at agilent.com
Emne: [En-Nut-Discussion] Need help regarding PPPoE leads to memory leak

Hi,

                Myself Jayadeep from Agilent technologies , Bangalore,
India. We are working on PPPoE client to fix memory leak problem on long
run.

                I got mail id from one of discussion forum from Internet
http://www.egnite.de/pipermail/en-nut-discussion/2007-October/026214.html

                I just registered myself into egnite discussion forum with
mail id -> Jayadeep_bantwal at agilent.com

                We have a product which generates multiple PPPoE request ( >
5000 requests repeatedly, concurrently). While running this we are ending up
in system hogging entire RAM.

                We are using 2.4.18 kernel.

                It would be great if you can help us in this regard.

 

Thanks,

     Jay

 

 

Jaydeep Bantwal

R & D Engineer, IP Network Convergence ( R&D),

Agilent Technologies India Pvt Ltd,

RMZ centennial, Tower C, 3rd Floor,

Bolandoor village, ITPL road

Bangalore - 560 097, INDIA

Email: jayadeep_bantwal at agilent.com <mailto:jayadeep_bantwal at agilent.com> 

URL: http://www.agilent.com <http://www.agilent.com/> 

 

 
outbind://42-000000006E696802DFD4084CB5EF0F15237688FA0700CD99FB0FEA03B34DB06
6A14028B66D030000003183E60000CD99FB0FEA03B34DB066A14028B66D0300000078A2C5000
0/cid:image001.jpg at 01C81720.572676B0<outbind://42-000000006E696802DFD4084CB5
EF0F15237688FA0700CD99FB0FEA03B34DB066A14028B66D030000003183E60000CD99FB0FEA
03B34DB066A14028B66D0300000078A2C50000/cid:image001.jpg at 01C81720.572676B0> 

_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion




More information about the En-Nut-Discussion mailing list