<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Locating Memory Leaks with MallocDebug</title>
	<link>http://www.stiefels.net/2007/08/13/locating-memory-leaks-with-mallocdebug/</link>
	<description>it's all about zeros and ones</description>
	<pubDate>Fri, 16 May 2008 19:23:04 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: NinjaArmadillo</title>
		<link>http://www.stiefels.net/2007/08/13/locating-memory-leaks-with-mallocdebug/#comment-3808</link>
		<dc:creator>NinjaArmadillo</dc:creator>
		<pubDate>Mon, 24 Mar 2008 16:40:29 +0000</pubDate>
		<guid>http://www.stiefels.net/2007/08/13/locating-memory-leaks-with-mallocdebug/#comment-3808</guid>
		<description>&lt;p&gt;I'm currently trying to use MallocDebug
I run it (Debug&#62;Launch using performance tool&#62;MallocDebug),
I make sure it's pointing the the right file,
Then I click launch.&lt;/p&gt;

&lt;p&gt;It hangs for about a minutes then says "Read Data, Unable to read malloc from ..."&lt;/p&gt;

&lt;p&gt;I'm using OS X 10.4.11 (Tiger?)
Xcode Ver 2.4.1
Component versions
Xcode IDE: 762.0
Xcode Core: 762.0
ToolSupport: 764.0&lt;/p&gt;

&lt;p&gt;Am I doing something wrong ?
Please Help!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I&#8217;m currently trying to use MallocDebug
I run it (Debug&gt;Launch using performance tool&gt;MallocDebug),
I make sure it&#8217;s pointing the the right file,
Then I click launch.</p>

<p>It hangs for about a minutes then says &#8220;Read Data, Unable to read malloc from &#8230;&#8221;</p>

<p>I&#8217;m using OS X 10.4.11 (Tiger?)
Xcode Ver 2.4.1
Component versions
Xcode IDE: 762.0
Xcode Core: 762.0
ToolSupport: 764.0</p>

<p>Am I doing something wrong ?
Please Help!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Emanuele</title>
		<link>http://www.stiefels.net/2007/08/13/locating-memory-leaks-with-mallocdebug/#comment-3794</link>
		<dc:creator>Emanuele</dc:creator>
		<pubDate>Thu, 21 Feb 2008 22:15:47 +0000</pubDate>
		<guid>http://www.stiefels.net/2007/08/13/locating-memory-leaks-with-mallocdebug/#comment-3794</guid>
		<description>&lt;p&gt;Yes, the leaks(1) utility is definitely no longer working properly on Leopard. I filed a bug with Apple but I haven't heard anything back about it.&lt;/p&gt;

&lt;p&gt;This is another example:&lt;/p&gt;

&lt;p&gt;include&lt;/p&gt;

&lt;p&gt;include&lt;/p&gt;

&lt;p&gt;include&lt;/p&gt;

&lt;p&gt;static void foo(void)
{
   malloc(256);
}&lt;/p&gt;

&lt;p&gt;static void leaks(void)
{
   char cmd[64];
   sprintf(cmd, "/usr/bin/leaks %u", getpid());
   system(cmd);
}&lt;/p&gt;

&lt;p&gt;int main(void)
{
   atexit(leaks);&lt;/p&gt;

&lt;p&gt;foo();
   foo();
   foo();&lt;/p&gt;

&lt;p&gt;return 0;
}&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Yes, the leaks(1) utility is definitely no longer working properly on Leopard. I filed a bug with Apple but I haven&#8217;t heard anything back about it.</p>

<p>This is another example:</p>

<p>include</p>

<p>include</p>

<p>include</p>

<p>static void foo(void)
{
   malloc(256);
}</p>

<p>static void leaks(void)
{
   char cmd[64];
   sprintf(cmd, &#8220;/usr/bin/leaks %u&#8221;, getpid());
   system(cmd);
}</p>

<p>int main(void)
{
   atexit(leaks);</p>

<p>foo();
   foo();
   foo();</p>

<p>return 0;
}</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://www.stiefels.net/2007/08/13/locating-memory-leaks-with-mallocdebug/#comment-3788</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Sun, 10 Feb 2008 21:11:08 +0000</pubDate>
		<guid>http://www.stiefels.net/2007/08/13/locating-memory-leaks-with-mallocdebug/#comment-3788</guid>
		<description>&lt;p&gt;You're right. The example isn't working on Leopard anymore. I'll update it as soon as I found the reason. Thanks!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>You&#8217;re right. The example isn&#8217;t working on Leopard anymore. I&#8217;ll update it as soon as I found the reason. Thanks!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://www.stiefels.net/2007/08/13/locating-memory-leaks-with-mallocdebug/#comment-3787</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Thu, 07 Feb 2008 16:55:58 +0000</pubDate>
		<guid>http://www.stiefels.net/2007/08/13/locating-memory-leaks-with-mallocdebug/#comment-3787</guid>
		<description>&lt;p&gt;Have you tried this in Leopard? I used your example but MallocDebug doesn't see the leak. Strange...&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Have you tried this in Leopard? I used your example but MallocDebug doesn&#8217;t see the leak. Strange&#8230;</p>]]></content:encoded>
	</item>
</channel>
</rss>
