Re: CFZombieLevel
Re: CFZombieLevel
- Subject: Re: CFZombieLevel
- From: Jakob Olesen <email@hidden>
- Date: Fri, 22 Sep 2006 23:14:23 +0200
On 22/09/2006, at 21.26, Jim Correia wrote:
Unfortunately, CFZombieLevel is not going to be generally useful on
current OS releases.
There are two problems I know about:
Problem #1 is now documented in the debugging magic technote.
http://developer.apple.com/technotes/tn2004/tn2124.html
WARNING: CFZombieLevel is not currently compatible with custom
allocators (created using CFAllocatorCreate) (r. 4158401). If you
attempt this combination, your program will crash the first time you
deallocate an object with a custom deallocator.
I thought that malloc_size() in __CFZombifyDeallocatedMemory() looked
suspicious...
Problem #2 There appear to be issues with the custom CFObjects used
by the security framework and how it manages them which make it
unfriendly to CFZombie which are independent from problem #1.
I can add:
Problem #3 Setting CFZombieLevel will crash any program during
startup if you are using a Japanese or Chinese input method.
I was able to find my bug by using a US keyboard layout during
debugging.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden