Re: MallocDebug not showing symbols (Sample App included)
Re: MallocDebug not showing symbols (Sample App included)
- Subject: Re: MallocDebug not showing symbols (Sample App included)
- From: "Alexander v. Below" <email@hidden>
- Date: Thu, 10 Nov 2005 21:37:43 +0100
Update: This seems to be a gcc 4 problem. When compiling with gcc 3,
things work as expected. Am I on the wrong list then?
Thanks
Alex
Am 10.11.2005 um 21:34 schrieb Alexander v. Below:
Hello,
hopefully this is the right list for my question, but I think this
is the place it fits best.
When I am using MallocDebug, I can not see the methods in which the
memory was allocated/leaked. I can see the methods from AppKit
etc., but rarely (and uncompletely) my own. I think last time I
used MallocDebug to hunt leaks in a project (in April, must have
been Xcode 2.0), I did not have this problem.
The projects are built with debug symbols, and I am clueless what I
can do to see which methods are leaking. While I have filed this as
a bug with Apple (and sent a sample app too), It would be great if
somebody had a hint because I am trying to hunt down some major
leakage in an app. Maybe it is just some setting.
This problem can be reproduced with a very simple application, you
can find it at http://vonbelow.com/DebugTester.zip (186 kBytes)
To recreate, build the application (Debug Configuration), go to the
Debug menu and select "MallocDebug" from the "Launch with
Performace Tool" item.
Launch the app, bring it to the foreground and click the "Leak"
button a couple of times. Then go back to MallocDebug, and do a
leak analysis.
Expected Result: Somewhere in the call chain for the leaked memory,
the "leak" method from "myLeaker.m" is identified. But this is not
the case, the call is listed as in an "unknown library". The "main"
function in "main.c" however is listed.
This behaviour can be reproduced in Xcode 2.1, and the newly
released 2.2
It would be great if I could find out if this is a workaround for
this.
Thanks a lot
Alex
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden