<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2314.1000" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=810540517-09102001>Hi,</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=810540517-09102001>I have
fixed a few problems in my BSP and now I can run my ppp test
</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=810540517-09102001>program </SPAN></FONT><FONT color=#0000ff face=Arial
size=2><SPAN class=810540517-09102001>up to about 100 times.
Occassionally the program stops with</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=810540517-09102001>the
following error </SPAN></FONT><FONT color=#0000ff face=Arial size=2><SPAN
class=810540517-09102001>"Still waiting for mbuf.". It looks like
the application</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=810540517-09102001>is
getting stuck </SPAN></FONT><FONT color=#0000ff face=Arial size=2><SPAN
class=810540517-09102001>in the function m_mballoc. It is waiting for the
variable </SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=810540517-09102001>mmbfree to be </SPAN></FONT><FONT color=#0000ff
face=Arial size=2><SPAN class=810540517-09102001>set. </SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=810540517-09102001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=810540517-09102001>Has
anyone dealt with this problem? Which task or driver should
</SPAN></FONT><FONT color=#0000ff face=Arial size=2><SPAN
class=810540517-09102001>be setting </SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=810540517-09102001>the
mmbfree variable? </SPAN></FONT><FONT color=#0000ff face=Arial
size=2><SPAN class=810540517-09102001>Any thoughts or ideas would be greatly
appreciated.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=810540517-09102001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=810540517-09102001>Thanks</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=810540517-09102001>Mike
Siers</SPAN></FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px">
<DIV class=OutlookMessageHeader><FONT face="Times New Roman"
size=2>-----Original Message-----<BR><B>From:</B> Mike Siers
[mailto:mikes@poliac.com]<BR><B>Sent:</B> Monday, October 01, 2001 2:17
PM<BR><B>To:</B> rtems-users@oarcorp.com<BR><B>Subject:</B> Debugging PPPD
Resource Leaks<BR><BR></DIV></FONT>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=990320919-01102001>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=990320919-01102001>I have a simple
test program that should run forever but</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=990320919-01102001>it stops
functioning correctly after about 20 iterations.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=990320919-01102001>What is the best
way to debug resource leaks? Do</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=990320919-01102001>the following gdb
commands still work correctly to display</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=990320919-01102001>available
Workspace and Heap memory?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=990320919-01102001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=990320919-01102001> print
*(Heap_Block *)_Workspace_Area->first</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=990320919-01102001> print
*((Region_Control
*)_Region_Information->local_table[1])->Memory->first</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=990320919-01102001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=990320919-01102001>The program is
just trying to bring up and down a ppp link</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=990320919-01102001>over a direct
serial cable. It works about 20 times and then</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=990320919-01102001>it can not
successfully bring up the IP layer. What things can</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=990320919-01102001>I look at to help
determine if the network stack has run out </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=990320919-01102001>of
memory?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=990320919-01102001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=990320919-01102001>I am using the
current snapshot. Any debugging hints/tips</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=990320919-01102001>would be greatly
appreciated.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=990320919-01102001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=990320919-01102001>Thanks</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=990320919-01102001>Mike
Siers</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=990320919-01102001></SPAN></FONT> </DIV></BLOCKQUOTE></BODY></HTML>