• 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: malloc error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: malloc error


  • Subject: Re: malloc error
  • From: Sean McBride <email@hidden>
  • Date: Thu, 29 Sep 2011 10:29:59 -0400
  • Organization: Rogue Research Inc.

On Thu, 29 Sep 2011 13:51:20 +0200, Gerhard Fassnacht said:

>Hello,
>
>Who can explain? From the point of user interface my code runs as
>expected and there seems to be no problem at all. Looking at the
>Debugger Console I get the the following message:
>
> malloc: *** auto malloc[1976]: error: GC operation on unregistered
>thread. Thread registered implicitly. Break on
>auto_zone_thread_registration_error() to debug.
>
>What does it mean and where can I get more information about this
>message  and all other error message coming from  GC?

gefa,

Are you creating pthreads directly?  If so, they need to be registered with the collector.  Google objc_registerThreadWithCollector() for more.

For other GC error messages, I have a bunch of breakpoints setup in my .gdbinit file, here's my whole file's contents in fact:

fb objc_assign_global_error
fb objc_assign_ivar_error
fb objc_exception_during_finalize_error
fb objc_exception_throw
fb szone_error
fb malloc_error_break
fb auto_zone_resurrection_error
fb auto_zone_association_error
fb auto_refcount_underflow_error
fb _NSLockError
fb -[_NSZombie release]
fb handleFailureInMethod:object:file:lineNumber:description:
fb handleFailureInFunction:file:lineNumber:description:
fb _NSAutoreleaseNoPool
fb __NSAutoreleaseNoPool
fb _NSAutoreleaseFreedObject
fb __NSAutoreleaseFreedObject
fb NSKVODeallocateBreak

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


 _______________________________________________
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: 
 >malloc error (From: Gerhard Fassnacht <email@hidden>)

  • Prev by Date: Target settings show different values than project settings
  • Next by Date: Re: Redirect IO of target
  • Previous by thread: malloc error
  • Next by thread: Target settings show different values than project settings
  • Index(es):
    • Date
    • Thread