• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CFZombieLevel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >CFZombieLevel (From: Jakob Olesen <email@hidden>)
 >Re: CFZombieLevel (From: Jim Correia <email@hidden>)

  • Prev by Date: Re: Core Data Refreshing / Saving Issues
  • Next by Date: Re: Adobe apps crash after -[NSWorkspace launchApplication:]
  • Previous by thread: Re: CFZombieLevel
  • Next by thread: Save dialog question
  • Index(es):
    • Date
    • Thread