• 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: Any useful information in this output from malloc_history?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Any useful information in this output from malloc_history?


  • Subject: Re: Any useful information in this output from malloc_history?
  • From: Jerry Krinock <email@hidden>
  • Date: Tue, 16 Sep 2008 15:43:00 -0700

Thank you, Ken. It was interesting reading the documentation and trying out some of the tools. But all the tools told me was that, when the crash happened, lots of memory was being smashed.

Two days later...

And the problem was in a string-editing method in which I wrote the unichars of an NSString into a buffer which I had mallocced to the string's length instead of length*sizeof(unichar). [Gory details snipped]

So, the lesson is for Cocoa programmers like me to remember that you're stepping out of your usual sheltered life when you use bare- metal "C", so be very careful.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Any useful information in this output from malloc_history? (From: Jerry Krinock <email@hidden>)
 >Re: Any useful information in this output from malloc_history? (From: Ken Thomases <email@hidden>)

  • Prev by Date: Deployment phase failure
  • Next by Date: error message: multiple build commands
  • Previous by thread: Re: Any useful information in this output from malloc_history?
  • Next by thread: Link error -- missing file (??)
  • Index(es):
    • Date
    • Thread