[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();

      // Add a break point here or even better some trace out to the debug

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


Good bug hunting.


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


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

                I got mail id from one of discussion forum from Internet

                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.






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


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


More information about the En-Nut-Discussion mailing list