<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2651.75">
<TITLE>Problems with RTEMS Debug code calling printf</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2 FACE="Arial">When the RTEMS debug code finds a problem with the heap or when it displays walking the heap, it calls printf to do so. However, as this uses malloc and subsequently rtems_region_get_segment, in the first case the debug again recognizes a problem with the heap and again calls printf. This happens indefinitely until the code crashes. In the second case the code crashes fairly quickly as the heap changes as a result of calling printf so that the links between blocks are no longer valid. Does anyone have a neat solution or a bright idea how this might be solved ?</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Thanks in advance.</FONT>
</P>

<P><FONT SIZE=4 FACE="Script">Patrick Varney</FONT>
<BR><FONT SIZE=4 FACE="Script">Tel. 01932 773576</FONT>
<BR><FONT SIZE=4 FACE="Script">Mob. 0771 8046 750</FONT>
<BR><FONT SIZE=4 FACE="Script">email patrick.varney@syntegra.bt.co.uk</FONT>
</P>
<BR>

<CODE><FONT SIZE=3><BR>
<BR>
********************************************************************<BR>
<BR>
This email may contain information which is privileged or confidential. If you are not the intended recipient of this email, please notify the sender immediately and delete it without reading, copying, storing, forwarding or disclosing its contents to any other person<BR>
Thank you<BR>
<BR>
Check us out at http://www.syntegra.com<BR>
<BR>
********************************************************************<BR>
</FONT></CODE>
</BODY>
</HTML>