This may not be a bug.  It can mean that something is being Garbage-collected that is not an object.

I've run into this a fair bit when using MacRuby.  I use MacRuby to access a ObjC library that otherwise does not run in a garbage-collected environment.  I typically see this most often when using toll-free bridging.  NSMakeCollectable is very handy in these cases.

Unfortunately, I've had to use GDB to actually track down the issue every time, as the logging suggests.  If it is in code you've written, fixing it up shouldn't be too bad.  If it is in an Apple/3rd party binary, please report a bug with the GDB backtrace to the owner.

Matt

On Jul 26, 2010, at 6:18 PM, Robert Rice wrote:

MacRuby 0.6 is working well for me but I recently started getting the following malloc error while using the custom page size dialog in Page Setup:

MacRuby 0.6 Release(774,0x7fff7045cc20) malloc: reference count underflow for 0x20275e080, break on auto_refcount_underflow_error to debug.
MacRuby 0.6 Release(774,0x7fff7045cc20) malloc: reference count underflow for 0x202644e40, break on auto_refcount_underflow_error to debug.
MacRuby 0.6 Release(774,0x7fff7045cc20) malloc: reference count underflow for 0x20083b6c0, break on auto_refcount_underflow_error to debug.

This bug generally doesn't cause my MacRuby app to crash but it does crash audio and video streaming applications such as iTunes and EyeTV.

Is this a known bug?

Thanks,
Bob Rice
_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel