• 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: Crashes inside CFStringDeallocate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crashes inside CFStringDeallocate


  • Subject: Re: Crashes inside CFStringDeallocate
  • From: Dave <email@hidden>
  • Date: Sun, 10 Jun 2018 20:14:08 +0200

Override the dealloc method and log when its called - its probably being
over-released!


All the Best
Dave

> On 8 Jun 2018, at 01:23, Jens Alfke <email@hidden> wrote:
>
>
>
>> On May 29, 2018, at 7:39 AM, Alastair Houghton
>> <email@hidden> wrote:
>>
>> There’s clearly some kind of bug in your code, but it doesn’t appear to be
>> in the lines you showed us.  If I had to guess, I’d say you’ve over-released
>> your NSString somehow (leading to an attempted double free of the underlying
>> storage);
>
> ^This. The crash log clearly says "Freeing already free'd pointer”. If I had
> to guess, I’d say that your code is failing to create an NSString from UTF-16
> data (for the reasons already described in this thread), and the
> failure-handling code path of your code ends up double-releasing a string.
> (Which should be impossible with ARC alone; are you calling CFString APIs
> anywhere?)
>
> —Jens
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Crashes inside CFStringDeallocate
      • From: Alastair Houghton <email@hidden>
References: 
 >Re: Crashes inside CFStringDeallocate (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: UNIX error exception: 17
  • Next by Date: Re: Crashes inside CFStringDeallocate
  • Previous by thread: Re: Crashes inside CFStringDeallocate
  • Next by thread: Re: Crashes inside CFStringDeallocate
  • Index(es):
    • Date
    • Thread