Debugging PPPD Resource Leaks
Mike Siers
mikes at poliac.com
Tue Oct 9 17:12:08 UTC 2001
Hi,
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
application
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.
Thanks
Mike Siers
-----Original Message-----
From: Mike Siers [mailto:mikes at poliac.com]
Sent: Monday, October 01, 2001 2:17 PM
To: rtems-users at oarcorp.com
Subject: Debugging PPPD Resource Leaks
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/20011009/61915758/attachment-0001.html>
More information about the users
mailing list