• 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: Debugging memory smashers with GC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugging memory smashers with GC


  • Subject: Re: Debugging memory smashers with GC
  • From: Rob Keniger <email@hidden>
  • Date: Tue, 23 Dec 2008 10:32:16 +1000


On 23/12/2008, at 10:24 AM, Bill Bumgarner wrote:

Not necessarily.   Any number of things can cause crashes like this:

- trashing memory
- thread mis-synchronization
- something goes awry in the malloc zone

That it never happens under Instruments indicates that it might be a threading issue. Instruments employs some fairly intrusive interrogation methods and, thus, causes scheduling to be quite a bit different in a running application being interrogated by Instruments.

Interesting. I'm creating one additional thread explicitly and I will definitely have a look at that.



I've tried using the MallocStackLoggingNoCompact environment variable with malloc_history but my results have been inconclusive at best.

What is the best way to go about looking for this type of bug with Garbage Collection enabled?

Do you have backtraces from the point of the crash?


I haven't got any that I can post right now, but they are always different and very rarely contain my code. I will try and make it crash now and report back!

--
Rob Keniger



_______________________________________________

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: Debugging memory smashers with GC
      • From: Rob Keniger <email@hidden>
References: 
 >Debugging memory smashers with GC (From: Rob Keniger <email@hidden>)
 >Re: Debugging memory smashers with GC (From: Bill Bumgarner <email@hidden>)

  • Prev by Date: Re: Replacing objects
  • Next by Date: Re: C++ instance variables not destructed if NSZombieEnabled
  • Previous by thread: Re: Debugging memory smashers with GC
  • Next by thread: Re: Debugging memory smashers with GC
  • Index(es):
    • Date
    • Thread