Debugging PPPD Resource Leaks

Mike Siers mikes at
Tue Oct 9 17:12:08 UTC 2001

I have fixed a few problems in my BSP and now I can run my ppp test
program up to about 100 times.  Occassionally the program stops with
the following error "Still waiting for mbuf.".   It looks like the
is getting stuck in the function m_mballoc.  It is waiting for the variable
mmbfree to be set.

Has anyone dealt with this problem?  Which task or driver should be setting
the mmbfree variable?  Any thoughts or ideas would be greatly appreciated.

Mike Siers
  -----Original Message-----
  From: Mike Siers [mailto:mikes at]
  Sent: Monday, October 01, 2001 2:17 PM
  To: rtems-users at
  Subject: Debugging PPPD Resource Leaks

  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

  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.

  Mike Siers

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the users mailing list