re: MallocDebug error - getUnreferencedData [19780]
re: MallocDebug error - getUnreferencedData [19780]
- Subject: re: MallocDebug error - getUnreferencedData [19780]
- From: Dave Payne <email@hidden>
- Date: Wed, 30 Jun 2004 23:48:59 -0700
On Jun 30, 2004, Alin Pilkington <email@hidden> wrote:
This is a repost of my previous message. Apple, is my app somehow
(directly, indirectly or otherwise) causing this error? If so, any
suggestions for changing my app? I know you don't have the source code
for my app but maybe from the error message being displayed in the
console window:
2004-06-28 10:49:50.249 MallocDebug[19780] getUnreferencedData error
you might have an idea. If the error is strictly an internal
MallocDebug error, then please let me know this so I can explore other
alternatives to checking for leaks, etc.
Hi Alin, the MallocDebug app prints that message when it gets an error
from the getUnreferencedData request to the MallocDebug thread running
in your target app. But, the request handler seems to always try to
return 0 (no error). I suspect what may be happening is that your
target process is running out of memory or close to it, so the RPC
layers return an error. Or, maybe there's an RPC timeout.
Try running 'top' in a Terminal window while you're doing this, and
watch the VSIZE of your target app and of MallocDebug. If your app
gets to be around 3.5 GB, there's probably an out-of-memory issue (and
your system would feel sluggish).
You can also try using the 'leaks' command line tool to get info on
leaks. See the leaks man page for more info. If you need backtraces
of where the leaks occur, you can set the MallocStackLogging
environment variable, then launch your app from the command line,
something like this:
% setenv MallocStackLogging 1
% MyApp.app/Contents/MacOS/MyApp
then exercise your app, then run leaks.
After quitting your app, I'd suggest closing that Terminal window or
doing 'unsetenv MallocStackLogging'.
- Dave
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.