Debugging PPPD Resource Leaks

Mike Siers mikes at poliac.com
Mon Oct 1 19:17:07 UTC 2001


Hi,
I have a simple test program that should run forever but
it stops functioning correctly after about 20 iterations.
What is the best way to debug resource leaks?  Do
the following gdb commands still work correctly to display
available Workspace and Heap memory?

  print *(Heap_Block *)_Workspace_Area->first
  print *((Region_Control
*)_Region_Information->local_table[1])->Memory->first

The program is just trying to bring up and down a ppp link
over a direct serial cable.  It works about 20 times and then
it can not successfully bring up the IP layer.  What things can
I look at to help determine if the network stack has run out
of memory?

I am using the current snapshot.  Any debugging hints/tips
would be greatly appreciated.

Thanks
Mike Siers

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20011001/1b66afce/attachment.html>


More information about the users mailing list