Re: Conclusion: Can anyone comment on Crashes in AUParameterSet?
Re: Conclusion: Can anyone comment on Crashes in AUParameterSet?
- Subject: Re: Conclusion: Can anyone comment on Crashes in AUParameterSet?
- From: Bill Stewart <email@hidden>
- Date: Mon, 2 Jun 2003 17:08:08 -0700
Shai
There's some great debugging tools for malloc problems...
This bit I always forget - how to find out what to do!
% setenv MallocHelp
then do anything in that terminal (like ls) and you get:
malloc[9428]: environment variables that can be set for debug:
- MallocGuardEdges to add 2 guard pages for each large block
- MallocDoNotProtectPrelude to disable protection (when previous flag
set)
- MallocDoNotProtectPostlude to disable protection (when previous flag
set)
- MallocStackLogging to record all stacks. Tools like leaks can then
be applied
- MallocStackLoggingNoCompact to record all stacks. Needed for
malloc_history
- MallocScribble to detect writing on free blocks: 0x55 is written upon
free
- MallocCheckHeapStart <n> to check the heap from time to time after
<n> operations
- MallocHelp - this help!
In the terminal I usually set these env variables;
% setenv MallocStackLogging
% setenv MallocGuardEdges
% setenv MallocScribble
Then run your app from that terminal session and you'll get some
interesting information usually (its also good for running leaks from
another terminal:
% leaks pid
where pid is the process you want to check for leaks of course...
Bill
On Saturday, May 31, 2003, at 01:37 AM, Shai Shasag wrote:
Bill, Doug,
Thanks for looking into this.
The situation is that I'm still having crashes, but since making the
AudioUnitParameter a heap pointer, the crashes are NOT in
AUParameterSet any more. I'm getting crashes in
_ZN13CVST2AUPlugin11ValidFormatEmmRK24CAStreamBasicDescription called
from DispatchSetProperty.
So either it's two completely different bugs, or that there is a
memory corruption somewhere causing crashed on both. However since
moving the pointer to the heap helped, I'll leave it there...
I'll keep you updated,
Shai
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.