malloc error

Hi,

Does anyone get this error when their app starts up and what does it mean?

malloc: *** auto malloc[601]: error: GC operation on unregistered thread. Thread registered implicitly. Break on auto_zone_thread_registration_error() to debug.

Thanks

Terry

It means one of the frameworks you’re using is doing something it shouldn’t do with garbage collection on. “Thread registered implicitly” means the problem has been corrected.

Are you using WebKit by any chance? I’ve seen it there regularly.

Whatever, there’s not much you can do except report it as a bug.

Hi,

Thanks for your response. I did search the internet and noted that it may not actually be an error, something to do with how Snow Leopard functions vs how Leopard used to function. Apparently this error may not even show in Leopard.

I am not using webKit.

I suspect it may be the FMDB sqlite database I have integrated but can’t be sure.

How would I find out what is causing this error.

How do I set

auto_zone_thread_registration_error() to debug

within XCode 4.

All the best

Terry

Unless you have the source, you can’t.

In Xcode 3 you just add it as a breakpoint in the debugger. I imagine it’s something similar in Xcode 4, just harder to find. It looks like there’s a Breakpoint Navigator. Just don’t expect what happens to be particularly enlightening unless you’re very comfortable with Objective-C/C.

Hi,

Very strange, ran another project that contains only ASOC code from within XCode 4 and exactly the same error.

It does not show in the console within XCode 4 until I actually open the main console application.

It also happens from XCode 3.

It can’t therefore be the FMDB sqlite wrapper.

All the best

Terry

Hi,

A little more info.

Created a brand new project and added no additional code.

Ran it.

Error generated as previously described.

Ie. The error only shows in XCode 4 console when you open the main console app.

Any ideas?

All the best

Terry

Hi,

A new project XCode 3.

Same problem.

So it is not just an Xcode 4 issue.

All the best

Terry

Are you adding any frameworks?

The new projects created in XCode 3 & 4 are just straight from the create a new project dialogue with nothing added at all.

The only frameworks showing are:

AppKit
AppleScriptObjC
Cocoa
CoreData
Foundation

All the best

Terry

Hi,

Perhaps there is nothing that can be done about it?

I found this post :

http://osdir.com/ml/cocoa-dev/2009-09/msg00672.html

Which suggests there is nothing that can be done.

All the best

Terry

See the last line of my first reply :slight_smile: